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.001099/0.001099, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.0009524/0.0009526, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2231/0.2231, allocations: 22.34 MB / 313.3 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003133/0.0003133, allocations: 8 kB / 381.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3458, allocations: 55.99 MB / 437.8 MB, free: 39.29 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.002144/0.348, allocations: 1.641 MB / 439.5 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.3501, allocations: 1.521 MB / 441 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.3502, allocations: 7 kB / 441 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003347/0.3505, allocations: 63.25 kB / 441 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.3507, allocations: 81.58 kB / 441.1 MB, free: 37.02 MB / 350.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.00071/0.3515, allocations: 383.6 kB / 441.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.3517, allocations: 231.6 kB / 441.7 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.3518, allocations: 48.92 kB / 441.8 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.352, allocations: 174.7 kB / 441.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.3523, allocations: 159.7 kB / 442.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/0.3523, allocations: 11.03 kB / 442.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004871/0.3528, allocations: 418.8 kB / 442.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.3529, allocations: 79.72 kB / 442.6 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.757e-05/0.353, allocations: 65.3 kB / 442.7 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004/0.3534, allocations: 377.1 kB / 443 MB, free: 36.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.3534, allocations: 0 / 443 MB, free: 36.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3534, allocations: 0 / 443 MB, free: 36.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.3534, allocations: 0 / 443 MB, free: 36.34 MB / 350.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.001671/0.3551, allocations: 0.7636 MB / 443.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.3551, allocations: 13.5 kB / 443.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.3553, allocations: 34.28 kB / 443.8 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007574/0.356, allocations: 399.6 kB / 444.2 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.541e-05/0.3561, allocations: 9.781 kB / 444.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.906e-05/0.3561, allocations: 12.78 kB / 444.3 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.3564, allocations: 181.6 kB / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3564, allocations: 0 / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.3565, allocations: 7.094 kB / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.3565, allocations: 6.812 kB / 444.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000339/0.3568, allocations: 180.8 kB / 444.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.3579, allocations: 0.6563 MB / 445.3 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005922/0.3585, allocations: 279.2 kB / 445.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.3585, allocations: 0 / 445.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000275/0.3588, allocations: 177 kB / 445.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.393e-06/0.3588, allocations: 0 / 445.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001435/0.3602, allocations: 0.6879 MB / 446.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.3603, allocations: 63.16 kB / 446.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007257/0.361, allocations: 417.8 kB / 446.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.361, allocations: 39.84 kB / 446.9 MB, free: 34.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.161e-05/0.3611, allocations: 165.4 kB / 447.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.566e-05/0.3612, allocations: 77.23 kB / 447.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.331e-05/0.3612, allocations: 4 kB / 447.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.354e-05/0.3613, allocations: 349.7 kB / 447.5 MB, free: 33.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.3615, allocations: 118.9 kB / 447.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.3617, allocations: 150 kB / 447.8 MB, free: 33.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.362, allocations: 144.3 kB / 447.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.362, allocations: 4 kB / 447.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007298/0.3627, allocations: 452.2 kB / 448.3 MB, free: 33.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.3627, allocations: 8.125 kB / 448.4 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3628, allocations: 3.984 kB / 448.4 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002774/0.363, allocations: 78.5 kB / 448.4 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.3632, allocations: 40.7 kB / 448.5 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3644, allocations: 1.667 MB / 450.1 MB, free: 31.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.3648, allocations: 66.55 kB / 450.2 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.3648, allocations: 9.656 kB / 450.2 MB, free: 31.79 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,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000172/0.365, allocations: 167.6 kB / 450.4 MB, free: 31.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.3651, allocations: 30.75 kB / 450.4 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.62e-05/0.3651, allocations: 41.55 kB / 450.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3651, allocations: 6.625 kB / 450.5 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3651, allocations: 3.953 kB / 450.5 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3652, allocations: 0 / 450.5 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.3654, allocations: 344 kB / 450.8 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3654, allocations: 0 / 450.8 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.3656, allocations: 22.86 kB / 450.8 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.3658, allocations: 74.61 kB / 450.9 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.3658, allocations: 3.188 kB / 450.9 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001317/0.3672, allocations: 1.778 MB / 452.7 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3672, allocations: 0 / 452.7 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008517/0.368, allocations: 0.5218 MB / 453.2 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.3681, allocations: 111.9 kB / 453.3 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.3682, allocations: 13.28 kB / 453.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003247/0.3685, allocations: 48.23 kB / 453.4 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.3686, allocations: 22.64 kB / 453.4 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.3686, allocations: 8.906 kB / 453.4 MB, free: 29.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006575/0.3693, allocations: 320.8 kB / 453.7 MB, free: 29.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3693, allocations: 0 / 453.7 MB, free: 29.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005991/0.3699, allocations: 156.6 kB / 453.9 MB, free: 29.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007392/0.3706, allocations: 317.3 kB / 454.2 MB, free: 29.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007179/0.3714, allocations: 422.1 kB / 454.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3714, allocations: 0 / 454.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004173/0.3718, allocations: 264.3 kB / 454.8 MB, free: 28.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.3721, allocations: 44.61 kB / 454.9 MB, free: 28.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009551/0.373, allocations: 0.6628 MB / 455.5 MB, free: 28.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.3733, allocations: 0.7942 MB / 456.3 MB, free: 27.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001321/0.3735, allocations: 55.25 kB / 456.4 MB, free: 27.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.089e-05/0.3735, allocations: 28.81 kB / 456.4 MB, free: 27.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3735, allocations: 0 / 456.4 MB, free: 27.59 MB / 350.1 MB Notification: Performance of Templates: time 0.01134/0.3849, allocations: 4.97 MB / 461.4 MB, free: 27.18 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: