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.00137/0.00137, allocations: 109.9 kB / 16.45 MB, free: 6.508 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.001459/0.001459, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.486/1.486, allocations: 230.6 MB / 252.8 MB, free: 9.113 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.1083/0.1083, allocations: 24.11 MB / 333 MB, free: 12.64 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld 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.002179/0.002179, allocations: 67.91 kB / 468.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3408, allocations: 59.57 MB / 0.5157 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002784/0.3436, allocations: 1.887 MB / 0.5176 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003916/0.344, allocations: 194.7 kB / 0.5178 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.332e-05/0.344, allocations: 5.375 kB / 0.5178 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3442, allocations: 40.95 kB / 0.5178 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.212e-05/0.3442, allocations: 15.75 kB / 0.5178 GB, free: 8.578 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002183/0.3445, allocations: 90.34 kB / 0.5179 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002767/0.3447, allocations: 241.6 kB / 0.5181 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.3449, allocations: 48.38 kB / 0.5182 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.834e-05/0.345, allocations: 82.77 kB / 0.5183 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.3451, allocations: 98.58 kB / 0.5184 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.073e-05/0.3452, allocations: 18.38 kB / 0.5184 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.525e-05/0.3452, allocations: 19.97 kB / 0.5184 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.238e-05/0.3452, allocations: 48.52 kB / 0.5184 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.146e-05/0.3453, allocations: 92.42 kB / 0.5185 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.3456, allocations: 199.4 kB / 0.5187 GB, free: 8.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3456, allocations: 0 / 0.5187 GB, free: 8.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3456, allocations: 0 / 0.5187 GB, free: 8.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.3456, allocations: 5.5 kB / 0.5187 GB, free: 8.113 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.000777/0.3464, allocations: 0.5071 MB / 0.5192 GB, free: 7.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3464, allocations: 9.469 kB / 0.5192 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.166e-05/0.3465, allocations: 54.95 kB / 0.5193 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.385e-05/0.3465, allocations: 33.23 kB / 0.5193 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.3468, allocations: 246.8 kB / 0.5196 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.668e-05/0.3468, allocations: 22.56 kB / 0.5196 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.3469, allocations: 29.36 kB / 0.5196 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/0.3473, allocations: 234.9 kB / 0.5198 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.3473, allocations: 3.938 kB / 0.5198 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.3473, allocations: 11.06 kB / 0.5198 GB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.3473, allocations: 8.719 kB / 0.5199 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.3477, allocations: 157.9 kB / 0.52 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.3493, allocations: 1.03 MB / 0.521 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.3496, allocations: 147.2 kB / 0.5211 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.3497, allocations: 67.77 kB / 0.5212 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.3498, allocations: 3.203 kB / 0.5212 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.3498, allocations: 36.75 kB / 0.5213 GB, free: 6.203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.3498, allocations: 0 / 0.5213 GB, free: 6.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005826/0.3504, allocations: 244.2 kB / 0.5215 GB, free: 6.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.3504, allocations: 53.56 kB / 0.5215 GB, free: 6.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.3506, allocations: 219.4 kB / 0.5217 GB, free: 5.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.3506, allocations: 30.83 kB / 0.5218 GB, free: 5.848 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.843e-05/0.3507, allocations: 162.3 kB / 0.5219 GB, free: 5.699 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.244e-05/0.3507, allocations: 81.42 kB / 0.522 GB, free: 5.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.458e-05/0.3508, allocations: 66.84 kB / 0.5221 GB, free: 5.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.015e-05/0.3509, allocations: 332.2 kB / 0.5224 GB, free: 5.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.3511, allocations: 77.47 kB / 0.5225 GB, free: 5.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.3513, allocations: 174.4 kB / 0.5226 GB, free: 5.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/0.3527, allocations: 467.8 kB / 0.5231 GB, free: 4.875 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3527, allocations: 1.156 kB / 0.5231 GB, free: 4.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000506/0.3532, allocations: 314.4 kB / 0.5234 GB, free: 4.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3532, allocations: 5.438 kB / 0.5234 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3532, allocations: 3.531 kB / 0.5234 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.3532, allocations: 9.188 kB / 0.5234 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003131/0.3535, allocations: 79.86 kB / 0.5235 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.3535, allocations: 8.594 kB / 0.5235 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.3537, allocations: 39.09 kB / 0.5235 GB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.3537, allocations: 15.28 kB / 0.5235 GB, free: 4.691 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.0001735/0.3539, allocations: 157.5 kB / 0.5237 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/0.3539, allocations: 25.3 kB / 0.5237 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004494/0.3544, allocations: 225 kB / 0.5239 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3544, allocations: 2.344 kB / 0.5239 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.3544, allocations: 3.938 kB / 0.5239 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3544, allocations: 4 kB / 0.5239 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000453/0.3549, allocations: 311.6 kB / 0.5242 GB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3549, allocations: 5.031 kB / 0.5242 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.3552, allocations: 55.47 kB / 0.5243 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.3552, allocations: 5.281 kB / 0.5243 GB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.3552, allocations: 10.19 kB / 0.5243 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3552, allocations: 0.9375 kB / 0.5243 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3552, allocations: 0 / 0.5243 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005586/0.3558, allocations: 386.5 kB / 0.5247 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.513e-05/0.3558, allocations: 99.38 kB / 0.5248 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.111e-05/0.3558, allocations: 6.938 kB / 0.5248 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.356, allocations: 11.69 kB / 0.5248 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.764e-05/0.3561, allocations: 22.69 kB / 0.5248 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.3561, allocations: 5.016 kB / 0.5248 GB, free: 3.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.654e-05/0.3562, allocations: 147.9 kB / 0.5249 GB, free: 3.703 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3562, allocations: 4 kB / 0.5249 GB, free: 3.699 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.3565, allocations: 40.81 kB / 0.525 GB, free: 3.691 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.0006804/0.3572, allocations: 0.9208 MB / 0.5259 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.3576, allocations: 203.6 kB / 0.5261 GB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3576, allocations: 0.7188 kB / 0.5261 GB, free: 2.863 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.3577, allocations: 86.14 kB / 0.5262 GB, free: 2.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.3581, allocations: 26.91 kB / 0.5262 GB, free: 2.828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.361, allocations: 2.653 MB / 0.5288 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.3612, allocations: 0.7447 MB / 0.5295 GB, free: 224 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.3613, allocations: 32.3 kB / 0.5295 GB, free: 216 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.3614, allocations: 76.98 kB / 0.5296 GB, free: 160 kB / 382.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3614, allocations: 0 / 0.5296 GB, free: 160 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0333/0.3947, allocations: 4.677 MB / 0.5342 GB, free: 15.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.268/8.663, allocations: 5.062 kB / 0.5342 GB, free: 15.59 MB / 398.1 MB " [Timeout remaining time 651] (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: 11.422553392127156] Failed to read output from testmodel.py, exit status != 0: 8.733672756003216 8.759052875 8.408419363 Calling exit ...