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.005663/0.005663, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001342/0.001342, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.291/1.291, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1974/0.1974, allocations: 22.35 MB / 313 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001327, allocations: 67.89 kB / 380.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2577, allocations: 54.95 MB / 435.7 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003125/0.2609, allocations: 2.057 MB / 437.8 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.262, allocations: 0.6104 MB / 438.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.2622, allocations: 2.938 kB / 438.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003465/0.2626, allocations: 42.52 kB / 438.4 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001881/0.2628, allocations: 34.56 kB / 438.4 MB, free: 37.79 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.0002717/0.2631, allocations: 115 kB / 438.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003365/0.2634, allocations: 309.6 kB / 438.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.2636, allocations: 86.16 kB / 438.9 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.2638, allocations: 117.9 kB / 439.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.264, allocations: 137.2 kB / 439.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.001e-05/0.264, allocations: 16.28 kB / 439.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.975e-05/0.2641, allocations: 16.09 kB / 439.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.658e-05/0.2642, allocations: 73.12 kB / 439.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.911e-05/0.2643, allocations: 123.4 kB / 439.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.2645, allocations: 188.5 kB / 439.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2645, allocations: 0 / 439.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2645, allocations: 0 / 439.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.2645, allocations: 0 / 439.6 MB, free: 37.26 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.001325/0.2658, allocations: 0.6318 MB / 440.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2659, allocations: 15.38 kB / 440.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.29e-05/0.266, allocations: 30.81 kB / 440.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004548/0.2664, allocations: 306.5 kB / 440.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.2665, allocations: 20.56 kB / 440.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.313e-05/0.2665, allocations: 38.89 kB / 440.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.267, allocations: 295.1 kB / 440.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.267, allocations: 2.594 kB / 440.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.625e-05/0.267, allocations: 14.47 kB / 440.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2671, allocations: 5.656 kB / 440.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/0.2675, allocations: 222.2 kB / 441.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.2692, allocations: 1.186 MB / 442.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003932/0.2696, allocations: 204.6 kB / 442.6 MB, free: 35.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.2698, allocations: 103.5 kB / 442.7 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.2699, allocations: 3.203 kB / 442.7 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.2699, allocations: 38.11 kB / 442.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.2699, allocations: 3.938 kB / 442.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006514/0.2706, allocations: 326.9 kB / 443 MB, free: 35.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.2706, allocations: 62.22 kB / 443.1 MB, free: 35.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/0.2711, allocations: 282 kB / 443.4 MB, free: 34.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.2711, allocations: 29.7 kB / 443.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2712, allocations: 172.9 kB / 443.6 MB, free: 34.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.832e-05/0.2713, allocations: 96.66 kB / 443.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.2714, allocations: 74.55 kB / 443.7 MB, free: 34.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.2716, allocations: 345.8 kB / 444.1 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.2718, allocations: 98.72 kB / 444.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.272, allocations: 179.5 kB / 444.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001861/0.2739, allocations: 0.6126 MB / 444.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.2739, allocations: 6.969 kB / 444.9 MB, free: 33.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006345/0.2745, allocations: 372.5 kB / 445.3 MB, free: 33.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.2746, allocations: 9.25 kB / 445.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.2746, allocations: 2.438 kB / 445.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.2746, allocations: 5.5 kB / 445.3 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.2752, allocations: 109 kB / 445.4 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/0.2752, allocations: 6.594 kB / 445.4 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.2755, allocations: 51.89 kB / 445.5 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.977e-05/0.2756, allocations: 15.53 kB / 445.5 MB, free: 33.6 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.0002098/0.2758, allocations: 163.1 kB / 445.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.484e-05/0.2758, allocations: 35.06 kB / 445.7 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004719/0.2763, allocations: 294.1 kB / 446 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2763, allocations: 2.844 kB / 446 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2763, allocations: 0 / 446 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.2764, allocations: 3.188 kB / 446 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.2768, allocations: 367.8 kB / 446.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2769, allocations: 3.188 kB / 446.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003719/0.2772, allocations: 70.81 kB / 446.4 MB, free: 33.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.2772, allocations: 10.84 kB / 446.4 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-05/0.2773, allocations: 6.969 kB / 446.4 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.2773, allocations: 0 / 446.4 MB, free: 33.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2773, allocations: 3.938 kB / 446.4 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/0.2779, allocations: 492.2 kB / 446.9 MB, free: 32.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.48e-05/0.278, allocations: 104.5 kB / 447 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.278, allocations: 9.953 kB / 447 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.2783, allocations: 28.08 kB / 447.1 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.654e-05/0.2783, allocations: 28.66 kB / 447.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.2784, allocations: 5.531 kB / 447.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000295/0.2787, allocations: 203.9 kB / 447.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2787, allocations: 0 / 447.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003244/0.279, allocations: 56.88 kB / 447.4 MB, free: 32.48 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.0001015/0.2791, allocations: 113.4 kB / 447.5 MB, free: 32.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004583/0.2796, allocations: 265.7 kB / 447.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2796, allocations: 3.25 kB / 447.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.2798, allocations: 135.6 kB / 447.9 MB, free: 32.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.2801, allocations: 31.19 kB / 447.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.2812, allocations: 0.8332 MB / 448.7 MB, free: 31.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2815, allocations: 0.7817 MB / 449.5 MB, free: 31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.2816, allocations: 31.16 kB / 449.5 MB, free: 30.99 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2816, allocations: 0 / 449.5 MB, free: 30.99 MB / 350.1 MB Notification: Performance of Templates: time 0.005438/0.287, allocations: 3.45 MB / 453 MB, free: 30.71 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)