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.001478/0.001478, allocations: 104.3 kB / 16.4 MB, free: 5.977 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.001327/0.001327, allocations: 188.8 kB / 17.34 MB, free: 5.586 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.339/1.339, 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.08885/0.08885, allocations: 22.32 MB / 313.5 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 67.88 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1109, allocations: 54.95 MB / 492.7 MB, free: 4.742 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.4612/0.5722, allocations: 21.46 MB / 0.5021 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002821/0.575, allocations: 1.597 MB / 0.5036 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.5752, allocations: 4.25 kB / 0.5036 GB, free: 5.754 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003863/0.5756, allocations: 72.7 kB / 0.5037 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.5758, allocations: 95.89 kB / 0.5038 GB, free: 5.695 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.001211/0.5771, allocations: 487.2 kB / 0.5043 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005116/0.5776, allocations: 411.9 kB / 0.5047 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.5777, allocations: 52.27 kB / 0.5047 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002348/0.578, allocations: 175.8 kB / 0.5049 GB, free: 5.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006875/0.5787, allocations: 199.8 kB / 0.5051 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.783e-05/0.5788, allocations: 26.22 kB / 0.5051 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007351/0.5795, allocations: 397.2 kB / 0.5055 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.5796, allocations: 102.8 kB / 0.5056 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.5798, allocations: 128.1 kB / 0.5057 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007624/0.5805, allocations: 0.5346 MB / 0.5062 GB, free: 5.258 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.5806, allocations: 0 / 0.5062 GB, free: 5.258 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.5806, allocations: 0 / 0.5062 GB, free: 5.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.5806, allocations: 0 / 0.5062 GB, free: 5.258 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.001848/0.5824, allocations: 0.7902 MB / 0.507 GB, free: 4.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.5825, allocations: 11.28 kB / 0.507 GB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.5826, allocations: 40.31 kB / 0.507 GB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008662/0.5835, allocations: 412.5 kB / 0.5074 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.5836, allocations: 16.59 kB / 0.5074 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.607e-05/0.5836, allocations: 22.09 kB / 0.5075 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.584, allocations: 182.3 kB / 0.5076 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.584, allocations: 0.6562 kB / 0.5076 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.5841, allocations: 10.28 kB / 0.5076 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5841, allocations: 2.844 kB / 0.5076 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/0.5845, allocations: 170.1 kB / 0.5078 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.5856, allocations: 0.6429 MB / 0.5084 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000705/0.5864, allocations: 272.4 kB / 0.5087 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.5866, allocations: 110.9 kB / 0.5088 GB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.5866, allocations: 4.875 kB / 0.5088 GB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003606/0.587, allocations: 180.3 kB / 0.509 GB, free: 4.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.264e-06/0.587, allocations: 0 / 0.509 GB, free: 4.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001722/0.5887, allocations: 0.6072 MB / 0.5096 GB, free: 3.898 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.5888, allocations: 61.42 kB / 0.5096 GB, free: 3.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009038/0.5897, allocations: 423.1 kB / 0.51 GB, free: 3.723 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.5898, allocations: 35.86 kB / 0.5101 GB, free: 3.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.5899, allocations: 161.6 kB / 0.5102 GB, free: 3.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.936e-05/0.59, allocations: 80.81 kB / 0.5103 GB, free: 3.547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.5901, allocations: 59.45 kB / 0.5104 GB, free: 3.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.155e-05/0.5902, allocations: 347.6 kB / 0.5107 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/0.5904, allocations: 119.1 kB / 0.5108 GB, free: 3.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.5907, allocations: 159.1 kB / 0.511 GB, free: 3.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002365/0.5931, allocations: 0.6734 MB / 0.5116 GB, free: 3.156 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.5931, allocations: 1.062 kB / 0.5116 GB, free: 3.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009901/0.5941, allocations: 453.9 kB / 0.512 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.5941, allocations: 5.844 kB / 0.5121 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.5941, allocations: 1.031 kB / 0.5121 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003001/0.5944, allocations: 81.39 kB / 0.5121 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.5946, allocations: 36.09 kB / 0.5122 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.5962, allocations: 1.753 MB / 0.5139 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004463/0.5967, allocations: 59.14 kB / 0.5139 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.5967, allocations: 11.69 kB / 0.5139 GB, free: 1.691 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.0002553/0.597, allocations: 172.7 kB / 0.5141 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.827e-05/0.597, allocations: 35.92 kB / 0.5141 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.574e-05/0.5971, allocations: 38.73 kB / 0.5142 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.5971, allocations: 2.969 kB / 0.5142 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.5971, allocations: 1.406 kB / 0.5142 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.5971, allocations: 1.547 kB / 0.5142 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003683/0.5975, allocations: 341.3 kB / 0.5145 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.5975, allocations: 6.594 kB / 0.5145 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.5977, allocations: 26.5 kB / 0.5145 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000243/0.5979, allocations: 73.58 kB / 0.5146 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.598, allocations: 7.859 kB / 0.5146 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001655/0.5996, allocations: 1.938 MB / 0.5165 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5997, allocations: 0 / 0.5165 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.6008, allocations: 0.5175 MB / 0.517 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.601, allocations: 112.2 kB / 0.5171 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.601, allocations: 18.31 kB / 0.5171 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.6014, allocations: 48.86 kB / 0.5172 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.6015, allocations: 20.61 kB / 0.5172 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.6015, allocations: 4.062 kB / 0.5172 GB, free: 15.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008411/0.6024, allocations: 320.1 kB / 0.5175 GB, free: 15.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6024, allocations: 6.625 kB / 0.5175 GB, free: 15.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008304/0.6032, allocations: 149.2 kB / 0.5177 GB, free: 15.48 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.0008766/0.6041, allocations: 321.8 kB / 0.518 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009809/0.6051, allocations: 418.3 kB / 0.5184 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6051, allocations: 0 / 0.5184 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005572/0.6057, allocations: 277.3 kB / 0.5186 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.6061, allocations: 40.06 kB / 0.5187 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.6073, allocations: 0.6212 MB / 0.5193 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/0.6077, allocations: 0.7886 MB / 0.5201 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.143e-05/0.6078, allocations: 26.89 kB / 0.5201 GB, free: 14.11 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6079, allocations: 1.188 kB / 0.5201 GB, free: 14.11 MB / 398.1 MB Notification: Performance of Templates: time 0.01359/0.6214, allocations: 6.722 MB / 0.5266 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)