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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001069/0.001069, allocations: 172.7 kB / 15.95 MB, free: 208 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.442/1.442, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2205/0.2205, allocations: 22.36 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003989, allocations: 8.219 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3342, allocations: 55.98 MB / 438 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.001902/0.3362, allocations: 1.647 MB / 439.7 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009275/0.3371, allocations: 0.5857 MB / 440.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.3372, allocations: 6.688 kB / 440.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003216/0.3376, allocations: 39.02 kB / 440.3 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.3377, allocations: 26.42 kB / 440.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002101/0.3379, allocations: 98.52 kB / 440.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000304/0.3383, allocations: 275.6 kB / 440.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.3384, allocations: 71.94 kB / 440.8 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.3386, allocations: 108.3 kB / 440.9 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.3388, allocations: 127 kB / 441 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.515e-05/0.3388, allocations: 10.94 kB / 441 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.145e-05/0.3389, allocations: 11.88 kB / 441 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.848e-05/0.3389, allocations: 59.12 kB / 441.1 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.483e-05/0.339, allocations: 62.36 kB / 441.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001668/0.3392, allocations: 192.2 kB / 441.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3392, allocations: 0 / 441.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3392, allocations: 0 / 441.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.3392, allocations: 0 / 441.3 MB, free: 37.16 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.001044/0.3403, allocations: 0.5879 MB / 441.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3403, allocations: 10.31 kB / 441.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/0.3404, allocations: 58.72 kB / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.54e-05/0.3404, allocations: 34.53 kB / 442 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003796/0.3408, allocations: 294.3 kB / 442.3 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.3409, allocations: 19.97 kB / 442.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.3409, allocations: 36.34 kB / 442.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.3413, allocations: 302 kB / 442.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3413, allocations: 3.969 kB / 442.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.3414, allocations: 8 kB / 442.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3414, allocations: 12.25 kB / 442.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000353/0.3417, allocations: 222.6 kB / 442.9 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.3434, allocations: 1.2 MB / 444.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003683/0.3438, allocations: 204.9 kB / 444.3 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.3439, allocations: 91.73 kB / 444.4 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.344, allocations: 8.172 kB / 444.4 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.344, allocations: 37.73 kB / 444.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.344, allocations: 0 / 444.4 MB, free: 35.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005453/0.3446, allocations: 323 kB / 444.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.3446, allocations: 57.61 kB / 444.8 MB, free: 34.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003276/0.3449, allocations: 281.4 kB / 445.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.345, allocations: 32.42 kB / 445.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/0.3451, allocations: 185.9 kB / 445.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.011e-05/0.3451, allocations: 95.73 kB / 445.4 MB, free: 34.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.522e-05/0.3451, allocations: 8 kB / 445.4 MB, free: 34.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.188e-05/0.3452, allocations: 338.4 kB / 445.7 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.3454, allocations: 93.88 kB / 445.8 MB, free: 34.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.3456, allocations: 184 kB / 446 MB, free: 33.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.3458, allocations: 120.6 kB / 446.1 MB, free: 33.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3458, allocations: 0 / 446.1 MB, free: 33.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004894/0.3463, allocations: 365.4 kB / 446.5 MB, free: 33.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3463, allocations: 6.781 kB / 446.5 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3463, allocations: 3.719 kB / 446.5 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3463, allocations: 3.75 kB / 446.5 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005185/0.3469, allocations: 104.3 kB / 446.6 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.3469, allocations: 8.781 kB / 446.6 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.3471, allocations: 63.36 kB / 446.6 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.3472, allocations: 13.44 kB / 446.7 MB, free: 33.73 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.0001661/0.3473, allocations: 160.8 kB / 446.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.3474, allocations: 26.61 kB / 446.8 MB, free: 33.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004549/0.3478, allocations: 300.2 kB / 447.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3479, allocations: 2.875 kB / 447.1 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3479, allocations: 3.938 kB / 447.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3479, allocations: 2.906 kB / 447.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004534/0.3483, allocations: 373.1 kB / 447.5 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3483, allocations: 4 kB / 447.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003379/0.3487, allocations: 68.33 kB / 447.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3487, allocations: 2.875 kB / 447.6 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.3487, allocations: 14.27 kB / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3487, allocations: 0 / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3488, allocations: 0 / 447.6 MB, free: 33.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.3493, allocations: 484.4 kB / 448.1 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.396e-05/0.3494, allocations: 106.6 kB / 448.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.861e-05/0.3494, allocations: 15.75 kB / 448.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.3496, allocations: 27.8 kB / 448.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.014e-05/0.3497, allocations: 19.41 kB / 448.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.3497, allocations: 9.812 kB / 448.2 MB, free: 32.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002459/0.35, allocations: 194.8 kB / 448.4 MB, free: 32.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.35, allocations: 0 / 448.4 MB, free: 32.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.3503, allocations: 63.97 kB / 448.5 MB, free: 32.63 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.000699/0.351, allocations: 1.02 MB / 449.5 MB, free: 31.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.3514, allocations: 270.9 kB / 449.8 MB, free: 31.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3514, allocations: 0 / 449.8 MB, free: 31.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.3516, allocations: 133.8 kB / 449.9 MB, free: 31.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.3519, allocations: 30.31 kB / 449.9 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.3546, allocations: 2.023 MB / 452 MB, free: 30.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.3548, allocations: 0.7811 MB / 452.7 MB, free: 29.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.355, allocations: 44.67 kB / 452.8 MB, free: 29.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.3551, allocations: 104.8 kB / 452.9 MB, free: 29.82 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3551, allocations: 0 / 452.9 MB, free: 29.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01519/0.3703, allocations: 5.112 MB / 458 MB, free: 29.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.3705, allocations: 175.1 kB / 458.2 MB, free: 29.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.161, allocations: 0 / 458.2 MB, free: 29.22 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1) Environment - environmentSimulation: