Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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.001865/0.001865, 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.002354/0.002354, allocations: 211.9 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.515/1.515, 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.1126/0.1126, allocations: 24.03 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_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_base,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_base",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.002217/0.002217, allocations: 67.91 kB / 473.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3538, allocations: 59.58 MB / 0.5209 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.001993/0.3558, allocations: 0.9495 MB / 0.5218 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.3571, allocations: 1.221 MB / 0.523 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.872e-05/0.3571, allocations: 1.812 kB / 0.523 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002626/0.3574, allocations: 35.31 kB / 0.5231 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.3575, allocations: 47.62 kB / 0.5231 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.3578, allocations: 79.39 kB / 0.5232 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003136/0.3581, allocations: 246.5 kB / 0.5234 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.659e-05/0.3582, allocations: 24.91 kB / 0.5234 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.3583, allocations: 95.22 kB / 0.5235 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.3585, allocations: 103.4 kB / 0.5236 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.3585, allocations: 11.47 kB / 0.5236 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.674e-05/0.3586, allocations: 14.19 kB / 0.5237 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.3586, allocations: 49.73 kB / 0.5237 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.907e-05/0.3587, allocations: 48.52 kB / 0.5237 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.3589, allocations: 130.1 kB / 0.5239 GB, free: 8.273 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3589, allocations: 0 / 0.5239 GB, free: 8.273 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3589, allocations: 5.125 kB / 0.5239 GB, free: 8.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.129e-06/0.3589, allocations: 0 / 0.5239 GB, free: 8.27 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001051/0.3599, allocations: 463 kB / 0.5243 GB, free: 7.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.36, allocations: 11.55 kB / 0.5243 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.36, allocations: 38.34 kB / 0.5244 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.36, allocations: 26.94 kB / 0.5244 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.3606, allocations: 218.9 kB / 0.5246 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.3606, allocations: 11.56 kB / 0.5246 GB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.3606, allocations: 9.859 kB / 0.5246 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.3608, allocations: 116.6 kB / 0.5247 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.3608, allocations: 0 / 0.5247 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3608, allocations: 9.156 kB / 0.5247 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3608, allocations: 2.188 kB / 0.5247 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.3611, allocations: 100.9 kB / 0.5248 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006359/0.3617, allocations: 399.9 kB / 0.5252 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004177/0.3621, allocations: 154 kB / 0.5254 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.3623, allocations: 63.05 kB / 0.5254 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.3623, allocations: 2.188 kB / 0.5254 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.286e-05/0.3623, allocations: 37.31 kB / 0.5255 GB, free: 7.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.3623, allocations: 0 / 0.5255 GB, free: 7.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.001027/0.3633, allocations: 325.3 kB / 0.5258 GB, free: 7.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/0.3633, allocations: 52.69 kB / 0.5258 GB, free: 7.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000466/0.3638, allocations: 250.9 kB / 0.5261 GB, free: 6.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.3638, allocations: 30.36 kB / 0.5261 GB, free: 6.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.3639, allocations: 122.5 kB / 0.5262 GB, free: 6.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.3639, allocations: 45.88 kB / 0.5263 GB, free: 6.695 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.364, allocations: 32.2 kB / 0.5263 GB, free: 6.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.16e-05/0.364, allocations: 324.5 kB / 0.5266 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.3641, allocations: 51.28 kB / 0.5266 GB, free: 6.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.3642, allocations: 47.98 kB / 0.5267 GB, free: 6.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.3653, allocations: 337.3 kB / 0.527 GB, free: 6.234 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3653, allocations: 0 / 0.527 GB, free: 6.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004663/0.3658, allocations: 238.6 kB / 0.5272 GB, free: 6.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3658, allocations: 7.766 kB / 0.5272 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3658, allocations: 0 / 0.5272 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002384/0.3661, allocations: 49.86 kB / 0.5273 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.3662, allocations: 23.23 kB / 0.5273 GB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.3673, allocations: 1.494 MB / 0.5288 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.3675, allocations: 32.58 kB / 0.5288 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.3675, allocations: 6.125 kB / 0.5288 GB, free: 4.738 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.3676, allocations: 144.1 kB / 0.5289 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/0.3677, allocations: 15.38 kB / 0.529 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.741e-05/0.3677, allocations: 25.62 kB / 0.529 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3677, allocations: 1.094 kB / 0.529 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.3677, allocations: 1.062 kB / 0.529 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3677, allocations: 1.359 kB / 0.529 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.368, allocations: 207 kB / 0.5292 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.368, allocations: 0 / 0.5292 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.3681, allocations: 14.34 kB / 0.5292 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001658/0.3682, allocations: 59.83 kB / 0.5293 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3683, allocations: 6.406 kB / 0.5293 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009821/0.3692, allocations: 1.487 MB / 0.5307 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3692, allocations: 0 / 0.5307 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/0.3698, allocations: 387.8 kB / 0.5311 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.3699, allocations: 20.92 kB / 0.5311 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.3699, allocations: 3.031 kB / 0.5311 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.3701, allocations: 34.23 kB / 0.5311 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/0.3702, allocations: 12.52 kB / 0.5312 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.3702, allocations: 6.953 kB / 0.5312 GB, free: 2.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004668/0.3707, allocations: 200 kB / 0.5313 GB, free: 2.645 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3707, allocations: 0 / 0.5313 GB, free: 2.645 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.371, allocations: 30.94 kB / 0.5314 GB, free: 2.641 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],Cfb.x_scaled[1]) * 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): 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.000749/0.3717, allocations: 0.9004 MB / 0.5323 GB, free: 1.898 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005233/0.3722, allocations: 261 kB / 0.5325 GB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3722, allocations: 0 / 0.5325 GB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.3725, allocations: 196 kB / 0.5327 GB, free: 1.602 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.3728, allocations: 27.09 kB / 0.5327 GB, free: 1.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.3762, allocations: 2.264 MB / 0.5349 GB, free: 80 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001563/0.3764, allocations: 117.7 kB / 0.535 GB, free: 16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001043/0.3765, allocations: 30.95 kB / 0.5351 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.485e-05/0.3766, allocations: 41.67 kB / 0.5351 GB, free: 15.96 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3766, allocations: 0.5312 kB / 0.5351 GB, free: 15.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0366/0.4132, allocations: 4.431 MB / 0.5394 GB, free: 14.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.07, allocations: 6.469 kB / 0.5394 GB, free: 14.91 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_base_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_base.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.782260540872812] Failed to read output from testmodel.py, exit status != 0: 12.184759436175227 12.21324824 11.848952469 Calling exit ...