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.001441/0.001442, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001756/0.001756, allocations: 196 kB / 16.14 MB, free: 6.711 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.327/1.327, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1977/0.1977, allocations: 22.35 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 59.91 kB / 380.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2711, allocations: 54.94 MB / 435 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002613/0.2737, allocations: 1.911 MB / 437 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003646/0.2741, allocations: 189.1 kB / 437.1 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.519e-05/0.2742, allocations: 6.188 kB / 437.1 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.2743, allocations: 29.8 kB / 437.2 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-05/0.2744, allocations: 11.88 kB / 437.2 MB, free: 38.13 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.0001809/0.2746, allocations: 84.67 kB / 437.3 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.2748, allocations: 221 kB / 437.5 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.2749, allocations: 61.55 kB / 437.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.986e-05/0.275, allocations: 75.64 kB / 437.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.974e-05/0.2751, allocations: 90.33 kB / 437.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.2751, allocations: 9.75 kB / 437.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.628e-05/0.2752, allocations: 10.97 kB / 437.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.476e-05/0.2752, allocations: 43.14 kB / 437.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.268e-05/0.2753, allocations: 83.73 kB / 437.9 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.2754, allocations: 183 kB / 438 MB, free: 37.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2754, allocations: 3.938 kB / 438 MB, free: 37.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2754, allocations: 2.625 kB / 438 MB, free: 37.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.2754, allocations: 4 kB / 438 MB, free: 37.71 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.0006834/0.2761, allocations: 0.5035 MB / 438.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.2762, allocations: 12.16 kB / 438.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.936e-05/0.2762, allocations: 26.09 kB / 438.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.2764, allocations: 242.4 kB / 438.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.2764, allocations: 23.03 kB / 438.8 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.2765, allocations: 27.67 kB / 438.9 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.2769, allocations: 239.8 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2769, allocations: 192 / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.2769, allocations: 14.81 kB / 439.1 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.2769, allocations: 6 kB / 439.1 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002925/0.2772, allocations: 159.1 kB / 439.3 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.2785, allocations: 1.034 MB / 440.3 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.2788, allocations: 153.8 kB / 440.5 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.2789, allocations: 72.64 kB / 440.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.279, allocations: 3.188 kB / 440.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.367e-05/0.279, allocations: 34.5 kB / 440.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.253e-06/0.279, allocations: 0 / 440.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004799/0.2795, allocations: 240.9 kB / 440.8 MB, free: 35.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/0.2795, allocations: 54.41 kB / 440.9 MB, free: 35.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.2797, allocations: 218.2 kB / 441.1 MB, free: 35.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.2797, allocations: 29.7 kB / 441.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.891e-05/0.2797, allocations: 152.8 kB / 441.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.2798, allocations: 81.72 kB / 441.3 MB, free: 35.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.798e-05/0.2799, allocations: 70 kB / 441.4 MB, free: 35.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.335e-05/0.2799, allocations: 335.2 kB / 441.7 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.2801, allocations: 80.52 kB / 441.8 MB, free: 34.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.2802, allocations: 162.5 kB / 442 MB, free: 34.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.2815, allocations: 479.1 kB / 442.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2815, allocations: 3.938 kB / 442.4 MB, free: 34.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004279/0.2819, allocations: 310.2 kB / 442.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2819, allocations: 7.562 kB / 442.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.282, allocations: 2.594 kB / 442.7 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.282, allocations: 5.031 kB / 442.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.2823, allocations: 78.53 kB / 442.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.2823, allocations: 6.578 kB / 442.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001544/0.2824, allocations: 45.36 kB / 442.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.2825, allocations: 9.875 kB / 442.9 MB, free: 34.36 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.0002061/0.2827, allocations: 150.2 kB / 443 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/0.2827, allocations: 23.47 kB / 443.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003989/0.2831, allocations: 235 kB / 443.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2831, allocations: 0 / 443.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2832, allocations: 3.031 kB / 443.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2832, allocations: 0 / 443.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003712/0.2835, allocations: 311.5 kB / 443.6 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2836, allocations: 7.875 kB / 443.6 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003045/0.2839, allocations: 58.2 kB / 443.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2839, allocations: 2.844 kB / 443.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.2839, allocations: 6.594 kB / 443.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.2839, allocations: 4 kB / 443.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2839, allocations: 0 / 443.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004686/0.2844, allocations: 381.9 kB / 444 MB, free: 33.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.2844, allocations: 98.64 kB / 444.1 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.2845, allocations: 11.03 kB / 444.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.2846, allocations: 9 kB / 444.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.2847, allocations: 26.23 kB / 444.2 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.2847, allocations: 7.297 kB / 444.2 MB, free: 33.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.603e-05/0.2848, allocations: 148.6 kB / 444.3 MB, free: 33.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2848, allocations: 2.906 kB / 444.3 MB, free: 33.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002789/0.2851, allocations: 42.41 kB / 444.4 MB, free: 33.36 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.138e-05/0.2852, allocations: 104.7 kB / 444.5 MB, free: 33.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003507/0.2855, allocations: 213 kB / 444.7 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2855, allocations: 0 / 444.7 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.2857, allocations: 95.36 kB / 444.8 MB, free: 33.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.286, allocations: 32.7 kB / 444.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007594/0.2868, allocations: 0.6081 MB / 445.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/0.287, allocations: 0.7528 MB / 446.2 MB, free: 32.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.2871, allocations: 27.59 kB / 446.2 MB, free: 32.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.2872, allocations: 24.86 kB / 446.2 MB, free: 32.03 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2872, allocations: 0 / 446.2 MB, free: 32.03 MB / 350.1 MB Notification: Performance of Templates: time 0.004145/0.2913, allocations: 1.842 MB / 448.1 MB, free: 31.88 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)