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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,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=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008867/0.0008868, allocations: 91.77 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005757/0.005757, allocations: 170.2 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2128/0.2128, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004206/0.0004207, allocations: 11.98 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3254, allocations: 55.98 MB / 438.6 MB, free: 39.46 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0.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.02772/0.3532, allocations: 21.06 MB / 459.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.3558, allocations: 1.628 MB / 461.3 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001241/0.3559, allocations: 6.094 kB / 461.3 MB, free: 31.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.3563, allocations: 56.53 kB / 461.3 MB, free: 31.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.3565, allocations: 82.3 kB / 461.4 MB, free: 31 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0009629/0.3575, allocations: 411.7 kB / 461.8 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000432/0.3579, allocations: 387 kB / 462.2 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.358, allocations: 58.97 kB / 462.2 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.3582, allocations: 141 kB / 462.4 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006781/0.3589, allocations: 184.2 kB / 462.5 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.491e-05/0.359, allocations: 14.69 kB / 462.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007078/0.3597, allocations: 446.8 kB / 463 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3598, allocations: 82.78 kB / 463.1 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.36, allocations: 135.9 kB / 463.2 MB, free: 30.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006069/0.3606, allocations: 0.5215 MB / 463.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3606, allocations: 0 / 463.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3606, allocations: 0 / 463.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.3606, allocations: 5.375 kB / 463.7 MB, free: 30.06 MB / 350.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.001731/0.3624, allocations: 0.7625 MB / 464.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.3624, allocations: 8.625 kB / 464.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.3625, allocations: 33.91 kB / 464.5 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007819/0.3633, allocations: 409.8 kB / 464.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3634, allocations: 10.19 kB / 465 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.3634, allocations: 22.09 kB / 465 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.3638, allocations: 179.4 kB / 465.1 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3638, allocations: 1.688 kB / 465.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.3638, allocations: 8 kB / 465.2 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.3638, allocations: 3.219 kB / 465.2 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.3642, allocations: 174.7 kB / 465.3 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3653, allocations: 0.6611 MB / 466 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006913/0.366, allocations: 267 kB / 466.3 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.3662, allocations: 120 kB / 466.4 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.3662, allocations: 2.188 kB / 466.4 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003207/0.3666, allocations: 180.6 kB / 466.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.014e-06/0.3666, allocations: 3.938 kB / 466.6 MB, free: 28.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00165/0.3682, allocations: 0.611 MB / 467.2 MB, free: 28.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.3683, allocations: 64.77 kB / 467.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008913/0.3692, allocations: 421.9 kB / 467.6 MB, free: 27.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.3692, allocations: 33.7 kB / 467.7 MB, free: 27.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.768e-05/0.3693, allocations: 162.5 kB / 467.8 MB, free: 27.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.683e-05/0.3694, allocations: 85.34 kB / 467.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.3695, allocations: 40.47 kB / 468 MB, free: 27.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.302e-05/0.3696, allocations: 344.8 kB / 468.3 MB, free: 27.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.3698, allocations: 120.8 kB / 468.4 MB, free: 27.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.37, allocations: 154.7 kB / 468.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00211/0.3721, allocations: 0.6742 MB / 469.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3721, allocations: 11.27 kB / 469.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007667/0.3729, allocations: 454.4 kB / 469.7 MB, free: 26.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3729, allocations: 4 kB / 469.7 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.373, allocations: 3.938 kB / 469.7 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002601/0.3732, allocations: 79.3 kB / 469.8 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.3734, allocations: 46.75 kB / 469.8 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.3747, allocations: 1.647 MB / 471.5 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003635/0.3751, allocations: 65.28 kB / 471.5 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/0.3751, allocations: 12 kB / 471.5 MB, free: 24.25 MB / 350.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.0002012/0.3753, allocations: 167.3 kB / 471.7 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/0.3754, allocations: 39.09 kB / 471.7 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.045e-05/0.3755, allocations: 42.33 kB / 471.8 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3755, allocations: 0 / 471.8 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.3755, allocations: 4 kB / 471.8 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3755, allocations: 0 / 471.8 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.3758, allocations: 336.9 kB / 472.1 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3758, allocations: 0 / 472.1 MB, free: 23.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.376, allocations: 30.45 kB / 472.1 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001938/0.3762, allocations: 77.45 kB / 472.2 MB, free: 23.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.3762, allocations: 7.938 kB / 472.2 MB, free: 23.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.3776, allocations: 1.761 MB / 474 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3776, allocations: 0 / 474 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000861/0.3784, allocations: 0.5122 MB / 474.5 MB, free: 21.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.3785, allocations: 119.7 kB / 474.6 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.3786, allocations: 11 kB / 474.6 MB, free: 21.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003313/0.3789, allocations: 52.08 kB / 474.7 MB, free: 21.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.994e-05/0.379, allocations: 14.38 kB / 474.7 MB, free: 21.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.379, allocations: 10.95 kB / 474.7 MB, free: 21.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000644/0.3797, allocations: 325.5 kB / 475 MB, free: 20.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3797, allocations: 0 / 475 MB, free: 20.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006287/0.3803, allocations: 154.4 kB / 475.2 MB, free: 20.73 MB / 350.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.000766/0.3811, allocations: 320 kB / 475.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007836/0.3819, allocations: 431.3 kB / 475.9 MB, free: 20.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3819, allocations: 0 / 475.9 MB, free: 20.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000421/0.3823, allocations: 267.2 kB / 476.2 MB, free: 19.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.3827, allocations: 58.16 kB / 476.2 MB, free: 19.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009355/0.3836, allocations: 0.6931 MB / 476.9 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.3839, allocations: 0.7909 MB / 477.7 MB, free: 18.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001491/0.384, allocations: 54.47 kB / 477.8 MB, free: 18.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.206e-05/0.3841, allocations: 19.44 kB / 477.8 MB, free: 18.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3841, allocations: 0 / 477.8 MB, free: 18.29 MB / 350.1 MB Notification: Performance of Templates: time 0.01089/0.395, allocations: 5.061 MB / 482.8 MB, free: 15.35 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.makefile (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)