Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.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.001761/0.001761, allocations: 96.36 kB / 20.46 MB, free: 1.367 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.001669/0.001669, allocations: 215.2 kB / 23.76 MB, free: 4.52 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.509/1.509, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1085/0.1085, allocations: 24.04 MB / 338 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: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise") [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.002231/0.002231, allocations: 71.89 kB / 475.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2876, allocations: 59.56 MB / 0.5221 GB, free: 10.41 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Blocks/Interfaces.mo:1329:5-1330:50:writable] Warning: An inner declaration for outer component globalSeed could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Blocks/Interfaces.mo:1329:5-1330:50:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"globalSeed\" component but an inner \"globalSeed\" component is not defined and therefore a default inner \"globalSeed\" component is introduced by the tool. To change the default setting, drag Noise.GlobalSeed into your model and specify the seed. Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise): time 0.0701/0.3577, allocations: 22.79 MB / 0.5444 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.3605, allocations: 1.575 MB / 0.5459 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.3608, allocations: 7.938 kB / 0.5459 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.3611, allocations: 72.28 kB / 0.546 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000321/0.3615, allocations: 99.45 kB / 0.5461 GB, free: 0.9375 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.3628, allocations: 0.516 MB / 0.5466 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006055/0.3634, allocations: 466.6 kB / 0.547 GB, free: 192 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.3635, allocations: 42.22 kB / 0.5471 GB, free: 160 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002888/0.3638, allocations: 188.4 kB / 0.5473 GB, free: 8 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008512/0.3647, allocations: 202 kB / 0.5474 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.3648, allocations: 24 kB / 0.5475 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009323/0.3657, allocations: 446.2 kB / 0.5479 GB, free: 15.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.3659, allocations: 98.66 kB / 0.548 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.3661, allocations: 104.9 kB / 0.5481 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001096/0.3672, allocations: 0.5413 MB / 0.5486 GB, free: 14.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3672, allocations: 4 kB / 0.5486 GB, free: 14.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3672, allocations: 0 / 0.5486 GB, free: 14.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.3672, allocations: 0 / 0.5486 GB, free: 14.96 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.002239/0.3694, allocations: 0.7424 MB / 0.5493 GB, free: 14.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.3695, allocations: 8.031 kB / 0.5494 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.3696, allocations: 37.78 kB / 0.5494 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.3707, allocations: 351.2 kB / 0.5497 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.3707, allocations: 8.375 kB / 0.5497 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.89e-05/0.3708, allocations: 24.73 kB / 0.5498 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004006/0.3712, allocations: 174 kB / 0.5499 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.3712, allocations: 0 / 0.5499 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.3712, allocations: 8.703 kB / 0.5499 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.3712, allocations: 7.938 kB / 0.5499 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.3716, allocations: 173.1 kB / 0.5501 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.3729, allocations: 0.537 MB / 0.5506 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007338/0.3737, allocations: 255 kB / 0.5509 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002447/0.3739, allocations: 108.3 kB / 0.551 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.3739, allocations: 0.7969 kB / 0.551 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003475/0.3743, allocations: 177.3 kB / 0.5511 GB, free: 12.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.883e-06/0.3743, allocations: 0 / 0.5511 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001688/0.376, allocations: 0.5327 MB / 0.5517 GB, free: 12.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.376, allocations: 60.81 kB / 0.5517 GB, free: 12.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009826/0.377, allocations: 420.8 kB / 0.5521 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.3771, allocations: 39.44 kB / 0.5522 GB, free: 11.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.3772, allocations: 162.1 kB / 0.5523 GB, free: 11.6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3773, allocations: 86.28 kB / 0.5524 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.3774, allocations: 59.62 kB / 0.5525 GB, free: 11.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3776, allocations: 349.7 kB / 0.5528 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.3779, allocations: 123.7 kB / 0.5529 GB, free: 11.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.3782, allocations: 149.1 kB / 0.553 GB, free: 10.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/0.3806, allocations: 0.6724 MB / 0.5537 GB, free: 10.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3806, allocations: 0 / 0.5537 GB, free: 10.35 MB / 398.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009956/0.3816, allocations: 459.7 kB / 0.5541 GB, free: 9.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.3816, allocations: 4 kB / 0.5541 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3816, allocations: 4 kB / 0.5542 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002874/0.3819, allocations: 75.09 kB / 0.5542 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.3821, allocations: 41.56 kB / 0.5543 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.384, allocations: 1.607 MB / 0.5558 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004125/0.3845, allocations: 61.22 kB / 0.5559 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.3845, allocations: 12.94 kB / 0.5559 GB, free: 8.164 MB / 398.1 MB Warning: Assuming fixed start value for the following 4 variables: Fn.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.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: 2 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,noise.actualGlobalSeed,noise.localSeed,$PRE.noise.r_raw,$PRE.noise.r,$PRE.noise.state[4],$PRE.noise.state[3],$PRE.noise.state[2],$PRE.noise.state[1],noise.r_raw,noise.r,noise.state[4],noise.state[3],noise.state[2],noise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 1 * 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.0002777/0.3848, allocations: 178.6 kB / 0.5561 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.3848, allocations: 39.7 kB / 0.5561 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.975e-05/0.3849, allocations: 46.98 kB / 0.5562 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.3849, allocations: 4 kB / 0.5562 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.3849, allocations: 0.8438 kB / 0.5562 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.385, allocations: 0.5156 kB / 0.5562 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.3853, allocations: 247 kB / 0.5564 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3853, allocations: 8.5 kB / 0.5564 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.3855, allocations: 23.94 kB / 0.5564 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002493/0.3857, allocations: 74.67 kB / 0.5565 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.3858, allocations: 1.5 kB / 0.5565 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.3879, allocations: 1.8 MB / 0.5583 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3879, allocations: 4 kB / 0.5583 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.3891, allocations: 0.5131 MB / 0.5588 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.573e-05/0.3892, allocations: 38.8 kB / 0.5588 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.296e-05/0.3892, allocations: 14.11 kB / 0.5588 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/0.3896, allocations: 49.41 kB / 0.5589 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.017e-05/0.3897, allocations: 25.44 kB / 0.5589 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.3897, allocations: 8.938 kB / 0.5589 GB, free: 5.191 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007742/0.3905, allocations: 315.6 kB / 0.5592 GB, free: 4.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3905, allocations: 0 / 0.5592 GB, free: 4.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006682/0.3911, allocations: 162.7 kB / 0.5593 GB, free: 4.793 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Fn.x_scaled[1]) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009732/0.3921, allocations: 327.8 kB / 0.5597 GB, free: 4.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009298/0.393, allocations: 410.9 kB / 0.5601 GB, free: 4.133 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.393, allocations: 3.938 kB / 0.5601 GB, free: 4.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005567/0.3936, allocations: 260 kB / 0.5603 GB, free: 3.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003512/0.3939, allocations: 48.75 kB / 0.5604 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.3951, allocations: 0.6349 MB / 0.561 GB, free: 3.203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000205/0.3953, allocations: 191.4 kB / 0.5612 GB, free: 2.996 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.086e-05/0.3954, allocations: 23.44 kB / 0.5612 GB, free: 2.973 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3954, allocations: 0 / 0.5612 GB, free: 2.973 MB / 398.1 MB Notification: Performance of Templates: time 0.01222/0.4076, allocations: 6.902 MB / 0.5679 GB, free: 12.06 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.makefile [Timeout 660] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.858915203716606] Failed to read output from testmodel.py, exit status != 0: 0.4171996871009469 0.43339723299999994 0.062838878 Calling exit ...