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.006197/0.006198, allocations: 100.3 kB / 15.73 MB, free: 6.062 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.001595/0.001595, allocations: 188.8 kB / 16.67 MB, free: 5.969 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09054/0.09054, allocations: 22.32 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.89 kB / 437 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1474, allocations: 54.96 MB / 492 MB, free: 4.742 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.4573/0.6047, allocations: 21.55 MB / 0.5015 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.6072, allocations: 1.595 MB / 0.5031 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.6073, allocations: 9.812 kB / 0.5031 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.6076, allocations: 68.08 kB / 0.5031 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.6079, allocations: 106.8 kB / 0.5032 GB, free: 6.258 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.0009402/0.6088, allocations: 477.8 kB / 0.5037 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004031/0.6092, allocations: 408.3 kB / 0.5041 GB, free: 6.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.6094, allocations: 67.2 kB / 0.5041 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.6096, allocations: 165.3 kB / 0.5043 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006096/0.6102, allocations: 205.1 kB / 0.5045 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.084e-05/0.6102, allocations: 21.56 kB / 0.5045 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005853/0.6108, allocations: 411.9 kB / 0.5049 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.611, allocations: 98.98 kB / 0.505 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.6111, allocations: 122.8 kB / 0.5051 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006813/0.6118, allocations: 0.5354 MB / 0.5057 GB, free: 5.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6118, allocations: 0 / 0.5057 GB, free: 5.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.6118, allocations: 0 / 0.5057 GB, free: 5.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.6118, allocations: 0 / 0.5057 GB, free: 5.812 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.001667/0.6135, allocations: 0.8187 MB / 0.5065 GB, free: 5.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.6135, allocations: 9.531 kB / 0.5065 GB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.6137, allocations: 34.89 kB / 0.5065 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007981/0.6145, allocations: 409.6 kB / 0.5069 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.6145, allocations: 18.19 kB / 0.5069 GB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.249e-05/0.6145, allocations: 19.41 kB / 0.5069 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.6149, allocations: 181.1 kB / 0.5071 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.6149, allocations: 0 / 0.5071 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.615, allocations: 11.06 kB / 0.5071 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.615, allocations: 4.219 kB / 0.5071 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.6153, allocations: 170.9 kB / 0.5073 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.6164, allocations: 0.6464 MB / 0.5079 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006609/0.6171, allocations: 277.7 kB / 0.5082 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002114/0.6173, allocations: 107.4 kB / 0.5083 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.6173, allocations: 2.812 kB / 0.5083 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.6177, allocations: 176.6 kB / 0.5084 GB, free: 4.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/0.6177, allocations: 0 / 0.5084 GB, free: 4.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001522/0.6192, allocations: 0.6029 MB / 0.509 GB, free: 4.434 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.6192, allocations: 65.91 kB / 0.5091 GB, free: 4.367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008198/0.6201, allocations: 422.2 kB / 0.5095 GB, free: 4.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.6201, allocations: 36.78 kB / 0.5095 GB, free: 4.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.48e-05/0.6202, allocations: 160.4 kB / 0.5097 GB, free: 4.129 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.446e-05/0.6203, allocations: 83.36 kB / 0.5098 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.023e-05/0.6204, allocations: 57.36 kB / 0.5098 GB, free: 4.062 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.99e-05/0.6204, allocations: 348.2 kB / 0.5101 GB, free: 3.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.6207, allocations: 119.6 kB / 0.5103 GB, free: 3.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.6209, allocations: 153.9 kB / 0.5104 GB, free: 3.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002166/0.6231, allocations: 0.6709 MB / 0.5111 GB, free: 3.691 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6231, allocations: 0 / 0.5111 GB, free: 3.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008307/0.624, allocations: 468.8 kB / 0.5115 GB, free: 3.605 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.624, allocations: 5.312 kB / 0.5115 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.624, allocations: 0.75 kB / 0.5115 GB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002644/0.6243, allocations: 71.22 kB / 0.5116 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.6245, allocations: 43.5 kB / 0.5116 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.6258, allocations: 1.75 MB / 0.5133 GB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.6262, allocations: 64.48 kB / 0.5134 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.6262, allocations: 8.875 kB / 0.5134 GB, free: 2.219 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.0001928/0.6264, allocations: 171.8 kB / 0.5136 GB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.6264, allocations: 40.52 kB / 0.5136 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.558e-05/0.6265, allocations: 42.62 kB / 0.5136 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.6265, allocations: 2.5 kB / 0.5137 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.6265, allocations: 1.188 kB / 0.5137 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.6266, allocations: 1.359 kB / 0.5137 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003172/0.6269, allocations: 347 kB / 0.514 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.6269, allocations: 3.938 kB / 0.514 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.6271, allocations: 30.38 kB / 0.514 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/0.6273, allocations: 74.23 kB / 0.5141 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.6273, allocations: 6.5 kB / 0.5141 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/0.6288, allocations: 1.927 MB / 0.516 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.6289, allocations: 2.656 kB / 0.516 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009874/0.6299, allocations: 0.5176 MB / 0.5165 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/0.6299, allocations: 119.9 kB / 0.5166 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.63, allocations: 15.47 kB / 0.5166 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.6303, allocations: 48.38 kB / 0.5167 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.588e-05/0.6304, allocations: 19.84 kB / 0.5167 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.6305, allocations: 4.719 kB / 0.5167 GB, free: 108 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007129/0.6312, allocations: 319.8 kB / 0.517 GB, free: 24 kB / 382.1 MB Notification: Performance of sort global known variables: time 6.92e-07/0.6312, allocations: 3.938 kB / 0.517 GB, free: 20 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006276/0.6318, allocations: 161 kB / 0.5171 GB, free: 15.99 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.0007135/0.6326, allocations: 324.2 kB / 0.5175 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008249/0.6334, allocations: 413.4 kB / 0.5178 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.6334, allocations: 1.062 kB / 0.5178 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004872/0.6339, allocations: 273.6 kB / 0.5181 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.6342, allocations: 39.34 kB / 0.5181 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.6354, allocations: 0.6081 MB / 0.5187 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.6359, allocations: 0.7883 MB / 0.5195 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.636, allocations: 56.06 kB / 0.5196 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.698e-05/0.6361, allocations: 23.64 kB / 0.5196 GB, free: 14.63 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6361, allocations: 0 / 0.5196 GB, free: 14.63 MB / 398.1 MB Notification: Performance of Templates: time 0.01295/0.6491, allocations: 5.392 MB / 0.5249 GB, free: 13.19 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)