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.001371/0.001371, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001361, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.494/1.494, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2192/0.2192, allocations: 22.34 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 59.91 kB / 380.8 MB, free: 10.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3128, allocations: 54.94 MB / 435.8 MB, free: 39.94 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.03567/0.3485, allocations: 21.48 MB / 457.2 MB, free: 32.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.3515, allocations: 1.603 MB / 458.8 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.3518, allocations: 3.125 kB / 458.8 MB, free: 31.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004284/0.3523, allocations: 75.73 kB / 458.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.3525, allocations: 96.17 kB / 459 MB, free: 31.25 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.001318/0.3539, allocations: 484 kB / 459.5 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004629/0.3543, allocations: 403.2 kB / 459.9 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.3545, allocations: 64.48 kB / 459.9 MB, free: 30.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.3547, allocations: 161.3 kB / 460.1 MB, free: 30.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007049/0.3554, allocations: 198.8 kB / 460.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.716e-05/0.3555, allocations: 27.06 kB / 460.3 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006848/0.3562, allocations: 405.2 kB / 460.7 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.3563, allocations: 102.9 kB / 460.8 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.3565, allocations: 122.7 kB / 460.9 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006265/0.3571, allocations: 0.5312 MB / 461.5 MB, free: 30.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3571, allocations: 1.781 kB / 461.5 MB, free: 30.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3571, allocations: 0 / 461.5 MB, free: 30.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.3571, allocations: 0 / 461.5 MB, free: 30.27 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.3589, allocations: 0.8052 MB / 462.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3589, allocations: 8.594 kB / 462.3 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/0.3591, allocations: 38.44 kB / 462.3 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008299/0.3599, allocations: 401.2 kB / 462.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.36, allocations: 10.47 kB / 462.7 MB, free: 29.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.353e-05/0.36, allocations: 18.56 kB / 462.7 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000344/0.3604, allocations: 177.1 kB / 462.9 MB, free: 29.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3604, allocations: 3.938 kB / 462.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.3604, allocations: 5.375 kB / 462.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.3604, allocations: 3.594 kB / 462.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003786/0.3608, allocations: 176.5 kB / 463.1 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.3618, allocations: 0.6496 MB / 463.7 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000622/0.3625, allocations: 272.7 kB / 464 MB, free: 28.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.3627, allocations: 111.1 kB / 464.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.3627, allocations: 2.281 kB / 464.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002924/0.363, allocations: 175 kB / 464.3 MB, free: 28.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.624e-06/0.363, allocations: 0 / 464.3 MB, free: 28.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001535/0.3645, allocations: 0.6051 MB / 464.9 MB, free: 28.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.3646, allocations: 68.11 kB / 465 MB, free: 28.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007785/0.3654, allocations: 419 kB / 465.4 MB, free: 28.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.3654, allocations: 40.89 kB / 465.4 MB, free: 28.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.596e-05/0.3655, allocations: 155.4 kB / 465.6 MB, free: 27.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.126e-05/0.3656, allocations: 88.58 kB / 465.7 MB, free: 27.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.3657, allocations: 59.53 kB / 465.7 MB, free: 27.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.623e-05/0.3657, allocations: 344.5 kB / 466 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.3659, allocations: 124 kB / 466.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.3661, allocations: 149.8 kB / 466.3 MB, free: 27.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001984/0.3681, allocations: 0.6673 MB / 467 MB, free: 26.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3682, allocations: 0 / 467 MB, free: 26.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007426/0.3689, allocations: 458.5 kB / 467.4 MB, free: 26.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3689, allocations: 8 kB / 467.4 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.3689, allocations: 0 / 467.4 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002644/0.3692, allocations: 70.25 kB / 467.5 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.3694, allocations: 45.66 kB / 467.5 MB, free: 26.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/0.3707, allocations: 1.755 MB / 469.3 MB, free: 24.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.371, allocations: 64.25 kB / 469.4 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.3711, allocations: 15.94 kB / 469.4 MB, free: 24.27 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.0001962/0.3713, allocations: 162.1 kB / 469.5 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/0.3713, allocations: 42.69 kB / 469.6 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.601e-05/0.3714, allocations: 42.44 kB / 469.6 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3714, allocations: 0 / 469.6 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3714, allocations: 7.938 kB / 469.6 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3714, allocations: 4 kB / 469.6 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002598/0.3717, allocations: 340.2 kB / 470 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3717, allocations: 3.938 kB / 470 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.3719, allocations: 26.12 kB / 470 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001842/0.372, allocations: 74.72 kB / 470.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.3721, allocations: 8 kB / 470.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001291/0.3734, allocations: 1.933 MB / 472 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3734, allocations: 0 / 472 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008017/0.3742, allocations: 0.5114 MB / 472.5 MB, free: 21.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.232e-05/0.3743, allocations: 112.6 kB / 472.6 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.262e-05/0.3743, allocations: 15.94 kB / 472.6 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.3746, allocations: 50.38 kB / 472.7 MB, free: 21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.431e-05/0.3747, allocations: 18.75 kB / 472.7 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.3748, allocations: 10.95 kB / 472.7 MB, free: 20.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006424/0.3754, allocations: 315.7 kB / 473 MB, free: 20.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3754, allocations: 3.938 kB / 473 MB, free: 20.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000636/0.3761, allocations: 162.3 kB / 473.2 MB, free: 20.57 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.0007244/0.3768, allocations: 318.3 kB / 473.5 MB, free: 20.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007167/0.3775, allocations: 438.5 kB / 473.9 MB, free: 19.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3775, allocations: 0 / 473.9 MB, free: 19.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.3779, allocations: 272.1 kB / 474.2 MB, free: 19.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3783, allocations: 41.62 kB / 474.2 MB, free: 19.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008196/0.3791, allocations: 0.598 MB / 474.8 MB, free: 19.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.3793, allocations: 0.7952 MB / 475.6 MB, free: 18.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.3794, allocations: 54.62 kB / 475.7 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.3795, allocations: 31.38 kB / 475.7 MB, free: 18.2 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3795, allocations: 0 / 475.7 MB, free: 18.2 MB / 350.1 MB Notification: Performance of Templates: time 0.01049/0.39, allocations: 5.32 MB / 481 MB, free: 15.11 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)