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.001426/0.001426, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.0016/0.0016, allocations: 219 kB / 22.26 MB, free: 5.125 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.528/1.528, allocations: 230.6 MB / 256 MB, free: 7.977 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.1085/0.1085, allocations: 24.12 MB / 336.6 MB, free: 11.42 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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable",fmuType="me",version="2.0",platforms={"static"}) [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.0021/0.0021, allocations: 75.88 kB / 473.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3354, allocations: 59.59 MB / 0.5204 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.003153/0.3386, allocations: 1.787 MB / 0.5222 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.3404, allocations: 0.7235 MB / 0.5229 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.3405, allocations: 1.062 kB / 0.5229 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000501/0.341, allocations: 77.36 kB / 0.5229 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002851/0.3413, allocations: 88.75 kB / 0.523 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.3421, allocations: 169.2 kB / 0.5232 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006382/0.3427, allocations: 308.2 kB / 0.5235 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3428, allocations: 26.22 kB / 0.5235 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002602/0.3431, allocations: 128.8 kB / 0.5236 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003592/0.3435, allocations: 171.7 kB / 0.5238 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.148e-05/0.3435, allocations: 14.44 kB / 0.5238 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001863/0.3437, allocations: 83.8 kB / 0.5239 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.3438, allocations: 72.36 kB / 0.5239 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.3439, allocations: 88.09 kB / 0.524 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004149/0.3443, allocations: 234.8 kB / 0.5243 GB, free: 7.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3443, allocations: 0 / 0.5243 GB, free: 7.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3443, allocations: 0 / 0.5243 GB, free: 7.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.3443, allocations: 1.094 kB / 0.5243 GB, free: 7.863 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.001353/0.3457, allocations: 0.5495 MB / 0.5248 GB, free: 7.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3457, allocations: 11.19 kB / 0.5248 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.877e-05/0.3458, allocations: 48.7 kB / 0.5249 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.896e-05/0.3458, allocations: 28.75 kB / 0.5249 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.3464, allocations: 256 kB / 0.5251 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3464, allocations: 8.625 kB / 0.5251 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.3465, allocations: 11.19 kB / 0.5251 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.3467, allocations: 164.9 kB / 0.5253 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3467, allocations: 0 / 0.5253 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.3468, allocations: 2.031 kB / 0.5253 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3468, allocations: 2.562 kB / 0.5253 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002626/0.347, allocations: 137.2 kB / 0.5254 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000861/0.3479, allocations: 476.4 kB / 0.5259 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004765/0.3484, allocations: 181.1 kB / 0.5261 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.3486, allocations: 98.75 kB / 0.5262 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.3486, allocations: 1.094 kB / 0.5262 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000295/0.3489, allocations: 187.2 kB / 0.5263 GB, free: 6.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.383e-06/0.3489, allocations: 4 kB / 0.5263 GB, free: 6.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001316/0.3502, allocations: 0.5053 MB / 0.5268 GB, free: 6.367 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.3502, allocations: 83.27 kB / 0.5269 GB, free: 6.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000538/0.3508, allocations: 310.8 kB / 0.5272 GB, free: 6.125 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.3508, allocations: 32.33 kB / 0.5272 GB, free: 6.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.488e-05/0.3508, allocations: 132.5 kB / 0.5274 GB, free: 5.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/0.3509, allocations: 63.95 kB / 0.5274 GB, free: 5.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.425e-05/0.351, allocations: 39.98 kB / 0.5275 GB, free: 5.895 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.294e-05/0.351, allocations: 336.9 kB / 0.5278 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.3512, allocations: 80.98 kB / 0.5279 GB, free: 5.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.3513, allocations: 90.88 kB / 0.5279 GB, free: 5.527 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.3526, allocations: 0.5709 MB / 0.5285 GB, free: 5.281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3526, allocations: 4 kB / 0.5285 GB, free: 5.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006762/0.3533, allocations: 394.8 kB / 0.5289 GB, free: 5.109 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.515e-05/0.3533, allocations: 36.23 kB / 0.5289 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3533, allocations: 4.562 kB / 0.5289 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/0.3536, allocations: 55.55 kB / 0.529 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3537, allocations: 24.59 kB / 0.529 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001233/0.3549, allocations: 1.509 MB / 0.5305 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.3552, allocations: 33.36 kB / 0.5305 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.3552, allocations: 9.406 kB / 0.5305 GB, free: 3.664 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.000268/0.3555, allocations: 192.6 kB / 0.5307 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.953e-05/0.3555, allocations: 23.61 kB / 0.5307 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.797e-05/0.3556, allocations: 41.61 kB / 0.5308 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3556, allocations: 1.281 kB / 0.5308 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.3556, allocations: 2.297 kB / 0.5308 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3556, allocations: 0 / 0.5308 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.3559, allocations: 264.5 kB / 0.531 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3559, allocations: 0 / 0.531 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.3561, allocations: 15.27 kB / 0.531 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001867/0.3563, allocations: 59.48 kB / 0.5311 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.3563, allocations: 13.67 kB / 0.5311 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/0.3574, allocations: 1.497 MB / 0.5326 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3574, allocations: 3.938 kB / 0.5326 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.3585, allocations: 0.5274 MB / 0.5331 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.3586, allocations: 26.48 kB / 0.5331 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.3586, allocations: 12.3 kB / 0.5331 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.3589, allocations: 36.14 kB / 0.5332 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.828e-05/0.359, allocations: 15.3 kB / 0.5332 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.359, allocations: 9.906 kB / 0.5332 GB, free: 1.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005191/0.3595, allocations: 242.4 kB / 0.5334 GB, free: 1.473 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3595, allocations: 0 / 0.5334 GB, free: 1.473 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.3599, allocations: 72.59 kB / 0.5335 GB, free: 1.457 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.001203/0.3611, allocations: 1.1 MB / 0.5346 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000667/0.3617, allocations: 405.9 kB / 0.5349 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3618, allocations: 0 / 0.5349 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003341/0.3621, allocations: 289.9 kB / 0.5352 GB, free: 232 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.3624, allocations: 36.98 kB / 0.5353 GB, free: 216 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004877/0.3673, allocations: 2.947 MB / 0.5381 GB, free: 14.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.3677, allocations: 0.7557 MB / 0.5389 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.3678, allocations: 32.58 kB / 0.5389 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.3679, allocations: 65.56 kB / 0.539 GB, free: 13.73 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3679, allocations: 0 / 0.539 GB, free: 13.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03872/0.4066, allocations: 5.59 MB / 0.5444 GB, free: 12.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.15, allocations: 4.531 kB / 0.5444 GB, free: 12.02 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable_fmu --startTime=0 --stopTime=15 --stepSize=0.03 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_SPtimeTable.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.969192232005298] Failed to read output from testmodel.py, exit status != 0: 12.288556791143492 12.312871049 11.964031762 Calling exit ...