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.007224/0.007224, allocations: 104.6 kB / 15.74 MB, free: 6.492 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.00181/0.00181, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.208/0.208, allocations: 22.37 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 62.19 kB / 437.1 MB, free: 33.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.116, allocations: 54.97 MB / 492 MB, free: 1.207 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.03051/0.1465, allocations: 21.47 MB / 0.5015 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003089/0.1496, allocations: 1.605 MB / 0.503 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1498, allocations: 4 kB / 0.503 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003862/0.1502, allocations: 71.48 kB / 0.5031 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.1504, allocations: 99.45 kB / 0.5032 GB, free: 10.07 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.0009579/0.1514, allocations: 486.7 kB / 0.5037 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004392/0.1518, allocations: 399.1 kB / 0.504 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.152, allocations: 64.7 kB / 0.5041 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.1522, allocations: 163.4 kB / 0.5043 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006239/0.1528, allocations: 199.2 kB / 0.5044 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.894e-05/0.1529, allocations: 20 kB / 0.5045 GB, free: 8.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005669/0.1535, allocations: 415.3 kB / 0.5049 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.1536, allocations: 99.64 kB / 0.505 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.1537, allocations: 123.2 kB / 0.5051 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000638/0.1544, allocations: 0.5297 MB / 0.5056 GB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1544, allocations: 0 / 0.5056 GB, free: 7.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1544, allocations: 0 / 0.5056 GB, free: 7.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1544, allocations: 0 / 0.5056 GB, free: 7.613 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.001762/0.1562, allocations: 0.8022 MB / 0.5064 GB, free: 6.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1562, allocations: 12.03 kB / 0.5064 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1563, allocations: 36.47 kB / 0.5064 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008234/0.1572, allocations: 407.9 kB / 0.5068 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.1572, allocations: 8.375 kB / 0.5068 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.1573, allocations: 24.11 kB / 0.5068 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003491/0.1576, allocations: 183.1 kB / 0.507 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1576, allocations: 0 / 0.507 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.1577, allocations: 8 kB / 0.507 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1577, allocations: 4 kB / 0.507 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003684/0.158, allocations: 172.1 kB / 0.5072 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.1591, allocations: 0.6451 MB / 0.5078 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006431/0.1598, allocations: 267.3 kB / 0.5081 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.16, allocations: 116.8 kB / 0.5082 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.16, allocations: 7.938 kB / 0.5082 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003032/0.1604, allocations: 171.2 kB / 0.5084 GB, free: 4.609 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.633e-06/0.1604, allocations: 0 / 0.5084 GB, free: 4.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001509/0.1619, allocations: 0.6057 MB / 0.509 GB, free: 3.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.1619, allocations: 67.39 kB / 0.509 GB, free: 3.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00078/0.1627, allocations: 420.3 kB / 0.5094 GB, free: 3.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.1628, allocations: 37.69 kB / 0.5095 GB, free: 3.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.988e-05/0.1629, allocations: 156.5 kB / 0.5096 GB, free: 3.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.605e-05/0.163, allocations: 78.91 kB / 0.5097 GB, free: 3.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/0.163, allocations: 57.7 kB / 0.5097 GB, free: 3.137 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1632, allocations: 346.8 kB / 0.5101 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.1634, allocations: 120.2 kB / 0.5102 GB, free: 2.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.1636, allocations: 155 kB / 0.5103 GB, free: 2.512 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002136/0.1658, allocations: 0.6745 MB / 0.511 GB, free: 1.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1658, allocations: 0 / 0.511 GB, free: 1.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000844/0.1666, allocations: 461.3 kB / 0.5114 GB, free: 1.371 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.1667, allocations: 4 kB / 0.5114 GB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.1667, allocations: 3.984 kB / 0.5114 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/0.167, allocations: 68.8 kB / 0.5115 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.1672, allocations: 47.91 kB / 0.5115 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.1688, allocations: 1.751 MB / 0.5133 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.1692, allocations: 67.8 kB / 0.5133 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.1692, allocations: 12 kB / 0.5133 GB, free: 15.28 MB / 398.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.0002354/0.1695, allocations: 167.3 kB / 0.5135 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.1695, allocations: 31.56 kB / 0.5135 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.876e-05/0.1696, allocations: 39.09 kB / 0.5136 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1696, allocations: 4 kB / 0.5136 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1696, allocations: 0 / 0.5136 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1696, allocations: 0 / 0.5136 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003484/0.17, allocations: 345.2 kB / 0.5139 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.17, allocations: 3.938 kB / 0.5139 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.1702, allocations: 31.86 kB / 0.5139 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002087/0.1704, allocations: 76.8 kB / 0.514 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.1704, allocations: 7.984 kB / 0.514 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.1721, allocations: 1.936 MB / 0.5159 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1721, allocations: 0 / 0.5159 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009147/0.173, allocations: 0.5101 MB / 0.5164 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.619e-05/0.1731, allocations: 116.7 kB / 0.5165 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.1732, allocations: 11.94 kB / 0.5165 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003275/0.1735, allocations: 47.94 kB / 0.5166 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-05/0.1736, allocations: 19.97 kB / 0.5166 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.1736, allocations: 8 kB / 0.5166 GB, free: 11.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000674/0.1743, allocations: 318.9 kB / 0.5169 GB, free: 11.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1743, allocations: 0 / 0.5169 GB, free: 11.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005202/0.1748, allocations: 159.8 kB / 0.517 GB, free: 11.23 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.0007361/0.1756, allocations: 330.3 kB / 0.5174 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007811/0.1764, allocations: 414.6 kB / 0.5178 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1764, allocations: 0 / 0.5178 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004767/0.1769, allocations: 286.3 kB / 0.518 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.1772, allocations: 37.08 kB / 0.5181 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009633/0.1781, allocations: 0.5892 MB / 0.5186 GB, free: 9.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.1785, allocations: 0.7948 MB / 0.5194 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000132/0.1786, allocations: 50.25 kB / 0.5195 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.94e-05/0.1787, allocations: 23.44 kB / 0.5195 GB, free: 8.664 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1787, allocations: 0 / 0.5195 GB, free: 8.664 MB / 398.1 MB Notification: Performance of Templates: time 0.01032/0.189, allocations: 5.488 MB / 0.5248 GB, free: 3.18 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)