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.001302/0.001302, 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.001909/0.001909, allocations: 210.8 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.51/1.51, 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.1116/0.1116, allocations: 24.04 MB / 337.2 MB, free: 11.34 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.002255/0.002255, allocations: 71.89 kB / 473.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3569, allocations: 59.58 MB / 0.5209 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_SPtimeTable): time 0.002617/0.3595, allocations: 1.731 MB / 0.5226 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.3606, allocations: 0.6675 MB / 0.5232 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.069e-05/0.3607, allocations: 2.688 kB / 0.5232 GB, free: 8.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003146/0.361, allocations: 79.97 kB / 0.5233 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000196/0.3612, allocations: 85.84 kB / 0.5234 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.3616, allocations: 161.1 kB / 0.5236 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004306/0.3621, allocations: 304 kB / 0.5238 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.772e-05/0.3622, allocations: 30.02 kB / 0.5239 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.3623, allocations: 128.5 kB / 0.524 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.3626, allocations: 162.8 kB / 0.5242 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.916e-05/0.3626, allocations: 13.16 kB / 0.5242 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.3628, allocations: 86.75 kB / 0.5243 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.765e-05/0.3628, allocations: 65.8 kB / 0.5243 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.298e-05/0.3629, allocations: 69.27 kB / 0.5244 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002858/0.3632, allocations: 236.5 kB / 0.5246 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3632, allocations: 1.5 kB / 0.5246 GB, free: 8.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3632, allocations: 0 / 0.5246 GB, free: 8.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.463e-06/0.3632, allocations: 0 / 0.5246 GB, free: 8.035 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.00119/0.3644, allocations: 0.5556 MB / 0.5251 GB, free: 7.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3644, allocations: 10.42 kB / 0.5252 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.651e-05/0.3645, allocations: 44.3 kB / 0.5252 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.524e-05/0.3646, allocations: 28.56 kB / 0.5252 GB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006037/0.3652, allocations: 256.6 kB / 0.5255 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.3652, allocations: 8.281 kB / 0.5255 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.365e-05/0.3652, allocations: 7.406 kB / 0.5255 GB, free: 7.383 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.3655, allocations: 189.4 kB / 0.5257 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3655, allocations: 4 kB / 0.5257 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.3655, allocations: 5.125 kB / 0.5257 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.3655, allocations: 2.375 kB / 0.5257 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002906/0.3658, allocations: 168.5 kB / 0.5258 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000793/0.3666, allocations: 449.3 kB / 0.5263 GB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.3671, allocations: 222 kB / 0.5265 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.3673, allocations: 131.1 kB / 0.5266 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.3673, allocations: 1.125 kB / 0.5266 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002912/0.3676, allocations: 214.7 kB / 0.5268 GB, free: 6.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.3676, allocations: 0 / 0.5268 GB, free: 6.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001347/0.3689, allocations: 0.5638 MB / 0.5274 GB, free: 6.312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.369, allocations: 91.48 kB / 0.5275 GB, free: 6.211 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005568/0.3695, allocations: 310.7 kB / 0.5277 GB, free: 6.062 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.3695, allocations: 27.56 kB / 0.5278 GB, free: 6.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.399e-05/0.3696, allocations: 140.8 kB / 0.5279 GB, free: 5.906 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.3697, allocations: 64.06 kB / 0.528 GB, free: 5.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.021e-05/0.3697, allocations: 36.92 kB / 0.528 GB, free: 5.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.388e-05/0.3698, allocations: 337.7 kB / 0.5283 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.37, allocations: 113.2 kB / 0.5284 GB, free: 5.453 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.3701, allocations: 122.8 kB / 0.5286 GB, free: 5.395 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.3714, allocations: 0.579 MB / 0.5291 GB, free: 5.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3714, allocations: 4 kB / 0.5291 GB, free: 5.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006823/0.3721, allocations: 433.8 kB / 0.5295 GB, free: 4.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.745e-05/0.3722, allocations: 35.77 kB / 0.5296 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.3722, allocations: 5 kB / 0.5296 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.3724, allocations: 56.09 kB / 0.5296 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3726, allocations: 22.7 kB / 0.5296 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.3736, allocations: 1.5 MB / 0.5311 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.3739, allocations: 28.95 kB / 0.5311 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.3739, allocations: 9.312 kB / 0.5311 GB, free: 3.504 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.0001999/0.3741, allocations: 202.3 kB / 0.5313 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.3742, allocations: 23.77 kB / 0.5314 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.521e-05/0.3742, allocations: 36.8 kB / 0.5314 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.3742, allocations: 2.625 kB / 0.5314 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3742, allocations: 0 / 0.5314 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3742, allocations: 2.672 kB / 0.5314 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.3745, allocations: 233.9 kB / 0.5316 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3745, allocations: 0 / 0.5316 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.3746, allocations: 24.36 kB / 0.5317 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001767/0.3748, allocations: 56.02 kB / 0.5317 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.3748, allocations: 12.08 kB / 0.5317 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.3759, allocations: 1.492 MB / 0.5332 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3759, allocations: 0 / 0.5332 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.3769, allocations: 0.5969 MB / 0.5338 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.215e-05/0.3769, allocations: 30.23 kB / 0.5338 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.377, allocations: 12.81 kB / 0.5338 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.3772, allocations: 32.11 kB / 0.5338 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.762e-05/0.3773, allocations: 10.98 kB / 0.5338 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.3773, allocations: 10.19 kB / 0.5338 GB, free: 1.359 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005152/0.3778, allocations: 239.3 kB / 0.5341 GB, free: 1.254 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3778, allocations: 4 kB / 0.5341 GB, free: 1.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003484/0.3782, allocations: 67.38 kB / 0.5341 GB, free: 1.238 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.001168/0.3794, allocations: 1.166 MB / 0.5353 GB, free: 396 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007527/0.3801, allocations: 473.3 kB / 0.5357 GB, free: 80 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3801, allocations: 0 / 0.5357 GB, free: 80 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004179/0.3805, allocations: 324.3 kB / 0.536 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.3808, allocations: 29.73 kB / 0.5361 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0053/0.3861, allocations: 3.117 MB / 0.5391 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.3864, allocations: 154.3 kB / 0.5393 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001315/0.3865, allocations: 27.66 kB / 0.5393 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.3867, allocations: 65.14 kB / 0.5394 GB, free: 13.79 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3867, allocations: 4 kB / 0.5394 GB, free: 13.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03906/0.4257, allocations: 6.068 MB / 0.5453 GB, free: 11.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.08, allocations: 7.422 kB / 0.5453 GB, free: 11.61 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.83540042070672] Failed to read output from testmodel.py, exit status != 0: 12.188765700440854 12.203916341 11.837609478 Calling exit ...