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.001052/0.001052, allocations: 72.95 kB / 20.74 MB, free: 3.754 MB / 18.57 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.001056/0.001056, allocations: 173 kB / 24.17 MB, free: 336 kB / 18.57 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.013/1.013, allocations: 177.2 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.06891/0.06891, allocations: 18.14 MB / 279.2 MB, free: 11.21 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.535e-06/2.535e-06, allocations: 0.5625 kB / 304.5 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.278e-05/2.532e-05, allocations: 4.188 kB / 304.5 MB, free: 0.5234 MB / 266.7 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.03276/0.03278, allocations: 31.47 MB / 336 MB, free: 2.832 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.03553, allocations: 1.638 MB / 337.6 MB, free: 1.184 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.03571, allocations: 7.938 kB / 337.6 MB, free: 1.176 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003517/0.03606, allocations: 67.48 kB / 337.7 MB, free: 1.109 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.03625, allocations: 107.4 kB / 337.8 MB, free: 1.004 MB / 298.7 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.001106/0.03736, allocations: 0.5723 MB / 338.4 MB, free: 440 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.0377, allocations: 311.1 kB / 338.7 MB, free: 128 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.995e-05/0.0378, allocations: 50.81 kB / 338.7 MB, free: 80 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.03794, allocations: 135.6 kB / 338.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004137/0.03836, allocations: 182.4 kB / 339 MB, free: 15.78 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.029e-05/0.0384, allocations: 24 kB / 339.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005714/0.03897, allocations: 443 kB / 339.5 MB, free: 15.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.03909, allocations: 95.66 kB / 339.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.563e-05/0.03919, allocations: 79.62 kB / 339.7 MB, free: 15.15 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006455/0.03983, allocations: 0.5101 MB / 340.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.03984, allocations: 7.938 kB / 340.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.03984, allocations: 0 / 340.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.03984, allocations: 4 kB / 340.2 MB, free: 14.62 MB / 314.7 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.0008037/0.04064, allocations: 0.6093 MB / 340.8 MB, free: 13.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.04068, allocations: 8.031 kB / 340.8 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.04078, allocations: 36.84 kB / 340.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.04109, allocations: 262.5 kB / 341.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.04111, allocations: 16.38 kB / 341.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.04114, allocations: 16.38 kB / 341.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.04132, allocations: 106.6 kB / 341.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.04133, allocations: 3.938 kB / 341.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.04135, allocations: 4 kB / 341.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.04135, allocations: 7.984 kB / 341.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.845e-05/0.04145, allocations: 44.81 kB / 341.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.04196, allocations: 359.3 kB / 341.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.04225, allocations: 198.8 kB / 341.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.751e-05/0.0423, allocations: 36.84 kB / 341.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.04231, allocations: 8 kB / 341.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001337/0.04245, allocations: 106 kB / 342 MB, free: 12.72 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.573e-06/0.04245, allocations: 0 / 342 MB, free: 12.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.0005851/0.04303, allocations: 278.2 kB / 342.3 MB, free: 12.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.04308, allocations: 59.41 kB / 342.3 MB, free: 12.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.04325, allocations: 279.1 kB / 342.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.04328, allocations: 37.7 kB / 342.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.045e-05/0.04333, allocations: 121.3 kB / 342.7 MB, free: 11.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/0.04338, allocations: 95.17 kB / 342.8 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.057e-05/0.04344, allocations: 61.66 kB / 342.9 MB, free: 11.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.494e-05/0.04352, allocations: 350.7 kB / 343.2 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.827e-05/0.04357, allocations: 27.14 kB / 343.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.068e-05/0.04363, allocations: 62.31 kB / 343.3 MB, free: 11.31 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.0438, allocations: 149.9 kB / 343.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.0438, allocations: 0 / 343.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002606/0.04406, allocations: 208.8 kB / 343.7 MB, free: 10.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.04408, allocations: 7.938 kB / 343.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.04408, allocations: 4 kB / 343.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.04424, allocations: 47.64 kB / 343.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.04435, allocations: 43.92 kB / 343.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007444/0.04509, allocations: 1.324 MB / 345.1 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.451e-05/0.04519, allocations: 27.83 kB / 345.1 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.0452, allocations: 8 kB / 345.1 MB, free: 9.387 MB / 314.7 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,noise.localSeed,globalSeed.seed,noise.actualGlobalSeed,globalSeed.id_impure,$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.0001284/0.04533, allocations: 157.7 kB / 345.3 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.04536, allocations: 19.97 kB / 345.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.04539, allocations: 43.19 kB / 345.4 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.0454, allocations: 4 kB / 345.4 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.0454, allocations: 0 / 345.4 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.0454, allocations: 0 / 345.4 MB, free: 9.156 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.04553, allocations: 157.7 kB / 345.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.04554, allocations: 3.938 kB / 345.5 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.171e-05/0.04561, allocations: 19.98 kB / 345.5 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001188/0.04573, allocations: 47.64 kB / 345.6 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.04574, allocations: 3.984 kB / 345.6 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008051/0.04655, allocations: 1.495 MB / 347.1 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.04655, allocations: 3.938 kB / 347.1 MB, free: 7.312 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.04684, allocations: 245 kB / 347.3 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.151e-05/0.04687, allocations: 39.73 kB / 347.4 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.04689, allocations: 8 kB / 347.4 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.761e-05/0.04697, allocations: 11.98 kB / 347.4 MB, free: 6.988 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.597e-05/0.04702, allocations: 23.91 kB / 347.4 MB, free: 6.965 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.04703, allocations: 4 kB / 347.4 MB, free: 6.961 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.898e-05/0.04712, allocations: 108.6 kB / 347.5 MB, free: 6.852 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.04712, allocations: 0 / 347.5 MB, free: 6.852 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003045/0.04742, allocations: 155.6 kB / 347.7 MB, free: 6.699 MB / 314.7 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.0005347/0.04795, allocations: 347.7 kB / 348 MB, free: 6.379 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003103/0.04826, allocations: 245.3 kB / 348.2 MB, free: 6.125 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.04827, allocations: 8 kB / 348.3 MB, free: 6.117 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.04844, allocations: 195.3 kB / 348.4 MB, free: 5.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.0486, allocations: 57.14 kB / 348.5 MB, free: 5.859 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005784/0.04918, allocations: 0.5329 MB / 349 MB, free: 5.297 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.777e-05/0.04923, allocations: 108.1 kB / 349.1 MB, free: 5.172 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.015e-05/0.04929, allocations: 30.28 kB / 349.2 MB, free: 5.141 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.854e-05/0.04938, allocations: 83.36 kB / 349.3 MB, free: 5.059 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.04938, allocations: 0 / 349.3 MB, free: 5.059 MB / 314.7 MB Notification: Performance of Templates: time 0.007619/0.057, allocations: 6.151 MB / 355.4 MB, free: 14.94 MB / 330.7 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=240 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 242.90857770387083]