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.0008341/0.0008342, allocations: 90.36 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.005452/0.005452, allocations: 170.7 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.425/1.425, 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.2128/0.2128, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.000296, allocations: 8 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3275, allocations: 55.98 MB / 438.6 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.001562/0.3291, allocations: 1.574 MB / 440.1 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003463/0.3295, allocations: 189.3 kB / 440.3 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.3296, allocations: 0 / 440.3 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001072/0.3297, allocations: 25.69 kB / 440.3 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.556e-05/0.3298, allocations: 10.62 kB / 440.4 MB, free: 38.11 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.0001954/0.33, allocations: 78.86 kB / 440.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.3302, allocations: 236.5 kB / 440.7 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.3304, allocations: 54.55 kB / 440.7 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.834e-05/0.3304, allocations: 64.17 kB / 440.8 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.781e-05/0.3305, allocations: 81.89 kB / 440.9 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.3306, allocations: 10.5 kB / 440.9 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.111e-05/0.3306, allocations: 8.562 kB / 440.9 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.078e-05/0.3306, allocations: 43.56 kB / 440.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.84e-05/0.3307, allocations: 107.5 kB / 441 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.3309, allocations: 179.2 kB / 441.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3309, allocations: 0 / 441.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3309, allocations: 0 / 441.2 MB, free: 37.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.3309, allocations: 0 / 441.2 MB, free: 37.69 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.0006514/0.3315, allocations: 476.5 kB / 441.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3316, allocations: 17.47 kB / 441.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.3316, allocations: 25.91 kB / 441.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.3318, allocations: 244 kB / 442 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.721e-05/0.3319, allocations: 20.69 kB / 442 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.498e-05/0.3319, allocations: 23.06 kB / 442 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.3323, allocations: 244 kB / 442.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3323, allocations: 192 / 442.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.3324, allocations: 10.81 kB / 442.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3324, allocations: 5.438 kB / 442.2 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.3327, allocations: 158.6 kB / 442.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3342, allocations: 1.036 MB / 443.4 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.3344, allocations: 152.8 kB / 443.6 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.3346, allocations: 69.55 kB / 443.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.3346, allocations: 2.719 kB / 443.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.591e-05/0.3347, allocations: 34.56 kB / 443.7 MB, free: 35.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.272e-06/0.3347, allocations: 3.938 kB / 443.7 MB, free: 35.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005256/0.3352, allocations: 242.4 kB / 443.9 MB, free: 35.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.3352, allocations: 62.16 kB / 444 MB, free: 35.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.3354, allocations: 217.3 kB / 444.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.3354, allocations: 29.7 kB / 444.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.32e-05/0.3355, allocations: 158.2 kB / 444.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.563e-05/0.3356, allocations: 74.06 kB / 444.5 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.77e-05/0.3356, allocations: 42.27 kB / 444.5 MB, free: 35.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.558e-05/0.3357, allocations: 334.9 kB / 444.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.3358, allocations: 70.11 kB / 444.9 MB, free: 34.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.336, allocations: 174.9 kB / 445.1 MB, free: 34.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.3374, allocations: 491.9 kB / 445.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3374, allocations: 2.969 kB / 445.6 MB, free: 34.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004603/0.3379, allocations: 306.8 kB / 445.9 MB, free: 34.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.3379, allocations: 13.36 kB / 445.9 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3379, allocations: 3.094 kB / 445.9 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3379, allocations: 5.656 kB / 445.9 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.3382, allocations: 77.27 kB / 445.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3382, allocations: 10.11 kB / 446 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.3384, allocations: 41.28 kB / 446 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.3384, allocations: 15.81 kB / 446 MB, free: 34.38 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.0001787/0.3386, allocations: 152.8 kB / 446.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.3386, allocations: 24.58 kB / 446.2 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004214/0.3391, allocations: 226.6 kB / 446.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.3391, allocations: 7.781 kB / 446.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3391, allocations: 0 / 446.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.3391, allocations: 3.375 kB / 446.4 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003999/0.3395, allocations: 312.2 kB / 446.7 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3395, allocations: 7.938 kB / 446.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.3398, allocations: 52.17 kB / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.3398, allocations: 3.844 kB / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.3399, allocations: 6.969 kB / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3399, allocations: 2.969 kB / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3399, allocations: 0 / 446.8 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005038/0.3404, allocations: 382.5 kB / 447.2 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.713e-05/0.3404, allocations: 113.7 kB / 447.3 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.3405, allocations: 2.875 kB / 447.3 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.3406, allocations: 15.75 kB / 447.3 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.298e-05/0.3407, allocations: 22.36 kB / 447.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.3407, allocations: 5.781 kB / 447.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.794e-05/0.3408, allocations: 148.1 kB / 447.5 MB, free: 33.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3408, allocations: 4 kB / 447.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002806/0.3411, allocations: 44.09 kB / 447.5 MB, free: 33.37 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 9.483e-05/0.3412, allocations: 105.2 kB / 447.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.3416, allocations: 204.9 kB / 447.8 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3416, allocations: 4 kB / 447.8 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.3418, allocations: 99.08 kB / 447.9 MB, free: 33.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.3421, allocations: 34.39 kB / 448 MB, free: 33.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008014/0.3429, allocations: 0.6333 MB / 448.6 MB, free: 32.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.3431, allocations: 0.746 MB / 449.3 MB, free: 32.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.3432, allocations: 28.91 kB / 449.4 MB, free: 32.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.251e-05/0.3433, allocations: 26.25 kB / 449.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3433, allocations: 0 / 449.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of Templates: time 0.004358/0.3477, allocations: 1.812 MB / 451.2 MB, free: 31.91 MB / 350.1 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)