Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 109.4 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001968/0.001968, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 225.6 MB / 247.8 MB, free: 13.94 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09828/0.09828, allocations: 22.69 MB / 325.4 MB, free: 3.629 MB / 254.1 MB " [Timeout remaining time 180] 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 71.88 kB / 457.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.127, allocations: 58.02 MB / 0.5038 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.003495/0.1305, allocations: 2.082 MB / 0.5058 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.1319, allocations: 0.6897 MB / 0.5065 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.132, allocations: 7.938 kB / 0.5065 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.1323, allocations: 39.66 kB / 0.5065 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.1325, allocations: 51.58 kB / 0.5066 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004079/0.1329, allocations: 186.8 kB / 0.5068 GB, free: 3.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004004/0.1333, allocations: 327.3 kB / 0.5071 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001944/0.1335, allocations: 80.16 kB / 0.5072 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.1337, allocations: 123.5 kB / 0.5073 GB, free: 3.387 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.1339, allocations: 139.4 kB / 0.5074 GB, free: 3.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.159e-05/0.1339, allocations: 28 kB / 0.5074 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.382e-05/0.134, allocations: 28 kB / 0.5075 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.1341, allocations: 79.69 kB / 0.5075 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.1342, allocations: 127.3 kB / 0.5077 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.1346, allocations: 298.7 kB / 0.5079 GB, free: 2.699 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1346, allocations: 0 / 0.5079 GB, free: 2.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.1346, allocations: 3.984 kB / 0.5079 GB, free: 2.695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1346, allocations: 0 / 0.5079 GB, free: 2.695 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001371/0.136, allocations: 0.6155 MB / 0.5085 GB, free: 2.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.136, allocations: 12.03 kB / 0.5086 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.736e-05/0.1361, allocations: 54.72 kB / 0.5086 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.152e-05/0.1362, allocations: 32.75 kB / 0.5086 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006142/0.1368, allocations: 318.8 kB / 0.5089 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.1368, allocations: 16.75 kB / 0.509 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.977e-05/0.1369, allocations: 24.36 kB / 0.509 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004864/0.1373, allocations: 254.1 kB / 0.5092 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.1374, allocations: 0 / 0.5092 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.707e-05/0.1374, allocations: 8 kB / 0.5092 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1374, allocations: 8 kB / 0.5092 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.1378, allocations: 183.9 kB / 0.5094 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.1392, allocations: 0.7071 MB / 0.5101 GB, free: 324 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007787/0.14, allocations: 250.4 kB / 0.5103 GB, free: 64 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2296/0.3696, allocations: 89.86 kB / 0.5104 GB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.3697, allocations: 3.516 kB / 0.5104 GB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.3697, allocations: 36.3 kB / 0.5105 GB, free: 16.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 2.074e-06/0.3697, allocations: 0 / 0.5105 GB, free: 16.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.002753/0.3725, allocations: 0.8148 MB / 0.5113 GB, free: 15.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.3725, allocations: 106.7 kB / 0.5114 GB, free: 15.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004064/0.3729, allocations: 264.1 kB / 0.5116 GB, free: 15.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.3729, allocations: 30.05 kB / 0.5116 GB, free: 15.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.757e-05/0.373, allocations: 171.3 kB / 0.5118 GB, free: 15.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.442e-05/0.3731, allocations: 62.55 kB / 0.5119 GB, free: 15.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.44e-05/0.3732, allocations: 39.89 kB / 0.5119 GB, free: 15.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.5e-05/0.3732, allocations: 336.2 kB / 0.5122 GB, free: 15.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.3734, allocations: 97.23 kB / 0.5123 GB, free: 15.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.3736, allocations: 135.7 kB / 0.5125 GB, free: 15.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.374, allocations: 211.3 kB / 0.5127 GB, free: 15.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.374, allocations: 1.562 kB / 0.5127 GB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004346/0.3744, allocations: 270.9 kB / 0.5129 GB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.3745, allocations: 6.156 kB / 0.5129 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.3745, allocations: 3.625 kB / 0.5129 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.3745, allocations: 0 / 0.5129 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/0.3749, allocations: 54.88 kB / 0.513 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.3749, allocations: 2.766 kB / 0.513 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.3751, allocations: 41.42 kB / 0.513 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.3751, allocations: 4.281 kB / 0.513 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001615/0.3753, allocations: 175.6 kB / 0.5132 GB, free: 15.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001282/0.3754, allocations: 111.7 kB / 0.5133 GB, free: 15.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001963/0.3756, allocations: 159.2 kB / 0.5134 GB, free: 14.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.92e-07/0.3756, allocations: 1.094 kB / 0.5134 GB, free: 14.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0002886/0.3759, allocations: 225.5 kB / 0.5137 GB, free: 14.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.706e-06/0.3759, allocations: 7.875 kB / 0.5137 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.3759, allocations: 3.375 kB / 0.5137 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-06/0.3759, allocations: 1.188 kB / 0.5137 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.3762, allocations: 49.97 kB / 0.5137 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3762, allocations: 12.28 kB / 0.5137 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.3763, allocations: 29.33 kB / 0.5138 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.3764, allocations: 7.188 kB / 0.5138 GB, free: 14.94 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.453e-05/0.3764, allocations: 197.5 kB / 0.514 GB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.586e-05/0.3765, allocations: 22.36 kB / 0.514 GB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000918/0.3774, allocations: 408.4 kB / 0.5144 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3774, allocations: 1.375 kB / 0.5144 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.3774, allocations: 2.438 kB / 0.5144 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3774, allocations: 5.312 kB / 0.5144 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003244/0.3777, allocations: 330.1 kB / 0.5147 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3777, allocations: 3.094 kB / 0.5147 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.3779, allocations: 14.28 kB / 0.5147 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004681/0.3783, allocations: 144 kB / 0.5148 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.3783, allocations: 3.062 kB / 0.5148 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002787/0.3811, allocations: 2.43 MB / 0.5172 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3811, allocations: 0 / 0.5172 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.3822, allocations: 0.5861 MB / 0.5178 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.321e-05/0.3823, allocations: 104.1 kB / 0.5179 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.3823, allocations: 8.031 kB / 0.5179 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.3826, allocations: 24.84 kB / 0.5179 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.318e-05/0.3827, allocations: 21.56 kB / 0.5179 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.3827, allocations: 10.94 kB / 0.518 GB, free: 12.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003347/0.383, allocations: 197.3 kB / 0.5181 GB, free: 12.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.383, allocations: 0 / 0.5181 GB, free: 12.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004565/0.3835, allocations: 95.47 kB / 0.5182 GB, free: 12.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.y) * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001412/0.3849, allocations: 1.124 MB / 0.5193 GB, free: 11.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007295/0.3856, allocations: 283.7 kB / 0.5196 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3856, allocations: 1.5 kB / 0.5196 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006111/0.3862, allocations: 273.5 kB / 0.5199 GB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.3866, allocations: 53.98 kB / 0.5199 GB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.3906, allocations: 2.723 MB / 0.5226 GB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3909, allocations: 0.7605 MB / 0.5233 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.391, allocations: 45.11 kB / 0.5234 GB, free: 8.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.3912, allocations: 81.08 kB / 0.5234 GB, free: 8.902 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.3912, allocations: 1.562 kB / 0.5234 GB, free: 8.902 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03558/0.4267, allocations: 6.344 MB / 0.5296 GB, free: 8.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.75, allocations: 7.703 kB / 0.5296 GB, free: 8.094 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits_fmu --startTime=0 --stopTime=150 --stepSize=0.3 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.316837599035352] Failed to read output from testmodel.py, exit status != 0: 11.843185272067785 11.859790659 11.722152973 Calling exit ...