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.00143/0.001431, allocations: 114.9 kB / 16.37 MB, free: 5.984 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.00154/0.00154, allocations: 192.6 kB / 17.31 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08864/0.08864, allocations: 22.33 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 62.5 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1119, allocations: 54.96 MB / 437.2 MB, free: 12.28 MB / 318.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.03053/0.1424, allocations: 21.26 MB / 458.5 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.1454, allocations: 1.594 MB / 460.1 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1456, allocations: 7.938 kB / 460.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003938/0.146, allocations: 67.55 kB / 460.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002454/0.1463, allocations: 95.45 kB / 460.2 MB, free: 5.383 MB / 334.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.00111/0.1474, allocations: 486.7 kB / 460.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.1479, allocations: 407.1 kB / 461.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.148, allocations: 56.66 kB / 461.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.1482, allocations: 167.4 kB / 461.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006466/0.1489, allocations: 203.1 kB / 461.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.149, allocations: 24 kB / 461.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000593/0.1496, allocations: 407.3 kB / 461.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.1497, allocations: 99.7 kB / 462 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.1499, allocations: 123.2 kB / 462.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000653/0.1505, allocations: 0.5336 MB / 462.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1505, allocations: 0 / 462.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1505, allocations: 0 / 462.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1506, allocations: 4 kB / 462.7 MB, free: 2.914 MB / 334.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.001871/0.1524, allocations: 0.8021 MB / 463.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1525, allocations: 8.031 kB / 463.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/0.1527, allocations: 40.56 kB / 463.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009438/0.1536, allocations: 407.8 kB / 463.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.1537, allocations: 12.38 kB / 464 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.1537, allocations: 20.12 kB / 464 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003666/0.1541, allocations: 182.3 kB / 464.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.1541, allocations: 0 / 464.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.1542, allocations: 4 kB / 464.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.1542, allocations: 7.984 kB / 464.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003902/0.1546, allocations: 168.7 kB / 464.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.1558, allocations: 0.6528 MB / 465 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006397/0.1564, allocations: 270.3 kB / 465.2 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.1566, allocations: 107.2 kB / 465.3 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.1567, allocations: 4 kB / 465.4 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003476/0.157, allocations: 179.2 kB / 465.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.653e-06/0.157, allocations: 0 / 465.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001555/0.1586, allocations: 0.608 MB / 466.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.1587, allocations: 55.41 kB / 466.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008045/0.1595, allocations: 424.4 kB / 466.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.1595, allocations: 37.7 kB / 466.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.1596, allocations: 160.4 kB / 466.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.896e-05/0.1597, allocations: 78.91 kB / 466.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.036e-05/0.1598, allocations: 65.67 kB / 466.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1599, allocations: 346.8 kB / 467.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.1602, allocations: 120.2 kB / 467.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.1604, allocations: 151 kB / 467.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.1627, allocations: 0.6592 MB / 468.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.611e-05/0.1627, allocations: 4 kB / 468.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008444/0.1636, allocations: 464.9 kB / 468.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1636, allocations: 8 kB / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1636, allocations: 0 / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.1639, allocations: 76.8 kB / 468.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.1641, allocations: 39.97 kB / 468.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.1658, allocations: 1.75 MB / 470.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.1662, allocations: 59.8 kB / 470.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.1662, allocations: 8 kB / 470.6 MB, free: 10.59 MB / 350.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.0002268/0.1664, allocations: 183.2 kB / 470.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.809e-05/0.1665, allocations: 35.56 kB / 470.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.486e-05/0.1666, allocations: 39.09 kB / 470.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1666, allocations: 0 / 470.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.1666, allocations: 4.188 kB / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1666, allocations: 0 / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003356/0.1669, allocations: 349.3 kB / 471.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.167, allocations: 3.938 kB / 471.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.1671, allocations: 27.92 kB / 471.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002313/0.1674, allocations: 72.78 kB / 471.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.1674, allocations: 4 kB / 471.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/0.1692, allocations: 1.928 MB / 473.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1693, allocations: 0 / 473.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009639/0.1702, allocations: 0.5035 MB / 473.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.1703, allocations: 124.8 kB / 473.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.382e-05/0.1704, allocations: 20 kB / 473.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003502/0.1708, allocations: 43.92 kB / 473.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.377e-05/0.1708, allocations: 15.98 kB / 473.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.1709, allocations: 15.92 kB / 473.9 MB, free: 7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006748/0.1715, allocations: 318.9 kB / 474.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1716, allocations: 0 / 474.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005357/0.1721, allocations: 148 kB / 474.4 MB, free: 6.543 MB / 350.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.0006851/0.1728, allocations: 342.9 kB / 474.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008431/0.1736, allocations: 415.3 kB / 475.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1737, allocations: 0 / 475.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004878/0.1741, allocations: 278.5 kB / 475.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.1745, allocations: 47.64 kB / 475.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009331/0.1754, allocations: 0.5793 MB / 476 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.1758, allocations: 0.7909 MB / 476.8 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001368/0.1759, allocations: 54.25 kB / 476.9 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.176, allocations: 31.42 kB / 476.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.176, allocations: 0 / 476.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of Templates: time 0.009363/0.1853, allocations: 5.332 MB / 482.2 MB, free: 14.66 MB / 366.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1)