Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.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.002115/0.002115, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.002528/0.002528, allocations: 212.6 kB / 23.01 MB, free: 4.992 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.663/1.663, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1348/0.1348, allocations: 24.03 MB / 337.2 MB, free: 11.35 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_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable") [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.002464/0.002464, allocations: 63.91 kB / 474.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4411/0.4436, allocations: 59.58 MB / 0.5214 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003944/0.4475, allocations: 1.731 MB / 0.5231 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.4491, allocations: 0.6646 MB / 0.5237 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.4492, allocations: 2.156 kB / 0.5237 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004116/0.4496, allocations: 81.42 kB / 0.5238 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.4498, allocations: 88.34 kB / 0.5239 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.4503, allocations: 161 kB / 0.524 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005167/0.4508, allocations: 303.2 kB / 0.5243 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.451, allocations: 28.28 kB / 0.5244 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.4513, allocations: 124.5 kB / 0.5245 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.4517, allocations: 178.8 kB / 0.5246 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.77e-05/0.4517, allocations: 13.59 kB / 0.5247 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.4519, allocations: 79.83 kB / 0.5247 GB, free: 8.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.4521, allocations: 62.53 kB / 0.5248 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.4522, allocations: 64.39 kB / 0.5249 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004657/0.4526, allocations: 247.6 kB / 0.5251 GB, free: 8.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4527, allocations: 0 / 0.5251 GB, free: 8.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4527, allocations: 5.094 kB / 0.5251 GB, free: 8.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.4527, allocations: 0 / 0.5251 GB, free: 8.289 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.00149/0.4542, allocations: 0.5463 MB / 0.5256 GB, free: 7.887 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.4542, allocations: 10.89 kB / 0.5256 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.824e-05/0.4543, allocations: 32.47 kB / 0.5257 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006306/0.4549, allocations: 255.9 kB / 0.5259 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.4549, allocations: 7.812 kB / 0.5259 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.455, allocations: 12.39 kB / 0.5259 GB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003411/0.4553, allocations: 193.9 kB / 0.5261 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.4553, allocations: 0 / 0.5261 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.4553, allocations: 9.594 kB / 0.5261 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.4553, allocations: 6.359 kB / 0.5261 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003095/0.4557, allocations: 164.8 kB / 0.5263 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008051/0.4565, allocations: 418 kB / 0.5267 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000476/0.4569, allocations: 215.1 kB / 0.5269 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.4571, allocations: 131.3 kB / 0.527 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.4571, allocations: 5 kB / 0.527 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.4574, allocations: 209.4 kB / 0.5272 GB, free: 6.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.423e-06/0.4574, allocations: 0 / 0.5272 GB, free: 6.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001282/0.4587, allocations: 0.5722 MB / 0.5278 GB, free: 6.648 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.4587, allocations: 80.86 kB / 0.5279 GB, free: 6.555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005467/0.4593, allocations: 313.2 kB / 0.5282 GB, free: 6.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.4593, allocations: 28.02 kB / 0.5282 GB, free: 6.375 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.877e-05/0.4594, allocations: 136.2 kB / 0.5283 GB, free: 6.254 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.4594, allocations: 72.83 kB / 0.5284 GB, free: 6.195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.573e-05/0.4595, allocations: 39.02 kB / 0.5284 GB, free: 6.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/0.4596, allocations: 334.9 kB / 0.5287 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.4597, allocations: 113 kB / 0.5288 GB, free: 5.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.4599, allocations: 121.2 kB / 0.529 GB, free: 5.734 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.4612, allocations: 0.5765 MB / 0.5295 GB, free: 5.484 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4612, allocations: 0 / 0.5295 GB, free: 5.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000683/0.4619, allocations: 438.5 kB / 0.5299 GB, free: 5.277 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.4619, allocations: 35.56 kB / 0.53 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.4619, allocations: 4 kB / 0.53 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002282/0.4622, allocations: 64.25 kB / 0.53 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.4623, allocations: 24.05 kB / 0.5301 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.4634, allocations: 1.475 MB / 0.5315 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.4637, allocations: 37.48 kB / 0.5315 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.4637, allocations: 8.5 kB / 0.5316 GB, free: 3.863 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (SP.nextEventScaled,SP.nextEvent,$PRE.SP.nextEvent,SP.last,SP.b,SP.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001998/0.4639, allocations: 189.8 kB / 0.5317 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.193e-05/0.464, allocations: 28.55 kB / 0.5318 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.966e-05/0.464, allocations: 32.64 kB / 0.5318 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.464, allocations: 2.734 kB / 0.5318 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.464, allocations: 5.094 kB / 0.5318 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.464, allocations: 1.172 kB / 0.5318 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.4643, allocations: 208.1 kB / 0.532 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4643, allocations: 0.6562 kB / 0.532 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.4644, allocations: 22.34 kB / 0.532 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.4646, allocations: 52.22 kB / 0.5321 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.4646, allocations: 13.67 kB / 0.5321 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.4657, allocations: 1.47 MB / 0.5335 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4657, allocations: 0.5156 kB / 0.5335 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009758/0.4667, allocations: 0.5921 MB / 0.5341 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.11e-05/0.4667, allocations: 27.08 kB / 0.5341 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.4667, allocations: 9.078 kB / 0.5341 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.467, allocations: 35.89 kB / 0.5342 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.4671, allocations: 10.67 kB / 0.5342 GB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.4671, allocations: 10.02 kB / 0.5342 GB, free: 1.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004689/0.4676, allocations: 239.7 kB / 0.5344 GB, free: 1.695 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4676, allocations: 0 / 0.5344 GB, free: 1.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003525/0.4679, allocations: 71.89 kB / 0.5345 GB, free: 1.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],C.x_scaled[1]) * Number of discrete variables: 6 ($whenCondition1,SP.a,SP.b,SP.last,SP.nextEvent,SP.nextEventScaled) * Number of discrete states: 6 (SP.nextEvent,SP.last,SP.nextEventScaled,SP.b,SP.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001869/0.4681, allocations: 127.6 kB / 0.5346 GB, free: 1.582 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.4688, allocations: 479.5 kB / 0.5351 GB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.4688, allocations: 0 / 0.5351 GB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003323/0.4691, allocations: 317.2 kB / 0.5354 GB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.4694, allocations: 47.59 kB / 0.5354 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008025/0.4702, allocations: 0.5199 MB / 0.5359 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001468/0.4703, allocations: 145.8 kB / 0.5361 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.867e-05/0.4704, allocations: 31.92 kB / 0.5361 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.4704, allocations: 15.19 kB / 0.5361 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4704, allocations: 0 / 0.5361 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of Templates: time 0.008235/0.4787, allocations: 3.18 MB / 0.5392 GB, free: 248 kB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.406825061887503] Failed to read output from testmodel.py, exit status != 0: 0.48919240944087505 0.504036001 0.047938766 Calling exit ...