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.001168/0.001168, allocations: 113.3 kB / 15.99 MB, free: 6.348 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.00124/0.00124, allocations: 192 kB / 16.91 MB, free: 6.188 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.204/1.204, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08473/0.08473, allocations: 22.33 MB / 313.1 MB, free: 9.129 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 65.62 kB / 380.9 MB, free: 41.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06949/0.07064, allocations: 54.96 MB / 435.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.00284/0.07351, allocations: 2.051 MB / 437.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008638/0.07439, allocations: 0.6079 MB / 438.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.125e-05/0.07449, allocations: 0 / 438.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002574/0.07476, allocations: 39.66 kB / 438.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.0749, allocations: 39.77 kB / 438.6 MB, free: 10.74 MB / 318.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.0002152/0.07513, allocations: 111.8 kB / 438.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002954/0.07543, allocations: 328 kB / 439 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.0756, allocations: 94.27 kB / 439.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.07573, allocations: 119.5 kB / 439.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001678/0.07591, allocations: 159.3 kB / 439.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.987e-05/0.07596, allocations: 24 kB / 439.4 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.465e-05/0.076, allocations: 28 kB / 439.5 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.78e-05/0.07609, allocations: 83.73 kB / 439.5 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.904e-05/0.07619, allocations: 131.2 kB / 439.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.07637, allocations: 203.9 kB / 439.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.07638, allocations: 0 / 439.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.07639, allocations: 0 / 439.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.0764, allocations: 0 / 439.9 MB, free: 9.484 MB / 318.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.001166/0.07757, allocations: 0.6238 MB / 440.5 MB, free: 8.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.07761, allocations: 8.031 kB / 440.5 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.083e-05/0.07767, allocations: 32.56 kB / 440.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/0.07811, allocations: 303.3 kB / 440.8 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.07814, allocations: 20.94 kB / 440.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.0782, allocations: 40.36 kB / 440.9 MB, free: 8.379 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.07865, allocations: 298.6 kB / 441.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.07867, allocations: 3.938 kB / 441.2 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.07871, allocations: 15.98 kB / 441.2 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.07872, allocations: 4 kB / 441.2 MB, free: 8.047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003844/0.07911, allocations: 218.1 kB / 441.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.08083, allocations: 1.191 MB / 442.6 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003875/0.08123, allocations: 205.2 kB / 442.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.08139, allocations: 101.2 kB / 442.9 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.08144, allocations: 8.234 kB / 442.9 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.08146, allocations: 34.73 kB / 442.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.362e-06/0.08147, allocations: 0 / 442.9 MB, free: 6.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005805/0.08205, allocations: 325.4 kB / 443.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.08209, allocations: 59.41 kB / 443.3 MB, free: 5.828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000377/0.08247, allocations: 282.4 kB / 443.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.08251, allocations: 37.7 kB / 443.6 MB, free: 5.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.525e-05/0.08261, allocations: 168.4 kB / 443.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.639e-05/0.08268, allocations: 102.5 kB / 443.9 MB, free: 5.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.08278, allocations: 78.06 kB / 444 MB, free: 5.141 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.0829, allocations: 338.8 kB / 444.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001712/0.08308, allocations: 100.7 kB / 444.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.08332, allocations: 184.7 kB / 444.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.08503, allocations: 0.6182 MB / 445.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.08505, allocations: 0 / 445.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005295/0.08558, allocations: 372.2 kB / 445.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.0856, allocations: 8.25 kB / 445.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.08562, allocations: 8 kB / 445.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.08563, allocations: 4 kB / 445.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005563/0.08619, allocations: 103.8 kB / 445.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.08621, allocations: 4 kB / 445.7 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.08647, allocations: 47.66 kB / 445.7 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.08651, allocations: 16 kB / 445.8 MB, free: 3.277 MB / 318.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.0001719/0.08668, allocations: 170 kB / 445.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.044e-05/0.08674, allocations: 27.66 kB / 445.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004728/0.08722, allocations: 300.3 kB / 446.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.08723, allocations: 3.984 kB / 446.2 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.08724, allocations: 4 kB / 446.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.08725, allocations: 0 / 446.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004839/0.08774, allocations: 373.3 kB / 446.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.08775, allocations: 0 / 446.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.08813, allocations: 71.91 kB / 446.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.08814, allocations: 7.922 kB / 446.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.08817, allocations: 8 kB / 446.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.08818, allocations: 0 / 446.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.08819, allocations: 4 kB / 446.7 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005892/0.08878, allocations: 491.9 kB / 447.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.205e-05/0.08885, allocations: 108.7 kB / 447.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.0889, allocations: 8 kB / 447.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.08916, allocations: 23.97 kB / 447.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/0.08922, allocations: 19.97 kB / 447.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.08924, allocations: 15.92 kB / 447.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002886/0.08954, allocations: 201.9 kB / 447.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08955, allocations: 0 / 447.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.08984, allocations: 63.84 kB / 447.6 MB, free: 1.316 MB / 318.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 8.552e-05/0.08993, allocations: 103.2 kB / 447.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004745/0.09041, allocations: 287.6 kB / 448 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09042, allocations: 0 / 448 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.0906, allocations: 137 kB / 448.1 MB, free: 0.793 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.09094, allocations: 43.03 kB / 448.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.09204, allocations: 0.8253 MB / 449 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.09233, allocations: 0.7792 MB / 449.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.603e-05/0.09243, allocations: 31.44 kB / 449.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09244, allocations: 0 / 449.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Templates: time 0.004513/0.09696, allocations: 3.448 MB / 453.3 MB, free: 11.61 MB / 334.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)