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.000991/0.0009912, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.001215/0.001216, allocations: 168.7 kB / 15.95 MB, free: 204 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.523/1.523, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2532/0.2532, allocations: 22.35 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004397, allocations: 8 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3652, allocations: 55.97 MB / 437.9 MB, free: 39.2 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.002512/0.3677, allocations: 1.649 MB / 439.6 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.3701, allocations: 1.507 MB / 441.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.3703, allocations: 2.562 kB / 441.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003341/0.3706, allocations: 58.09 kB / 441.1 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002034/0.3708, allocations: 83.08 kB / 441.2 MB, free: 36.95 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.000772/0.3716, allocations: 390.1 kB / 441.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003433/0.372, allocations: 343.9 kB / 441.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.3721, allocations: 54.55 kB / 442 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000158/0.3722, allocations: 161 kB / 442.1 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003054/0.3726, allocations: 185.4 kB / 442.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.477e-05/0.3726, allocations: 11.06 kB / 442.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005328/0.3731, allocations: 431.6 kB / 442.7 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.618e-05/0.3732, allocations: 80.95 kB / 442.8 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.346e-05/0.3733, allocations: 61.23 kB / 442.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003657/0.3737, allocations: 377 kB / 443.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3737, allocations: 3.938 kB / 443.3 MB, free: 36.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3737, allocations: 0 / 443.3 MB, free: 36.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.3737, allocations: 0 / 443.3 MB, free: 36.22 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.001503/0.3752, allocations: 0.7688 MB / 444 MB, free: 35.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3753, allocations: 9.781 kB / 444 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.3754, allocations: 33.14 kB / 444.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007098/0.3761, allocations: 403.3 kB / 444.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3762, allocations: 10.12 kB / 444.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.3762, allocations: 12.69 kB / 444.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.3765, allocations: 180.7 kB / 444.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3765, allocations: 2.625 kB / 444.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.3766, allocations: 4 kB / 444.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.85e-06/0.3766, allocations: 2.469 kB / 444.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.3769, allocations: 185.7 kB / 444.8 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009482/0.3779, allocations: 0.6568 MB / 445.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005628/0.3785, allocations: 269.6 kB / 445.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3786, allocations: 109.8 kB / 445.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.3787, allocations: 2.969 kB / 445.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.379, allocations: 184.8 kB / 446.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.683e-06/0.379, allocations: 0 / 446.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001475/0.3804, allocations: 0.6164 MB / 446.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.3805, allocations: 57.56 kB / 446.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006595/0.3812, allocations: 420.9 kB / 447.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.3812, allocations: 35.55 kB / 447.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.454e-05/0.3813, allocations: 168.9 kB / 447.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.3814, allocations: 74.94 kB / 447.4 MB, free: 33.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.3814, allocations: 6.969 kB / 447.4 MB, free: 33.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.3815, allocations: 348.1 kB / 447.8 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.3817, allocations: 115.7 kB / 447.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.3819, allocations: 155.5 kB / 448 MB, free: 33.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.3821, allocations: 155.4 kB / 448.2 MB, free: 33.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3821, allocations: 0 / 448.2 MB, free: 33.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007385/0.3829, allocations: 448.6 kB / 448.6 MB, free: 33.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3829, allocations: 6.906 kB / 448.6 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3829, allocations: 2.781 kB / 448.6 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002768/0.3832, allocations: 73.42 kB / 448.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.3834, allocations: 45.44 kB / 448.7 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.3847, allocations: 1.641 MB / 450.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.385, allocations: 74.38 kB / 450.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.3851, allocations: 3.031 kB / 450.5 MB, free: 31.73 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.0002236/0.3853, allocations: 181.4 kB / 450.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.209e-05/0.3853, allocations: 27.56 kB / 450.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.829e-05/0.3854, allocations: 40.36 kB / 450.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3854, allocations: 6.828 kB / 450.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.3854, allocations: 0 / 450.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3855, allocations: 3.422 kB / 450.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.3858, allocations: 340.9 kB / 451 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3858, allocations: 0 / 451 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.3859, allocations: 30.7 kB / 451.1 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000199/0.3861, allocations: 77.08 kB / 451.1 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3862, allocations: 6.844 kB / 451.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.3876, allocations: 1.746 MB / 452.9 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3876, allocations: 3.094 kB / 452.9 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008231/0.3884, allocations: 0.5156 MB / 453.4 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.773e-05/0.3885, allocations: 116.9 kB / 453.5 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.129e-05/0.3885, allocations: 12.59 kB / 453.5 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.3888, allocations: 47.73 kB / 453.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/0.3889, allocations: 19.41 kB / 453.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.3889, allocations: 3.406 kB / 453.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005564/0.3895, allocations: 327.2 kB / 453.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3895, allocations: 0 / 453.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005623/0.39, allocations: 154.3 kB / 454.1 MB, free: 29.19 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.000767/0.3908, allocations: 334.5 kB / 454.4 MB, free: 29.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007861/0.3916, allocations: 414 kB / 454.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3916, allocations: 0 / 454.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.3921, allocations: 277.9 kB / 455.1 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.3924, allocations: 44.78 kB / 455.1 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009111/0.3933, allocations: 0.6528 MB / 455.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.3936, allocations: 0.7922 MB / 456.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.3937, allocations: 59.47 kB / 456.6 MB, free: 27.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.235e-05/0.3938, allocations: 22.62 kB / 456.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3938, allocations: 0 / 456.7 MB, free: 27.52 MB / 350.1 MB Notification: Performance of Templates: time 0.01095/0.4047, allocations: 4.972 MB / 461.6 MB, free: 27.13 MB / 350.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)