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.001536/0.001536, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00189/0.00189, allocations: 196.5 kB / 16.14 MB, free: 6.711 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.437/1.437, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2073/0.2073, allocations: 22.34 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 67.88 kB / 380.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2752, allocations: 54.93 MB / 435 MB, free: 39.72 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.0302/0.3055, allocations: 21.54 MB / 456.6 MB, free: 32.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002539/0.308, allocations: 1.655 MB / 458.2 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.3083, allocations: 2.844 kB / 458.2 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003659/0.3086, allocations: 60.11 kB / 458.3 MB, free: 31.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002705/0.3089, allocations: 89.55 kB / 458.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.001036/0.31, allocations: 400 kB / 458.8 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004409/0.3104, allocations: 384.5 kB / 459.1 MB, free: 30.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.3105, allocations: 62.97 kB / 459.2 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.3108, allocations: 151.3 kB / 459.3 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006261/0.3114, allocations: 198.7 kB / 459.5 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.913e-05/0.3115, allocations: 12.78 kB / 459.5 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007103/0.3122, allocations: 437.2 kB / 460 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.3123, allocations: 92.55 kB / 460.1 MB, free: 30.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.3125, allocations: 110.8 kB / 460.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007319/0.3132, allocations: 0.5311 MB / 460.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3132, allocations: 0 / 460.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.3132, allocations: 0 / 460.7 MB, free: 30.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.3132, allocations: 0 / 460.7 MB, free: 30.08 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.001968/0.3152, allocations: 0.8047 MB / 461.5 MB, free: 29.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.3153, allocations: 8.938 kB / 461.5 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.3154, allocations: 37.31 kB / 461.6 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008546/0.3163, allocations: 405.8 kB / 462 MB, free: 29.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.3163, allocations: 9.938 kB / 462 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.3164, allocations: 18.75 kB / 462 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003606/0.3167, allocations: 181.6 kB / 462.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.3168, allocations: 11.36 kB / 462.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.3168, allocations: 1.562 kB / 462.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.3168, allocations: 7.25 kB / 462.2 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003984/0.3172, allocations: 171.8 kB / 462.3 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.3183, allocations: 0.6498 MB / 463 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006348/0.319, allocations: 258.1 kB / 463.2 MB, free: 28.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.3192, allocations: 118.5 kB / 463.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.3192, allocations: 2.188 kB / 463.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000302/0.3195, allocations: 174.1 kB / 463.5 MB, free: 28.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.225e-06/0.3195, allocations: 0 / 463.5 MB, free: 28.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001549/0.3211, allocations: 0.6059 MB / 464.1 MB, free: 28.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.3211, allocations: 61.47 kB / 464.2 MB, free: 28.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000818/0.322, allocations: 416.9 kB / 464.6 MB, free: 27.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.55e-05/0.322, allocations: 40.23 kB / 464.6 MB, free: 27.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.3221, allocations: 161 kB / 464.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.714e-05/0.3222, allocations: 88.75 kB / 464.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.221e-05/0.3223, allocations: 55.94 kB / 464.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.387e-05/0.3223, allocations: 345.5 kB / 465.3 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002292/0.3226, allocations: 119.1 kB / 465.4 MB, free: 27.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.3228, allocations: 151 kB / 465.5 MB, free: 27.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/0.325, allocations: 0.6705 MB / 466.2 MB, free: 26.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.325, allocations: 0 / 466.2 MB, free: 26.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007723/0.3258, allocations: 461.1 kB / 466.7 MB, free: 26.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.3259, allocations: 5.719 kB / 466.7 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3259, allocations: 4 kB / 466.7 MB, free: 26.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002534/0.3261, allocations: 72.92 kB / 466.7 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.3263, allocations: 39.12 kB / 466.8 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.3275, allocations: 1.651 MB / 468.4 MB, free: 24.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003816/0.3279, allocations: 64.38 kB / 468.5 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.3279, allocations: 12 kB / 468.5 MB, free: 24.65 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.0001912/0.3281, allocations: 171.5 kB / 468.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.999e-05/0.3282, allocations: 27.62 kB / 468.7 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.227e-05/0.3283, allocations: 50.27 kB / 468.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3283, allocations: 3.938 kB / 468.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3283, allocations: 4 kB / 468.8 MB, free: 24.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.3283, allocations: 0 / 468.8 MB, free: 24.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002632/0.3286, allocations: 340.5 kB / 469.1 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3286, allocations: 0 / 469.1 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.3287, allocations: 21.72 kB / 469.1 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000212/0.329, allocations: 76.8 kB / 469.2 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.329, allocations: 19.2 kB / 469.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.3303, allocations: 1.753 MB / 471 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3303, allocations: 0 / 471 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008431/0.3312, allocations: 0.5155 MB / 471.5 MB, free: 21.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.081e-05/0.3313, allocations: 115.9 kB / 471.6 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.3313, allocations: 8 kB / 471.6 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003386/0.3317, allocations: 46.09 kB / 471.6 MB, free: 21.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.397e-05/0.3317, allocations: 21.84 kB / 471.7 MB, free: 21.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.3318, allocations: 12 kB / 471.7 MB, free: 21.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000623/0.3324, allocations: 317.6 kB / 472 MB, free: 21.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3324, allocations: 0 / 472 MB, free: 21.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.3329, allocations: 162.5 kB / 472.1 MB, free: 21.13 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.0008393/0.3338, allocations: 317.5 kB / 472.5 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000675/0.3345, allocations: 418.4 kB / 472.9 MB, free: 20.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3345, allocations: 4.062 kB / 472.9 MB, free: 20.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000403/0.3349, allocations: 261 kB / 473.1 MB, free: 20.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.3352, allocations: 55.97 kB / 473.2 MB, free: 20.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008562/0.3361, allocations: 0.6775 MB / 473.9 MB, free: 19.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002032/0.3363, allocations: 0.7948 MB / 474.7 MB, free: 18.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.3364, allocations: 58.75 kB / 474.7 MB, free: 18.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/0.3365, allocations: 23.44 kB / 474.7 MB, free: 18.71 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3365, allocations: 0 / 474.7 MB, free: 18.71 MB / 350.1 MB Notification: Performance of Templates: time 0.009742/0.3463, allocations: 5.12 MB / 479.9 MB, free: 15.72 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)