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.0008553/0.0008554, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001163/0.001163, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.616/1.616, allocations: 223.3 MB / 240 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.293/0.293, allocations: 22.35 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005452/0.0005449, allocations: 11.98 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.388, allocations: 55.97 MB / 437.9 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.001759/0.3898, allocations: 1.516 MB / 439.4 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003682/0.3902, allocations: 191.3 kB / 439.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.207e-05/0.3903, allocations: 10.97 kB / 439.6 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.3904, allocations: 21.91 kB / 439.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.006e-05/0.3905, allocations: 11.25 kB / 439.7 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001821/0.3907, allocations: 66.53 kB / 439.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000259/0.3909, allocations: 206.4 kB / 439.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.3911, allocations: 46.73 kB / 440 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.786e-05/0.3911, allocations: 64.09 kB / 440 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.3913, allocations: 76.55 kB / 440.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.3913, allocations: 12.19 kB / 440.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.29e-05/0.3913, allocations: 7.906 kB / 440.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.661e-05/0.3914, allocations: 39.8 kB / 440.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.156e-05/0.3914, allocations: 54.2 kB / 440.2 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.3916, allocations: 133.2 kB / 440.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.3916, allocations: 0 / 440.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3916, allocations: 0 / 440.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.3916, allocations: 0 / 440.3 MB, free: 37.48 MB / 350.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.0007265/0.3923, allocations: 486 kB / 440.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.3924, allocations: 9.781 kB / 440.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.984e-05/0.3925, allocations: 22.62 kB / 440.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.3927, allocations: 244.3 kB / 441.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.117e-05/0.3927, allocations: 19.44 kB / 441.1 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/0.3928, allocations: 24.8 kB / 441.1 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.3932, allocations: 237.2 kB / 441.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.3932, allocations: 0 / 441.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.3932, allocations: 15.02 kB / 441.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3932, allocations: 4.875 kB / 441.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.3935, allocations: 162.3 kB / 441.5 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3949, allocations: 1.032 MB / 442.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.3952, allocations: 157.9 kB / 442.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.3953, allocations: 70.62 kB / 442.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.3954, allocations: 2.906 kB / 442.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.428e-05/0.3954, allocations: 30.75 kB / 442.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.3954, allocations: 0 / 442.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004781/0.3959, allocations: 245.6 kB / 443.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.3959, allocations: 57.91 kB / 443.1 MB, free: 35.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.3961, allocations: 212.6 kB / 443.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.3961, allocations: 25.7 kB / 443.4 MB, free: 35.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.569e-05/0.3962, allocations: 163.8 kB / 443.5 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.3962, allocations: 74.44 kB / 443.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/0.3962, allocations: 4 kB / 443.6 MB, free: 35.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.772e-05/0.3963, allocations: 335.6 kB / 443.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.3965, allocations: 76.67 kB / 444 MB, free: 34.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.3966, allocations: 167.5 kB / 444.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.3968, allocations: 91.23 kB / 444.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3968, allocations: 0 / 444.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004231/0.3972, allocations: 321.8 kB / 444.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3973, allocations: 6.156 kB / 444.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3973, allocations: 6.359 kB / 444.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.3973, allocations: 5.938 kB / 444.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003504/0.3977, allocations: 88.66 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3977, allocations: 3.75 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.3978, allocations: 41.28 kB / 444.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.3979, allocations: 14.94 kB / 444.7 MB, free: 34.39 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: PI_I.xfb:VARIABLE(fixed = true ) type: Real PI_E.xfb:VARIABLE(fixed = true ) 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_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001762/0.398, allocations: 148.3 kB / 444.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.3981, allocations: 19.95 kB / 444.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003807/0.3985, allocations: 232.5 kB / 445.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3985, allocations: 3 kB / 445.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3985, allocations: 0 / 445.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3985, allocations: 0 / 445.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003844/0.3989, allocations: 318 kB / 445.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3989, allocations: 0 / 445.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002927/0.3992, allocations: 60.72 kB / 445.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3992, allocations: 11.89 kB / 445.5 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.3992, allocations: 4 kB / 445.5 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.3992, allocations: 2.844 kB / 445.5 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3993, allocations: 0 / 445.5 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004446/0.3997, allocations: 377.5 kB / 445.9 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.654e-05/0.3997, allocations: 98.52 kB / 446 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.136e-05/0.3998, allocations: 14.27 kB / 446 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.3999, allocations: 13.88 kB / 446 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/0.4, allocations: 30.94 kB / 446 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.4, allocations: 2.969 kB / 446 MB, free: 33.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.764e-05/0.4001, allocations: 142.5 kB / 446.2 MB, free: 33.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4001, allocations: 0 / 446.2 MB, free: 33.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002834/0.4004, allocations: 41.97 kB / 446.2 MB, free: 33.39 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001159/0.4005, allocations: 107.5 kB / 446.3 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003963/0.4009, allocations: 204.9 kB / 446.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4009, allocations: 0 / 446.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.4011, allocations: 100.8 kB / 446.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.4014, allocations: 28.98 kB / 446.7 MB, free: 33.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008601/0.4023, allocations: 0.6095 MB / 447.3 MB, free: 32.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.4026, allocations: 0.7497 MB / 448 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.4027, allocations: 27.44 kB / 448 MB, free: 32.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.708e-05/0.4028, allocations: 19.5 kB / 448.1 MB, free: 32.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4028, allocations: 2.938 kB / 448.1 MB, free: 32.09 MB / 350.1 MB Notification: Performance of Templates: time 0.004515/0.4073, allocations: 1.771 MB / 449.8 MB, free: 31.95 MB / 350.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)