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.00124/0.00124, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001288/0.001288, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.347/1.347, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1995/0.1995, allocations: 22.36 MB / 312.4 MB, free: 12.64 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 67.89 kB / 380.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2884, allocations: 54.94 MB / 435.2 MB, free: 39.74 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.03138/0.3198, allocations: 21.54 MB / 456.8 MB, free: 32.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.3225, allocations: 1.604 MB / 458.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.3227, allocations: 2.281 kB / 458.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003952/0.3231, allocations: 64.45 kB / 458.4 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002291/0.3233, allocations: 74.61 kB / 458.5 MB, free: 31.05 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.001039/0.3244, allocations: 450.6 kB / 459 MB, free: 30.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.3248, allocations: 405.1 kB / 459.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.3249, allocations: 59.48 kB / 459.4 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.3251, allocations: 171.6 kB / 459.6 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00067/0.3258, allocations: 204.4 kB / 459.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.3258, allocations: 26.97 kB / 459.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000597/0.3264, allocations: 438.6 kB / 460.2 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.3266, allocations: 100 kB / 460.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.3267, allocations: 130.7 kB / 460.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006268/0.3273, allocations: 0.5303 MB / 461 MB, free: 30.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3273, allocations: 0 / 461 MB, free: 30.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3273, allocations: 1.156 kB / 461 MB, free: 30.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.3273, allocations: 0 / 461 MB, free: 30.05 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.001776/0.3291, allocations: 0.8078 MB / 461.8 MB, free: 29.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.3292, allocations: 10.03 kB / 461.8 MB, free: 29.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.3293, allocations: 36.38 kB / 461.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007834/0.3301, allocations: 405.1 kB / 462.2 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.3301, allocations: 10.47 kB / 462.2 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.091e-05/0.3302, allocations: 17.31 kB / 462.3 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.3305, allocations: 181.1 kB / 462.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3306, allocations: 0 / 462.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.3306, allocations: 5.281 kB / 462.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3306, allocations: 3.688 kB / 462.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.331, allocations: 175.2 kB / 462.6 MB, free: 29.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.332, allocations: 0.6532 MB / 463.3 MB, free: 28.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006301/0.3327, allocations: 272.3 kB / 463.5 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.3329, allocations: 115.6 kB / 463.6 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.3329, allocations: 2.281 kB / 463.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003125/0.3332, allocations: 172.5 kB / 463.8 MB, free: 28.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.823e-06/0.3333, allocations: 0 / 463.8 MB, free: 28.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001595/0.3349, allocations: 0.6024 MB / 464.4 MB, free: 28.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.3349, allocations: 64.62 kB / 464.5 MB, free: 28.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008068/0.3357, allocations: 412.3 kB / 464.9 MB, free: 27.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.3358, allocations: 43.92 kB / 464.9 MB, free: 27.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.3359, allocations: 163.6 kB / 465.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.206e-05/0.3359, allocations: 83.69 kB / 465.2 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.252e-05/0.336, allocations: 69.72 kB / 465.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.286e-05/0.3361, allocations: 346 kB / 465.6 MB, free: 27.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.3363, allocations: 113.3 kB / 465.7 MB, free: 27.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.3366, allocations: 154.3 kB / 465.8 MB, free: 27.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.3387, allocations: 0.6674 MB / 466.5 MB, free: 26.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3387, allocations: 0 / 466.5 MB, free: 26.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007618/0.3395, allocations: 464.6 kB / 467 MB, free: 26.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.3395, allocations: 4 kB / 467 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3395, allocations: 0 / 467 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002541/0.3398, allocations: 74.14 kB / 467 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.34, allocations: 46.5 kB / 467.1 MB, free: 26.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/0.3412, allocations: 1.752 MB / 468.8 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.3417, allocations: 68.83 kB / 468.9 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.3417, allocations: 12 kB / 468.9 MB, free: 24.31 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.0001945/0.3419, allocations: 154 kB / 469.1 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.652e-05/0.3419, allocations: 46.61 kB / 469.1 MB, free: 24.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.881e-05/0.342, allocations: 38.53 kB / 469.1 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.342, allocations: 7.938 kB / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.342, allocations: 0 / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.342, allocations: 0 / 469.2 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.3423, allocations: 341.1 kB / 469.5 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3423, allocations: 3.938 kB / 469.5 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.3425, allocations: 24.78 kB / 469.5 MB, free: 23.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.3427, allocations: 78.39 kB / 469.6 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.3427, allocations: 2.016 kB / 469.6 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.3441, allocations: 1.939 MB / 471.5 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3441, allocations: 0 / 471.5 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008266/0.3449, allocations: 0.5077 MB / 472 MB, free: 21.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.216e-05/0.345, allocations: 115.9 kB / 472.2 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.345, allocations: 11.94 kB / 472.2 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000367/0.3454, allocations: 52.53 kB / 472.2 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.803e-05/0.3455, allocations: 22.55 kB / 472.2 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.3455, allocations: 4 kB / 472.2 MB, free: 21.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00063/0.3461, allocations: 318.1 kB / 472.6 MB, free: 20.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.3462, allocations: 0 / 472.6 MB, free: 20.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005912/0.3468, allocations: 166.8 kB / 472.7 MB, free: 20.62 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.0006795/0.3474, allocations: 315 kB / 473 MB, free: 20.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007177/0.3482, allocations: 443.9 kB / 473.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3482, allocations: 0 / 473.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004207/0.3486, allocations: 267.5 kB / 473.7 MB, free: 19.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.3489, allocations: 45.06 kB / 473.8 MB, free: 19.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008154/0.3498, allocations: 0.6803 MB / 474.4 MB, free: 19.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.35, allocations: 0.7888 MB / 475.2 MB, free: 18.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001353/0.3501, allocations: 59.33 kB / 475.3 MB, free: 18.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.023e-05/0.3502, allocations: 23.44 kB / 475.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3502, allocations: 0 / 475.3 MB, free: 18.18 MB / 350.1 MB Notification: Performance of Templates: time 0.009567/0.3598, allocations: 5.294 MB / 480.6 MB, free: 15.1 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)