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.001334/0.001334, 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.001456/0.001456, allocations: 207.6 kB / 23.01 MB, free: 4.621 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1084/0.1084, allocations: 24.04 MB / 337.2 MB, free: 11.35 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.00352/0.00352, allocations: 71.89 kB / 473.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4444/0.4479, allocations: 59.57 MB / 0.5209 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.003307/0.4512, allocations: 1.017 MB / 0.5219 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.4529, allocations: 1.278 MB / 0.5231 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.58e-05/0.453, allocations: 6.344 kB / 0.5232 GB, free: 8.523 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.4533, allocations: 47.27 kB / 0.5232 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002246/0.4536, allocations: 74.5 kB / 0.5233 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.4539, allocations: 121.7 kB / 0.5234 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005677/0.4545, allocations: 361.2 kB / 0.5237 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.4546, allocations: 26.17 kB / 0.5238 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.4549, allocations: 135.1 kB / 0.5239 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003248/0.4552, allocations: 166.5 kB / 0.524 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.58e-05/0.4553, allocations: 18.88 kB / 0.5241 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.661e-05/0.4553, allocations: 17.75 kB / 0.5241 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.4555, allocations: 96.5 kB / 0.5242 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.655e-05/0.4555, allocations: 83.02 kB / 0.5242 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.4558, allocations: 225.8 kB / 0.5245 GB, free: 7.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4558, allocations: 1.469 kB / 0.5245 GB, free: 7.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4558, allocations: 0 / 0.5245 GB, free: 7.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.4559, allocations: 3.938 kB / 0.5245 GB, free: 7.984 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.001561/0.4574, allocations: 0.5941 MB / 0.525 GB, free: 7.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.4575, allocations: 11.08 kB / 0.5251 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.635e-05/0.4575, allocations: 45.19 kB / 0.5251 GB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.361e-05/0.4576, allocations: 29.03 kB / 0.5251 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008469/0.4584, allocations: 308.7 kB / 0.5254 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.4584, allocations: 10.06 kB / 0.5254 GB, free: 7.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.4585, allocations: 16.17 kB / 0.5254 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003583/0.4588, allocations: 170.1 kB / 0.5256 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.4588, allocations: 5.109 kB / 0.5256 GB, free: 7.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.4589, allocations: 6.141 kB / 0.5256 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.4589, allocations: 2.469 kB / 0.5256 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003543/0.4592, allocations: 168.3 kB / 0.5258 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.4603, allocations: 0.5538 MB / 0.5263 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.4607, allocations: 218.6 kB / 0.5265 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/0.4609, allocations: 109 kB / 0.5266 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.4609, allocations: 3 kB / 0.5266 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.4609, allocations: 33.06 kB / 0.5267 GB, free: 6.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.4609, allocations: 4 kB / 0.5267 GB, free: 6.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.001757/0.4627, allocations: 0.5616 MB / 0.5272 GB, free: 6.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.4627, allocations: 58.98 kB / 0.5273 GB, free: 6.465 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006976/0.4634, allocations: 336.5 kB / 0.5276 GB, free: 6.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.4634, allocations: 30.77 kB / 0.5276 GB, free: 6.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.803e-05/0.4635, allocations: 142.7 kB / 0.5278 GB, free: 6.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.248e-05/0.4636, allocations: 78.84 kB / 0.5278 GB, free: 6.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.639e-05/0.4636, allocations: 44.09 kB / 0.5279 GB, free: 6.062 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.065e-05/0.4637, allocations: 336.8 kB / 0.5282 GB, free: 5.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.4639, allocations: 89.97 kB / 0.5283 GB, free: 5.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.464, allocations: 92.02 kB / 0.5284 GB, free: 5.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001921/0.466, allocations: 0.6245 MB / 0.529 GB, free: 5.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.466, allocations: 0 / 0.529 GB, free: 5.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007335/0.4667, allocations: 394.5 kB / 0.5294 GB, free: 5.371 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.4667, allocations: 8.969 kB / 0.5294 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.4667, allocations: 1.125 kB / 0.5294 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/0.467, allocations: 98.83 kB / 0.5295 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.4672, allocations: 33.69 kB / 0.5295 GB, free: 5.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.4688, allocations: 1.724 MB / 0.5312 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.4691, allocations: 59.67 kB / 0.5312 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.4692, allocations: 8.062 kB / 0.5313 GB, free: 3.867 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.0001876/0.4693, allocations: 160.1 kB / 0.5314 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.4694, allocations: 21.95 kB / 0.5314 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.759e-05/0.4695, allocations: 44.86 kB / 0.5315 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.4695, allocations: 2.094 kB / 0.5315 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4695, allocations: 1.969 kB / 0.5315 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.4695, allocations: 0.5625 kB / 0.5315 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003254/0.4698, allocations: 268 kB / 0.5317 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.4698, allocations: 0 / 0.5317 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.47, allocations: 28.77 kB / 0.5318 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002827/0.4703, allocations: 94.75 kB / 0.5318 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.4703, allocations: 12.14 kB / 0.5319 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.4718, allocations: 1.727 MB / 0.5335 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4718, allocations: 1.078 kB / 0.5335 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009057/0.4727, allocations: 0.5586 MB / 0.5341 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.4728, allocations: 34.42 kB / 0.5341 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.4728, allocations: 6.281 kB / 0.5341 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/0.4732, allocations: 41.83 kB / 0.5342 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/0.4733, allocations: 26.98 kB / 0.5342 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.4733, allocations: 3.406 kB / 0.5342 GB, free: 1.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007104/0.474, allocations: 272.8 kB / 0.5345 GB, free: 1.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.474, allocations: 0 / 0.5345 GB, free: 1.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003678/0.4744, allocations: 54.41 kB / 0.5345 GB, free: 1.543 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.001262/0.4756, allocations: 1.101 MB / 0.5356 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000755/0.4764, allocations: 364.6 kB / 0.5359 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4764, allocations: 0 / 0.5359 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003945/0.4768, allocations: 254.5 kB / 0.5362 GB, free: 392 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.4772, allocations: 41.72 kB / 0.5362 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006046/0.4832, allocations: 3.143 MB / 0.5393 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.4835, allocations: 164.2 kB / 0.5394 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001664/0.4836, allocations: 53.8 kB / 0.5395 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.4838, allocations: 68.56 kB / 0.5396 GB, free: 14.43 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4838, allocations: 0 / 0.5396 GB, free: 14.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03836/0.5221, allocations: 6.403 MB / 0.5458 GB, free: 11.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.27, allocations: 5.141 kB / 0.5458 GB, free: 11.68 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: 15.152271031867713] Failed to read output from testmodel.py, exit status != 0: 12.38880834216252 12.415958351 11.954744104 Calling exit ...