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.0121/0.0121, allocations: 100.6 kB / 15.73 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.002142/0.002142, allocations: 196.8 kB / 16.68 MB, free: 5.926 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.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08792/0.08792, allocations: 22.33 MB / 312.9 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 67.89 kB / 437 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1551, allocations: 54.95 MB / 492 MB, free: 4.766 MB / 366.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.5544/0.7096, allocations: 21.47 MB / 0.5014 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003088/0.7127, allocations: 1.588 MB / 0.503 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.7129, allocations: 3.156 kB / 0.503 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003852/0.7133, allocations: 75 kB / 0.503 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002659/0.7136, allocations: 96.73 kB / 0.5031 GB, free: 5.684 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.001147/0.7147, allocations: 486.8 kB / 0.5036 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004945/0.7152, allocations: 408.9 kB / 0.504 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.7154, allocations: 62.86 kB / 0.504 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.7156, allocations: 163.7 kB / 0.5042 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006543/0.7162, allocations: 201.5 kB / 0.5044 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.779e-05/0.7163, allocations: 26.44 kB / 0.5044 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006396/0.717, allocations: 406.4 kB / 0.5048 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.7171, allocations: 103.5 kB / 0.5049 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.7172, allocations: 122.9 kB / 0.505 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006657/0.7179, allocations: 0.5314 MB / 0.5055 GB, free: 5.254 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.7179, allocations: 0.6094 kB / 0.5055 GB, free: 5.254 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.7179, allocations: 3.031 kB / 0.5055 GB, free: 5.254 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.7179, allocations: 2.656 kB / 0.5055 GB, free: 5.254 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.001754/0.7197, allocations: 0.7914 MB / 0.5063 GB, free: 4.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.7197, allocations: 9.344 kB / 0.5063 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.7199, allocations: 39.22 kB / 0.5064 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007974/0.7207, allocations: 407 kB / 0.5068 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.7207, allocations: 19.72 kB / 0.5068 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.7207, allocations: 20.64 kB / 0.5068 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.7211, allocations: 182.8 kB / 0.507 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.7211, allocations: 0 / 0.507 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.7211, allocations: 6.609 kB / 0.507 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.7211, allocations: 3.719 kB / 0.507 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003887/0.7215, allocations: 173.5 kB / 0.5071 GB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.7228, allocations: 0.6426 MB / 0.5078 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007552/0.7236, allocations: 277.8 kB / 0.508 GB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.7238, allocations: 107.1 kB / 0.5081 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.7239, allocations: 2.281 kB / 0.5081 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003599/0.7242, allocations: 179 kB / 0.5083 GB, free: 4.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.515e-06/0.7242, allocations: 0.75 kB / 0.5083 GB, free: 4.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001588/0.7258, allocations: 0.6082 MB / 0.5089 GB, free: 3.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.7259, allocations: 57.81 kB / 0.509 GB, free: 3.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008096/0.7267, allocations: 423.2 kB / 0.5094 GB, free: 3.719 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.7267, allocations: 43.44 kB / 0.5094 GB, free: 3.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.279e-05/0.7268, allocations: 160.9 kB / 0.5096 GB, free: 3.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.968e-05/0.7269, allocations: 76.45 kB / 0.5096 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.727, allocations: 57.41 kB / 0.5097 GB, free: 3.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.476e-05/0.7271, allocations: 345.3 kB / 0.51 GB, free: 3.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.7273, allocations: 119.5 kB / 0.5101 GB, free: 3.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.7276, allocations: 158 kB / 0.5103 GB, free: 3.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002235/0.7298, allocations: 0.6705 MB / 0.5109 GB, free: 3.156 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.7298, allocations: 2.688 kB / 0.5109 GB, free: 3.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008597/0.7307, allocations: 453.9 kB / 0.5114 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7307, allocations: 7.844 kB / 0.5114 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.7307, allocations: 2.281 kB / 0.5114 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/0.731, allocations: 74.23 kB / 0.5115 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.7312, allocations: 41 kB / 0.5115 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.7326, allocations: 1.762 MB / 0.5132 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003906/0.733, allocations: 63.5 kB / 0.5133 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.733, allocations: 7.047 kB / 0.5133 GB, free: 1.684 MB / 382.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.0002119/0.7332, allocations: 175.5 kB / 0.5134 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.7333, allocations: 34.39 kB / 0.5135 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.517e-05/0.7334, allocations: 40.83 kB / 0.5135 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.7334, allocations: 4.844 kB / 0.5135 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.7334, allocations: 2.281 kB / 0.5135 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.7334, allocations: 1.219 kB / 0.5135 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003357/0.7337, allocations: 339 kB / 0.5138 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.7338, allocations: 5.25 kB / 0.5139 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.7339, allocations: 26.72 kB / 0.5139 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002209/0.7342, allocations: 79.38 kB / 0.514 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.7342, allocations: 5.219 kB / 0.514 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.7358, allocations: 1.933 MB / 0.5158 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7358, allocations: 3.969 kB / 0.5159 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.7368, allocations: 0.5153 MB / 0.5164 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.7369, allocations: 111.9 kB / 0.5165 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.4e-05/0.737, allocations: 16.95 kB / 0.5165 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003501/0.7373, allocations: 46.48 kB / 0.5165 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/0.7374, allocations: 21.33 kB / 0.5165 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.7374, allocations: 5.25 kB / 0.5165 GB, free: 15.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007357/0.7382, allocations: 321.3 kB / 0.5169 GB, free: 15.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7382, allocations: 3.938 kB / 0.5169 GB, free: 15.49 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006411/0.7388, allocations: 144.7 kB / 0.517 GB, free: 15.48 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.0007232/0.7395, allocations: 327.3 kB / 0.5173 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008502/0.7404, allocations: 422 kB / 0.5177 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.7404, allocations: 0 / 0.5177 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004978/0.7409, allocations: 268.8 kB / 0.518 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.7413, allocations: 48.31 kB / 0.518 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.7423, allocations: 0.5848 MB / 0.5186 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.7427, allocations: 0.7917 MB / 0.5194 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001495/0.7429, allocations: 53.5 kB / 0.5194 GB, free: 14.13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.083e-05/0.7429, allocations: 22.47 kB / 0.5194 GB, free: 14.12 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.743, allocations: 0.9375 kB / 0.5194 GB, free: 14.12 MB / 398.1 MB Notification: Performance of Templates: time 0.01163/0.7546, allocations: 5.391 MB / 0.5247 GB, free: 12.73 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)