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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.001171, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 193 kB / 16.53 MB, free: 6.664 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.393/1.393, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1928/0.1928, allocations: 22.35 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001319, allocations: 67.89 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2533, allocations: 54.93 MB / 435.9 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002655/0.256, allocations: 1.867 MB / 437.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003639/0.2564, allocations: 191.4 kB / 437.9 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.834e-05/0.2565, allocations: 2.594 kB / 437.9 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.2566, allocations: 40.61 kB / 438 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.746e-05/0.2567, allocations: 14.38 kB / 438 MB, free: 38.13 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.0001922/0.2569, allocations: 92.42 kB / 438.1 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002151/0.2571, allocations: 247.3 kB / 438.3 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2572, allocations: 56.95 kB / 438.4 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.511e-05/0.2573, allocations: 80.78 kB / 438.5 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.2574, allocations: 99.48 kB / 438.6 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.413e-05/0.2575, allocations: 18.34 kB / 438.6 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.97e-05/0.2575, allocations: 22.19 kB / 438.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.053e-05/0.2575, allocations: 55.09 kB / 438.6 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.729e-05/0.2576, allocations: 95.89 kB / 438.7 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.2578, allocations: 192.3 kB / 438.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2578, allocations: 0 / 438.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2578, allocations: 0 / 438.9 MB, free: 37.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2578, allocations: 0 / 438.9 MB, free: 37.65 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.0007181/0.2585, allocations: 0.4946 MB / 439.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2586, allocations: 15.72 kB / 439.4 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.102e-05/0.2586, allocations: 51.72 kB / 439.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.641e-05/0.2587, allocations: 27.88 kB / 439.5 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.2589, allocations: 248 kB / 439.8 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.2589, allocations: 16.44 kB / 439.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.259, allocations: 25.59 kB / 439.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003468/0.2593, allocations: 231.8 kB / 440 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2593, allocations: 6.844 kB / 440 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.2594, allocations: 8 kB / 440 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2594, allocations: 4.938 kB / 440 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002993/0.2597, allocations: 164.2 kB / 440.2 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.261, allocations: 1.026 MB / 441.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.2613, allocations: 153.8 kB / 441.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.2614, allocations: 69.42 kB / 441.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.2615, allocations: 2.906 kB / 441.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.442e-05/0.2615, allocations: 41.84 kB / 441.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.044e-06/0.2615, allocations: 0 / 441.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004963/0.262, allocations: 243.1 kB / 441.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/0.262, allocations: 58.03 kB / 441.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.2622, allocations: 214.3 kB / 442 MB, free: 35.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.2622, allocations: 29.7 kB / 442 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.234e-05/0.2623, allocations: 159.4 kB / 442.2 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.2623, allocations: 74.42 kB / 442.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.2624, allocations: 75.53 kB / 442.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.253e-05/0.2624, allocations: 335.3 kB / 442.7 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.2626, allocations: 76.86 kB / 442.7 MB, free: 34.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.2628, allocations: 174.7 kB / 442.9 MB, free: 34.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.264, allocations: 472.1 kB / 443.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.264, allocations: 3.406 kB / 443.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004425/0.2645, allocations: 314.2 kB / 443.7 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.2645, allocations: 7.688 kB / 443.7 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.2645, allocations: 2.875 kB / 443.7 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2646, allocations: 5.188 kB / 443.7 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.2649, allocations: 78.75 kB / 443.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.2649, allocations: 6.906 kB / 443.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.2651, allocations: 37.92 kB / 443.8 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.2651, allocations: 18.41 kB / 443.8 MB, free: 34.25 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.000202/0.2653, allocations: 151 kB / 444 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.356e-05/0.2653, allocations: 27.34 kB / 444 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004035/0.2658, allocations: 223.4 kB / 444.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2658, allocations: 6.75 kB / 444.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2658, allocations: 4 kB / 444.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.2658, allocations: 3.984 kB / 444.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000385/0.2662, allocations: 317 kB / 444.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.2662, allocations: 0 / 444.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/0.2665, allocations: 63.81 kB / 444.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.2665, allocations: 0 / 444.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.2665, allocations: 6.75 kB / 444.6 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2666, allocations: 0 / 444.6 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.2666, allocations: 2.719 kB / 444.6 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.2671, allocations: 394.7 kB / 445 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.2671, allocations: 94.83 kB / 445.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/0.2671, allocations: 4 kB / 445.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.2673, allocations: 12.67 kB / 445.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.2674, allocations: 24.72 kB / 445.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.2674, allocations: 9.531 kB / 445.1 MB, free: 33.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.614e-05/0.2675, allocations: 147.7 kB / 445.3 MB, free: 33.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2675, allocations: 0 / 445.3 MB, free: 33.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.2678, allocations: 46.38 kB / 445.3 MB, free: 33.24 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 0.0007312/0.2685, allocations: 0.9176 MB / 446.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004472/0.269, allocations: 209.3 kB / 446.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.269, allocations: 0 / 446.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.2692, allocations: 97.8 kB / 446.5 MB, free: 32.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.2695, allocations: 29.53 kB / 446.6 MB, free: 32.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.272, allocations: 2.655 MB / 449.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.2721, allocations: 0.748 MB / 450 MB, free: 29.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.2722, allocations: 29.62 kB / 450 MB, free: 29.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.916e-05/0.2724, allocations: 76.95 kB / 450.1 MB, free: 29.69 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2724, allocations: 0 / 450.1 MB, free: 29.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.2952, allocations: 4.583 MB / 454.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.264/7.56, allocations: 7.531 kB / 454.7 MB, free: 29.18 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_with_locks_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)