Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.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.001692/0.001692, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001447/0.001447, allocations: 206 kB / 23.01 MB, free: 4.621 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.465/1.465, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1129/0.1129, allocations: 24.04 MB / 337.2 MB, free: 11.33 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.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",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.002318/0.002318, allocations: 67.91 kB / 474.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.344, allocations: 59.58 MB / 0.5217 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003176/0.3472, allocations: 1.805 MB / 0.5234 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005344/0.3477, allocations: 197.5 kB / 0.5236 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.3478, allocations: 10.31 kB / 0.5236 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.348, allocations: 30.17 kB / 0.5237 GB, free: 9.113 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.767e-05/0.3481, allocations: 19.67 kB / 0.5237 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002641/0.3484, allocations: 97.22 kB / 0.5238 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.3487, allocations: 235.5 kB / 0.524 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.3488, allocations: 37.22 kB / 0.524 GB, free: 8.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.3489, allocations: 91.06 kB / 0.5241 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.3491, allocations: 79.95 kB / 0.5242 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.3491, allocations: 19.91 kB / 0.5242 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.752e-05/0.3492, allocations: 19.38 kB / 0.5242 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.663e-05/0.3492, allocations: 51.45 kB / 0.5243 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.581e-05/0.3493, allocations: 85.19 kB / 0.5244 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.3495, allocations: 193.1 kB / 0.5245 GB, free: 8.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3495, allocations: 0 / 0.5245 GB, free: 8.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3495, allocations: 4 kB / 0.5246 GB, free: 8.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3495, allocations: 1 kB / 0.5246 GB, free: 8.656 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007571/0.3503, allocations: 447 kB / 0.525 GB, free: 8.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3503, allocations: 11.23 kB / 0.525 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.442e-05/0.3504, allocations: 52.55 kB / 0.525 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.3504, allocations: 30.3 kB / 0.5251 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.3507, allocations: 182.6 kB / 0.5252 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.371e-05/0.3507, allocations: 19.2 kB / 0.5253 GB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.3508, allocations: 28.25 kB / 0.5253 GB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004028/0.3512, allocations: 237 kB / 0.5255 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.3512, allocations: 4.641 kB / 0.5255 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.3512, allocations: 10.16 kB / 0.5255 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3512, allocations: 9.688 kB / 0.5255 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003265/0.3516, allocations: 159.9 kB / 0.5257 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.353, allocations: 0.9585 MB / 0.5266 GB, free: 7.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003108/0.3533, allocations: 147.4 kB / 0.5268 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.3535, allocations: 66.86 kB / 0.5268 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.3535, allocations: 3.891 kB / 0.5268 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.3535, allocations: 40.62 kB / 0.5269 GB, free: 6.949 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.923e-06/0.3535, allocations: 0 / 0.5269 GB, free: 6.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005584/0.3541, allocations: 241.6 kB / 0.5271 GB, free: 6.844 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.3541, allocations: 53.75 kB / 0.5272 GB, free: 6.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.3543, allocations: 221.6 kB / 0.5274 GB, free: 6.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.3543, allocations: 30.92 kB / 0.5274 GB, free: 6.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.554e-05/0.3544, allocations: 154.6 kB / 0.5275 GB, free: 6.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.441e-05/0.3544, allocations: 84.75 kB / 0.5276 GB, free: 6.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.419e-05/0.3545, allocations: 75.23 kB / 0.5277 GB, free: 6.352 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.527e-05/0.3546, allocations: 340.2 kB / 0.528 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.3548, allocations: 73.84 kB / 0.5281 GB, free: 6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.355, allocations: 167 kB / 0.5283 GB, free: 5.863 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.3563, allocations: 474.9 kB / 0.5287 GB, free: 5.629 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3563, allocations: 1.094 kB / 0.5287 GB, free: 5.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005144/0.3568, allocations: 310.2 kB / 0.529 GB, free: 5.488 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3568, allocations: 6.281 kB / 0.529 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3568, allocations: 3.281 kB / 0.529 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.3568, allocations: 4.594 kB / 0.529 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.3571, allocations: 79.97 kB / 0.5291 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.3571, allocations: 6.281 kB / 0.5291 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.3573, allocations: 43.06 kB / 0.5291 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.3573, allocations: 17 kB / 0.5292 GB, free: 5.449 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) \"Connector of Real output signal\" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001662/0.3575, allocations: 147.5 kB / 0.5293 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/0.3576, allocations: 21.16 kB / 0.5293 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004352/0.358, allocations: 230.7 kB / 0.5295 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.358, allocations: 3.469 kB / 0.5295 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.358, allocations: 0.5156 kB / 0.5295 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.358, allocations: 5.594 kB / 0.5295 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004367/0.3584, allocations: 262.8 kB / 0.5298 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3584, allocations: 0 / 0.5298 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003217/0.3588, allocations: 58.42 kB / 0.5298 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.3588, allocations: 1.219 kB / 0.5299 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.094e-05/0.3588, allocations: 6.734 kB / 0.5299 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.3588, allocations: 1.797 kB / 0.5299 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3588, allocations: 0 / 0.5299 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000553/0.3594, allocations: 384.7 kB / 0.5302 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.334e-05/0.3594, allocations: 27.52 kB / 0.5303 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.3594, allocations: 1.406 kB / 0.5303 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.3596, allocations: 11.33 kB / 0.5303 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.348e-05/0.3596, allocations: 24.14 kB / 0.5303 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.3596, allocations: 9.156 kB / 0.5303 GB, free: 4.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.876e-05/0.3597, allocations: 138.8 kB / 0.5304 GB, free: 4.605 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3597, allocations: 0 / 0.5304 GB, free: 4.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00031/0.3601, allocations: 48.61 kB / 0.5305 GB, free: 4.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.0006869/0.3607, allocations: 0.9314 MB / 0.5314 GB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004235/0.3612, allocations: 191.4 kB / 0.5316 GB, free: 3.762 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3612, allocations: 0 / 0.5316 GB, free: 3.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.3613, allocations: 91.52 kB / 0.5317 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.3617, allocations: 30.19 kB / 0.5317 GB, free: 3.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.3648, allocations: 2.642 MB / 0.5343 GB, free: 1.828 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.3649, allocations: 136.6 kB / 0.5344 GB, free: 1.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001254/0.3651, allocations: 32.3 kB / 0.5344 GB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.3652, allocations: 76.47 kB / 0.5345 GB, free: 1.688 MB / 382.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3652, allocations: 1.219 kB / 0.5345 GB, free: 1.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03582/0.401, allocations: 5.228 MB / 0.5396 GB, free: 0.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.93, allocations: 11.41 kB / 0.5396 GB, free: 0.6211 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_with_locks_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.804887677077204] Failed to read output from testmodel.py, exit status != 0: 12.039860320743173 12.069338185 11.714238818 Calling exit ...