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.001304/0.001304, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001637/0.001637, allocations: 218.1 kB / 22.25 MB, free: 5.125 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.961 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.141/0.141, allocations: 24.12 MB / 336.6 MB, free: 11.39 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.003302/0.003302, allocations: 67.89 kB / 473.3 MB, free: 6.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3512, allocations: 59.6 MB / 0.5204 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Two_PIs_tracking): time 0.003158/0.3544, allocations: 2.043 MB / 0.5224 GB, free: 8.637 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.356, allocations: 0.6719 MB / 0.5231 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.3562, allocations: 6.656 kB / 0.5231 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003795/0.3565, allocations: 56.59 kB / 0.5231 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.3567, allocations: 34.45 kB / 0.5232 GB, free: 8.102 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.0004134/0.3571, allocations: 139.7 kB / 0.5233 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006346/0.3578, allocations: 358.6 kB / 0.5236 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.358, allocations: 77.17 kB / 0.5237 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002061/0.3582, allocations: 135.2 kB / 0.5238 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.3585, allocations: 154.5 kB / 0.524 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.927e-05/0.3586, allocations: 25.84 kB / 0.524 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.642e-05/0.3586, allocations: 27.25 kB / 0.524 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.3587, allocations: 85.73 kB / 0.5241 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.3589, allocations: 129.6 kB / 0.5242 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000316/0.3592, allocations: 273.3 kB / 0.5245 GB, free: 7.434 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3592, allocations: 0 / 0.5245 GB, free: 7.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.3592, allocations: 0 / 0.5245 GB, free: 7.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.3592, allocations: 1.188 kB / 0.5245 GB, free: 7.434 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.001338/0.3605, allocations: 0.5552 MB / 0.525 GB, free: 7.035 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.3606, allocations: 15.19 kB / 0.5251 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.613e-05/0.3606, allocations: 62.34 kB / 0.5251 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.495e-05/0.3607, allocations: 32.56 kB / 0.5251 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004819/0.3612, allocations: 247.4 kB / 0.5254 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.3612, allocations: 20.69 kB / 0.5254 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.526e-05/0.3613, allocations: 36.91 kB / 0.5254 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005463/0.3618, allocations: 308.8 kB / 0.5257 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.3618, allocations: 1.125 kB / 0.5257 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.3619, allocations: 10.91 kB / 0.5257 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3619, allocations: 6.969 kB / 0.5258 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004782/0.3624, allocations: 218 kB / 0.526 GB, free: 6.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.3643, allocations: 1.157 MB / 0.5271 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/0.3647, allocations: 208.2 kB / 0.5273 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001703/0.3649, allocations: 96.22 kB / 0.5274 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.3649, allocations: 3.484 kB / 0.5274 GB, free: 5.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.365, allocations: 44.02 kB / 0.5274 GB, free: 5.523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.683e-06/0.365, allocations: 0 / 0.5274 GB, free: 5.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0006558/0.3656, allocations: 322.6 kB / 0.5277 GB, free: 5.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.3657, allocations: 58.62 kB / 0.5278 GB, free: 5.324 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004161/0.3661, allocations: 289.2 kB / 0.5281 GB, free: 5.164 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.3661, allocations: 31.11 kB / 0.5281 GB, free: 5.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.767e-05/0.3662, allocations: 170.5 kB / 0.5283 GB, free: 4.977 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.101e-05/0.3662, allocations: 107.6 kB / 0.5284 GB, free: 4.891 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.3664, allocations: 76.89 kB / 0.5284 GB, free: 4.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.427e-05/0.3664, allocations: 342.8 kB / 0.5288 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.3666, allocations: 97.09 kB / 0.5289 GB, free: 4.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.3668, allocations: 178 kB / 0.529 GB, free: 4.359 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00182/0.3687, allocations: 0.6227 MB / 0.5296 GB, free: 4.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3687, allocations: 1.094 kB / 0.5296 GB, free: 4.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006018/0.3693, allocations: 366.6 kB / 0.53 GB, free: 3.926 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3693, allocations: 6.531 kB / 0.53 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3693, allocations: 2.938 kB / 0.53 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.3693, allocations: 4.891 kB / 0.53 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006193/0.3699, allocations: 105.4 kB / 0.5301 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.3699, allocations: 4.297 kB / 0.5301 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.3702, allocations: 52.39 kB / 0.5302 GB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.3703, allocations: 15.75 kB / 0.5302 GB, free: 3.887 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.0002069/0.3705, allocations: 155.5 kB / 0.5303 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.942e-05/0.3705, allocations: 36.03 kB / 0.5303 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005881/0.3711, allocations: 307.2 kB / 0.5306 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3711, allocations: 3.125 kB / 0.5306 GB, free: 3.578 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3711, allocations: 3.938 kB / 0.5306 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3711, allocations: 1.594 kB / 0.5306 GB, free: 3.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000642/0.3718, allocations: 342.7 kB / 0.531 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3718, allocations: 0.7031 kB / 0.531 GB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003975/0.3722, allocations: 74.53 kB / 0.531 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3722, allocations: 6.031 kB / 0.5311 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.3722, allocations: 8.609 kB / 0.5311 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.3722, allocations: 1.188 kB / 0.5311 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3722, allocations: 0 / 0.5311 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007708/0.373, allocations: 490.1 kB / 0.5315 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.068e-05/0.3731, allocations: 39.02 kB / 0.5316 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.373e-05/0.3731, allocations: 6.688 kB / 0.5316 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.3734, allocations: 30.02 kB / 0.5316 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.738e-05/0.3735, allocations: 22.72 kB / 0.5316 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.3735, allocations: 6.031 kB / 0.5316 GB, free: 3.016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003902/0.3739, allocations: 199.8 kB / 0.5318 GB, free: 2.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3739, allocations: 0 / 0.5318 GB, free: 2.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003757/0.3742, allocations: 59.58 kB / 0.5319 GB, free: 2.895 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.0009531/0.3752, allocations: 1.025 MB / 0.5329 GB, free: 2.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005417/0.3757, allocations: 252.8 kB / 0.5331 GB, free: 2.012 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3757, allocations: 0.625 kB / 0.5331 GB, free: 2.012 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.376, allocations: 129.3 kB / 0.5332 GB, free: 1.969 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.3763, allocations: 36.89 kB / 0.5333 GB, free: 1.949 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004572/0.3809, allocations: 3.167 MB / 0.5364 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.3815, allocations: 0.7808 MB / 0.5371 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002134/0.3817, allocations: 47.25 kB / 0.5372 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.3819, allocations: 100.5 kB / 0.5373 GB, free: 15.12 MB / 398.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3819, allocations: 1.094 kB / 0.5373 GB, free: 15.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03981/0.4217, allocations: 6.113 MB / 0.5432 GB, free: 13.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.97, allocations: 18.14 kB / 0.5433 GB, free: 13.42 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.714278628118336] Failed to read output from testmodel.py, exit status != 0: 12.076460920041427 12.096324435 11.732649611 Calling exit ...