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.001619/0.001618, allocations: 108 kB / 16.41 MB, free: 6.453 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.001643/0.001643, allocations: 187 kB / 17.34 MB, free: 5.719 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09144/0.09144, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 71.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.1005, allocations: 54.95 MB / 492.7 MB, free: 4.766 MB / 366.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.3899/0.4905, allocations: 21.46 MB / 0.5021 GB, free: 5.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.4929, allocations: 1.596 MB / 0.5036 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.4931, allocations: 2.438 kB / 0.5036 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003129/0.4934, allocations: 75.78 kB / 0.5037 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.4936, allocations: 96.92 kB / 0.5038 GB, free: 5.715 MB / 382.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.001105/0.4947, allocations: 488.3 kB / 0.5043 GB, free: 5.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004454/0.4952, allocations: 407.8 kB / 0.5047 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.4953, allocations: 58.69 kB / 0.5047 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.4955, allocations: 166.1 kB / 0.5049 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006209/0.4962, allocations: 204.3 kB / 0.5051 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.658e-05/0.4962, allocations: 23.38 kB / 0.5051 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005915/0.4968, allocations: 405.2 kB / 0.5055 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.497, allocations: 99 kB / 0.5056 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.4971, allocations: 127.2 kB / 0.5057 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006715/0.4978, allocations: 0.5321 MB / 0.5062 GB, free: 5.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.4978, allocations: 0 / 0.5062 GB, free: 5.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4978, allocations: 1.125 kB / 0.5062 GB, free: 5.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.4978, allocations: 0.875 kB / 0.5062 GB, free: 5.285 MB / 382.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.001675/0.4995, allocations: 0.79 MB / 0.507 GB, free: 4.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.4995, allocations: 9.406 kB / 0.507 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.4996, allocations: 41.67 kB / 0.507 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008093/0.5005, allocations: 412.3 kB / 0.5074 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.5005, allocations: 15.36 kB / 0.5074 GB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.61e-05/0.5005, allocations: 21.66 kB / 0.5075 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.5009, allocations: 191.1 kB / 0.5076 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.5009, allocations: 1.125 kB / 0.5076 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.501, allocations: 8.359 kB / 0.5076 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.501, allocations: 3.984 kB / 0.5077 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.5013, allocations: 169.7 kB / 0.5078 GB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.5024, allocations: 0.6421 MB / 0.5084 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006584/0.5031, allocations: 269.1 kB / 0.5087 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.5033, allocations: 113.9 kB / 0.5088 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.5033, allocations: 2.906 kB / 0.5088 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003149/0.5036, allocations: 173.5 kB / 0.509 GB, free: 4.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.843e-06/0.5036, allocations: 0 / 0.509 GB, free: 4.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001534/0.5052, allocations: 0.6104 MB / 0.5096 GB, free: 3.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.5052, allocations: 61.62 kB / 0.5096 GB, free: 3.863 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007746/0.506, allocations: 419.8 kB / 0.51 GB, free: 3.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.5061, allocations: 37.12 kB / 0.5101 GB, free: 3.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.173e-05/0.5061, allocations: 162.6 kB / 0.5102 GB, free: 3.625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.071e-05/0.5062, allocations: 84.12 kB / 0.5103 GB, free: 3.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-05/0.5063, allocations: 56.2 kB / 0.5104 GB, free: 3.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.446e-05/0.5064, allocations: 346 kB / 0.5107 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.5066, allocations: 116.7 kB / 0.5108 GB, free: 3.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.5068, allocations: 157 kB / 0.5109 GB, free: 3.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002144/0.509, allocations: 0.6704 MB / 0.5116 GB, free: 3.188 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.509, allocations: 0 / 0.5116 GB, free: 3.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000809/0.5098, allocations: 454.8 kB / 0.512 GB, free: 3.113 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.5098, allocations: 6.062 kB / 0.512 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.5099, allocations: 1.375 kB / 0.512 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/0.5102, allocations: 76.67 kB / 0.5121 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/0.5104, allocations: 41.23 kB / 0.5122 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001569/0.5119, allocations: 1.759 MB / 0.5139 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003796/0.5123, allocations: 57.44 kB / 0.5139 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.572e-05/0.5124, allocations: 12.48 kB / 0.5139 GB, free: 1.719 MB / 382.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.000207/0.5126, allocations: 173.7 kB / 0.5141 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.68e-05/0.5127, allocations: 38.3 kB / 0.5141 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.264e-05/0.5127, allocations: 37 kB / 0.5142 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.5127, allocations: 2.969 kB / 0.5142 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.5127, allocations: 1.969 kB / 0.5142 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.5128, allocations: 6.281 kB / 0.5142 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000316/0.5131, allocations: 340.8 kB / 0.5145 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.5131, allocations: 4.547 kB / 0.5145 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.5133, allocations: 27.61 kB / 0.5145 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002133/0.5135, allocations: 78.73 kB / 0.5146 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.5135, allocations: 9.188 kB / 0.5146 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.515, allocations: 1.934 MB / 0.5165 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.515, allocations: 1.125 kB / 0.5165 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000973/0.516, allocations: 0.51 MB / 0.517 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.965e-05/0.5161, allocations: 116.3 kB / 0.5171 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.5161, allocations: 11.19 kB / 0.5171 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003389/0.5165, allocations: 48.67 kB / 0.5172 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.507e-05/0.5165, allocations: 19.2 kB / 0.5172 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.5166, allocations: 5.438 kB / 0.5172 GB, free: 15.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006718/0.5172, allocations: 322.5 kB / 0.5175 GB, free: 15.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5173, allocations: 3.938 kB / 0.5175 GB, free: 15.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005751/0.5178, allocations: 151.9 kB / 0.5177 GB, free: 15.51 MB / 398.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.00073/0.5186, allocations: 322.7 kB / 0.518 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007915/0.5194, allocations: 417.9 kB / 0.5184 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5194, allocations: 0 / 0.5184 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004914/0.5199, allocations: 273 kB / 0.5186 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.5202, allocations: 50.3 kB / 0.5187 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.5212, allocations: 0.6202 MB / 0.5193 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.5216, allocations: 0.7886 MB / 0.5201 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.047e-05/0.5217, allocations: 30.19 kB / 0.5201 GB, free: 14.13 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5217, allocations: 0 / 0.5201 GB, free: 14.13 MB / 398.1 MB Notification: Performance of Templates: time 0.01131/0.533, allocations: 6.753 MB / 0.5267 GB, free: 12.14 MB / 398.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)