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.001061/0.001061, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001116/0.001116, allocations: 193.5 kB / 16.25 MB, free: 6.152 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.335/1.335, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2173/0.2173, allocations: 22.36 MB / 312.4 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 59.89 kB / 380.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.257, allocations: 54.94 MB / 435.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002667/0.2597, allocations: 1.905 MB / 437.1 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004073/0.2601, allocations: 199.7 kB / 437.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.596e-05/0.2602, allocations: 3.938 kB / 437.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.2604, allocations: 21.81 kB / 437.4 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.443e-05/0.2604, allocations: 21.84 kB / 437.4 MB, free: 38.08 MB / 350.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.0002238/0.2607, allocations: 78.94 kB / 437.5 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.2609, allocations: 235.9 kB / 437.7 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.2611, allocations: 64.88 kB / 437.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.878e-05/0.2611, allocations: 79.03 kB / 437.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.2613, allocations: 97.47 kB / 437.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/0.2613, allocations: 19.19 kB / 437.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.847e-05/0.2613, allocations: 19.34 kB / 438 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.676e-05/0.2614, allocations: 50.28 kB / 438 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.028e-05/0.2614, allocations: 91.86 kB / 438.1 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.2616, allocations: 192.2 kB / 438.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2616, allocations: 3.938 kB / 438.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2616, allocations: 3.031 kB / 438.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2616, allocations: 4 kB / 438.3 MB, free: 37.61 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.0007147/0.2624, allocations: 0.4992 MB / 438.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.2624, allocations: 11.06 kB / 438.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.366e-05/0.2625, allocations: 30.19 kB / 438.8 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.2627, allocations: 242.8 kB / 439.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.2627, allocations: 21.59 kB / 439.1 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.2627, allocations: 26.75 kB / 439.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.2631, allocations: 234.3 kB / 439.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2631, allocations: 192 / 439.4 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.2632, allocations: 14.92 kB / 439.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.2632, allocations: 5.75 kB / 439.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002872/0.2635, allocations: 166.9 kB / 439.5 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.2648, allocations: 1.024 MB / 440.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.2651, allocations: 154.3 kB / 440.7 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.2652, allocations: 69.55 kB / 440.8 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.674e-05/0.2653, allocations: 3.188 kB / 440.8 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/0.2653, allocations: 41.5 kB / 440.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.653e-06/0.2653, allocations: 0 / 440.8 MB, free: 35.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005133/0.2658, allocations: 235.9 kB / 441.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.2659, allocations: 54.34 kB / 441.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.266, allocations: 221 kB / 441.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.2661, allocations: 29.7 kB / 441.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.075e-05/0.2661, allocations: 158.1 kB / 441.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.2662, allocations: 77.39 kB / 441.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.505e-05/0.2663, allocations: 72.94 kB / 441.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.74e-05/0.2664, allocations: 332.6 kB / 442 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.2665, allocations: 77.61 kB / 442.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.2667, allocations: 165.7 kB / 442.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.268, allocations: 478.5 kB / 442.7 MB, free: 34.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.268, allocations: 0 / 442.7 MB, free: 34.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004387/0.2684, allocations: 307.3 kB / 443 MB, free: 34.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2685, allocations: 6.156 kB / 443 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2685, allocations: 6.781 kB / 443 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.2685, allocations: 5.844 kB / 443 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.2688, allocations: 82.92 kB / 443.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.2688, allocations: 3.781 kB / 443.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.269, allocations: 37.67 kB / 443.1 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.269, allocations: 18.34 kB / 443.1 MB, free: 34.27 MB / 350.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.0002362/0.2693, allocations: 153.1 kB / 443.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/0.2693, allocations: 24.41 kB / 443.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000418/0.2697, allocations: 229.2 kB / 443.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2697, allocations: 2.531 kB / 443.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2698, allocations: 0 / 443.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.2698, allocations: 0 / 443.5 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003912/0.2702, allocations: 309.3 kB / 443.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2702, allocations: 11.88 kB / 443.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.2705, allocations: 57.61 kB / 443.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2705, allocations: 0 / 443.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.2705, allocations: 6.875 kB / 443.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2705, allocations: 2.938 kB / 443.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2705, allocations: 3.328 kB / 443.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004843/0.271, allocations: 377 kB / 444.3 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.626e-05/0.2711, allocations: 107.4 kB / 444.4 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.2711, allocations: 11.19 kB / 444.4 MB, free: 33.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001586/0.2713, allocations: 10.97 kB / 444.4 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.157e-05/0.2714, allocations: 25.61 kB / 444.4 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.2714, allocations: 6.844 kB / 444.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.159e-05/0.2715, allocations: 147.1 kB / 444.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2715, allocations: 0 / 444.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.2718, allocations: 43.56 kB / 444.6 MB, free: 33.27 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.665e-05/0.2719, allocations: 109.5 kB / 444.7 MB, free: 33.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004156/0.2723, allocations: 220.9 kB / 445 MB, free: 33.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2723, allocations: 0 / 445 MB, free: 33.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.2725, allocations: 98.14 kB / 445.1 MB, free: 33.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.2728, allocations: 34.81 kB / 445.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009098/0.2737, allocations: 0.6033 MB / 445.7 MB, free: 32.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.2739, allocations: 0.751 MB / 446.4 MB, free: 31.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.2741, allocations: 28.73 kB / 446.5 MB, free: 31.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.514e-05/0.2741, allocations: 23.12 kB / 446.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2741, allocations: 4 kB / 446.5 MB, free: 31.93 MB / 350.1 MB Notification: Performance of Templates: time 0.004256/0.2784, allocations: 1.932 MB / 448.4 MB, free: 31.77 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)