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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 186.1 kB / 22.22 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 225.6 MB / 251 MB, free: 13.03 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.1428/0.1428, allocations: 22.7 MB / 329 MB, free: 2.363 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks")
translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 67.83 kB / 463.1 MB, free: 14.61 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1289, allocations: 58.06 MB / 0.5089 GB, free: 4.445 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003409/0.1323, allocations: 1.888 MB / 0.5108 GB, free: 2.539 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0004944/0.1328, allocations: 195.4 kB / 0.511 GB, free: 2.348 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.133, allocations: 3.938 kB / 0.511 GB, free: 2.344 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.1331, allocations: 39.53 kB / 0.511 GB, free: 2.305 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 7.213e-05/0.1332, allocations: 19.81 kB / 0.511 GB, free: 2.285 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.0002876/0.1335, allocations: 95.8 kB / 0.5111 GB, free: 2.191 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003509/0.1338, allocations: 236.8 kB / 0.5113 GB, free: 1.957 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.134, allocations: 44.52 kB / 0.5114 GB, free: 1.918 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.1341, allocations: 91.62 kB / 0.5115 GB, free: 1.828 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.1343, allocations: 99.47 kB / 0.5116 GB, free: 1.73 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.052e-05/0.1343, allocations: 16 kB / 0.5116 GB, free: 1.715 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 3.889e-05/0.1343, allocations: 20 kB / 0.5116 GB, free: 1.695 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.412e-05/0.1344, allocations: 55.83 kB / 0.5117 GB, free: 1.641 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.1345, allocations: 99.39 kB / 0.5118 GB, free: 1.543 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003297/0.1349, allocations: 195 kB / 0.5119 GB, free: 1.352 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.1349, allocations: 0 / 0.5119 GB, free: 1.352 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.543e-06/0.1349, allocations: 0 / 0.5119 GB, free: 1.352 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 3.079e-05/0.1349, allocations: 0 / 0.5119 GB, free: 1.352 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.00105/0.136, allocations: 445.7 kB / 0.5124 GB, free: 0.8828 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.136, allocations: 16.03 kB / 0.5124 GB, free: 0.8672 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.1361, allocations: 24.8 kB / 0.5124 GB, free: 0.8438 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.1364, allocations: 174.9 kB / 0.5126 GB, free: 0.6445 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.313e-05/0.1365, allocations: 24.75 kB / 0.5126 GB, free: 0.6211 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.1365, allocations: 28.36 kB / 0.5126 GB, free: 0.5938 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.137, allocations: 244.8 kB / 0.5129 GB, free: 336 kB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.137, allocations: 4.188 kB / 0.5129 GB, free: 332 kB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.137, allocations: 7.938 kB / 0.5129 GB, free: 324 kB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1371, allocations: 4 kB / 0.5129 GB, free: 320 kB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000362/0.1374, allocations: 157 kB / 0.513 GB, free: 164 kB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2897/0.4271, allocations: 0.9926 MB / 0.514 GB, free: 14.61 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004154/0.4275, allocations: 149.4 kB / 0.5141 GB, free: 14.59 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/0.4277, allocations: 71.81 kB / 0.5142 GB, free: 14.58 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.975e-05/0.4277, allocations: 2.719 kB / 0.5142 GB, free: 14.58 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.4278, allocations: 33.56 kB / 0.5142 GB, free: 14.54 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=21): time 3.787e-06/0.4278, allocations: 0 / 0.5142 GB, free: 14.54 MB / 382.1 MB
Notification: Performance of matching and sorting (n=21): time 0.0008375/0.4286, allocations: 243.5 kB / 0.5145 GB, free: 14.5 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.4287, allocations: 58.12 kB / 0.5145 GB, free: 14.44 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000319/0.429, allocations: 215.6 kB / 0.5147 GB, free: 14.34 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.429, allocations: 30.61 kB / 0.5148 GB, free: 14.3 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.4292, allocations: 153.6 kB / 0.5149 GB, free: 14.2 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.167e-05/0.4293, allocations: 83.36 kB / 0.515 GB, free: 14.15 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.4294, allocations: 74.59 kB / 0.5151 GB, free: 14.13 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001462/0.4296, allocations: 335.2 kB / 0.5154 GB, free: 13.82 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.4298, allocations: 78.41 kB / 0.5154 GB, free: 13.82 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003147/0.4301, allocations: 164.4 kB / 0.5156 GB, free: 13.71 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.4318, allocations: 482.1 kB / 0.5161 GB, free: 13.6 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4318, allocations: 0 / 0.5161 GB, free: 13.6 MB / 382.1 MB
Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006871/0.4325, allocations: 309.7 kB / 0.5164 GB, free: 13.55 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.4326, allocations: 9.312 kB / 0.5164 GB, free: 13.55 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.4326, allocations: 7.5 kB / 0.5164 GB, free: 13.55 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/0.4326, allocations: 8.25 kB / 0.5164 GB, free: 13.55 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.433, allocations: 72.08 kB / 0.5165 GB, free: 13.55 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.814e-05/0.433, allocations: 11.69 kB / 0.5165 GB, free: 13.55 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.4332, allocations: 44.55 kB / 0.5165 GB, free: 13.54 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.4332, allocations: 11.41 kB / 0.5165 GB, free: 13.54 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.0001994/0.4334, allocations: 145.6 kB / 0.5167 GB, free: 13.43 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.4334, allocations: 22.61 kB / 0.5167 GB, free: 13.41 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004608/0.4339, allocations: 226.4 kB / 0.5169 GB, free: 13.37 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4339, allocations: 3.219 kB / 0.5169 GB, free: 13.37 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.4339, allocations: 0.9375 kB / 0.5169 GB, free: 13.37 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.4339, allocations: 5.156 kB / 0.5169 GB, free: 13.37 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004541/0.4344, allocations: 280.6 kB / 0.5172 GB, free: 13.21 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.4344, allocations: 0 / 0.5172 GB, free: 13.21 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003445/0.4347, allocations: 60.67 kB / 0.5172 GB, free: 13.21 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.4347, allocations: 3.781 kB / 0.5172 GB, free: 13.21 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.4347, allocations: 10.61 kB / 0.5172 GB, free: 13.21 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4348, allocations: 3.438 kB / 0.5172 GB, free: 13.21 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4348, allocations: 0 / 0.5172 GB, free: 13.21 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.4353, allocations: 382.2 kB / 0.5176 GB, free: 13.06 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.369e-05/0.4354, allocations: 21.89 kB / 0.5176 GB, free: 13.05 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.68e-05/0.4354, allocations: 13.09 kB / 0.5176 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.4356, allocations: 10.09 kB / 0.5177 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.4357, allocations: 23.22 kB / 0.5177 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.4357, allocations: 6.203 kB / 0.5177 GB, free: 13.04 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0001342/0.4358, allocations: 142.8 kB / 0.5178 GB, free: 12.96 MB / 382.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.4358, allocations: 3.391 kB / 0.5178 GB, free: 12.96 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0003471/0.4362, allocations: 50.61 kB / 0.5179 GB, free: 12.96 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.0001536/0.4363, allocations: 109.4 kB / 0.518 GB, free: 12.87 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005598/0.4369, allocations: 192.2 kB / 0.5182 GB, free: 12.87 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4369, allocations: 0 / 0.5182 GB, free: 12.87 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002465/0.4371, allocations: 94.17 kB / 0.5182 GB, free: 12.86 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004104/0.4375, allocations: 32.61 kB / 0.5183 GB, free: 12.86 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.4389, allocations: 0.5379 MB / 0.5188 GB, free: 12.56 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.4393, allocations: 0.7501 MB / 0.5195 GB, free: 11.86 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0001514/0.4394, allocations: 29.55 kB / 0.5196 GB, free: 11.85 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.477e-05/0.4395, allocations: 26.95 kB / 0.5196 GB, free: 11.84 MB / 382.1 MB
Notification: Performance of SimCode: time 8.72e-07/0.4395, allocations: 1.312 kB / 0.5196 GB, free: 11.84 MB / 382.1 MB
Notification: Performance of Templates: time 0.007437/0.4469, allocations: 2.278 MB / 0.5218 GB, free: 11.71 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile [Timeout 660]
(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 & ./AES_AES.Coursework.Typical_control_structures.Cascade_with_locks  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.481065219268203]
Failed to read output from testmodel.py, exit status != 0:
0.456380283460021 0.46923302399999994 0.33137755199999996
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fd9e20317b0>