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.001028/0.001028, allocations: 115.5 kB / 16.42 MB, free: 5.988 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.001046/0.001046, allocations: 184.5 kB / 17.35 MB, free: 5.602 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09638/0.09638, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0854/0.08667, allocations: 54.95 MB / 492.7 MB, free: 4.777 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.3444/0.4311, allocations: 21.53 MB / 0.5022 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.4333, allocations: 1.594 MB / 0.5037 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.797e-05/0.4334, allocations: 4.188 kB / 0.5037 GB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.4337, allocations: 74.7 kB / 0.5038 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.4339, allocations: 96.31 kB / 0.5039 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.0008385/0.4348, allocations: 485.6 kB / 0.5043 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.4351, allocations: 412.3 kB / 0.5047 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.4353, allocations: 63.2 kB / 0.5048 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.4354, allocations: 168.6 kB / 0.505 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000573/0.436, allocations: 207 kB / 0.5052 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.836e-05/0.4361, allocations: 20.66 kB / 0.5052 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005345/0.4366, allocations: 406 kB / 0.5056 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.4367, allocations: 100.5 kB / 0.5057 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.4368, allocations: 122.6 kB / 0.5058 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005994/0.4375, allocations: 0.5284 MB / 0.5063 GB, free: 5.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.4375, allocations: 0 / 0.5063 GB, free: 5.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4375, allocations: 2.688 kB / 0.5063 GB, free: 5.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.4375, allocations: 0 / 0.5063 GB, free: 5.277 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.00169/0.4392, allocations: 0.7984 MB / 0.5071 GB, free: 4.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.4392, allocations: 9.812 kB / 0.5071 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.4393, allocations: 37.44 kB / 0.5071 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008191/0.4402, allocations: 407.5 kB / 0.5075 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.4402, allocations: 15.47 kB / 0.5075 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/0.4402, allocations: 20.08 kB / 0.5075 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.4406, allocations: 188.7 kB / 0.5077 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.4406, allocations: 1.844 kB / 0.5077 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.4406, allocations: 4.359 kB / 0.5077 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.4406, allocations: 5.25 kB / 0.5077 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003685/0.441, allocations: 172.1 kB / 0.5079 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.4421, allocations: 0.6476 MB / 0.5085 GB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.4427, allocations: 259.8 kB / 0.5088 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.4429, allocations: 110.1 kB / 0.5089 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.443, allocations: 1.125 kB / 0.5089 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003087/0.4433, allocations: 184.1 kB / 0.5091 GB, free: 4.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.804e-06/0.4433, allocations: 0 / 0.5091 GB, free: 4.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001518/0.4448, allocations: 0.6075 MB / 0.5096 GB, free: 3.918 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.4449, allocations: 66.22 kB / 0.5097 GB, free: 3.852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008322/0.4457, allocations: 418.3 kB / 0.5101 GB, free: 3.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.4457, allocations: 41.7 kB / 0.5101 GB, free: 3.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.733e-05/0.4458, allocations: 161 kB / 0.5103 GB, free: 3.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.835e-05/0.4459, allocations: 77.33 kB / 0.5104 GB, free: 3.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-05/0.446, allocations: 58.91 kB / 0.5104 GB, free: 3.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.808e-05/0.446, allocations: 344.2 kB / 0.5108 GB, free: 3.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.4463, allocations: 120.8 kB / 0.5109 GB, free: 3.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.4465, allocations: 148 kB / 0.511 GB, free: 3.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002161/0.4487, allocations: 0.6802 MB / 0.5117 GB, free: 3.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4487, allocations: 3.938 kB / 0.5117 GB, free: 3.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008183/0.4495, allocations: 458.1 kB / 0.5121 GB, free: 3.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.4496, allocations: 6.812 kB / 0.5121 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.4496, allocations: 2.688 kB / 0.5121 GB, free: 3.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002643/0.4498, allocations: 74.2 kB / 0.5122 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.4501, allocations: 48.2 kB / 0.5122 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001349/0.4514, allocations: 1.745 MB / 0.514 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.4518, allocations: 64.56 kB / 0.514 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.326e-05/0.4519, allocations: 7.328 kB / 0.514 GB, free: 1.707 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.0001709/0.4521, allocations: 169.8 kB / 0.5142 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.4521, allocations: 35.03 kB / 0.5142 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.117e-05/0.4522, allocations: 43.84 kB / 0.5143 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.4522, allocations: 1.172 kB / 0.5143 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.4522, allocations: 0 / 0.5143 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.326e-05/0.4523, allocations: 116.5 kB / 0.5144 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.776e-05/0.4523, allocations: 10.81 kB / 0.5144 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004552/0.4528, allocations: 48.17 kB / 0.5144 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.911e-05/0.4529, allocations: 21.47 kB / 0.5144 GB, free: 1.441 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001174/0.4541, allocations: 0.5005 MB / 0.5149 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008332/0.4549, allocations: 0.6101 MB / 0.5155 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002158/0.4551, allocations: 116.5 kB / 0.5156 GB, free: 1.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007147/0.4559, allocations: 319 kB / 0.5159 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of Backend: time 4.71e-07/0.4559, allocations: 0 / 0.5159 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.4574, allocations: 0.614 MB / 0.5165 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of SimCode: time 0.0008261/0.4582, allocations: 1.013 MB / 0.5175 GB, free: 0 / 382.1 MB Notification: Performance of Templates: time 0.01094/0.4691, allocations: 5.75 MB / 0.5231 GB, free: 14.66 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)