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.00164/0.00164, allocations: 110.1 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.002054/0.002054, allocations: 215.6 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.566/1.566, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.1113/0.1113, allocations: 22.93 MB / 336.2 MB, free: 12.61 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.00205/0.00205, allocations: 67.88 kB / 472.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3677, allocations: 59.29 MB / 0.5191 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002155/0.3698, allocations: 1.138 MB / 0.5202 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.3713, allocations: 1.364 MB / 0.5216 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.163e-05/0.3714, allocations: 5.906 kB / 0.5216 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003042/0.3717, allocations: 72.08 kB / 0.5216 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.3719, allocations: 84.53 kB / 0.5217 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.3722, allocations: 168.9 kB / 0.5219 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006194/0.3728, allocations: 480.5 kB / 0.5223 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.373, allocations: 34.11 kB / 0.5224 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.3732, allocations: 175.1 kB / 0.5225 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.3735, allocations: 207.8 kB / 0.5227 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.126e-05/0.3736, allocations: 23.16 kB / 0.5227 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.038e-05/0.3736, allocations: 21.56 kB / 0.5228 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.3738, allocations: 121.7 kB / 0.5229 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.3739, allocations: 112.6 kB / 0.523 GB, free: 8.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.3742, allocations: 270.7 kB / 0.5232 GB, free: 8.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3742, allocations: 2.078 kB / 0.5233 GB, free: 8.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3742, allocations: 0 / 0.5233 GB, free: 8.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.3742, allocations: 0 / 0.5233 GB, free: 8.277 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.001778/0.376, allocations: 0.6907 MB / 0.5239 GB, free: 7.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.376, allocations: 10.14 kB / 0.5239 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.896e-05/0.3761, allocations: 4.344 kB / 0.5239 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.749e-05/0.3761, allocations: 47.23 kB / 0.524 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.299e-05/0.3762, allocations: 34.75 kB / 0.524 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000891/0.3771, allocations: 366.1 kB / 0.5244 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.3771, allocations: 9.812 kB / 0.5244 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.3771, allocations: 18.44 kB / 0.5244 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.3774, allocations: 195.2 kB / 0.5246 GB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.3774, allocations: 8.984 kB / 0.5246 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.3775, allocations: 5.25 kB / 0.5246 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3775, allocations: 3.5 kB / 0.5246 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000348/0.3778, allocations: 201.4 kB / 0.5248 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3789, allocations: 0.6586 MB / 0.5254 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004993/0.3794, allocations: 257.7 kB / 0.5257 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.3796, allocations: 130.8 kB / 0.5258 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.3796, allocations: 3.25 kB / 0.5258 GB, free: 6.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.361e-05/0.3796, allocations: 32.12 kB / 0.5258 GB, free: 6.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.312e-06/0.3796, allocations: 0 / 0.5258 GB, free: 6.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001792/0.3814, allocations: 0.6191 MB / 0.5264 GB, free: 6.688 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.3814, allocations: 58.84 kB / 0.5265 GB, free: 6.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009583/0.3824, allocations: 416.6 kB / 0.5269 GB, free: 6.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.3824, allocations: 31.02 kB / 0.5269 GB, free: 6.414 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.828e-05/0.3825, allocations: 144.2 kB / 0.5271 GB, free: 6.289 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.861e-05/0.3825, allocations: 89.75 kB / 0.5271 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.765e-05/0.3826, allocations: 46.39 kB / 0.5272 GB, free: 6.188 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.189e-05/0.3827, allocations: 352.9 kB / 0.5275 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.3829, allocations: 103.5 kB / 0.5276 GB, free: 5.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.383, allocations: 104.3 kB / 0.5277 GB, free: 5.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002332/0.3854, allocations: 0.7137 MB / 0.5284 GB, free: 5.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.3854, allocations: 1 kB / 0.5284 GB, free: 5.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009537/0.3863, allocations: 442.7 kB / 0.5288 GB, free: 5.434 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3863, allocations: 9.312 kB / 0.5289 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3864, allocations: 1.125 kB / 0.5289 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003566/0.3867, allocations: 90.3 kB / 0.5289 GB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001989/0.3869, allocations: 40.78 kB / 0.529 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.3885, allocations: 1.743 MB / 0.5307 GB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004581/0.389, allocations: 78.95 kB / 0.5308 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.389, allocations: 4.844 kB / 0.5308 GB, free: 3.922 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.0002236/0.3892, allocations: 168.8 kB / 0.5309 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.3893, allocations: 28.72 kB / 0.531 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.799e-05/0.3894, allocations: 47.16 kB / 0.531 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3894, allocations: 4.422 kB / 0.531 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.3894, allocations: 2.234 kB / 0.531 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3894, allocations: 4.641 kB / 0.531 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003791/0.3898, allocations: 330.9 kB / 0.5313 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3898, allocations: 0 / 0.5313 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002232/0.39, allocations: 41.64 kB / 0.5314 GB, free: 3.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002754/0.3903, allocations: 90.38 kB / 0.5314 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.3903, allocations: 8.453 kB / 0.5315 GB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.3917, allocations: 1.747 MB / 0.5332 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3917, allocations: 0 / 0.5332 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.3928, allocations: 0.6201 MB / 0.5338 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.053e-05/0.3929, allocations: 38.5 kB / 0.5338 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.393, allocations: 9.016 kB / 0.5338 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.3934, allocations: 60.2 kB / 0.5339 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.331e-05/0.3935, allocations: 23.38 kB / 0.5339 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.3935, allocations: 9.281 kB / 0.5339 GB, free: 1.648 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008291/0.3943, allocations: 328.3 kB / 0.5342 GB, free: 1.523 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3943, allocations: 7.875 kB / 0.5342 GB, free: 1.516 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003521/0.3947, allocations: 61.91 kB / 0.5343 GB, free: 1.508 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.001164/0.3958, allocations: 1.157 MB / 0.5354 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007972/0.3966, allocations: 397 kB / 0.5358 GB, free: 492 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3966, allocations: 0 / 0.5358 GB, free: 492 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004542/0.3971, allocations: 274 kB / 0.5361 GB, free: 320 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004556/0.3975, allocations: 43.88 kB / 0.5361 GB, free: 300 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.4052, allocations: 3.584 MB / 0.5396 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006134/0.4058, allocations: 0.794 MB / 0.5404 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.406, allocations: 59.5 kB / 0.5404 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.4062, allocations: 92.05 kB / 0.5405 GB, free: 13.59 MB / 398.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4062, allocations: 0 / 0.5405 GB, free: 13.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/0.437, allocations: 6.868 MB / 0.5472 GB, free: 10.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.32, allocations: 6.188 kB / 0.5472 GB, free: 10.59 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 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.19327493099263] Failed to read output from testmodel.py, exit status != 0: 12.502795464009978 12.51997022 12.142445016 Calling exit ...