Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002238/0.002238, allocations: 110 kB / 16.46 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002654/0.002654, allocations: 216.2 kB / 19.43 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.658/1.658, allocations: 230.6 MB / 252.8 MB, free: 9.129 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.1048/0.1048, allocations: 24.1 MB / 333 MB, free: 12.64 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003456/0.003456, allocations: 71.83 kB / 468.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4508/0.4543, allocations: 59.57 MB / 0.5155 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.005323/0.4596, allocations: 3.197 MB / 0.5187 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.462, allocations: 0.9341 MB / 0.5196 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003653/0.4623, allocations: 17.75 kB / 0.5196 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.4626, allocations: 64.75 kB / 0.5197 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000308/0.4629, allocations: 104.8 kB / 0.5198 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005114/0.4634, allocations: 199.4 kB / 0.5199 GB, free: 6.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005514/0.464, allocations: 472.8 kB / 0.5204 GB, free: 6.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003315/0.4643, allocations: 158.7 kB / 0.5205 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.4645, allocations: 172.3 kB / 0.5207 GB, free: 6.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.4647, allocations: 183.6 kB / 0.5209 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.978e-05/0.4648, allocations: 39.47 kB / 0.5209 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.519e-05/0.4648, allocations: 37.97 kB / 0.521 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.852e-05/0.4649, allocations: 89.5 kB / 0.521 GB, free: 6.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.4651, allocations: 206.8 kB / 0.5212 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006453/0.4657, allocations: 463.9 kB / 0.5217 GB, free: 5.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4657, allocations: 7.938 kB / 0.5217 GB, free: 5.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4657, allocations: 0 / 0.5217 GB, free: 5.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.4657, allocations: 0 / 0.5217 GB, free: 5.961 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001028/0.4668, allocations: 0.7063 MB / 0.5224 GB, free: 5.395 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.4668, allocations: 9.719 kB / 0.5224 GB, free: 5.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.918e-05/0.4669, allocations: 54.47 kB / 0.5224 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/0.4674, allocations: 326.2 kB / 0.5228 GB, free: 5.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.4674, allocations: 27.66 kB / 0.5228 GB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.633e-05/0.4675, allocations: 39.66 kB / 0.5228 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006114/0.4681, allocations: 379 kB / 0.5232 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.4681, allocations: 0.7812 kB / 0.5232 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.4682, allocations: 15.06 kB / 0.5232 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.4682, allocations: 9.438 kB / 0.5232 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004897/0.4687, allocations: 254.3 kB / 0.5234 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.4704, allocations: 1.304 MB / 0.5247 GB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006448/0.471, allocations: 282.9 kB / 0.525 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.4712, allocations: 114.1 kB / 0.5251 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.4712, allocations: 2.672 kB / 0.5251 GB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.4713, allocations: 41.77 kB / 0.5251 GB, free: 3.648 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.4713, allocations: 0 / 0.5251 GB, free: 3.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006975/0.472, allocations: 322.4 kB / 0.5254 GB, free: 3.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.472, allocations: 106.4 kB / 0.5256 GB, free: 3.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/0.4723, allocations: 270.8 kB / 0.5258 GB, free: 3.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.4723, allocations: 26.83 kB / 0.5258 GB, free: 3.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.4724, allocations: 221.9 kB / 0.526 GB, free: 3.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.719e-05/0.4725, allocations: 98.88 kB / 0.5261 GB, free: 2.938 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.42e-05/0.4726, allocations: 60.64 kB / 0.5262 GB, free: 2.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.88e-05/0.4727, allocations: 339.3 kB / 0.5265 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.4728, allocations: 99.27 kB / 0.5266 GB, free: 2.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.4731, allocations: 155 kB / 0.5268 GB, free: 2.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003842/0.4734, allocations: 244.5 kB / 0.527 GB, free: 2.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.4734, allocations: 5.344 kB / 0.527 GB, free: 2.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005325/0.474, allocations: 301.6 kB / 0.5273 GB, free: 2.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.474, allocations: 5.5 kB / 0.5273 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.474, allocations: 1.656 kB / 0.5273 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.474, allocations: 3.281 kB / 0.5273 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.4743, allocations: 71.75 kB / 0.5274 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.4743, allocations: 2.266 kB / 0.5274 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.4745, allocations: 33.2 kB / 0.5274 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.4745, allocations: 16.3 kB / 0.5274 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002127/0.4747, allocations: 182.4 kB / 0.5276 GB, free: 1.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000175/0.4749, allocations: 144.7 kB / 0.5277 GB, free: 1.859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003111/0.4752, allocations: 221.2 kB / 0.5279 GB, free: 1.715 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.404e-06/0.4752, allocations: 1.031 kB / 0.5279 GB, free: 1.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization_lambda0): time 0.0004267/0.4757, allocations: 281.7 kB / 0.5282 GB, free: 1.578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.4757, allocations: 9.797 kB / 0.5282 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.846e-06/0.4757, allocations: 6.562 kB / 0.5282 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.261e-06/0.4757, allocations: 3.531 kB / 0.5282 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.4759, allocations: 61.48 kB / 0.5283 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.4759, allocations: 3.875 kB / 0.5283 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.4761, allocations: 30.16 kB / 0.5283 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.4761, allocations: 11.78 kB / 0.5283 GB, free: 1.543 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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 0.0001008/0.4762, allocations: 203.1 kB / 0.5285 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.773e-05/0.4763, allocations: 30.59 kB / 0.5286 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005384/0.4768, allocations: 279.5 kB / 0.5288 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4768, allocations: 3.266 kB / 0.5288 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4768, allocations: 3.938 kB / 0.5288 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4768, allocations: 2.969 kB / 0.5288 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004469/0.4773, allocations: 400.2 kB / 0.5292 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4773, allocations: 0.6094 kB / 0.5292 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.4776, allocations: 55.11 kB / 0.5293 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.4776, allocations: 1.281 kB / 0.5293 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.4776, allocations: 9.469 kB / 0.5293 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.4776, allocations: 2.359 kB / 0.5293 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.4776, allocations: 0 / 0.5293 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007162/0.4783, allocations: 470.3 kB / 0.5297 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.4784, allocations: 130.4 kB / 0.5299 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.939e-05/0.4784, allocations: 7.016 kB / 0.5299 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.4786, allocations: 18.62 kB / 0.5299 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.757e-05/0.4787, allocations: 13.86 kB / 0.5299 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.4787, allocations: 9.812 kB / 0.5299 GB, free: 484 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001769/0.4789, allocations: 191.3 kB / 0.5301 GB, free: 372 kB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4789, allocations: 0 / 0.5301 GB, free: 372 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005793/0.4795, allocations: 144.2 kB / 0.5302 GB, free: 332 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,Ccont.T) * 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 (28): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.000113/0.4796, allocations: 108.7 kB / 0.5303 GB, free: 232 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007002/0.4803, allocations: 321.9 kB / 0.5306 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4803, allocations: 1.406 kB / 0.5306 GB, free: 128 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.4805, allocations: 107.8 kB / 0.5307 GB, free: 92 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.481, allocations: 75.97 kB / 0.5308 GB, free: 56 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.4825, allocations: 0.7582 MB / 0.5315 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.4831, allocations: 0.7939 MB / 0.5323 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.4832, allocations: 46.58 kB / 0.5324 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.445e-05/0.4833, allocations: 27.75 kB / 0.5324 GB, free: 14.85 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4833, allocations: 0 / 0.5324 GB, free: 14.85 MB / 398.1 MB Notification: Performance of Templates: time 0.008778/0.4921, allocations: 3.194 MB / 0.5355 GB, free: 14.6 MB / 398.1 MB " [Timeout remaining time 659] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.407046286854893] Failed to read output from testmodel.py, exit status != 0: 0.5033173961564898 0.515215651 0.046300724 Calling exit ...