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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/AES main/package.mo): time 0.07318/0.07318, allocations: 17.69 MB / 33.64 MB, free: 1.742 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 179.4 kB / 38.92 MB, free: 16 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.693/1.693, allocations: 205.4 MB / 249.5 MB, free: 2.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007929/0.0007931, allocations: 95.48 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004256/0.0004257, allocations: 8 kB / 366.9 MB, free: 3.621 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3192, allocations: 51.99 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.4316, allocations: 77.76 MB / 496.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.4319, allocations: 75.95 kB / 496.8 MB, free: 10.45 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:52:3-52:25:writable] Warning: Connecting two signal sources while connecting iNoInc to noInc. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:53:3-53:25:writable] Warning: Connecting two signal sources while connecting iNoDec to noDec. Notification: Performance of FrontEnd - DAE generated: time 0.00791/0.4398, allocations: 2.75 MB / 499.5 MB, free: 7.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.4398, allocations: 4 kB / 499.5 MB, free: 7.688 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.323e-05/0.4399, allocations: 7.984 kB / 499.5 MB, free: 7.68 MB / 362.7 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.0007194/0.4406, allocations: 483.2 kB / 500 MB, free: 7.156 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4406, allocations: 8.031 kB / 500 MB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.304e-05/0.4407, allocations: 28.64 kB / 0.4883 GB, free: 7.121 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.441, allocations: 240.6 kB / 0.4885 GB, free: 6.844 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.4411, allocations: 20.8 kB / 0.4886 GB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.466e-05/0.4412, allocations: 36.31 kB / 0.4886 GB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004433/0.4416, allocations: 228.8 kB / 0.4888 GB, free: 6.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.4416, allocations: 192 / 0.4888 GB, free: 6.539 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.4417, allocations: 19.92 kB / 0.4888 GB, free: 6.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.4417, allocations: 4 kB / 0.4888 GB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003446/0.442, allocations: 168.7 kB / 0.489 GB, free: 6.352 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.4439, allocations: 1.045 MB / 0.49 GB, free: 5.242 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.4442, allocations: 150.6 kB / 0.4902 GB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.4444, allocations: 60.84 kB / 0.4902 GB, free: 5.023 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.4445, allocations: 7.984 kB / 0.4902 GB, free: 5.016 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.4445, allocations: 46.44 kB / 0.4903 GB, free: 4.961 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.934e-06/0.4445, allocations: 0 / 0.4903 GB, free: 4.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005707/0.4451, allocations: 234.6 kB / 0.4905 GB, free: 4.727 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.4451, allocations: 51.41 kB / 0.4905 GB, free: 4.664 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.4453, allocations: 215 kB / 0.4907 GB, free: 4.445 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.4454, allocations: 33.7 kB / 0.4908 GB, free: 4.406 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.4455, allocations: 156.1 kB / 0.4909 GB, free: 4.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.055e-05/0.4456, allocations: 78.91 kB / 0.491 GB, free: 4.172 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.4456, allocations: 8 kB / 0.491 GB, free: 4.164 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4457, allocations: 338.8 kB / 0.4913 GB, free: 3.824 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.4459, allocations: 67.75 kB / 0.4914 GB, free: 3.758 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.4461, allocations: 172.5 kB / 0.4916 GB, free: 3.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.4475, allocations: 494.7 kB / 0.492 GB, free: 3.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4475, allocations: 0 / 0.492 GB, free: 3.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005323/0.4481, allocations: 305 kB / 0.4923 GB, free: 2.723 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.4481, allocations: 11.98 kB / 0.4923 GB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.4481, allocations: 0 / 0.4923 GB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.4481, allocations: 8 kB / 0.4923 GB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.4484, allocations: 75.91 kB / 0.4924 GB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.4484, allocations: 8.312 kB / 0.4924 GB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.4486, allocations: 39.73 kB / 0.4925 GB, free: 2.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.4487, allocations: 12 kB / 0.4925 GB, free: 2.57 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: P_E.y:VARIABLE(start = P_E.y_start fixed = true ) "Connector of Real output signal" type: Real P_I.y:VARIABLE(start = P_I.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_E.HIsat,PI_E.LOsat,PI_E.noInc,PI_E.noDec,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.0002264/0.4489, allocations: 153.7 kB / 0.4926 GB, free: 2.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.4489, allocations: 23.66 kB / 0.4926 GB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004498/0.4494, allocations: 223.1 kB / 0.4929 GB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.4494, allocations: 7.984 kB / 0.4929 GB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.4494, allocations: 3.984 kB / 0.4929 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4494, allocations: 0 / 0.4929 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004946/0.4499, allocations: 309.3 kB / 0.4932 GB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.45, allocations: 3.938 kB / 0.4932 GB, free: 1.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003244/0.4503, allocations: 63.95 kB / 0.4932 GB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.4503, allocations: 0 / 0.4932 GB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.4503, allocations: 11.94 kB / 0.4932 GB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.4504, allocations: 11.88 kB / 0.4932 GB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4504, allocations: 0 / 0.4932 GB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.451, allocations: 368.5 kB / 0.4936 GB, free: 1.328 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.871e-05/0.4511, allocations: 100.8 kB / 0.4937 GB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.362e-05/0.4511, allocations: 8 kB / 0.4937 GB, free: 1.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.4513, allocations: 15.98 kB / 0.4937 GB, free: 1.188 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.086e-05/0.4514, allocations: 23.97 kB / 0.4937 GB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.4514, allocations: 8 kB / 0.4937 GB, free: 1.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001307/0.4515, allocations: 147.5 kB / 0.4939 GB, free: 1.012 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4515, allocations: 0 / 0.4939 GB, free: 1.012 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003226/0.4519, allocations: 51.94 kB / 0.4939 GB, free: 0.9609 MB / 362.7 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_E.noInc,PI_E.noDec) * 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.0001449/0.452, allocations: 103.6 kB / 0.494 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004272/0.4524, allocations: 211.8 kB / 0.4942 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4525, allocations: 0 / 0.4942 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.4526, allocations: 95.89 kB / 0.4943 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.453, allocations: 24.61 kB / 0.4944 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2082/0.6611, allocations: 0.6053 MB / 0.4949 GB, free: 83.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.6617, allocations: 0.7493 MB / 0.4957 GB, free: 82.83 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003108/0.662, allocations: 27.08 kB / 0.4957 GB, free: 82.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.6622, allocations: 23.08 kB / 0.4957 GB, free: 82.82 MB / 362.7 MB Notification: Performance of SimCode: time 2.735e-06/0.6622, allocations: 0 / 0.4957 GB, free: 82.82 MB / 362.7 MB Notification: Performance of Templates: time 0.007912/0.6701, allocations: 1.767 MB / 0.4975 GB, free: 82.78 MB / 362.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)