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.0009945/0.0009945, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001084/0.001084, allocations: 177.3 kB / 15.94 MB, free: 228 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.409/1.409, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2622/0.2622, allocations: 22.35 MB / 313.3 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 12 kB / 381.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3458, allocations: 55.98 MB / 437.8 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00237/0.3483, allocations: 1.527 MB / 439.3 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006684/0.349, allocations: 188.4 kB / 439.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.3492, allocations: 3.938 kB / 439.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.981e-05/0.3493, allocations: 11.58 kB / 439.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.3495, allocations: 30.84 kB / 439.6 MB, free: 37.84 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.0003251/0.3498, allocations: 70.88 kB / 439.6 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004068/0.3502, allocations: 143.9 kB / 439.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.3505, allocations: 40.33 kB / 439.8 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.3506, allocations: 71.75 kB / 439.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.3508, allocations: 75.11 kB / 440 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.3509, allocations: 8.406 kB / 440 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.807e-05/0.3509, allocations: 8.281 kB / 440 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.933e-05/0.351, allocations: 39.7 kB / 440 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.625e-05/0.3511, allocations: 58.83 kB / 440.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.3514, allocations: 128.6 kB / 440.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3514, allocations: 0 / 440.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.575e-05/0.3514, allocations: 0 / 440.2 MB, free: 37.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.3514, allocations: 0 / 440.2 MB, free: 37.55 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.001299/0.3527, allocations: 480.3 kB / 440.7 MB, free: 37.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/0.3528, allocations: 8.031 kB / 440.7 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001752/0.353, allocations: 25.38 kB / 440.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.3534, allocations: 244.2 kB / 440.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.3535, allocations: 20.77 kB / 440.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.671e-05/0.3536, allocations: 26 kB / 441 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005283/0.3541, allocations: 237.2 kB / 441.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.3542, allocations: 3.938 kB / 441.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.006e-05/0.3542, allocations: 11.67 kB / 441.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.3542, allocations: 2.875 kB / 441.2 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003709/0.3546, allocations: 163.9 kB / 441.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.3563, allocations: 1.032 MB / 442.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.3566, allocations: 157.6 kB / 442.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.3567, allocations: 11.38 kB / 442.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.3567, allocations: 34.75 kB / 442.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.3567, allocations: 0 / 442.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005794/0.3573, allocations: 241.1 kB / 442.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.3573, allocations: 54.41 kB / 442.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.3575, allocations: 215.5 kB / 443.1 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.3576, allocations: 33.7 kB / 443.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.212e-05/0.3577, allocations: 158.8 kB / 443.3 MB, free: 35.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.838e-05/0.3577, allocations: 77.94 kB / 443.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.239e-05/0.3577, allocations: 4 kB / 443.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.3578, allocations: 335.9 kB / 443.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.358, allocations: 70.92 kB / 443.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.3582, allocations: 166.9 kB / 443.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.3584, allocations: 97.97 kB / 444 MB, free: 34.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3584, allocations: 2.969 kB / 444 MB, free: 34.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005011/0.3589, allocations: 308 kB / 444.3 MB, free: 34.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.359, allocations: 9.062 kB / 444.4 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.359, allocations: 2.781 kB / 444.4 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.359, allocations: 5.531 kB / 444.4 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.3593, allocations: 84.55 kB / 444.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.3594, allocations: 3.875 kB / 444.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.3596, allocations: 46.84 kB / 444.5 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.3596, allocations: 14.06 kB / 444.5 MB, free: 34.49 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.0002058/0.3598, allocations: 147 kB / 444.6 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.3599, allocations: 22.73 kB / 444.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004374/0.3603, allocations: 233.2 kB / 444.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.3603, allocations: 2.906 kB / 444.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3603, allocations: 4 kB / 444.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3604, allocations: 0 / 444.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.3608, allocations: 310 kB / 445.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.3608, allocations: 0 / 445.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/0.3611, allocations: 61.14 kB / 445.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.3611, allocations: 7.094 kB / 445.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.3612, allocations: 2.625 kB / 445.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3612, allocations: 0 / 445.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3612, allocations: 3.125 kB / 445.3 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/0.3617, allocations: 378.2 kB / 445.6 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.047e-05/0.3618, allocations: 98.23 kB / 445.7 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.3618, allocations: 11.27 kB / 445.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.362, allocations: 15.62 kB / 445.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.3621, allocations: 22.77 kB / 445.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.3621, allocations: 13.44 kB / 445.8 MB, free: 33.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.723e-05/0.3622, allocations: 146 kB / 445.9 MB, free: 33.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3622, allocations: 0 / 445.9 MB, free: 33.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.3625, allocations: 45.77 kB / 446 MB, free: 33.5 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.0001038/0.3626, allocations: 101.6 kB / 446.1 MB, free: 33.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003909/0.363, allocations: 209.9 kB / 446.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.363, allocations: 0 / 446.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.3632, allocations: 88.28 kB / 446.4 MB, free: 33.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3634, allocations: 33.47 kB / 446.4 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008709/0.3643, allocations: 0.6163 MB / 447 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.3645, allocations: 0.7551 MB / 447.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.3646, allocations: 27.77 kB / 447.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.092e-05/0.3647, allocations: 21.66 kB / 447.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3647, allocations: 0 / 447.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of Templates: time 0.004633/0.3694, allocations: 1.758 MB / 449.6 MB, free: 32.06 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: