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.001097/0.001097, allocations: 100.9 kB / 15.05 MB, free: 1.105 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.001238/0.001238, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2071/0.2071, allocations: 22.33 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.0004343, allocations: 11.98 kB / 381.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3511, allocations: 55.97 MB / 437.8 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.001866/0.353, allocations: 1.664 MB / 439.5 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008437/0.3538, allocations: 0.5812 MB / 440 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.3539, allocations: 6.312 kB / 440.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002727/0.3542, allocations: 36.75 kB / 440.1 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.3544, allocations: 40.17 kB / 440.1 MB, free: 37.56 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.0002129/0.3546, allocations: 88.27 kB / 440.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.3548, allocations: 193 kB / 440.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.355, allocations: 66.67 kB / 440.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.3551, allocations: 107 kB / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.3553, allocations: 123 kB / 440.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.361e-05/0.3554, allocations: 10.59 kB / 440.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.873e-05/0.3554, allocations: 10.91 kB / 440.7 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.678e-05/0.3555, allocations: 57.48 kB / 440.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.436e-05/0.3555, allocations: 64.02 kB / 440.8 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.3557, allocations: 192 kB / 441 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.3557, allocations: 0 / 441 MB, free: 37.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3557, allocations: 0 / 441 MB, free: 37.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.3557, allocations: 0 / 441 MB, free: 37.18 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.001102/0.3568, allocations: 0.5808 MB / 441.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.3569, allocations: 8.75 kB / 441.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.891e-05/0.3569, allocations: 31.88 kB / 441.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004286/0.3574, allocations: 304.9 kB / 441.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.3574, allocations: 20 kB / 442 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.3575, allocations: 36.12 kB / 442 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004607/0.3579, allocations: 292.1 kB / 442.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.358, allocations: 3.953 kB / 442.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.358, allocations: 10.78 kB / 442.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.358, allocations: 9.438 kB / 442.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004171/0.3584, allocations: 220.7 kB / 442.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.3602, allocations: 1.193 MB / 443.7 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.3606, allocations: 208.8 kB / 443.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.3607, allocations: 3.141 kB / 443.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.3607, allocations: 38.8 kB / 444 MB, free: 35.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.483e-06/0.3607, allocations: 2.875 kB / 444 MB, free: 35.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.00059/0.3613, allocations: 319.2 kB / 444.3 MB, free: 35.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.3614, allocations: 55.16 kB / 444.3 MB, free: 35.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/0.3617, allocations: 281.9 kB / 444.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.3618, allocations: 36.7 kB / 444.6 MB, free: 34.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.3619, allocations: 176.7 kB / 444.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.251e-05/0.3619, allocations: 99.77 kB / 444.9 MB, free: 34.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.486e-05/0.3619, allocations: 6.625 kB / 444.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.526e-05/0.362, allocations: 342.6 kB / 445.2 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.3622, allocations: 95.97 kB / 445.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.3624, allocations: 190.1 kB / 445.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002025/0.3626, allocations: 116.7 kB / 445.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3626, allocations: 0 / 445.6 MB, free: 34.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005049/0.3631, allocations: 364.4 kB / 446 MB, free: 33.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3632, allocations: 5.688 kB / 446 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.3632, allocations: 2.781 kB / 446 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3632, allocations: 5.875 kB / 446 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005752/0.3638, allocations: 106 kB / 446.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.3638, allocations: 5.719 kB / 446.1 MB, free: 33.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.3641, allocations: 64.27 kB / 446.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.3641, allocations: 18.33 kB / 446.2 MB, free: 33.85 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 (PI_1.HIsat,PI_1.LOsat,PI_2.HIsat,PI_2.LOsat,not1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001708/0.3643, allocations: 163.3 kB / 446.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/0.3643, allocations: 29.19 kB / 446.4 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004617/0.3648, allocations: 288.2 kB / 446.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.3648, allocations: 2.562 kB / 446.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.3648, allocations: 0 / 446.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3648, allocations: 0 / 446.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004916/0.3653, allocations: 387.8 kB / 447.1 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3653, allocations: 2.938 kB / 447.1 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.3657, allocations: 64.2 kB / 447.1 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3657, allocations: 6.781 kB / 447.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.3657, allocations: 14.31 kB / 447.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3658, allocations: 2.781 kB / 447.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3658, allocations: 0 / 447.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006045/0.3664, allocations: 487.8 kB / 447.6 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.372e-05/0.3664, allocations: 106.8 kB / 447.7 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.944e-05/0.3665, allocations: 7.125 kB / 447.7 MB, free: 32.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.3667, allocations: 31.88 kB / 447.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.3668, allocations: 22.58 kB / 447.8 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.3668, allocations: 9.906 kB / 447.8 MB, free: 32.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002599/0.3671, allocations: 199.6 kB / 448 MB, free: 32.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3671, allocations: 0 / 448 MB, free: 32.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003201/0.3674, allocations: 61.44 kB / 448 MB, free: 32.74 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001128/0.3675, allocations: 110.1 kB / 448.2 MB, free: 32.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004353/0.368, allocations: 263.9 kB / 448.4 MB, free: 32.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.368, allocations: 3.469 kB / 448.4 MB, free: 32.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.3682, allocations: 131 kB / 448.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.3684, allocations: 29.09 kB / 448.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.3696, allocations: 0.7926 MB / 449.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.3699, allocations: 0.7983 MB / 450.2 MB, free: 31.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.37, allocations: 44.42 kB / 450.2 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.401e-05/0.3701, allocations: 29.16 kB / 450.2 MB, free: 31.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3701, allocations: 0 / 450.2 MB, free: 31.32 MB / 350.1 MB Notification: Performance of Templates: time 0.006171/0.3763, allocations: 2.257 MB / 452.5 MB, free: 31.15 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: