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.00161/0.00161, allocations: 108.7 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.001541/0.001541, 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.623/1.623, 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.1093/0.1093, allocations: 24.03 MB / 332.9 MB, free: 12.82 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: 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: 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.002047/0.002047, allocations: 67.89 kB / 468.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4387/0.4407, allocations: 59.55 MB / 0.5161 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002994/0.4437, allocations: 1.882 MB / 0.5179 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004487/0.4442, allocations: 199.8 kB / 0.5181 GB, free: 9.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.4443, allocations: 5.094 kB / 0.5181 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.4444, allocations: 37.94 kB / 0.5181 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.407e-05/0.4445, allocations: 19.58 kB / 0.5181 GB, free: 8.969 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.0002417/0.4447, allocations: 89.47 kB / 0.5182 GB, free: 8.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003122/0.445, allocations: 242 kB / 0.5185 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.4452, allocations: 45.03 kB / 0.5185 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.777e-05/0.4453, allocations: 87.55 kB / 0.5186 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.4454, allocations: 93.81 kB / 0.5187 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.4455, allocations: 18.44 kB / 0.5187 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.423e-05/0.4455, allocations: 20.06 kB / 0.5187 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.434e-05/0.4456, allocations: 52.14 kB / 0.5188 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.276e-05/0.4457, allocations: 92.61 kB / 0.5188 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.4459, allocations: 194.9 kB / 0.519 GB, free: 8.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.4459, allocations: 1.375 kB / 0.519 GB, free: 8.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4459, allocations: 0 / 0.519 GB, free: 8.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.446, allocations: 0 / 0.519 GB, free: 8.516 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.0008559/0.4468, allocations: 0.5179 MB / 0.5195 GB, free: 8.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.4469, allocations: 10.47 kB / 0.5196 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.327e-05/0.4469, allocations: 25.11 kB / 0.5196 GB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.4473, allocations: 245 kB / 0.5198 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.704e-05/0.4473, allocations: 18.25 kB / 0.5198 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.254e-05/0.4474, allocations: 28.64 kB / 0.5199 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004576/0.4479, allocations: 230.9 kB / 0.5201 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.4479, allocations: 5.25 kB / 0.5201 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.452e-05/0.4479, allocations: 14.09 kB / 0.5201 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.4479, allocations: 4.906 kB / 0.5201 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003495/0.4483, allocations: 166 kB / 0.5203 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.4502, allocations: 1.022 MB / 0.5213 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.4505, allocations: 153.2 kB / 0.5214 GB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.4507, allocations: 65.33 kB / 0.5215 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.864e-05/0.4507, allocations: 7.172 kB / 0.5215 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.667e-05/0.4507, allocations: 36 kB / 0.5215 GB, free: 6.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.4507, allocations: 3.938 kB / 0.5215 GB, free: 6.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006286/0.4514, allocations: 240.7 kB / 0.5217 GB, free: 6.547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.4514, allocations: 61.47 kB / 0.5218 GB, free: 6.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002229/0.4516, allocations: 210.6 kB / 0.522 GB, free: 6.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.789e-05/0.4517, allocations: 33.39 kB / 0.522 GB, free: 6.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.4517, allocations: 163.1 kB / 0.5222 GB, free: 6.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.4518, allocations: 83.73 kB / 0.5223 GB, free: 6.086 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-05/0.4519, allocations: 68.39 kB / 0.5223 GB, free: 6.047 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.114e-05/0.452, allocations: 330 kB / 0.5226 GB, free: 5.727 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.4521, allocations: 82.14 kB / 0.5227 GB, free: 5.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.4523, allocations: 166.4 kB / 0.5229 GB, free: 5.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.4539, allocations: 474.8 kB / 0.5233 GB, free: 5.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4539, allocations: 1.219 kB / 0.5233 GB, free: 5.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007104/0.4546, allocations: 311.3 kB / 0.5236 GB, free: 5.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.4547, allocations: 9.625 kB / 0.5236 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.4547, allocations: 5.203 kB / 0.5236 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/0.4547, allocations: 5.688 kB / 0.5237 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.455, allocations: 76.8 kB / 0.5237 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.455, allocations: 7.375 kB / 0.5237 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002015/0.4552, allocations: 39.11 kB / 0.5238 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.4553, allocations: 15.22 kB / 0.5238 GB, free: 5.141 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.0001819/0.4554, allocations: 159.1 kB / 0.5239 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.956e-05/0.4555, allocations: 24.64 kB / 0.524 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004994/0.456, allocations: 219 kB / 0.5242 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.456, allocations: 3.344 kB / 0.5242 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.456, allocations: 1.922 kB / 0.5242 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.456, allocations: 4.156 kB / 0.5242 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004841/0.4565, allocations: 308.7 kB / 0.5245 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4565, allocations: 5.203 kB / 0.5245 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003624/0.4569, allocations: 59.02 kB / 0.5245 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.4569, allocations: 1.219 kB / 0.5245 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.557e-05/0.4569, allocations: 7.438 kB / 0.5245 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.4569, allocations: 0 / 0.5245 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4569, allocations: 8.938 kB / 0.5245 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007037/0.4576, allocations: 384.9 kB / 0.5249 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.4577, allocations: 104 kB / 0.525 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.4577, allocations: 5.969 kB / 0.525 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.4579, allocations: 12.08 kB / 0.525 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.458, allocations: 23.19 kB / 0.5251 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.458, allocations: 4.281 kB / 0.5251 GB, free: 4.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001346/0.4581, allocations: 147.1 kB / 0.5252 GB, free: 4.152 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4581, allocations: 0 / 0.5252 GB, free: 4.152 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.4584, allocations: 48.75 kB / 0.5252 GB, free: 4.141 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.0001231/0.4586, allocations: 108.2 kB / 0.5253 GB, free: 4.043 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005522/0.4591, allocations: 191.1 kB / 0.5255 GB, free: 3.984 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4591, allocations: 0.75 kB / 0.5255 GB, free: 3.984 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.4594, allocations: 94.42 kB / 0.5256 GB, free: 3.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.4598, allocations: 35.14 kB / 0.5257 GB, free: 3.934 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.461, allocations: 0.5363 MB / 0.5262 GB, free: 3.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.4612, allocations: 0.7488 MB / 0.5269 GB, free: 2.891 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.4614, allocations: 28.53 kB / 0.5269 GB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.874e-05/0.4614, allocations: 22.5 kB / 0.527 GB, free: 2.875 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4614, allocations: 0 / 0.527 GB, free: 2.875 MB / 382.1 MB Notification: Performance of Templates: time 0.007145/0.4686, allocations: 2.135 MB / 0.529 GB, free: 2.703 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_STDOUT,LOG_ASSERT,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.301045848056674] Failed to read output from testmodel.py, exit status != 0: 0.47694411128759384 0.48995290700000005 0.04090879 Calling exit ...