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.00129/0.00129, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001726/0.001726, allocations: 191.5 kB / 22.23 MB, free: 5.098 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.505/1.505, allocations: 225.6 MB / 251 MB, free: 13.2 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.1018/0.1018, allocations: 22.71 MB / 329 MB, free: 2.414 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: translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits")
translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 75.86 kB / 463.9 MB, free: 13.87 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1357, allocations: 58.05 MB / 0.5097 GB, free: 3.711 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.004513/0.1402, allocations: 2.088 MB / 0.5117 GB, free: 1.602 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001849/0.142, allocations: 0.713 MB / 0.5124 GB, free: 0.8828 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.1422, allocations: 7.938 kB / 0.5124 GB, free: 0.875 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003313/0.1425, allocations: 27.67 kB / 0.5125 GB, free: 0.8477 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001952/0.1427, allocations: 63.52 kB / 0.5125 GB, free: 0.7852 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004655/0.1432, allocations: 182.4 kB / 0.5127 GB, free: 0.6094 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004717/0.1437, allocations: 351.2 kB / 0.513 GB, free: 272 kB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.1439, allocations: 88.56 kB / 0.5131 GB, free: 184 kB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.144, allocations: 131.5 kB / 0.5133 GB, free: 52 kB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.3204/0.4645, allocations: 135.2 kB / 0.5134 GB, free: 13.09 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001346/0.4646, allocations: 27 kB / 0.5134 GB, free: 13.09 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.934e-05/0.4647, allocations: 27.94 kB / 0.5134 GB, free: 13.09 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.4648, allocations: 81.83 kB / 0.5135 GB, free: 13.09 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.465, allocations: 122.4 kB / 0.5136 GB, free: 13.08 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004399/0.4654, allocations: 298.8 kB / 0.5139 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4654, allocations: 0 / 0.5139 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.543e-06/0.4654, allocations: 0 / 0.5139 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.175e-05/0.4654, allocations: 1.344 kB / 0.5139 GB, free: 13.04 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.001227/0.4667, allocations: 0.5452 MB / 0.5144 GB, free: 12.68 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.4667, allocations: 9.812 kB / 0.5145 GB, free: 12.68 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.03e-05/0.4668, allocations: 34.84 kB / 0.5145 GB, free: 12.67 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.4672, allocations: 261.4 kB / 0.5147 GB, free: 12.51 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.4673, allocations: 12.81 kB / 0.5147 GB, free: 12.51 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.341e-05/0.4673, allocations: 23.03 kB / 0.5148 GB, free: 12.51 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.4677, allocations: 246.3 kB / 0.515 GB, free: 12.45 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.4677, allocations: 5.719 kB / 0.515 GB, free: 12.45 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.199e-05/0.4678, allocations: 8.875 kB / 0.515 GB, free: 12.45 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.4678, allocations: 9.75 kB / 0.515 GB, free: 12.45 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004118/0.4682, allocations: 184.5 kB / 0.5152 GB, free: 12.45 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.4693, allocations: 0.6706 MB / 0.5159 GB, free: 12.19 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0007406/0.47, allocations: 247.7 kB / 0.5161 GB, free: 12.16 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002059/0.4702, allocations: 100.6 kB / 0.5162 GB, free: 12.16 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.4702, allocations: 1.281 kB / 0.5162 GB, free: 12.16 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.4702, allocations: 36.38 kB / 0.5162 GB, free: 12.12 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=17): time 1.733e-06/0.4702, allocations: 3.266 kB / 0.5162 GB, free: 12.12 MB / 382.1 MB
Notification: Performance of matching and sorting (n=17): time 0.002525/0.4728, allocations: 0.7379 MB / 0.517 GB, free: 12.04 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.4728, allocations: 109.3 kB / 0.5171 GB, free: 11.91 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003767/0.4732, allocations: 261.8 kB / 0.5173 GB, free: 11.81 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.4732, allocations: 28.95 kB / 0.5173 GB, free: 11.78 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.4733, allocations: 169.8 kB / 0.5175 GB, free: 11.67 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.439e-05/0.4733, allocations: 64.75 kB / 0.5176 GB, free: 11.62 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/0.4734, allocations: 43.36 kB / 0.5176 GB, free: 11.61 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 6.614e-05/0.4735, allocations: 338.5 kB / 0.5179 GB, free: 11.29 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.4737, allocations: 90.88 kB / 0.518 GB, free: 11.29 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.4739, allocations: 135.9 kB / 0.5181 GB, free: 11.24 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000395/0.4743, allocations: 202.1 kB / 0.5183 GB, free: 11.22 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4743, allocations: 1.188 kB / 0.5183 GB, free: 11.22 MB / 382.1 MB
Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004858/0.4748, allocations: 272 kB / 0.5186 GB, free: 11.17 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.4748, allocations: 5.25 kB / 0.5186 GB, free: 11.17 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.4748, allocations: 2.734 kB / 0.5186 GB, free: 11.17 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.4748, allocations: 1.406 kB / 0.5186 GB, free: 11.17 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/0.4751, allocations: 57.73 kB / 0.5187 GB, free: 11.17 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.4751, allocations: 5.406 kB / 0.5187 GB, free: 11.16 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.4753, allocations: 42.73 kB / 0.5187 GB, free: 11.15 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.4754, allocations: 5.562 kB / 0.5187 GB, free: 11.15 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001792/0.4755, allocations: 169.7 kB / 0.5189 GB, free: 11.07 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001386/0.4757, allocations: 105 kB / 0.519 GB, free: 11.03 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002235/0.4759, allocations: 164.2 kB / 0.5191 GB, free: 11 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.71e-07/0.4759, allocations: 0 / 0.5191 GB, free: 11 MB / 382.1 MB
Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0003208/0.4762, allocations: 223.7 kB / 0.5193 GB, free: 10.96 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 8.025e-06/0.4762, allocations: 4.75 kB / 0.5193 GB, free: 10.96 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-06/0.4762, allocations: 5.141 kB / 0.5193 GB, free: 10.96 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 6.272e-06/0.4762, allocations: 8.703 kB / 0.5194 GB, free: 10.95 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002577/0.4765, allocations: 45.11 kB / 0.5194 GB, free: 10.95 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.227e-06/0.4765, allocations: 2.75 kB / 0.5194 GB, free: 10.95 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.4767, allocations: 34.16 kB / 0.5194 GB, free: 10.95 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.4767, allocations: 11.81 kB / 0.5194 GB, free: 10.95 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.691e-05/0.4768, allocations: 183.7 kB / 0.5196 GB, free: 10.77 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.097e-05/0.4768, allocations: 22.39 kB / 0.5196 GB, free: 10.75 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.4779, allocations: 415.4 kB / 0.52 GB, free: 10.69 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.4779, allocations: 5.406 kB / 0.52 GB, free: 10.69 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4779, allocations: 2.156 kB / 0.52 GB, free: 10.69 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4779, allocations: 1.609 kB / 0.52 GB, free: 10.69 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.4783, allocations: 307.7 kB / 0.5203 GB, free: 10.53 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4783, allocations: 0 / 0.5203 GB, free: 10.53 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.4784, allocations: 14.52 kB / 0.5204 GB, free: 10.53 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0005123/0.4789, allocations: 141 kB / 0.5205 GB, free: 10.52 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.4789, allocations: 9.703 kB / 0.5205 GB, free: 10.51 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003031/0.4819, allocations: 2.334 MB / 0.5228 GB, free: 9.004 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4819, allocations: 1.281 kB / 0.5228 GB, free: 9.004 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.4831, allocations: 0.5799 MB / 0.5233 GB, free: 8.734 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.333e-05/0.4832, allocations: 33.34 kB / 0.5234 GB, free: 8.711 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.4832, allocations: 6.266 kB / 0.5234 GB, free: 8.707 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.4835, allocations: 29.55 kB / 0.5234 GB, free: 8.703 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.491e-05/0.4836, allocations: 19.14 kB / 0.5234 GB, free: 8.699 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.4836, allocations: 3.969 kB / 0.5234 GB, free: 8.699 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0003536/0.4839, allocations: 198 kB / 0.5236 GB, free: 8.59 MB / 382.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4839, allocations: 4 kB / 0.5236 GB, free: 8.586 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0004824/0.4844, allocations: 88 kB / 0.5237 GB, free: 8.562 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 9.47e-05/0.4845, allocations: 103.9 kB / 0.5238 GB, free: 8.473 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006595/0.4852, allocations: 284 kB / 0.5241 GB, free: 8.398 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4852, allocations: 4.062 kB / 0.5241 GB, free: 8.395 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005582/0.4857, allocations: 270.9 kB / 0.5243 GB, free: 8.238 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.4862, allocations: 59 kB / 0.5244 GB, free: 8.219 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.4872, allocations: 0.5413 MB / 0.5249 GB, free: 7.902 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.4874, allocations: 0.7603 MB / 0.5257 GB, free: 7.203 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0001479/0.4876, allocations: 42.62 kB / 0.5257 GB, free: 7.203 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.095e-05/0.4877, allocations: 18.48 kB / 0.5257 GB, free: 7.195 MB / 382.1 MB
Notification: Performance of SimCode: time 3.31e-07/0.4877, allocations: 5.062 kB / 0.5257 GB, free: 7.191 MB / 382.1 MB
Notification: Performance of Templates: time 0.009081/0.4967, allocations: 3.822 MB / 0.5295 GB, free: 6.969 MB / 382.1 MB
"
[Timeout remaining time 659]
make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile [Timeout 660]
(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 & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.459819457493722]
Failed to read output from testmodel.py, exit status != 0:
0.5057623311877251 0.5212178780000001 0.052774134
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fd6f3f317b0>