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.005755/0.005755, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001406/0.001406, allocations: 196.2 kB / 16.79 MB, free: 6.254 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.294/1.294, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2037/0.2037, allocations: 22.35 MB / 313 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 75.88 kB / 380.8 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2738, allocations: 54.94 MB / 435.7 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002519/0.2764, allocations: 1.917 MB / 437.6 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003611/0.2768, allocations: 191.3 kB / 437.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.2769, allocations: 2.688 kB / 437.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.277, allocations: 25.7 kB / 437.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.033e-05/0.2771, allocations: 11.3 kB / 437.9 MB, free: 38.07 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.0001972/0.2773, allocations: 82.69 kB / 437.9 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.2775, allocations: 227.8 kB / 438.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.2776, allocations: 57.34 kB / 438.2 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.012e-05/0.2777, allocations: 75.73 kB / 438.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.867e-05/0.2778, allocations: 93.73 kB / 438.4 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/0.2778, allocations: 15.22 kB / 438.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.626e-05/0.2779, allocations: 12.31 kB / 438.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.639e-05/0.2779, allocations: 33.75 kB / 438.4 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.313e-05/0.278, allocations: 85.59 kB / 438.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.2781, allocations: 137.9 kB / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2781, allocations: 0 / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2781, allocations: 3.938 kB / 438.7 MB, free: 37.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2781, allocations: 0 / 438.7 MB, free: 37.68 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.0007518/0.2789, allocations: 0.5046 MB / 439.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.2789, allocations: 12.31 kB / 439.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.581e-05/0.279, allocations: 27.44 kB / 439.2 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.2792, allocations: 247 kB / 439.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.2792, allocations: 19.31 kB / 439.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.091e-05/0.2793, allocations: 25.47 kB / 439.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003597/0.2797, allocations: 246 kB / 439.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2797, allocations: 3.156 kB / 439.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.2797, allocations: 7.938 kB / 439.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2797, allocations: 6.719 kB / 439.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003003/0.28, allocations: 158.4 kB / 439.9 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.2814, allocations: 1.022 MB / 440.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.2817, allocations: 152.8 kB / 441.1 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.2818, allocations: 72.78 kB / 441.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.2818, allocations: 5.719 kB / 441.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.2819, allocations: 37.16 kB / 441.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.2819, allocations: 0 / 441.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005159/0.2824, allocations: 239.5 kB / 441.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.2824, allocations: 54.44 kB / 441.5 MB, free: 35.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.2826, allocations: 212.7 kB / 441.7 MB, free: 35.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.2826, allocations: 36.27 kB / 441.7 MB, free: 35.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.817e-05/0.2827, allocations: 156.4 kB / 441.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.297e-05/0.2827, allocations: 80.53 kB / 441.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.867e-05/0.2828, allocations: 70.16 kB / 442 MB, free: 35.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.033e-05/0.2829, allocations: 335.5 kB / 442.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.283, allocations: 75 kB / 442.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.2832, allocations: 167.2 kB / 442.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.2845, allocations: 476.6 kB / 443 MB, free: 34.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2845, allocations: 0 / 443 MB, free: 34.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000454/0.285, allocations: 316.6 kB / 443.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.285, allocations: 6.312 kB / 443.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.285, allocations: 7.188 kB / 443.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.285, allocations: 6.969 kB / 443.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.2853, allocations: 80.59 kB / 443.4 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.2853, allocations: 9.469 kB / 443.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.2855, allocations: 34.47 kB / 443.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.2855, allocations: 16.38 kB / 443.5 MB, free: 34.32 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.0002315/0.2858, allocations: 147.9 kB / 443.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.186e-05/0.2858, allocations: 26.69 kB / 443.7 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004101/0.2862, allocations: 224.5 kB / 443.9 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.2863, allocations: 6.922 kB / 443.9 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.2863, allocations: 0 / 443.9 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2863, allocations: 4 kB / 443.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003952/0.2867, allocations: 317.5 kB / 444.2 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2867, allocations: 3.938 kB / 444.2 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/0.287, allocations: 56.66 kB / 444.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.287, allocations: 0 / 444.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.287, allocations: 10.17 kB / 444.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.287, allocations: 2.875 kB / 444.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2871, allocations: 0 / 444.3 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.2875, allocations: 382.1 kB / 444.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.661e-05/0.2876, allocations: 101.3 kB / 444.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.2876, allocations: 6.719 kB / 444.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.2878, allocations: 12.56 kB / 444.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.2879, allocations: 25.12 kB / 444.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.2879, allocations: 2.938 kB / 444.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.814e-05/0.288, allocations: 144.6 kB / 445 MB, free: 33.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.288, allocations: 7.938 kB / 445 MB, free: 33.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.2883, allocations: 44.34 kB / 445 MB, free: 33.33 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.001e-05/0.2884, allocations: 104.3 kB / 445.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000378/0.2888, allocations: 211.1 kB / 445.3 MB, free: 33.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2888, allocations: 4.125 kB / 445.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.2889, allocations: 92.41 kB / 445.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.2893, allocations: 30.14 kB / 445.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007881/0.29, allocations: 0.636 MB / 446.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.2902, allocations: 0.7472 MB / 446.8 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.734e-05/0.2903, allocations: 24.94 kB / 446.8 MB, free: 31.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2903, allocations: 4 kB / 446.8 MB, free: 31.97 MB / 350.1 MB Notification: Performance of Templates: time 0.003526/0.2938, allocations: 2.657 MB / 449.5 MB, free: 31.77 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)