Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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.001772/0.001772, allocations: 113 kB / 18.94 MB, free: 2.934 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.00149/0.00149, allocations: 209.8 kB / 22.25 MB, free: 5.086 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 8.012 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.1097/0.1097, allocations: 24.13 MB / 336.6 MB, free: 11.42 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.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.002095/0.002095, allocations: 74.08 kB / 473.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3764, allocations: 59.6 MB / 0.5204 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002811/0.3792, allocations: 1.147 MB / 0.5215 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.3814, allocations: 1.362 MB / 0.5229 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.3815, allocations: 11.16 kB / 0.5229 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004539/0.382, allocations: 72.3 kB / 0.5229 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.3823, allocations: 84.47 kB / 0.523 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005236/0.3828, allocations: 156.9 kB / 0.5232 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009033/0.3837, allocations: 481.7 kB / 0.5236 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.3839, allocations: 38.88 kB / 0.5237 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003363/0.3842, allocations: 181.2 kB / 0.5238 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003841/0.3846, allocations: 206.5 kB / 0.524 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.049e-05/0.3847, allocations: 22 kB / 0.5241 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.797e-05/0.3847, allocations: 27.16 kB / 0.5241 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001873/0.3849, allocations: 113.5 kB / 0.5242 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.3851, allocations: 116.5 kB / 0.5243 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.3855, allocations: 270.7 kB / 0.5246 GB, free: 7.625 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3855, allocations: 0 / 0.5246 GB, free: 7.625 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3855, allocations: 1 kB / 0.5246 GB, free: 7.625 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.3855, allocations: 0 / 0.5246 GB, free: 7.625 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.002656/0.3882, allocations: 0.683 MB / 0.5252 GB, free: 7.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.3882, allocations: 14.83 kB / 0.5253 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.643e-05/0.3883, allocations: 47.3 kB / 0.5253 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.991e-05/0.3884, allocations: 35.06 kB / 0.5253 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.3898, allocations: 360 kB / 0.5257 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.3898, allocations: 16 kB / 0.5257 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.3898, allocations: 13.97 kB / 0.5257 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004791/0.3903, allocations: 192.8 kB / 0.5259 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.3903, allocations: 5.266 kB / 0.5259 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.3904, allocations: 5.594 kB / 0.5259 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.3904, allocations: 2.938 kB / 0.5259 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005281/0.3909, allocations: 200.2 kB / 0.5261 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.3925, allocations: 0.6608 MB / 0.5267 GB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007426/0.3932, allocations: 259.8 kB / 0.527 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.3935, allocations: 127.7 kB / 0.5271 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.3936, allocations: 2.312 kB / 0.5271 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.3936, allocations: 36.28 kB / 0.5271 GB, free: 6.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.113e-06/0.3936, allocations: 1.062 kB / 0.5271 GB, free: 6.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.002696/0.3963, allocations: 0.6184 MB / 0.5277 GB, free: 6.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.3963, allocations: 53.94 kB / 0.5278 GB, free: 5.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001489/0.3978, allocations: 417.4 kB / 0.5282 GB, free: 5.809 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.3978, allocations: 26.77 kB / 0.5282 GB, free: 5.777 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.398, allocations: 153.7 kB / 0.5284 GB, free: 5.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.3981, allocations: 91.56 kB / 0.5285 GB, free: 5.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.3983, allocations: 44.33 kB / 0.5285 GB, free: 5.543 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3985, allocations: 344.1 kB / 0.5288 GB, free: 5.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000327/0.3988, allocations: 103.6 kB / 0.5289 GB, free: 5.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/0.3991, allocations: 109.6 kB / 0.529 GB, free: 5.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00329/0.4024, allocations: 0.7167 MB / 0.5297 GB, free: 4.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.4024, allocations: 4 kB / 0.5297 GB, free: 4.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001223/0.4036, allocations: 442.1 kB / 0.5302 GB, free: 4.789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.4036, allocations: 8.562 kB / 0.5302 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4036, allocations: 1.125 kB / 0.5302 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004273/0.4041, allocations: 88.61 kB / 0.5302 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.4043, allocations: 42.66 kB / 0.5303 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002344/0.4067, allocations: 1.74 MB / 0.532 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006025/0.4073, allocations: 69.33 kB / 0.5321 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.4073, allocations: 9.219 kB / 0.5321 GB, free: 3.281 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] M.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.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: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003008/0.4076, allocations: 175 kB / 0.5322 GB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.106e-05/0.4077, allocations: 28.66 kB / 0.5323 GB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.4078, allocations: 41.77 kB / 0.5323 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.4078, allocations: 3.25 kB / 0.5323 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.4078, allocations: 1.406 kB / 0.5323 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4078, allocations: 4.516 kB / 0.5323 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006214/0.4085, allocations: 340.5 kB / 0.5326 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.165e-06/0.4085, allocations: 0 / 0.5326 GB, free: 2.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002908/0.4087, allocations: 32.86 kB / 0.5327 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003672/0.4091, allocations: 90.53 kB / 0.5327 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.4091, allocations: 8.047 kB / 0.5328 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.4112, allocations: 1.749 MB / 0.5345 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4112, allocations: 5.156 kB / 0.5345 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.4126, allocations: 0.6151 MB / 0.5351 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.4127, allocations: 35.7 kB / 0.5351 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.723e-05/0.4128, allocations: 12.03 kB / 0.5351 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006215/0.4134, allocations: 64.14 kB / 0.5352 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.4135, allocations: 23.31 kB / 0.5352 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.4135, allocations: 4.922 kB / 0.5352 GB, free: 1.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001159/0.4147, allocations: 330.1 kB / 0.5355 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4147, allocations: 0 / 0.5355 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.4153, allocations: 61.5 kB / 0.5356 GB, free: 0.8711 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001871/0.4172, allocations: 1.167 MB / 0.5367 GB, free: 28 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.4186, allocations: 398.3 kB / 0.5371 GB, free: 15.83 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4186, allocations: 4 kB / 0.5371 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006864/0.4193, allocations: 273.5 kB / 0.5374 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006202/0.4199, allocations: 44.23 kB / 0.5374 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00997/0.4299, allocations: 3.584 MB / 0.5409 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006291/0.4305, allocations: 0.7884 MB / 0.5417 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002872/0.4308, allocations: 68.56 kB / 0.5417 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.431, allocations: 87.73 kB / 0.5418 GB, free: 12.93 MB / 398.1 MB Notification: Performance of SimCode: time 1.613e-06/0.431, allocations: 0 / 0.5418 GB, free: 12.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04696/0.478, allocations: 6.83 MB / 0.5485 GB, free: 9.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.3, allocations: 6.234 kB / 0.5485 GB, free: 9.762 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.202694779000012] Failed to read output from testmodel.py, exit status != 0: 12.418547904999286 12.446282035 12.055468586 Calling exit ...