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.001429/0.001429, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001542/0.001542, allocations: 220 kB / 23.03 MB, free: 4.922 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1043/0.1043, allocations: 22.94 MB / 336.2 MB, free: 12.41 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Two_PIs_tracking,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking",fmuType="cs",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.002246/0.002246, allocations: 63.91 kB / 472.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.347, allocations: 59.29 MB / 0.519 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002985/0.35, allocations: 1.94 MB / 0.5209 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.351, allocations: 0.6271 MB / 0.5215 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.3511, allocations: 6.094 kB / 0.5215 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.3514, allocations: 65.47 kB / 0.5216 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.3516, allocations: 37.8 kB / 0.5216 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.3518, allocations: 134.2 kB / 0.5218 GB, free: 8.758 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.3522, allocations: 348.8 kB / 0.5221 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.3524, allocations: 74.08 kB / 0.5222 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.3525, allocations: 139 kB / 0.5223 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.3527, allocations: 153.8 kB / 0.5224 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.126e-05/0.3528, allocations: 29.72 kB / 0.5225 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.565e-05/0.3528, allocations: 26.47 kB / 0.5225 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.3529, allocations: 82.92 kB / 0.5226 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.353, allocations: 106.3 kB / 0.5227 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.3534, allocations: 276.2 kB / 0.5229 GB, free: 8.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3534, allocations: 0 / 0.5229 GB, free: 8.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3534, allocations: 1.125 kB / 0.5229 GB, free: 8.199 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.3534, allocations: 0 / 0.5229 GB, free: 8.199 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.001206/0.3546, allocations: 0.5598 MB / 0.5235 GB, free: 7.797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3546, allocations: 11.08 kB / 0.5235 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.147e-05/0.3546, allocations: 7.625 kB / 0.5235 GB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.209e-05/0.3547, allocations: 61.02 kB / 0.5236 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.007e-05/0.3548, allocations: 33.31 kB / 0.5236 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.3552, allocations: 254.5 kB / 0.5238 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.3552, allocations: 21.81 kB / 0.5239 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.756e-05/0.3553, allocations: 36.73 kB / 0.5239 GB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004714/0.3558, allocations: 304 kB / 0.5242 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.3558, allocations: 1.219 kB / 0.5242 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.3558, allocations: 10.62 kB / 0.5242 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3558, allocations: 6.562 kB / 0.5242 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004271/0.3563, allocations: 222.8 kB / 0.5244 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.358, allocations: 1.091 MB / 0.5255 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/0.3584, allocations: 195.5 kB / 0.5257 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.3586, allocations: 101.7 kB / 0.5258 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.3586, allocations: 6.641 kB / 0.5258 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.662e-05/0.3586, allocations: 43.41 kB / 0.5258 GB, free: 6.312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.843e-06/0.3586, allocations: 0 / 0.5258 GB, free: 6.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0005965/0.3592, allocations: 317.3 kB / 0.5261 GB, free: 6.184 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.3592, allocations: 55.59 kB / 0.5262 GB, free: 6.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.3596, allocations: 289 kB / 0.5264 GB, free: 5.961 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.3596, allocations: 30.83 kB / 0.5265 GB, free: 5.926 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.23e-05/0.3597, allocations: 178.4 kB / 0.5266 GB, free: 5.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.763e-05/0.3597, allocations: 104.3 kB / 0.5267 GB, free: 5.684 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.675e-05/0.3598, allocations: 77.23 kB / 0.5268 GB, free: 5.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.245e-05/0.3599, allocations: 341 kB / 0.5271 GB, free: 5.312 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.3601, allocations: 94.28 kB / 0.5272 GB, free: 5.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.3603, allocations: 189.7 kB / 0.5274 GB, free: 5.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001821/0.3621, allocations: 0.616 MB / 0.528 GB, free: 4.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3621, allocations: 1.125 kB / 0.528 GB, free: 4.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005982/0.3627, allocations: 370.7 kB / 0.5284 GB, free: 4.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.3627, allocations: 9.5 kB / 0.5284 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3627, allocations: 3.469 kB / 0.5284 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.3628, allocations: 4.344 kB / 0.5284 GB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005892/0.3633, allocations: 104.7 kB / 0.5285 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.3634, allocations: 9.266 kB / 0.5285 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.3636, allocations: 52.64 kB / 0.5285 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.3637, allocations: 11.66 kB / 0.5285 GB, free: 4.68 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.0001904/0.3638, allocations: 155.2 kB / 0.5287 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.3639, allocations: 36.67 kB / 0.5287 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005142/0.3644, allocations: 310.1 kB / 0.529 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3644, allocations: 3.438 kB / 0.529 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3644, allocations: 0 / 0.529 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3644, allocations: 2.672 kB / 0.529 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/0.3649, allocations: 313.9 kB / 0.5293 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3649, allocations: 3.938 kB / 0.5293 GB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.3653, allocations: 72.38 kB / 0.5294 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3653, allocations: 1.406 kB / 0.5294 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.3653, allocations: 11.53 kB / 0.5294 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3653, allocations: 2.141 kB / 0.5294 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3653, allocations: 0 / 0.5294 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005833/0.3659, allocations: 481.8 kB / 0.5299 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.174e-05/0.366, allocations: 39.56 kB / 0.5299 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.12e-05/0.366, allocations: 6.984 kB / 0.5299 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.3663, allocations: 25.41 kB / 0.5299 GB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.3664, allocations: 23.47 kB / 0.53 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.3664, allocations: 6.969 kB / 0.53 GB, free: 3.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002911/0.3667, allocations: 207.7 kB / 0.5302 GB, free: 3.711 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3667, allocations: 0 / 0.5302 GB, free: 3.711 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003264/0.367, allocations: 59.86 kB / 0.5302 GB, free: 3.695 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.000765/0.3678, allocations: 1.028 MB / 0.5312 GB, free: 2.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004729/0.3682, allocations: 250.5 kB / 0.5315 GB, free: 2.812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3682, allocations: 5.25 kB / 0.5315 GB, free: 2.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.3684, allocations: 129.5 kB / 0.5316 GB, free: 2.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.3688, allocations: 33.84 kB / 0.5316 GB, free: 2.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/0.3727, allocations: 3.171 MB / 0.5347 GB, free: 0.707 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001598/0.3728, allocations: 173.5 kB / 0.5349 GB, free: 0.625 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001587/0.373, allocations: 44.94 kB / 0.5349 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.3731, allocations: 99.39 kB / 0.535 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3731, allocations: 0 / 0.535 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.4012, allocations: 6.076 MB / 0.541 GB, free: 15.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.08, allocations: 8.766 kB / 0.541 GB, free: 15.07 MB / 398.1 MB " [Timeout remaining time 648] (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/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_Two_PIs_tracking_fmu --startTime=0 --stopTime=600 --stepSize=1 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.858137388946488] Failed to read output from testmodel.py, exit status != 0: 12.250145729049109 12.268313484 11.911286526 Calling exit ...