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.001117/0.001118, allocations: 108 kB / 15.6 MB, free: 132 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.001107/0.001107, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1866/0.1866, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 63.89 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2438, allocations: 54.94 MB / 435.9 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002455/0.2462, allocations: 1.874 MB / 437.8 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003585/0.2466, allocations: 187.9 kB / 437.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.706e-05/0.2467, allocations: 0 / 437.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.2469, allocations: 40.92 kB / 438 MB, free: 38.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.618e-05/0.2469, allocations: 14.31 kB / 438 MB, free: 38.41 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.000188/0.2471, allocations: 96.16 kB / 438.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002/0.2473, allocations: 242.4 kB / 438.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2475, allocations: 55.17 kB / 438.4 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.243e-05/0.2475, allocations: 85.28 kB / 438.5 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.216e-05/0.2476, allocations: 90.59 kB / 438.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.2477, allocations: 23.53 kB / 438.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.72e-05/0.2477, allocations: 18.84 kB / 438.6 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.729e-05/0.2477, allocations: 59.47 kB / 438.6 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.84e-05/0.2478, allocations: 93.22 kB / 438.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.2479, allocations: 186.6 kB / 438.9 MB, free: 37.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2479, allocations: 0 / 438.9 MB, free: 37.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.248, allocations: 0 / 438.9 MB, free: 37.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.248, allocations: 0 / 438.9 MB, free: 37.94 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.0006431/0.2486, allocations: 0.5043 MB / 439.4 MB, free: 37.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.2487, allocations: 11 kB / 439.4 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.066e-05/0.2487, allocations: 51.2 kB / 439.5 MB, free: 37.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.505e-05/0.2487, allocations: 29.59 kB / 439.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.2489, allocations: 239 kB / 439.7 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.249, allocations: 17.12 kB / 439.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.249, allocations: 32.47 kB / 439.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.2494, allocations: 235.1 kB / 440 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2494, allocations: 6.594 kB / 440 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.2494, allocations: 8 kB / 440 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.2494, allocations: 5.094 kB / 440 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.2497, allocations: 158.8 kB / 440.2 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.251, allocations: 1.033 MB / 441.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002543/0.2513, allocations: 155.8 kB / 441.4 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.2514, allocations: 72.5 kB / 441.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.2514, allocations: 5.812 kB / 441.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.16e-05/0.2515, allocations: 33.34 kB / 441.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.2515, allocations: 0 / 441.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004815/0.252, allocations: 242.8 kB / 441.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.866e-05/0.252, allocations: 54.47 kB / 441.8 MB, free: 35.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.2521, allocations: 225.1 kB / 442 MB, free: 35.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.2521, allocations: 29.7 kB / 442 MB, free: 35.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.2522, allocations: 150.6 kB / 442.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.2522, allocations: 84.38 kB / 442.3 MB, free: 35.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/0.2523, allocations: 74.64 kB / 442.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.387e-05/0.2524, allocations: 333 kB / 442.7 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.2525, allocations: 75.42 kB / 442.7 MB, free: 35.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.2527, allocations: 170.9 kB / 442.9 MB, free: 34.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.2539, allocations: 476.8 kB / 443.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2539, allocations: 2.625 kB / 443.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004308/0.2544, allocations: 308.5 kB / 443.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.2544, allocations: 5.688 kB / 443.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2544, allocations: 2.906 kB / 443.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.2544, allocations: 5.781 kB / 443.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/0.2547, allocations: 77.98 kB / 443.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.2548, allocations: 17.17 kB / 443.8 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.2549, allocations: 37.62 kB / 443.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.255, allocations: 15.88 kB / 443.8 MB, free: 34.53 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.0001601/0.2551, allocations: 148.1 kB / 444 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.265e-05/0.2552, allocations: 24.44 kB / 444 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003871/0.2556, allocations: 225 kB / 444.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2556, allocations: 6.578 kB / 444.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2556, allocations: 3.031 kB / 444.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2556, allocations: 0 / 444.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.256, allocations: 310.7 kB / 444.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.256, allocations: 2.844 kB / 444.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.2563, allocations: 58.03 kB / 444.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2563, allocations: 2.969 kB / 444.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.2563, allocations: 14.84 kB / 444.6 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2563, allocations: 0 / 444.6 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2563, allocations: 0 / 444.6 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004674/0.2568, allocations: 390.8 kB / 445 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.098e-05/0.2569, allocations: 97.94 kB / 445.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/0.2569, allocations: 7.938 kB / 445.1 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.2571, allocations: 16.97 kB / 445.1 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.068e-05/0.2571, allocations: 24.81 kB / 445.1 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.2571, allocations: 5.25 kB / 445.1 MB, free: 33.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.606e-05/0.2572, allocations: 148.9 kB / 445.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2572, allocations: 0 / 445.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002892/0.2575, allocations: 43.34 kB / 445.3 MB, free: 33.53 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.0005947/0.2581, allocations: 0.9176 MB / 446.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003829/0.2585, allocations: 211.5 kB / 446.4 MB, free: 32.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2585, allocations: 0.75 kB / 446.4 MB, free: 32.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.2587, allocations: 97.42 kB / 446.5 MB, free: 32.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.259, allocations: 35.44 kB / 446.6 MB, free: 32.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.2613, allocations: 2.659 MB / 449.2 MB, free: 30.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.2614, allocations: 0.7495 MB / 450 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.2615, allocations: 27.17 kB / 450 MB, free: 30.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.877e-05/0.2616, allocations: 71.36 kB / 450.1 MB, free: 29.97 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2616, allocations: 6.656 kB / 450.1 MB, free: 29.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01958/0.2812, allocations: 4.568 MB / 454.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.225/7.507, allocations: 7.75 kB / 454.7 MB, free: 29.46 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_with_locks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)