Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.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.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") translateModel(AES.Coursework.Tuning_brushup.Two_PIs_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009505/0.0009506, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008259/0.008259, allocations: 169.9 kB / 16.27 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.397/1.397, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2503/0.2503, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003223, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.353, allocations: 55.98 MB / 438.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002204/0.3552, allocations: 1.701 MB / 440.3 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.3564, allocations: 0.6038 MB / 440.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.3566, allocations: 3.938 kB / 440.9 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003209/0.3569, allocations: 38.16 kB / 440.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.3571, allocations: 35.5 kB / 441 MB, free: 37.66 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.0002325/0.3573, allocations: 111.3 kB / 441.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.3576, allocations: 313.2 kB / 441.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.3578, allocations: 95.64 kB / 441.5 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.358, allocations: 91.34 kB / 441.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.3581, allocations: 132.2 kB / 441.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.348e-05/0.3582, allocations: 10.91 kB / 441.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.672e-05/0.3582, allocations: 10.81 kB / 441.7 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.199e-05/0.3583, allocations: 63.8 kB / 441.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.549e-05/0.3584, allocations: 141.2 kB / 441.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.3586, allocations: 243.8 kB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3586, allocations: 0 / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3586, allocations: 0 / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.902e-06/0.3586, allocations: 0 / 442.1 MB, free: 37.11 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001113/0.3598, allocations: 0.5919 MB / 442.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3598, allocations: 12.56 kB / 442.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.3599, allocations: 33.12 kB / 442.8 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.3603, allocations: 295.1 kB / 443.1 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.3603, allocations: 26.69 kB / 443.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.404e-05/0.3604, allocations: 32.36 kB / 443.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004303/0.3608, allocations: 299.8 kB / 443.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.3608, allocations: 6.344 kB / 443.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/0.3609, allocations: 10.5 kB / 443.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.3609, allocations: 9.797 kB / 443.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003745/0.3613, allocations: 222.2 kB / 443.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.363, allocations: 1.196 MB / 444.9 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004056/0.3634, allocations: 204.6 kB / 445.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.3635, allocations: 99.83 kB / 445.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.3636, allocations: 8.047 kB / 445.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.3636, allocations: 38.73 kB / 445.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.3636, allocations: 0 / 445.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006001/0.3642, allocations: 319.5 kB / 445.5 MB, free: 34.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.3643, allocations: 60.92 kB / 445.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003835/0.3647, allocations: 282.8 kB / 445.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.3647, allocations: 33.7 kB / 445.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.062e-05/0.3648, allocations: 173.3 kB / 446 MB, free: 34.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.3648, allocations: 95.66 kB / 446.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.329e-05/0.3649, allocations: 51.84 kB / 446.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.264e-05/0.365, allocations: 341.8 kB / 446.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.3651, allocations: 94.39 kB / 446.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.3653, allocations: 185 kB / 446.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/0.3672, allocations: 0.64 MB / 447.4 MB, free: 33.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3672, allocations: 2.938 kB / 447.4 MB, free: 33.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005107/0.3678, allocations: 366 kB / 447.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3678, allocations: 11.88 kB / 447.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3678, allocations: 3.25 kB / 447.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3678, allocations: 9.844 kB / 447.8 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005956/0.3684, allocations: 105 kB / 447.9 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3685, allocations: 6.625 kB / 447.9 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.3687, allocations: 60.05 kB / 448 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.3688, allocations: 8.719 kB / 448 MB, free: 33.48 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: y_filter.y:VARIABLE(flow=false start = y_filter.y_start fixed = true ) "Connector of Real output signal" type: Real Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 9 (not1.y,PI_2.LOsat,PI_2.HIsat,PI_1.LOsat,PI_1.HIsat,PI_2.iNoDec,PI_2.iNoInc,PI_1.iNoDec,PI_1.iNoInc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0001887/0.369, allocations: 164.6 kB / 448.2 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.1e-05/0.369, allocations: 34.78 kB / 448.2 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004766/0.3695, allocations: 293.4 kB / 448.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3695, allocations: 2.969 kB / 448.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3695, allocations: 0 / 448.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3695, allocations: 3.047 kB / 448.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005723/0.3701, allocations: 380.8 kB / 448.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3701, allocations: 0 / 448.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000348/0.3705, allocations: 71.23 kB / 448.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3705, allocations: 6.938 kB / 448.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.3705, allocations: 6.281 kB / 448.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3705, allocations: 3.562 kB / 448.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3705, allocations: 0 / 448.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005611/0.3711, allocations: 484.8 kB / 449.4 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.698e-05/0.3712, allocations: 109.3 kB / 449.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.192e-05/0.3712, allocations: 14.12 kB / 449.5 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.3715, allocations: 20.45 kB / 449.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.182e-05/0.3715, allocations: 25.7 kB / 449.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/0.3716, allocations: 9.812 kB / 449.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002789/0.3718, allocations: 202.6 kB / 449.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3719, allocations: 2.875 kB / 449.8 MB, free: 32.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.3722, allocations: 61.47 kB / 449.9 MB, free: 32.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (PI_1.xfb,PI_1.xBias,PI_1.u,PI_1.csfil,PI_2.xfb,PI_2.xBias,PI_2.u,PI_2.csfil,Process.x_scaled[1],Process.x_scaled[2],y_filter.y) * Number of discrete variables: 5 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * 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 0.0001049/0.3723, allocations: 103.1 kB / 450 MB, free: 32.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004323/0.3727, allocations: 269 kB / 450.2 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3727, allocations: 64 / 450.2 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.3729, allocations: 139.5 kB / 450.4 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.3733, allocations: 42.31 kB / 450.4 MB, free: 32.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.3744, allocations: 0.8273 MB / 451.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000201/0.3746, allocations: 0.7863 MB / 452 MB, free: 30.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.3747, allocations: 46.23 kB / 452.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.211e-05/0.3748, allocations: 24.47 kB / 452.1 MB, free: 30.9 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3748, allocations: 0 / 452.1 MB, free: 30.9 MB / 350.1 MB Notification: Performance of Templates: time 0.005277/0.3801, allocations: 2.339 MB / 454.4 MB, free: 30.74 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.makefile (rm -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.sim & ./AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1)