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.001093/0.001093, allocations: 108 kB / 15.61 MB, free: 152 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.00111/0.00111, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.227/0.227, allocations: 22.34 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.91 kB / 380.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3239, allocations: 54.95 MB / 435.8 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002586/0.3265, allocations: 1.867 MB / 437.6 MB, free: 38.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003714/0.3269, allocations: 189.2 kB / 437.8 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.934e-05/0.327, allocations: 6.594 kB / 437.8 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.3271, allocations: 40.5 kB / 437.9 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.395e-05/0.3272, allocations: 11.81 kB / 437.9 MB, free: 38.24 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.0001855/0.3274, allocations: 92.02 kB / 438 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.3276, allocations: 243.2 kB / 438.2 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.3277, allocations: 60.16 kB / 438.3 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.182e-05/0.3278, allocations: 83.91 kB / 438.3 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.289e-05/0.3279, allocations: 90.58 kB / 438.4 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.3279, allocations: 20.62 kB / 438.4 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.777e-05/0.3279, allocations: 21.34 kB / 438.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.933e-05/0.328, allocations: 59.02 kB / 438.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.926e-05/0.328, allocations: 94.08 kB / 438.6 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.3282, allocations: 186.4 kB / 438.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3282, allocations: 6.562 kB / 438.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3282, allocations: 0 / 438.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.3282, allocations: 0 / 438.8 MB, free: 37.77 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.0006372/0.3289, allocations: 0.5003 MB / 439.3 MB, free: 37.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.78e-05/0.3289, allocations: 8.406 kB / 439.3 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.3289, allocations: 25.25 kB / 439.3 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3291, allocations: 244.2 kB / 439.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.3292, allocations: 19.03 kB / 439.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.3292, allocations: 27.66 kB / 439.6 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003312/0.3295, allocations: 235 kB / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3296, allocations: 192 / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.3296, allocations: 15.03 kB / 439.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.3296, allocations: 6.781 kB / 439.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/0.3299, allocations: 160.3 kB / 440 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.3312, allocations: 1.026 MB / 441.1 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.3314, allocations: 158.3 kB / 441.2 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.3316, allocations: 69.89 kB / 441.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.3316, allocations: 2.938 kB / 441.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.387e-05/0.3316, allocations: 37.53 kB / 441.3 MB, free: 35.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.3316, allocations: 0 / 441.3 MB, free: 35.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004634/0.3321, allocations: 246.2 kB / 441.6 MB, free: 35.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.217e-05/0.3321, allocations: 51.41 kB / 441.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.3323, allocations: 224 kB / 441.8 MB, free: 35.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.3323, allocations: 32.55 kB / 441.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.3324, allocations: 151.5 kB / 442 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.79e-05/0.3324, allocations: 75.19 kB / 442.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.646e-05/0.3325, allocations: 76.3 kB / 442.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.08e-05/0.3325, allocations: 343.2 kB / 442.5 MB, free: 35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.3327, allocations: 76.91 kB / 442.6 MB, free: 34.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.3329, allocations: 173 kB / 442.7 MB, free: 34.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.3341, allocations: 473.9 kB / 443.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3341, allocations: 0 / 443.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004644/0.3346, allocations: 309.2 kB / 443.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3346, allocations: 9.094 kB / 443.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3346, allocations: 5.125 kB / 443.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.3347, allocations: 2.5 kB / 443.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000286/0.335, allocations: 80.28 kB / 443.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.335, allocations: 5.562 kB / 443.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.3351, allocations: 38.47 kB / 443.6 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.3352, allocations: 16.97 kB / 443.7 MB, free: 34.41 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.0002205/0.3354, allocations: 161.1 kB / 443.8 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.3354, allocations: 24.41 kB / 443.8 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004129/0.3359, allocations: 222.8 kB / 444.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3359, allocations: 3.969 kB / 444.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3359, allocations: 0 / 444.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3359, allocations: 3.281 kB / 444.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003987/0.3363, allocations: 309.7 kB / 444.4 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3363, allocations: 3.938 kB / 444.4 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002985/0.3366, allocations: 63.97 kB / 444.4 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3366, allocations: 0 / 444.4 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.3367, allocations: 6.812 kB / 444.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3367, allocations: 0 / 444.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3367, allocations: 2.938 kB / 444.4 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000475/0.3371, allocations: 384.4 kB / 444.8 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.59e-05/0.3372, allocations: 98.83 kB / 444.9 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.3372, allocations: 11.03 kB / 444.9 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.3374, allocations: 11.91 kB / 444.9 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/0.3374, allocations: 25.64 kB / 445 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.3375, allocations: 6.875 kB / 445 MB, free: 33.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.248e-05/0.3375, allocations: 146.1 kB / 445.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3375, allocations: 0 / 445.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.3378, allocations: 45.03 kB / 445.2 MB, free: 33.41 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 7.903e-05/0.3379, allocations: 111.8 kB / 445.3 MB, free: 33.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004102/0.3383, allocations: 216.9 kB / 445.5 MB, free: 33.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3383, allocations: 0.75 kB / 445.5 MB, free: 33.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.3385, allocations: 95.09 kB / 445.6 MB, free: 33.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3388, allocations: 28.67 kB / 445.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007893/0.3396, allocations: 0.534 MB / 446.1 MB, free: 32.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.3398, allocations: 0.7482 MB / 446.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.3399, allocations: 27.27 kB / 446.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.436e-05/0.34, allocations: 32.48 kB / 446.9 MB, free: 32.15 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.34, allocations: 0 / 446.9 MB, free: 32.15 MB / 350.1 MB Notification: Performance of Templates: time 0.004406/0.3444, allocations: 2.071 MB / 449 MB, free: 32 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)