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.001125/0.001124, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.001052/0.001052, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.304/1.304, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09427/0.09427, allocations: 22.33 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 59.91 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08384, allocations: 54.96 MB / 492.7 MB, free: 4.793 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.356/0.4399, allocations: 21.59 MB / 0.5022 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00222/0.4421, allocations: 1.604 MB / 0.5038 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.4422, allocations: 4.188 kB / 0.5038 GB, free: 5.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003074/0.4426, allocations: 74.42 kB / 0.5039 GB, free: 5.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002161/0.4428, allocations: 101.5 kB / 0.504 GB, free: 5.73 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.0008653/0.4437, allocations: 490.3 kB / 0.5044 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.4441, allocations: 403.9 kB / 0.5048 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.4442, allocations: 63.3 kB / 0.5049 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.4444, allocations: 173.3 kB / 0.505 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005691/0.4449, allocations: 200.9 kB / 0.5052 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.445, allocations: 22.78 kB / 0.5053 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005239/0.4455, allocations: 411.3 kB / 0.5056 GB, free: 5.465 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.4457, allocations: 96.16 kB / 0.5057 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.4458, allocations: 124.4 kB / 0.5059 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000614/0.4464, allocations: 0.5312 MB / 0.5064 GB, free: 5.289 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.4464, allocations: 4.453 kB / 0.5064 GB, free: 5.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4464, allocations: 0 / 0.5064 GB, free: 5.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.4464, allocations: 2.656 kB / 0.5064 GB, free: 5.289 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.4481, allocations: 0.815 MB / 0.5072 GB, free: 4.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.4482, allocations: 8.406 kB / 0.5072 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.4483, allocations: 33.64 kB / 0.5072 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008297/0.4491, allocations: 413 kB / 0.5076 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.4492, allocations: 10.95 kB / 0.5076 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.758e-05/0.4492, allocations: 18.19 kB / 0.5076 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.4495, allocations: 192.1 kB / 0.5078 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.4496, allocations: 0 / 0.5078 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.4496, allocations: 4.938 kB / 0.5078 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.4496, allocations: 2.531 kB / 0.5078 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003809/0.45, allocations: 174.9 kB / 0.508 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.451, allocations: 0.6459 MB / 0.5086 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006652/0.4517, allocations: 268.8 kB / 0.5089 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.452, allocations: 111.1 kB / 0.509 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.452, allocations: 1.875 kB / 0.509 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.4524, allocations: 179.8 kB / 0.5092 GB, free: 4.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.024e-06/0.4524, allocations: 0 / 0.5092 GB, free: 4.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001679/0.4541, allocations: 0.6027 MB / 0.5098 GB, free: 3.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.4541, allocations: 58.86 kB / 0.5098 GB, free: 3.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008556/0.455, allocations: 420.1 kB / 0.5102 GB, free: 3.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.455, allocations: 38.17 kB / 0.5102 GB, free: 3.703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.902e-05/0.4551, allocations: 162.8 kB / 0.5104 GB, free: 3.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.179e-05/0.4551, allocations: 89.44 kB / 0.5105 GB, free: 3.551 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/0.4552, allocations: 59.61 kB / 0.5105 GB, free: 3.535 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.796e-05/0.4553, allocations: 344.2 kB / 0.5109 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.4555, allocations: 122.5 kB / 0.511 GB, free: 3.219 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.4558, allocations: 149.8 kB / 0.5111 GB, free: 3.199 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/0.458, allocations: 0.67 MB / 0.5118 GB, free: 3.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.458, allocations: 5.344 kB / 0.5118 GB, free: 3.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008577/0.4589, allocations: 456.1 kB / 0.5122 GB, free: 3.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.4589, allocations: 6.375 kB / 0.5122 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.4589, allocations: 3.359 kB / 0.5122 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.4592, allocations: 73.88 kB / 0.5123 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001945/0.4594, allocations: 40.89 kB / 0.5123 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.4607, allocations: 1.754 MB / 0.5141 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003946/0.4611, allocations: 68.48 kB / 0.5141 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.4611, allocations: 11.22 kB / 0.5141 GB, free: 1.695 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.0001686/0.4613, allocations: 171.4 kB / 0.5143 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.4614, allocations: 37.27 kB / 0.5143 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.147e-05/0.4614, allocations: 38.95 kB / 0.5144 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4615, allocations: 2.328 kB / 0.5144 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4615, allocations: 2.656 kB / 0.5144 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.4615, allocations: 115.9 kB / 0.5145 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.4616, allocations: 11.39 kB / 0.5145 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003817/0.462, allocations: 47.72 kB / 0.5145 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/0.4621, allocations: 20.62 kB / 0.5146 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001204/0.4633, allocations: 0.5019 MB / 0.515 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000769/0.4641, allocations: 0.618 MB / 0.5157 GB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000218/0.4643, allocations: 115.1 kB / 0.5158 GB, free: 1.047 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007313/0.465, allocations: 319.4 kB / 0.5161 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of Backend: time 5.01e-07/0.465, allocations: 1.25 kB / 0.5161 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.4665, allocations: 0.602 MB / 0.5167 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of SimCode: time 0.0008462/0.4674, allocations: 1.041 MB / 0.5177 GB, free: 15.96 MB / 398.1 MB Notification: Performance of Templates: time 0.01054/0.4779, allocations: 5.749 MB / 0.5233 GB, free: 14.61 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)