Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_below_limit,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_below_limit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008317/0.0008317, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009167/0.0009167, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2421/0.2421, allocations: 22.35 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005719/0.0005721, allocations: 8 kB / 382.7 MB, free: 9.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3676, allocations: 55.98 MB / 438.7 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_below_limit): time 0.001805/0.3695, allocations: 1.493 MB / 440.2 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008624/0.3703, allocations: 0.5566 MB / 440.7 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.058e-05/0.3705, allocations: 3.938 kB / 440.8 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.3707, allocations: 22.41 kB / 440.8 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.3709, allocations: 34.62 kB / 440.8 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.3711, allocations: 83.92 kB / 440.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.3714, allocations: 184.2 kB / 441.1 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.3715, allocations: 47.58 kB / 441.1 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.3716, allocations: 67.31 kB / 441.2 MB, free: 38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.3718, allocations: 79.73 kB / 441.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.3718, allocations: 5.312 kB / 441.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.191e-05/0.3718, allocations: 6.688 kB / 441.3 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-05/0.3719, allocations: 43.66 kB / 441.3 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.232e-05/0.372, allocations: 50.67 kB / 441.4 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.3721, allocations: 130.8 kB / 441.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3721, allocations: 7.688 kB / 441.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3721, allocations: 0 / 441.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3722, allocations: 0 / 441.5 MB, free: 37.87 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0008892/0.373, allocations: 0.4928 MB / 442 MB, free: 37.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3731, allocations: 8.406 kB / 442 MB, free: 37.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.3732, allocations: 44.22 kB / 442 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.3732, allocations: 20.59 kB / 442.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.3736, allocations: 278.2 kB / 442.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.3736, allocations: 5.516 kB / 442.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.413e-05/0.3737, allocations: 21.25 kB / 442.4 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.374, allocations: 162.9 kB / 442.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.374, allocations: 7.891 kB / 442.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.374, allocations: 6.875 kB / 442.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.374, allocations: 3.156 kB / 442.5 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/0.3743, allocations: 128.9 kB / 442.7 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007942/0.3751, allocations: 0.5408 MB / 443.2 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005099/0.3756, allocations: 209.4 kB / 443.4 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.3757, allocations: 74.2 kB / 443.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.3758, allocations: 2.844 kB / 443.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.3758, allocations: 34.56 kB / 443.5 MB, free: 36.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.3758, allocations: 0 / 443.5 MB, free: 36.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001398/0.3772, allocations: 0.5928 MB / 444.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.3772, allocations: 77.11 kB / 444.2 MB, free: 36.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.3775, allocations: 215.6 kB / 444.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.3776, allocations: 32.8 kB / 444.4 MB, free: 36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.194e-05/0.3776, allocations: 128.3 kB / 444.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/0.3777, allocations: 44.52 kB / 444.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-06/0.3777, allocations: 6.969 kB / 444.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.3778, allocations: 324.9 kB / 444.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.3779, allocations: 60.67 kB / 445 MB, free: 35.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.378, allocations: 91.22 kB / 445.1 MB, free: 35.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.3782, allocations: 76.94 kB / 445.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3782, allocations: 3.219 kB / 445.1 MB, free: 35.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000341/0.3785, allocations: 201.4 kB / 445.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.843e-05/0.3786, allocations: 95.42 kB / 445.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3786, allocations: 0 / 445.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.3786, allocations: 2.875 kB / 445.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.3789, allocations: 43.11 kB / 445.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.3789, allocations: 2.938 kB / 445.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000156/0.379, allocations: 42.45 kB / 445.5 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.3791, allocations: 2.875 kB / 445.5 MB, free: 35.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-06/0.3791, allocations: 2.719 kB / 445.5 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001835/0.3793, allocations: 125.6 kB / 445.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-06/0.3793, allocations: 0 / 445.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.058e-06/0.3793, allocations: 7.141 kB / 445.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.3795, allocations: 37.66 kB / 445.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.3795, allocations: 3.984 kB / 445.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.3796, allocations: 33.8 kB / 445.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.3797, allocations: 2.812 kB / 445.7 MB, free: 35.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.3798, allocations: 207 kB / 445.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.3798, allocations: 16.72 kB / 446 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006259/0.3804, allocations: 309.7 kB / 446.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3805, allocations: 0 / 446.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3805, allocations: 0 / 446.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3805, allocations: 2.719 kB / 446.3 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.3807, allocations: 271 kB / 446.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3807, allocations: 3.938 kB / 446.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.044e-05/0.3808, allocations: 14.38 kB / 446.5 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003415/0.3812, allocations: 93.23 kB / 446.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.3812, allocations: 6.781 kB / 446.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.3829, allocations: 1.76 MB / 448.4 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3829, allocations: 0 / 448.4 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007226/0.3836, allocations: 469.3 kB / 448.9 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.3837, allocations: 98.06 kB / 449 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.3837, allocations: 2.906 kB / 449 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.3839, allocations: 33 kB / 449 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.178e-05/0.384, allocations: 15.12 kB / 449 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.384, allocations: 11 kB / 449 MB, free: 32.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.3842, allocations: 166.7 kB / 449.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3842, allocations: 0 / 449.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.3846, allocations: 56.78 kB / 449.2 MB, free: 32.61 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009114/0.3855, allocations: 0.9962 MB / 450.2 MB, free: 31.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004018/0.3859, allocations: 211 kB / 450.4 MB, free: 31.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.386, allocations: 0 / 450.4 MB, free: 31.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003118/0.3863, allocations: 217.8 kB / 450.6 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.3866, allocations: 25.5 kB / 450.7 MB, free: 31.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.3887, allocations: 1.243 MB / 451.9 MB, free: 30.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.3889, allocations: 0.7319 MB / 452.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001098/0.389, allocations: 37.42 kB / 452.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.599e-05/0.3891, allocations: 49.02 kB / 452.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3891, allocations: 0 / 452.7 MB, free: 30.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.4049, allocations: 4.031 MB / 456.8 MB, free: 29.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.4052, allocations: 216.8 kB / 457 MB, free: 29.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.254, allocations: 3.938 kB / 457 MB, free: 29.68 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_below_limit_fmu --startTime=0 --stopTime=150 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_below_limit.fmu > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1) Environment - environmentSimulation: