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.001982/0.001982, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002362/0.002362, allocations: 206.2 kB / 23.01 MB, free: 4.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.553/1.553, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1068/0.1068, allocations: 24.04 MB / 337.2 MB, free: 11.33 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.002154/0.002154, allocations: 67.89 kB / 473.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.33, allocations: 59.58 MB / 0.5209 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.002672/0.3327, allocations: 1.938 MB / 0.5228 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3337, allocations: 0.6244 MB / 0.5234 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.3338, allocations: 10.25 kB / 0.5234 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.3341, allocations: 52.67 kB / 0.5235 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.3343, allocations: 46.09 kB / 0.5235 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002663/0.3345, allocations: 133.7 kB / 0.5236 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003757/0.3349, allocations: 354.2 kB / 0.524 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.3351, allocations: 69.47 kB / 0.524 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.3352, allocations: 130.5 kB / 0.5242 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.3354, allocations: 141.8 kB / 0.5243 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.135e-05/0.3355, allocations: 25.69 kB / 0.5243 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.469e-05/0.3355, allocations: 27.66 kB / 0.5244 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.541e-05/0.3356, allocations: 82.69 kB / 0.5244 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.711e-05/0.3357, allocations: 108.5 kB / 0.5245 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.336, allocations: 277.3 kB / 0.5248 GB, free: 7.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.336, allocations: 0 / 0.5248 GB, free: 7.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.336, allocations: 1.094 kB / 0.5248 GB, free: 7.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.336, allocations: 3.938 kB / 0.5248 GB, free: 7.688 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.001162/0.3371, allocations: 0.5591 MB / 0.5254 GB, free: 7.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3372, allocations: 14.19 kB / 0.5254 GB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.067e-05/0.3372, allocations: 60.25 kB / 0.5254 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.995e-05/0.3373, allocations: 34.69 kB / 0.5255 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.3377, allocations: 250.1 kB / 0.5257 GB, free: 7.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.3378, allocations: 21.38 kB / 0.5257 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.499e-05/0.3378, allocations: 36.23 kB / 0.5257 GB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004693/0.3383, allocations: 307.8 kB / 0.526 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.3383, allocations: 4.453 kB / 0.526 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.3383, allocations: 10.78 kB / 0.5261 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.3383, allocations: 6.906 kB / 0.5261 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004145/0.3387, allocations: 221.1 kB / 0.5263 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.3405, allocations: 1.092 MB / 0.5273 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.3409, allocations: 197.3 kB / 0.5275 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.3411, allocations: 96.58 kB / 0.5276 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.3411, allocations: 6.672 kB / 0.5276 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.3411, allocations: 36.8 kB / 0.5277 GB, free: 5.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.693e-06/0.3411, allocations: 4 kB / 0.5277 GB, free: 5.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.000654/0.3418, allocations: 323.5 kB / 0.528 GB, free: 5.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.3418, allocations: 55.41 kB / 0.528 GB, free: 5.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.3422, allocations: 287.6 kB / 0.5283 GB, free: 5.445 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.3422, allocations: 31.95 kB / 0.5283 GB, free: 5.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.096e-05/0.3423, allocations: 176.2 kB / 0.5285 GB, free: 5.254 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.728e-05/0.3423, allocations: 100.1 kB / 0.5286 GB, free: 5.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-05/0.3424, allocations: 77.19 kB / 0.5287 GB, free: 5.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.718e-05/0.3425, allocations: 343.6 kB / 0.529 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.3427, allocations: 99.97 kB / 0.5291 GB, free: 4.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.3429, allocations: 188.2 kB / 0.5293 GB, free: 4.633 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/0.3447, allocations: 0.6096 MB / 0.5299 GB, free: 4.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3447, allocations: 0 / 0.5299 GB, free: 4.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006097/0.3453, allocations: 375.1 kB / 0.5302 GB, free: 4.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3453, allocations: 7.312 kB / 0.5302 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3454, allocations: 2.438 kB / 0.5302 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.3454, allocations: 4.781 kB / 0.5302 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006036/0.346, allocations: 103.7 kB / 0.5303 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.346, allocations: 5.453 kB / 0.5303 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.3463, allocations: 57.8 kB / 0.5304 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.3463, allocations: 15.44 kB / 0.5304 GB, free: 4.164 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.0001732/0.3465, allocations: 155.1 kB / 0.5306 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.317e-05/0.3465, allocations: 30.86 kB / 0.5306 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005102/0.347, allocations: 304 kB / 0.5309 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.347, allocations: 7.938 kB / 0.5309 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.347, allocations: 0 / 0.5309 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.347, allocations: 1.547 kB / 0.5309 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004918/0.3475, allocations: 314.8 kB / 0.5312 GB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3475, allocations: 3.938 kB / 0.5312 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000371/0.3479, allocations: 70.52 kB / 0.5313 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3479, allocations: 1.406 kB / 0.5313 GB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.3479, allocations: 12.42 kB / 0.5313 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3479, allocations: 1.125 kB / 0.5313 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3479, allocations: 1.875 kB / 0.5313 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006238/0.3486, allocations: 493.7 kB / 0.5317 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.764e-05/0.3486, allocations: 34.06 kB / 0.5318 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.3487, allocations: 7.953 kB / 0.5318 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.3489, allocations: 26.72 kB / 0.5318 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/0.349, allocations: 21.88 kB / 0.5318 GB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.349, allocations: 11.31 kB / 0.5318 GB, free: 3.305 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003465/0.3494, allocations: 199.7 kB / 0.532 GB, free: 3.199 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3494, allocations: 0 / 0.532 GB, free: 3.199 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003429/0.3497, allocations: 67.17 kB / 0.5321 GB, free: 3.176 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.000837/0.3506, allocations: 1.023 MB / 0.5331 GB, free: 2.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004931/0.351, allocations: 250.6 kB / 0.5333 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.351, allocations: 0 / 0.5333 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002066/0.3513, allocations: 131.2 kB / 0.5335 GB, free: 2.258 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.3516, allocations: 34.12 kB / 0.5335 GB, free: 2.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/0.3556, allocations: 3.165 MB / 0.5366 GB, free: 204 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.3558, allocations: 179.5 kB / 0.5368 GB, free: 112 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001648/0.3559, allocations: 45.5 kB / 0.5368 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.3561, allocations: 101.1 kB / 0.5369 GB, free: 36 kB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3561, allocations: 0 / 0.5369 GB, free: 36 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03591/0.392, allocations: 6.343 MB / 0.5431 GB, free: 14.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.85, allocations: 10.41 kB / 0.5431 GB, free: 14.05 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 & 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: 14.878480102866888] Failed to read output from testmodel.py, exit status != 0: 11.961993232835084 11.985978176 11.645310703 Calling exit ...