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.001165/0.001165, allocations: 109 kB / 16.37 MB, free: 6.004 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.001299/0.0013, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.356/1.356, 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.09084/0.09084, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 60.55 kB / 382.2 MB, free: 41.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09605, allocations: 54.96 MB / 437.2 MB, free: 12.27 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.03312/0.1292, allocations: 21.26 MB / 458.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.1322, allocations: 1.602 MB / 460.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.1324, allocations: 4 kB / 460.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003535/0.1328, allocations: 67.5 kB / 460.1 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002315/0.133, allocations: 91.47 kB / 460.2 MB, free: 5.375 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.001002/0.134, allocations: 498.6 kB / 460.7 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004231/0.1345, allocations: 399.2 kB / 461.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1346, allocations: 56.67 kB / 461.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001999/0.1348, allocations: 175.3 kB / 461.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006249/0.1354, allocations: 205.6 kB / 461.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.707e-05/0.1355, allocations: 24 kB / 461.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005757/0.1361, allocations: 403.4 kB / 461.9 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1362, allocations: 95.66 kB / 462 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1363, allocations: 127.2 kB / 462.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007049/0.1371, allocations: 0.5297 MB / 462.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1371, allocations: 0 / 462.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1371, allocations: 0 / 462.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.1371, allocations: 0 / 462.7 MB, free: 2.91 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.001872/0.139, allocations: 0.7982 MB / 463.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.139, allocations: 12.03 kB / 463.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.1392, allocations: 36.56 kB / 463.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009127/0.1401, allocations: 407.9 kB / 463.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.1401, allocations: 12.38 kB / 463.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.1402, allocations: 24.12 kB / 464 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.1405, allocations: 190.3 kB / 464.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1405, allocations: 0 / 464.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.1405, allocations: 11.98 kB / 464.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1406, allocations: 4 kB / 464.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.141, allocations: 168.7 kB / 464.3 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.1421, allocations: 0.6528 MB / 465 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006407/0.1427, allocations: 267 kB / 465.3 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.143, allocations: 108.8 kB / 465.4 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.143, allocations: 4 kB / 465.4 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003119/0.1433, allocations: 179.1 kB / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.814e-06/0.1433, allocations: 0 / 465.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001553/0.1449, allocations: 0.6042 MB / 466.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.145, allocations: 63.39 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008304/0.1458, allocations: 416.4 kB / 466.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.113e-05/0.1458, allocations: 37.7 kB / 466.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.146, allocations: 168.4 kB / 466.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.804e-05/0.146, allocations: 74.91 kB / 466.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.514e-05/0.1461, allocations: 61.69 kB / 466.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1463, allocations: 350.8 kB / 467.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.1465, allocations: 116.3 kB / 467.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002511/0.1468, allocations: 151 kB / 467.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002175/0.149, allocations: 0.663 MB / 468.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.149, allocations: 0 / 468.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008234/0.1498, allocations: 461 kB / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1499, allocations: 4 kB / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1499, allocations: 0 / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002747/0.1501, allocations: 80.78 kB / 468.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.1503, allocations: 39.92 kB / 468.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/0.152, allocations: 1.755 MB / 470.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.1524, allocations: 59.81 kB / 470.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.1524, allocations: 8 kB / 470.6 MB, free: 10.58 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.0002171/0.1526, allocations: 183.2 kB / 470.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.1527, allocations: 31.56 kB / 470.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.02e-05/0.1528, allocations: 39.09 kB / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.1528, allocations: 4 kB / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1528, allocations: 0 / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1528, allocations: 0 / 470.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003264/0.1531, allocations: 345.3 kB / 471.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1532, allocations: 7.922 kB / 471.2 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.1533, allocations: 31.92 kB / 471.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002183/0.1536, allocations: 68.8 kB / 471.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.1536, allocations: 8 kB / 471.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001858/0.1555, allocations: 1.928 MB / 473.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1555, allocations: 3.938 kB / 473.2 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009522/0.1564, allocations: 0.5058 MB / 473.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.639e-05/0.1565, allocations: 120.6 kB / 473.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.1566, allocations: 12 kB / 473.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.157, allocations: 47.92 kB / 473.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.031e-05/0.157, allocations: 27.91 kB / 473.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1571, allocations: 4 kB / 474 MB, free: 6.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006797/0.1577, allocations: 318.9 kB / 474.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1577, allocations: 0 / 474.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005374/0.1583, allocations: 152 kB / 474.4 MB, free: 6.527 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.000687/0.159, allocations: 332 kB / 474.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000778/0.1598, allocations: 418.3 kB / 475.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1598, allocations: 0 / 475.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.1603, allocations: 278.5 kB / 475.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.1606, allocations: 48.5 kB / 475.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009493/0.1616, allocations: 0.5807 MB / 476 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1619, allocations: 0.787 MB / 476.8 MB, free: 4.059 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.1621, allocations: 58.23 kB / 476.9 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.531e-05/0.1621, allocations: 19.44 kB / 476.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1621, allocations: 0 / 476.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of Templates: time 0.01035/0.1725, allocations: 5.346 MB / 482.3 MB, free: 14.65 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 gbode -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1)