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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 113 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 252.8 MB, free: 8.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1094/0.1094, allocations: 24.11 MB / 333 MB, free: 12.63 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 67.91 kB / 467.9 MB, free: 9.086 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.358, allocations: 59.58 MB / 0.5151 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003312/0.3613, allocations: 2.023 MB / 0.517 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.3626, allocations: 0.6622 MB / 0.5177 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002063/0.3628, allocations: 11.06 kB / 0.5177 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003366/0.3631, allocations: 59.59 kB / 0.5178 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.3634, allocations: 34.03 kB / 0.5178 GB, free: 7.777 MB / 382.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.0003247/0.3637, allocations: 129.8 kB / 0.5179 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003794/0.3641, allocations: 333.2 kB / 0.5182 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.3642, allocations: 72.89 kB / 0.5183 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.3644, allocations: 138.6 kB / 0.5184 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.3646, allocations: 150.6 kB / 0.5186 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.3647, allocations: 26.59 kB / 0.5186 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.02e-05/0.3647, allocations: 25.88 kB / 0.5186 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.3648, allocations: 78.91 kB / 0.5187 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.898e-05/0.3649, allocations: 138.1 kB / 0.5188 GB, free: 7.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003207/0.3652, allocations: 277.8 kB / 0.5191 GB, free: 7.129 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3652, allocations: 0 / 0.5191 GB, free: 7.129 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3652, allocations: 0 / 0.5191 GB, free: 7.129 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3652, allocations: 0 / 0.5191 GB, free: 7.129 MB / 382.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.001249/0.3665, allocations: 0.6355 MB / 0.5197 GB, free: 6.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3665, allocations: 10.81 kB / 0.5197 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/0.3666, allocations: 64.75 kB / 0.5198 GB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.507e-05/0.3667, allocations: 32.62 kB / 0.5198 GB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.3671, allocations: 311.3 kB / 0.5201 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.3672, allocations: 20.84 kB / 0.5201 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.881e-05/0.3672, allocations: 39.72 kB / 0.5202 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.3677, allocations: 300.3 kB / 0.5205 GB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3678, allocations: 5.781 kB / 0.5205 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.3678, allocations: 14.58 kB / 0.5205 GB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3678, allocations: 6.406 kB / 0.5205 GB, free: 6.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.3682, allocations: 219.3 kB / 0.5207 GB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.37, allocations: 1.187 MB / 0.5219 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004245/0.3705, allocations: 202.7 kB / 0.5221 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.3707, allocations: 94.84 kB / 0.5221 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.3707, allocations: 3.984 kB / 0.5221 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.3707, allocations: 44.14 kB / 0.5222 GB, free: 5.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/0.3707, allocations: 0 / 0.5222 GB, free: 5.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0007152/0.3714, allocations: 319.2 kB / 0.5225 GB, free: 4.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.3715, allocations: 54.56 kB / 0.5225 GB, free: 4.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004439/0.3719, allocations: 287.4 kB / 0.5228 GB, free: 4.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.3719, allocations: 31.11 kB / 0.5228 GB, free: 4.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.135e-05/0.372, allocations: 174.2 kB / 0.523 GB, free: 4.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.293e-05/0.3721, allocations: 103.1 kB / 0.5231 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3722, allocations: 76.11 kB / 0.5232 GB, free: 4.359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.745e-05/0.3723, allocations: 344.1 kB / 0.5235 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.3725, allocations: 99.34 kB / 0.5236 GB, free: 4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.3727, allocations: 180.8 kB / 0.5238 GB, free: 3.871 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/0.3746, allocations: 0.6103 MB / 0.5244 GB, free: 3.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3746, allocations: 1.375 kB / 0.5244 GB, free: 3.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006276/0.3752, allocations: 369.5 kB / 0.5247 GB, free: 3.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3752, allocations: 10.38 kB / 0.5247 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3752, allocations: 2.906 kB / 0.5247 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3753, allocations: 3.906 kB / 0.5247 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006161/0.3759, allocations: 107.8 kB / 0.5248 GB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.3759, allocations: 4.062 kB / 0.5249 GB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.3762, allocations: 58.58 kB / 0.5249 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.3762, allocations: 16.11 kB / 0.5249 GB, free: 3.391 MB / 382.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.000184/0.3764, allocations: 154.5 kB / 0.5251 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.825e-05/0.3764, allocations: 32.39 kB / 0.5251 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005186/0.377, allocations: 302 kB / 0.5254 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.377, allocations: 3.125 kB / 0.5254 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.377, allocations: 0.9062 kB / 0.5254 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.377, allocations: 1.547 kB / 0.5254 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005353/0.3775, allocations: 382.7 kB / 0.5258 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3775, allocations: 1 kB / 0.5258 GB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003817/0.3779, allocations: 75.34 kB / 0.5258 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3779, allocations: 6.203 kB / 0.5258 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.658e-05/0.3779, allocations: 7.047 kB / 0.5258 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3779, allocations: 1.797 kB / 0.5258 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.3779, allocations: 1.156 kB / 0.5258 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006383/0.3786, allocations: 481 kB / 0.5263 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.828e-05/0.3786, allocations: 118.8 kB / 0.5264 GB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.3787, allocations: 12.81 kB / 0.5264 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.3789, allocations: 24.23 kB / 0.5265 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.6e-05/0.379, allocations: 30.16 kB / 0.5265 GB, free: 2.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.379, allocations: 6.578 kB / 0.5265 GB, free: 2.395 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000335/0.3794, allocations: 201.1 kB / 0.5267 GB, free: 2.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3794, allocations: 0 / 0.5267 GB, free: 2.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000336/0.3797, allocations: 59.33 kB / 0.5267 GB, free: 2.273 MB / 382.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.0007725/0.3805, allocations: 1.016 MB / 0.5277 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004625/0.3809, allocations: 258.6 kB / 0.528 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3809, allocations: 0 / 0.528 GB, free: 1.395 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.3812, allocations: 129.7 kB / 0.5281 GB, free: 1.352 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.3815, allocations: 31.27 kB / 0.5281 GB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004671/0.3862, allocations: 3.171 MB / 0.5312 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/0.3867, allocations: 0.781 MB / 0.532 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.3868, allocations: 49.05 kB / 0.532 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/0.387, allocations: 100.3 kB / 0.5321 GB, free: 14.5 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.387, allocations: 0 / 0.5321 GB, free: 14.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0333/0.4203, allocations: 5.765 MB / 0.5378 GB, free: 13.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.327/8.748, allocations: 14.19 kB / 0.5378 GB, free: 13.29 MB / 398.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking.fmu > AES_AES.Coursework.Tuning_brushup.Two_PIs_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.546965817920864] Failed to read output from testmodel.py, exit status != 0: 8.819153565913439 8.842424981 8.472635579 Calling exit ...