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.001406/0.001406, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001543/0.001543, allocations: 217.9 kB / 23.04 MB, free: 5.078 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.536/1.536, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.101/0.101, allocations: 22.93 MB / 336.2 MB, free: 12.59 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.00206/0.00206, allocations: 67.89 kB / 472.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.3614, allocations: 59.28 MB / 0.5191 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003012/0.3645, allocations: 2.044 MB / 0.5211 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.3655, allocations: 0.6682 MB / 0.5217 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.3657, allocations: 10.75 kB / 0.5218 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.366, allocations: 56.94 kB / 0.5218 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001487/0.3661, allocations: 36.78 kB / 0.5218 GB, free: 8.73 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.0002956/0.3664, allocations: 140.8 kB / 0.522 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003964/0.3668, allocations: 357.6 kB / 0.5223 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.367, allocations: 71.05 kB / 0.5224 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.3671, allocations: 142.1 kB / 0.5225 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.3673, allocations: 154.5 kB / 0.5227 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.828e-05/0.3674, allocations: 25.62 kB / 0.5227 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.062e-05/0.3674, allocations: 26.84 kB / 0.5227 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.3675, allocations: 84.03 kB / 0.5228 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.478e-05/0.3676, allocations: 131.8 kB / 0.5229 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.3679, allocations: 269.2 kB / 0.5232 GB, free: 8.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3679, allocations: 1.375 kB / 0.5232 GB, free: 8.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3679, allocations: 0 / 0.5232 GB, free: 8.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3679, allocations: 3.938 kB / 0.5232 GB, free: 8.062 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.0012/0.3691, allocations: 0.5566 MB / 0.5237 GB, free: 7.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3691, allocations: 10.89 kB / 0.5237 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.026e-05/0.3692, allocations: 18.19 kB / 0.5238 GB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.138e-05/0.3692, allocations: 61.3 kB / 0.5238 GB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.211e-05/0.3693, allocations: 33.38 kB / 0.5239 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004605/0.3697, allocations: 244.4 kB / 0.5241 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.3698, allocations: 24.88 kB / 0.5241 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.883e-05/0.3698, allocations: 31.17 kB / 0.5241 GB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004785/0.3703, allocations: 308.8 kB / 0.5244 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.3703, allocations: 0 / 0.5244 GB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.3703, allocations: 6.281 kB / 0.5244 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3703, allocations: 10.5 kB / 0.5244 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004456/0.3708, allocations: 217.6 kB / 0.5247 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001801/0.3726, allocations: 1.163 MB / 0.5258 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/0.373, allocations: 193.4 kB / 0.526 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.3732, allocations: 100.3 kB / 0.5261 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.3732, allocations: 14.73 kB / 0.5261 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.3732, allocations: 31.98 kB / 0.5261 GB, free: 6.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/0.3732, allocations: 5.125 kB / 0.5261 GB, free: 6.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006575/0.3739, allocations: 320.7 kB / 0.5264 GB, free: 6.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.3739, allocations: 54.62 kB / 0.5265 GB, free: 5.961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004082/0.3743, allocations: 289.4 kB / 0.5268 GB, free: 5.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.3744, allocations: 30.83 kB / 0.5268 GB, free: 5.766 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.527e-05/0.3744, allocations: 170.4 kB / 0.5269 GB, free: 5.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.3745, allocations: 103.8 kB / 0.527 GB, free: 5.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3746, allocations: 85.17 kB / 0.5271 GB, free: 5.477 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.037e-05/0.3747, allocations: 340.2 kB / 0.5275 GB, free: 5.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.3748, allocations: 99.83 kB / 0.5275 GB, free: 5.117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.3751, allocations: 178.2 kB / 0.5277 GB, free: 4.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/0.3768, allocations: 0.6181 MB / 0.5283 GB, free: 4.723 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3768, allocations: 1.094 kB / 0.5283 GB, free: 4.723 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006555/0.3775, allocations: 371.5 kB / 0.5287 GB, free: 4.559 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.3775, allocations: 5.781 kB / 0.5287 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3775, allocations: 2.406 kB / 0.5287 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.3776, allocations: 4.812 kB / 0.5287 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006064/0.3782, allocations: 109.5 kB / 0.5288 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.3782, allocations: 5.312 kB / 0.5288 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.3785, allocations: 47.61 kB / 0.5288 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.3785, allocations: 15.72 kB / 0.5289 GB, free: 4.52 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.0001936/0.3787, allocations: 159.7 kB / 0.529 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.3787, allocations: 32.11 kB / 0.529 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005363/0.3793, allocations: 306.2 kB / 0.5293 GB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3793, allocations: 7.359 kB / 0.5293 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3793, allocations: 0 / 0.5293 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3793, allocations: 3 kB / 0.5293 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000526/0.3798, allocations: 345 kB / 0.5297 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.3798, allocations: 4.594 kB / 0.5297 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.3802, allocations: 71.19 kB / 0.5297 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3802, allocations: 1.094 kB / 0.5297 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.3802, allocations: 8.469 kB / 0.5298 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.3803, allocations: 2.828 kB / 0.5298 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3803, allocations: 0 / 0.5298 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006675/0.3809, allocations: 484.9 kB / 0.5302 GB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.938e-05/0.381, allocations: 35.56 kB / 0.5303 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.381, allocations: 7.75 kB / 0.5303 GB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.3813, allocations: 29 kB / 0.5303 GB, free: 3.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.752e-05/0.3813, allocations: 22.02 kB / 0.5303 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.3814, allocations: 11.47 kB / 0.5303 GB, free: 3.648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003082/0.3817, allocations: 199.8 kB / 0.5305 GB, free: 3.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3817, allocations: 0 / 0.5305 GB, free: 3.543 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.382, allocations: 62.77 kB / 0.5306 GB, free: 3.523 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.000793/0.3828, allocations: 1.024 MB / 0.5316 GB, free: 2.719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004859/0.3833, allocations: 249.9 kB / 0.5318 GB, free: 2.645 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3833, allocations: 0.8438 kB / 0.5318 GB, free: 2.645 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.3835, allocations: 133.9 kB / 0.5319 GB, free: 2.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.3838, allocations: 36.22 kB / 0.532 GB, free: 2.578 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004222/0.3881, allocations: 3.172 MB / 0.5351 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.3883, allocations: 0.7832 MB / 0.5358 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.3885, allocations: 45.69 kB / 0.5359 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.3887, allocations: 99.5 kB / 0.536 GB, free: 15.75 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3887, allocations: 0 / 0.536 GB, free: 15.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.4191, allocations: 6.154 MB / 0.542 GB, free: 14.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.87, allocations: 20.38 kB / 0.542 GB, free: 14.21 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.713830718013924] Failed to read output from testmodel.py, exit status != 0: 12.042665527027566 12.063789004 11.692196674 Calling exit ...