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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 105.2 kB / 15.99 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 198.9 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.194/1.194, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08551/0.08551, allocations: 22.32 MB / 313.1 MB, free: 8.926 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 68.89 kB / 380.9 MB, free: 41.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07141/0.07262, allocations: 54.97 MB / 435.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00288/0.07553, allocations: 1.91 MB / 437.8 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004018/0.07595, allocations: 191.4 kB / 438 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.022e-05/0.07607, allocations: 0 / 438 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.0762, allocations: 27.73 kB / 438 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.207e-05/0.07627, allocations: 7.875 kB / 438 MB, free: 11.21 MB / 318.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.0002/0.07647, allocations: 87.84 kB / 438.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000249/0.07673, allocations: 236.8 kB / 438.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.07687, allocations: 68.38 kB / 438.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.072e-05/0.07696, allocations: 79.7 kB / 438.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.07708, allocations: 99.45 kB / 438.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.246e-05/0.07712, allocations: 20 kB / 438.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.497e-05/0.07715, allocations: 16 kB / 438.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.966e-05/0.07719, allocations: 47.84 kB / 438.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.51e-05/0.07727, allocations: 95.45 kB / 438.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.07742, allocations: 140 kB / 438.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.07743, allocations: 0 / 438.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.07743, allocations: 0 / 438.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.07744, allocations: 0 / 438.9 MB, free: 10.34 MB / 318.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.0007419/0.07819, allocations: 0.5092 MB / 439.4 MB, free: 9.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.07823, allocations: 15.97 kB / 439.4 MB, free: 9.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.29e-05/0.07829, allocations: 28.59 kB / 439.4 MB, free: 9.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.07852, allocations: 240.6 kB / 439.7 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.07856, allocations: 16.81 kB / 439.7 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.07861, allocations: 28.38 kB / 439.7 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.07901, allocations: 228.9 kB / 439.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.07903, allocations: 8.109 kB / 439.9 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.07906, allocations: 7.938 kB / 439.9 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.07907, allocations: 12 kB / 440 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.07938, allocations: 157 kB / 440.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.08086, allocations: 1.026 MB / 441.1 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.08115, allocations: 158.5 kB / 441.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.08129, allocations: 64.84 kB / 441.4 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.08132, allocations: 3.984 kB / 441.4 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.08135, allocations: 42.56 kB / 441.4 MB, free: 7.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.223e-06/0.08136, allocations: 4 kB / 441.4 MB, free: 7.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004966/0.08186, allocations: 242.1 kB / 441.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.0819, allocations: 51.41 kB / 441.7 MB, free: 7.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.08207, allocations: 215.7 kB / 441.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.0821, allocations: 33.7 kB / 441.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.64e-05/0.08218, allocations: 152.1 kB / 442.1 MB, free: 6.898 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.516e-05/0.08224, allocations: 82.89 kB / 442.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.332e-05/0.08233, allocations: 73.69 kB / 442.2 MB, free: 6.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.67e-05/0.08243, allocations: 334.8 kB / 442.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.08259, allocations: 67.97 kB / 442.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.0828, allocations: 167.1 kB / 442.8 MB, free: 6.133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.08406, allocations: 475.2 kB / 443.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.08408, allocations: 7.938 kB / 443.3 MB, free: 5.621 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004651/0.08455, allocations: 309.2 kB / 443.6 MB, free: 5.312 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.08457, allocations: 8 kB / 443.6 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.08458, allocations: 4 kB / 443.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.0846, allocations: 4 kB / 443.6 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.0849, allocations: 79.89 kB / 443.7 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.08492, allocations: 4 kB / 443.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.08509, allocations: 39.61 kB / 443.7 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.08512, allocations: 16 kB / 443.7 MB, free: 5.16 MB / 318.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.000179/0.0853, allocations: 158.3 kB / 443.9 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.707e-05/0.08535, allocations: 27.73 kB / 443.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004158/0.08577, allocations: 218.2 kB / 444.1 MB, free: 4.746 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.08579, allocations: 4 kB / 444.1 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.08579, allocations: 0 / 444.1 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.0858, allocations: 3.984 kB / 444.1 MB, free: 4.738 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004171/0.08623, allocations: 313.3 kB / 444.4 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.08624, allocations: 7.875 kB / 444.4 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.08657, allocations: 55.97 kB / 444.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.08659, allocations: 0 / 444.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.08661, allocations: 7.984 kB / 444.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.08662, allocations: 7.984 kB / 444.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.08663, allocations: 0 / 444.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005122/0.08715, allocations: 383.4 kB / 444.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.946e-05/0.08721, allocations: 100.8 kB / 445 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.08724, allocations: 7.984 kB / 445 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.0874, allocations: 8 kB / 445 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.08747, allocations: 23.95 kB / 445 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.08749, allocations: 16 kB / 445 MB, free: 3.738 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.36e-05/0.08759, allocations: 141 kB / 445.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.0876, allocations: 4 kB / 445.2 MB, free: 3.598 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002795/0.08788, allocations: 47.91 kB / 445.2 MB, free: 3.551 MB / 318.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 8.372e-05/0.08797, allocations: 103.3 kB / 445.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004054/0.08838, allocations: 218.8 kB / 445.5 MB, free: 3.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.0884, allocations: 3.938 kB / 445.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.08856, allocations: 95.91 kB / 445.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.08886, allocations: 34.78 kB / 445.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008266/0.08969, allocations: 0.6424 MB / 446.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.08995, allocations: 0.7443 MB / 447.1 MB, free: 1.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.613e-05/0.09003, allocations: 23.44 kB / 447.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.09004, allocations: 0 / 447.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of Templates: time 0.003933/0.09397, allocations: 2.672 MB / 449.8 MB, free: 14.95 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile (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)