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.0007969/0.0007967, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004966/0.004967, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.344/1.344, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2056/0.2056, allocations: 22.34 MB / 313.8 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002825/0.0002824, allocations: 8 kB / 382.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2563, allocations: 55.97 MB / 438.7 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.001506/0.2578, allocations: 1.562 MB / 440.2 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003377/0.2582, allocations: 183.3 kB / 440.4 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.456e-05/0.2583, allocations: 2.938 kB / 440.4 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.2584, allocations: 26.17 kB / 440.4 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.441e-05/0.2584, allocations: 11.16 kB / 440.5 MB, free: 38.05 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.0001838/0.2586, allocations: 84.3 kB / 440.5 MB, free: 38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001924/0.2588, allocations: 231.6 kB / 440.8 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.259, allocations: 58.17 kB / 440.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.71e-05/0.259, allocations: 64.52 kB / 440.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.407e-05/0.2591, allocations: 87.94 kB / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.2592, allocations: 8.688 kB / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.135e-05/0.2592, allocations: 8.906 kB / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.959e-05/0.2592, allocations: 39.16 kB / 441 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.052e-05/0.2593, allocations: 112.8 kB / 441.1 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.2594, allocations: 168.4 kB / 441.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2594, allocations: 2.969 kB / 441.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2594, allocations: 0 / 441.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2594, allocations: 0 / 441.3 MB, free: 37.62 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.0006159/0.2601, allocations: 481.2 kB / 441.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2601, allocations: 15.39 kB / 441.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.048e-05/0.2602, allocations: 53.72 kB / 441.8 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.059e-05/0.2602, allocations: 23.34 kB / 441.9 MB, free: 37.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.2604, allocations: 249.9 kB / 442.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.2604, allocations: 19.88 kB / 442.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/0.2605, allocations: 22.84 kB / 442.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.2608, allocations: 246.3 kB / 442.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2608, allocations: 3.938 kB / 442.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.2609, allocations: 10.72 kB / 442.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2609, allocations: 5.844 kB / 442.4 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.2612, allocations: 153.9 kB / 442.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.2625, allocations: 1.03 MB / 443.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.2628, allocations: 163.7 kB / 443.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.2629, allocations: 74.09 kB / 443.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.2629, allocations: 2.531 kB / 443.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.278e-05/0.263, allocations: 33.09 kB / 443.9 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.794e-06/0.263, allocations: 7.922 kB / 443.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004796/0.2635, allocations: 246.7 kB / 444.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.13e-05/0.2635, allocations: 58.75 kB / 444.2 MB, free: 35.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.2636, allocations: 210.9 kB / 444.4 MB, free: 35.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.2636, allocations: 29.7 kB / 444.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.844e-05/0.2637, allocations: 158.7 kB / 444.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.793e-05/0.2637, allocations: 74.3 kB / 444.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-05/0.2638, allocations: 46.25 kB / 444.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.643e-05/0.2638, allocations: 331 kB / 445 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.264, allocations: 77.83 kB / 445.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.2642, allocations: 167.7 kB / 445.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.2654, allocations: 498.4 kB / 445.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2654, allocations: 3.969 kB / 445.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004458/0.2659, allocations: 311.9 kB / 446 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.2659, allocations: 5.844 kB / 446 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.2659, allocations: 6.797 kB / 446 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2659, allocations: 6 kB / 446 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002863/0.2662, allocations: 77.98 kB / 446.1 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.2663, allocations: 6.938 kB / 446.1 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.2664, allocations: 41.72 kB / 446.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.2664, allocations: 19.42 kB / 446.2 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.0001672/0.2666, allocations: 152.2 kB / 446.3 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.046e-05/0.2667, allocations: 20.53 kB / 446.4 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004106/0.2671, allocations: 226.8 kB / 446.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2671, allocations: 3 kB / 446.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2671, allocations: 4 kB / 446.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.2671, allocations: 6.062 kB / 446.6 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003784/0.2675, allocations: 318.5 kB / 446.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2675, allocations: 0 / 446.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000308/0.2678, allocations: 57.89 kB / 447 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2678, allocations: 0 / 447 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.2679, allocations: 6.656 kB / 447 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2679, allocations: 2.875 kB / 447 MB, free: 33.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2679, allocations: 3.938 kB / 447 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/0.2684, allocations: 381.2 kB / 447.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.487e-05/0.2684, allocations: 101.4 kB / 447.4 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.2685, allocations: 7.406 kB / 447.5 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.2686, allocations: 17.56 kB / 447.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.577e-05/0.2687, allocations: 28.73 kB / 447.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.2687, allocations: 2.75 kB / 447.5 MB, free: 33.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.403e-05/0.2688, allocations: 149.3 kB / 447.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2688, allocations: 0 / 447.6 MB, free: 33.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000284/0.2691, allocations: 40.56 kB / 447.7 MB, free: 33.25 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.0006096/0.2697, allocations: 0.9211 MB / 448.6 MB, free: 32.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000382/0.2701, allocations: 207.6 kB / 448.8 MB, free: 32.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2701, allocations: 0 / 448.8 MB, free: 32.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.2702, allocations: 94.88 kB / 448.9 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.0003064/0.2706, allocations: 24.78 kB / 448.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.2729, allocations: 2.761 MB / 451.7 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.2731, allocations: 0.7505 MB / 452.4 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.2732, allocations: 27.55 kB / 452.5 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.2733, allocations: 73.61 kB / 452.5 MB, free: 29.63 MB / 350.1 MB Notification: Performance of SimCode: time 1.233e-06/0.2733, allocations: 0 / 452.5 MB, free: 29.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01301/0.2863, allocations: 4.148 MB / 456.7 MB, free: 29.35 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.2865, allocations: 206.9 kB / 456.9 MB, free: 29.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.778/2.065, allocations: 0 / 456.9 MB, free: 29.09 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)