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.001776/0.001776, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.002404/0.002404, allocations: 215.7 kB / 23.01 MB, free: 4.992 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.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1103/0.1103, allocations: 24.03 MB / 337.2 MB, free: 11.44 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.002754/0.002754, allocations: 67.89 kB / 473.8 MB, free: 6.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3715, allocations: 59.58 MB / 0.5209 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002327/0.3738, allocations: 1.065 MB / 0.5219 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.3756, allocations: 1.323 MB / 0.5232 GB, free: 8.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3758, allocations: 6.875 kB / 0.5232 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000353/0.3761, allocations: 76.94 kB / 0.5233 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.3763, allocations: 83.78 kB / 0.5234 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.3767, allocations: 157.6 kB / 0.5236 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006258/0.3773, allocations: 468.1 kB / 0.524 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.3775, allocations: 35.98 kB / 0.524 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.3777, allocations: 180.1 kB / 0.5242 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.378, allocations: 200.4 kB / 0.5244 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.378, allocations: 25.33 kB / 0.5244 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.824e-05/0.3781, allocations: 22.34 kB / 0.5244 GB, free: 8.246 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.3782, allocations: 119.6 kB / 0.5246 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.128e-05/0.3783, allocations: 87.69 kB / 0.5246 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.3786, allocations: 275.5 kB / 0.5249 GB, free: 8.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3786, allocations: 1.5 kB / 0.5249 GB, free: 8.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3786, allocations: 0 / 0.5249 GB, free: 8.027 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.3786, allocations: 0 / 0.5249 GB, free: 8.027 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.001948/0.3806, allocations: 0.6829 MB / 0.5256 GB, free: 7.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3806, allocations: 11.08 kB / 0.5256 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.424e-05/0.3807, allocations: 51.66 kB / 0.5256 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.351e-05/0.3808, allocations: 34.81 kB / 0.5257 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.3818, allocations: 356.8 kB / 0.526 GB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.3819, allocations: 18.31 kB / 0.526 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.3819, allocations: 18.7 kB / 0.526 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.3823, allocations: 189.3 kB / 0.5262 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.3823, allocations: 5.109 kB / 0.5262 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.3823, allocations: 5.188 kB / 0.5262 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3823, allocations: 3.5 kB / 0.5262 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003954/0.3827, allocations: 195.5 kB / 0.5264 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.3839, allocations: 0.62 MB / 0.527 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005392/0.3844, allocations: 262.3 kB / 0.5273 GB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.3846, allocations: 128.2 kB / 0.5274 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.3847, allocations: 2.406 kB / 0.5274 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.501e-05/0.3847, allocations: 33.72 kB / 0.5274 GB, free: 6.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.3847, allocations: 4 kB / 0.5274 GB, free: 6.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001856/0.3865, allocations: 0.6182 MB / 0.528 GB, free: 6.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.3866, allocations: 54.41 kB / 0.5281 GB, free: 6.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009603/0.3875, allocations: 409.8 kB / 0.5285 GB, free: 6.227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.3875, allocations: 34.89 kB / 0.5285 GB, free: 6.188 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.955e-05/0.3876, allocations: 150.2 kB / 0.5287 GB, free: 6.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.3877, allocations: 87.86 kB / 0.5287 GB, free: 5.988 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.4e-05/0.3878, allocations: 51.16 kB / 0.5288 GB, free: 5.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.268e-05/0.3879, allocations: 345.8 kB / 0.5291 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.3881, allocations: 102.6 kB / 0.5292 GB, free: 5.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.3882, allocations: 109.5 kB / 0.5293 GB, free: 5.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002275/0.3905, allocations: 0.709 MB / 0.53 GB, free: 5.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3905, allocations: 0 / 0.53 GB, free: 5.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009209/0.3914, allocations: 448 kB / 0.5304 GB, free: 5.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3915, allocations: 12.52 kB / 0.5305 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3915, allocations: 0 / 0.5305 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003403/0.3918, allocations: 91.48 kB / 0.5305 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.392, allocations: 35.48 kB / 0.5306 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.394, allocations: 1.736 MB / 0.5323 GB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004693/0.3944, allocations: 70.38 kB / 0.5323 GB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.3945, allocations: 9.156 kB / 0.5323 GB, free: 3.699 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.000292/0.3947, allocations: 169.4 kB / 0.5325 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.004e-05/0.3948, allocations: 28.97 kB / 0.5325 GB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.83e-05/0.3949, allocations: 49.34 kB / 0.5326 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3949, allocations: 2.188 kB / 0.5326 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.3949, allocations: 1.156 kB / 0.5326 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3949, allocations: 4 kB / 0.5326 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004212/0.3954, allocations: 299.1 kB / 0.5329 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3954, allocations: 0 / 0.5329 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.3956, allocations: 31.58 kB / 0.5329 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002781/0.3958, allocations: 95.52 kB / 0.533 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.3959, allocations: 3.562 kB / 0.533 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.3974, allocations: 1.74 MB / 0.5347 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3974, allocations: 0 / 0.5347 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.3985, allocations: 0.6168 MB / 0.5353 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.459e-05/0.3986, allocations: 39.41 kB / 0.5353 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.3986, allocations: 4.875 kB / 0.5353 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004466/0.399, allocations: 60.78 kB / 0.5354 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.346e-05/0.3991, allocations: 23.42 kB / 0.5354 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.3991, allocations: 3.891 kB / 0.5354 GB, free: 1.449 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008354/0.4, allocations: 330.2 kB / 0.5357 GB, free: 1.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4, allocations: 0 / 0.5357 GB, free: 1.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003824/0.4004, allocations: 65.19 kB / 0.5358 GB, free: 1.312 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.001284/0.4016, allocations: 1.17 MB / 0.5369 GB, free: 480 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008081/0.4024, allocations: 400 kB / 0.5373 GB, free: 280 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4024, allocations: 0.9375 kB / 0.5373 GB, free: 280 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003921/0.4028, allocations: 273.2 kB / 0.5376 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.4033, allocations: 42.44 kB / 0.5376 GB, free: 88 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006858/0.4101, allocations: 3.587 MB / 0.5411 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.4104, allocations: 181.1 kB / 0.5413 GB, free: 14.08 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.4105, allocations: 68.53 kB / 0.5414 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.4107, allocations: 84.58 kB / 0.5415 GB, free: 14.01 MB / 398.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4107, allocations: 0 / 0.5415 GB, free: 14.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03835/0.449, allocations: 7.295 MB / 0.5486 GB, free: 10.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.03, allocations: 4.891 kB / 0.5486 GB, free: 10.39 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 & /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: 14.893968060147017] Failed to read output from testmodel.py, exit status != 0: 12.141801957972348 12.156954667 11.775018606 Calling exit ...