Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.001328/0.001328, allocations: 109.2 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.002366/0.002366, allocations: 219.9 kB / 22.26 MB, free: 5.121 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.508/1.508, 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.1089/0.1089, allocations: 24.13 MB / 336.6 MB, free: 11.43 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_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",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.002071/0.002071, allocations: 66.25 kB / 473.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3628, allocations: 59.6 MB / 0.5204 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.003456/0.3663, allocations: 1.072 MB / 0.5215 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.3686, allocations: 1.319 MB / 0.5228 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.3687, allocations: 3.062 kB / 0.5228 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003549/0.3691, allocations: 55.22 kB / 0.5228 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.3693, allocations: 64.36 kB / 0.5229 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.3697, allocations: 130.6 kB / 0.523 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000633/0.3703, allocations: 366.1 kB / 0.5233 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.3705, allocations: 29.75 kB / 0.5234 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000282/0.3708, allocations: 139.6 kB / 0.5235 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003313/0.3711, allocations: 166 kB / 0.5237 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.083e-05/0.3712, allocations: 19.16 kB / 0.5237 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.391e-05/0.3712, allocations: 17.91 kB / 0.5237 GB, free: 8.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.3713, allocations: 97.44 kB / 0.5238 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.3715, allocations: 98.23 kB / 0.5239 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002856/0.3717, allocations: 222.5 kB / 0.5241 GB, free: 7.895 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3717, allocations: 6.516 kB / 0.5241 GB, free: 7.891 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3717, allocations: 0 / 0.5241 GB, free: 7.891 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.3718, allocations: 3.938 kB / 0.5241 GB, free: 7.887 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001782/0.3735, allocations: 0.5881 MB / 0.5247 GB, free: 7.516 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3736, allocations: 12.19 kB / 0.5247 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.354e-05/0.3736, allocations: 48.59 kB / 0.5247 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.666e-05/0.3737, allocations: 29.44 kB / 0.5248 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000868/0.3746, allocations: 300.1 kB / 0.5251 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.3746, allocations: 9.688 kB / 0.5251 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.297e-05/0.3746, allocations: 22.17 kB / 0.5251 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003408/0.375, allocations: 172.7 kB / 0.5252 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.375, allocations: 2.219 kB / 0.5252 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.097e-05/0.375, allocations: 5.406 kB / 0.5253 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.375, allocations: 2.531 kB / 0.5253 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003484/0.3754, allocations: 174.2 kB / 0.5254 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.3765, allocations: 0.589 MB / 0.526 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/0.3769, allocations: 215.2 kB / 0.5262 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.3771, allocations: 110.2 kB / 0.5263 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.3771, allocations: 10.38 kB / 0.5263 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.399e-05/0.3771, allocations: 31.66 kB / 0.5263 GB, free: 6.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.373e-06/0.3771, allocations: 0 / 0.5263 GB, free: 6.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0018/0.3789, allocations: 0.5676 MB / 0.5269 GB, free: 6.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.49e-05/0.379, allocations: 53.59 kB / 0.527 GB, free: 6.359 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007538/0.3797, allocations: 343 kB / 0.5273 GB, free: 6.207 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.3797, allocations: 30.89 kB / 0.5273 GB, free: 6.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.528e-05/0.3798, allocations: 136.7 kB / 0.5274 GB, free: 6.051 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.3799, allocations: 81.7 kB / 0.5275 GB, free: 5.984 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.378e-05/0.3799, allocations: 40.52 kB / 0.5276 GB, free: 5.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.723e-05/0.38, allocations: 341.6 kB / 0.5279 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.3802, allocations: 89.81 kB / 0.528 GB, free: 5.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.3804, allocations: 96.16 kB / 0.5281 GB, free: 5.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002046/0.3824, allocations: 0.6169 MB / 0.5287 GB, free: 5.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3824, allocations: 1.031 kB / 0.5287 GB, free: 5.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000812/0.3832, allocations: 398.2 kB / 0.529 GB, free: 5.262 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3832, allocations: 11.19 kB / 0.5291 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3832, allocations: 0.6094 kB / 0.5291 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/0.3836, allocations: 90.3 kB / 0.5291 GB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.3838, allocations: 35.02 kB / 0.5292 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.3854, allocations: 1.746 MB / 0.5309 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.3858, allocations: 54.64 kB / 0.5309 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.3858, allocations: 8.719 kB / 0.5309 GB, free: 3.754 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: 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 (21): * Single equations (assignments): 20 * 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.0001981/0.386, allocations: 163.7 kB / 0.5311 GB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.386, allocations: 26.73 kB / 0.5311 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.239e-05/0.3861, allocations: 40.48 kB / 0.5312 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3861, allocations: 1.438 kB / 0.5312 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3861, allocations: 1.375 kB / 0.5312 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.3861, allocations: 2.719 kB / 0.5312 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003566/0.3865, allocations: 303.4 kB / 0.5315 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3865, allocations: 0 / 0.5315 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/0.3867, allocations: 27.88 kB / 0.5315 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002904/0.387, allocations: 98.17 kB / 0.5316 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.387, allocations: 2.938 kB / 0.5316 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001563/0.3886, allocations: 1.748 MB / 0.5333 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3886, allocations: 1.156 kB / 0.5333 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009008/0.3895, allocations: 0.5604 MB / 0.5338 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.3895, allocations: 27.94 kB / 0.5339 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.3895, allocations: 7.297 kB / 0.5339 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003664/0.3899, allocations: 53.44 kB / 0.5339 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.39, allocations: 18.05 kB / 0.5339 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.39, allocations: 8.203 kB / 0.5339 GB, free: 1.523 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006299/0.3906, allocations: 270 kB / 0.5342 GB, free: 1.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3906, allocations: 0 / 0.5342 GB, free: 1.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003634/0.391, allocations: 54.38 kB / 0.5343 GB, free: 1.402 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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.001136/0.3921, allocations: 1.102 MB / 0.5353 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.3928, allocations: 360.3 kB / 0.5357 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3928, allocations: 0 / 0.5357 GB, free: 412 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003567/0.3932, allocations: 251.2 kB / 0.5359 GB, free: 252 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.3936, allocations: 35.88 kB / 0.5359 GB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005733/0.3993, allocations: 3.134 MB / 0.539 GB, free: 14.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.3998, allocations: 0.7778 MB / 0.5398 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.4, allocations: 53.17 kB / 0.5398 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.4001, allocations: 73.11 kB / 0.5399 GB, free: 13.67 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4001, allocations: 0 / 0.5399 GB, free: 13.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04006/0.4402, allocations: 5.958 MB / 0.5457 GB, free: 11.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.04, allocations: 10.03 kB / 0.5457 GB, free: 11.31 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof_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_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.882747522002319] Failed to read output from testmodel.py, exit status != 0: 12.153216765997058 12.17719413 11.802148481 Calling exit ...