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.0007917/0.0007916, allocations: 92.16 kB / 16.02 MB, free: 80 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.0008749/0.0008749, allocations: 173 kB / 16.92 MB, free: 6.652 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.308/1.308, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2/0.2, allocations: 22.34 MB / 314.4 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003113, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2658, allocations: 55.98 MB / 439.2 MB, free: 39.17 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.02265/0.2884, allocations: 21.06 MB / 460.3 MB, free: 31.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.2908, allocations: 1.616 MB / 461.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.2909, allocations: 6.094 kB / 461.9 MB, free: 30.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.2912, allocations: 63.72 kB / 462 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.2915, allocations: 79.58 kB / 462.1 MB, free: 30.71 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.0008278/0.2923, allocations: 411 kB / 462.5 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000414/0.2927, allocations: 382.3 kB / 462.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.2928, allocations: 63.23 kB / 462.9 MB, free: 30.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.293, allocations: 142.6 kB / 463 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005611/0.2936, allocations: 190.7 kB / 463.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.133e-05/0.2936, allocations: 10.59 kB / 463.2 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005884/0.2942, allocations: 434.4 kB / 463.7 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.2943, allocations: 88.06 kB / 463.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.657e-05/0.2944, allocations: 136.1 kB / 463.9 MB, free: 29.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003896/0.2948, allocations: 378.6 kB / 464.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2948, allocations: 0.9062 kB / 464.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2949, allocations: 0 / 464.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2949, allocations: 0 / 464.2 MB, free: 29.88 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.001621/0.2965, allocations: 0.7648 MB / 465 MB, free: 29.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.2965, allocations: 8.344 kB / 465 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.2967, allocations: 33.66 kB / 465 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007721/0.2974, allocations: 414.4 kB / 465.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.2975, allocations: 11.84 kB / 465.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.2975, allocations: 17.59 kB / 465.5 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.2978, allocations: 183.5 kB / 465.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.2979, allocations: 0 / 465.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.2979, allocations: 9.266 kB / 465.7 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.2979, allocations: 7.562 kB / 465.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003715/0.2983, allocations: 175 kB / 465.8 MB, free: 28.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009879/0.2993, allocations: 0.6514 MB / 466.5 MB, free: 28.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.2999, allocations: 272.2 kB / 466.8 MB, free: 28.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001963/0.3001, allocations: 114.5 kB / 466.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.3001, allocations: 2.25 kB / 466.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.3004, allocations: 187.3 kB / 467.1 MB, free: 28.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.883e-06/0.3004, allocations: 0 / 467.1 MB, free: 28.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001475/0.3019, allocations: 0.6175 MB / 467.7 MB, free: 28.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.302, allocations: 65.03 kB / 467.7 MB, free: 27.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007941/0.3028, allocations: 418.8 kB / 468.2 MB, free: 27.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.3028, allocations: 42.94 kB / 468.2 MB, free: 27.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.128e-05/0.3029, allocations: 161 kB / 468.4 MB, free: 27.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.712e-05/0.303, allocations: 83.39 kB / 468.4 MB, free: 27.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.513e-05/0.303, allocations: 37.78 kB / 468.5 MB, free: 27.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.3031, allocations: 346.1 kB / 468.8 MB, free: 27.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.3033, allocations: 123.2 kB / 468.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.3035, allocations: 157.8 kB / 469.1 MB, free: 27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/0.3055, allocations: 0.6726 MB / 469.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3056, allocations: 8 kB / 469.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007361/0.3063, allocations: 461 kB / 470.2 MB, free: 26.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3063, allocations: 4 kB / 470.2 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3063, allocations: 0 / 470.2 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002332/0.3066, allocations: 73.25 kB / 470.3 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.3068, allocations: 46.61 kB / 470.3 MB, free: 25.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/0.3079, allocations: 1.64 MB / 472 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000362/0.3083, allocations: 70.83 kB / 472 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.3083, allocations: 12 kB / 472.1 MB, free: 24.21 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.0001888/0.3085, allocations: 169.2 kB / 472.2 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/0.3086, allocations: 31.62 kB / 472.3 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.099e-05/0.3086, allocations: 45.66 kB / 472.3 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3086, allocations: 4 kB / 472.3 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3087, allocations: 4 kB / 472.3 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3087, allocations: 0 / 472.3 MB, free: 23.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.3089, allocations: 341.3 kB / 472.6 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3089, allocations: 4 kB / 472.6 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.3091, allocations: 27.22 kB / 472.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/0.3093, allocations: 76.41 kB / 472.7 MB, free: 23.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.3093, allocations: 11.94 kB / 472.8 MB, free: 23.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.3105, allocations: 1.743 MB / 474.5 MB, free: 21.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3106, allocations: 0 / 474.5 MB, free: 21.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008132/0.3114, allocations: 0.5198 MB / 475 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.3114, allocations: 120.5 kB / 475.1 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.3115, allocations: 11.94 kB / 475.1 MB, free: 21.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.3118, allocations: 45.77 kB / 475.2 MB, free: 21.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.3119, allocations: 23.22 kB / 475.2 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.3119, allocations: 10.86 kB / 475.2 MB, free: 21.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006203/0.3125, allocations: 325.9 kB / 475.5 MB, free: 20.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3125, allocations: 0 / 475.5 MB, free: 20.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005495/0.3131, allocations: 151 kB / 475.7 MB, free: 20.7 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.0006311/0.3137, allocations: 331.9 kB / 476 MB, free: 20.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006327/0.3144, allocations: 425.4 kB / 476.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3144, allocations: 0 / 476.4 MB, free: 20.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003838/0.3148, allocations: 267.1 kB / 476.7 MB, free: 19.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.3151, allocations: 41.17 kB / 476.7 MB, free: 19.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007616/0.3159, allocations: 0.7336 MB / 477.5 MB, free: 19.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/0.316, allocations: 0.7852 MB / 478.2 MB, free: 18.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.627e-05/0.3161, allocations: 23.44 kB / 478.3 MB, free: 18.26 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3161, allocations: 4 kB / 478.3 MB, free: 18.26 MB / 350.1 MB Notification: Performance of Templates: time 0.008642/0.3248, allocations: 6.66 MB / 484.9 MB, free: 14.39 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)