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.0007803/0.0007804, allocations: 92.16 kB / 16.02 MB, free: 80 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.001485/0.001485, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.323/1.323, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2155/0.2155, allocations: 22.33 MB / 314.4 MB, free: 13.04 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 12 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2629, allocations: 55.97 MB / 439.2 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.001552/0.2644, allocations: 1.563 MB / 440.8 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000341/0.2648, allocations: 185.8 kB / 441 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.2e-05/0.2649, allocations: 0 / 441 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.681e-05/0.265, allocations: 25 kB / 441 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.292e-05/0.2651, allocations: 14.12 kB / 441 MB, free: 38.01 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.0001782/0.2653, allocations: 79.34 kB / 441.1 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001948/0.2655, allocations: 231.1 kB / 441.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.2656, allocations: 56.91 kB / 441.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.517e-05/0.2657, allocations: 69.56 kB / 441.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.221e-05/0.2657, allocations: 85.84 kB / 441.5 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.2658, allocations: 8.562 kB / 441.5 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.06e-05/0.2658, allocations: 7.656 kB / 441.5 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.076e-05/0.2658, allocations: 39.67 kB / 441.6 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.174e-05/0.2659, allocations: 105.5 kB / 441.7 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.266, allocations: 132.2 kB / 441.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.266, allocations: 3.328 kB / 441.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.266, allocations: 2.688 kB / 441.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.2661, allocations: 0 / 441.8 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.0006021/0.2667, allocations: 472.8 kB / 442.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.2667, allocations: 11.56 kB / 442.3 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.628e-05/0.2667, allocations: 29.66 kB / 442.3 MB, free: 37.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.2669, allocations: 250 kB / 442.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.267, allocations: 21.25 kB / 442.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.267, allocations: 29.67 kB / 442.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003441/0.2674, allocations: 230.6 kB / 442.8 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2674, allocations: 10.69 kB / 442.8 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.2674, allocations: 10.78 kB / 442.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.2674, allocations: 2.969 kB / 442.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002906/0.2677, allocations: 168 kB / 443 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.269, allocations: 1.027 MB / 444.1 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.2693, allocations: 159.5 kB / 444.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.2694, allocations: 66.52 kB / 444.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.2695, allocations: 2.688 kB / 444.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.2695, allocations: 42.55 kB / 444.3 MB, free: 35.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.703e-06/0.2695, allocations: 0 / 444.3 MB, free: 35.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004743/0.27, allocations: 245.4 kB / 444.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.006e-05/0.27, allocations: 51.41 kB / 444.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.2701, allocations: 215.2 kB / 444.8 MB, free: 35.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.2702, allocations: 29.7 kB / 444.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.984e-05/0.2702, allocations: 158 kB / 445 MB, free: 35.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.2703, allocations: 80.05 kB / 445.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.026e-05/0.2703, allocations: 43.83 kB / 445.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.029e-05/0.2704, allocations: 335.5 kB / 445.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.2705, allocations: 69.48 kB / 445.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.2707, allocations: 169.7 kB / 445.7 MB, free: 34.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.2719, allocations: 492.9 kB / 446.2 MB, free: 34.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.272, allocations: 3.188 kB / 446.2 MB, free: 34.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004371/0.2724, allocations: 312.2 kB / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.2724, allocations: 8.438 kB / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.2724, allocations: 2.906 kB / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.2725, allocations: 3 kB / 446.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/0.2727, allocations: 83.92 kB / 446.6 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.2728, allocations: 4.031 kB / 446.6 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.2729, allocations: 45.34 kB / 446.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.273, allocations: 15.56 kB / 446.6 MB, free: 34.3 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.0001657/0.2731, allocations: 165.7 kB / 446.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.861e-05/0.2732, allocations: 20.66 kB / 446.8 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003923/0.2736, allocations: 233.6 kB / 447 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.2736, allocations: 2.531 kB / 447 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2736, allocations: 0 / 447 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2736, allocations: 0 / 447 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/0.274, allocations: 305.8 kB / 447.3 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.274, allocations: 7.875 kB / 447.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/0.2743, allocations: 56.8 kB / 447.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.2743, allocations: 3.094 kB / 447.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.2743, allocations: 7.469 kB / 447.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2743, allocations: 6.844 kB / 447.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2743, allocations: 0 / 447.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004629/0.2748, allocations: 377.2 kB / 447.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.672e-05/0.2748, allocations: 109.3 kB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.2749, allocations: 3.688 kB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.275, allocations: 17.81 kB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.771e-05/0.2751, allocations: 24.78 kB / 447.9 MB, free: 33.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.2751, allocations: 2.656 kB / 447.9 MB, free: 33.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.933e-05/0.2752, allocations: 149.7 kB / 448.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2752, allocations: 0 / 448.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000284/0.2755, allocations: 41.12 kB / 448.1 MB, free: 33.3 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 8.172e-05/0.2756, allocations: 104.7 kB / 448.2 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003575/0.276, allocations: 209.8 kB / 448.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.276, allocations: 0 / 448.4 MB, free: 33.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.2761, allocations: 99.05 kB / 448.5 MB, free: 33.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.2764, allocations: 31.06 kB / 448.6 MB, free: 33.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000728/0.2772, allocations: 0.6657 MB / 449.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.2773, allocations: 0.7491 MB / 450 MB, free: 31.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.373e-05/0.2774, allocations: 22.09 kB / 450 MB, free: 31.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2774, allocations: 0 / 450 MB, free: 31.95 MB / 350.1 MB Notification: Performance of Templates: time 0.003538/0.281, allocations: 2.65 MB / 452.7 MB, free: 31.75 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)