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.001024/0.001024, allocations: 107.8 kB / 15.99 MB, free: 6.359 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.001095/0.001095, allocations: 195.2 kB / 16.91 MB, free: 6.191 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.199/1.199, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08762/0.08762, allocations: 22.33 MB / 313.1 MB, free: 9.152 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 67.94 kB / 380.9 MB, free: 41.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0698/0.07101, allocations: 54.96 MB / 435.9 MB, free: 13.58 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.02799/0.09903, allocations: 21.53 MB / 457.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.1015, allocations: 1.598 MB / 459 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.1017, allocations: 3.938 kB / 459 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.102, allocations: 59.69 kB / 459.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.1022, allocations: 83.64 kB / 459.1 MB, free: 6.438 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.0009818/0.1032, allocations: 447.1 kB / 459.6 MB, free: 6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003894/0.1036, allocations: 399.1 kB / 460 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.1038, allocations: 56.72 kB / 460 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.104, allocations: 167.4 kB / 460.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005574/0.1045, allocations: 199.3 kB / 460.4 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.803e-05/0.1046, allocations: 20 kB / 460.4 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005658/0.1052, allocations: 459 kB / 460.9 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.1053, allocations: 95.72 kB / 460.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1054, allocations: 131.1 kB / 461.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004598/0.1059, allocations: 383.3 kB / 461.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1059, allocations: 0 / 461.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1059, allocations: 0 / 461.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1059, allocations: 0 / 461.4 MB, free: 4.133 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.001821/0.1077, allocations: 0.806 MB / 462.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.1078, allocations: 8.031 kB / 462.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.1079, allocations: 32.56 kB / 462.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008014/0.1087, allocations: 415.9 kB / 462.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.1087, allocations: 8.375 kB / 462.7 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.701e-05/0.1088, allocations: 20.12 kB / 462.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.1091, allocations: 190.2 kB / 462.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1091, allocations: 0 / 462.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.1092, allocations: 11.98 kB / 462.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.1092, allocations: 0 / 462.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.1095, allocations: 172.2 kB / 463.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.1106, allocations: 0.6489 MB / 463.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006053/0.1112, allocations: 266.4 kB / 464 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.1114, allocations: 112.7 kB / 464.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1115, allocations: 0 / 464.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.1118, allocations: 183.1 kB / 464.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.533e-06/0.1118, allocations: 4 kB / 464.3 MB, free: 1.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001491/0.1133, allocations: 0.6055 MB / 464.9 MB, free: 492 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.1133, allocations: 55.41 kB / 465 MB, free: 424 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007963/0.1141, allocations: 420.5 kB / 465.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.1142, allocations: 37.64 kB / 465.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.1143, allocations: 160.5 kB / 465.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.1144, allocations: 82.83 kB / 465.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.677e-05/0.1145, allocations: 61.69 kB / 465.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1146, allocations: 350.8 kB / 466 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.1148, allocations: 116.2 kB / 466.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.1151, allocations: 150.2 kB / 466.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.1172, allocations: 0.6676 MB / 467 MB, free: 14.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1172, allocations: 0 / 467 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008052/0.118, allocations: 465 kB / 467.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.118, allocations: 4 kB / 467.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.118, allocations: 0 / 467.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.1183, allocations: 76.83 kB / 467.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.1185, allocations: 39.91 kB / 467.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.12, allocations: 1.762 MB / 469.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.1204, allocations: 63.83 kB / 469.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.1204, allocations: 4 kB / 469.4 MB, free: 11.8 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.0001984/0.1206, allocations: 175.2 kB / 469.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.685e-05/0.1207, allocations: 35.56 kB / 469.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.144e-05/0.1207, allocations: 39.09 kB / 469.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1207, allocations: 7.938 kB / 469.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.1207, allocations: 0 / 469.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1208, allocations: 0 / 469.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003078/0.1211, allocations: 341.3 kB / 470 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1211, allocations: 7.938 kB / 470 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.1212, allocations: 19.98 kB / 470 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002187/0.1215, allocations: 84.72 kB / 470.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.1215, allocations: 4 kB / 470.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.1232, allocations: 1.936 MB / 472 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1232, allocations: 0 / 472 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009073/0.1241, allocations: 0.5129 MB / 472.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.769e-05/0.1242, allocations: 120.6 kB / 472.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.1242, allocations: 11.94 kB / 472.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003519/0.1246, allocations: 51.92 kB / 472.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.425e-05/0.1247, allocations: 15.98 kB / 472.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.1247, allocations: 8 kB / 472.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006732/0.1254, allocations: 318.9 kB / 473 MB, free: 7.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.253e-06/0.1254, allocations: 4 kB / 473 MB, free: 7.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004723/0.1259, allocations: 147.9 kB / 473.2 MB, free: 7.738 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.0006876/0.1266, allocations: 318.9 kB / 473.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007472/0.1273, allocations: 447.1 kB / 473.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1273, allocations: 0 / 473.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004536/0.1278, allocations: 277.6 kB / 474.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.1281, allocations: 49.62 kB / 474.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009419/0.129, allocations: 0.7075 MB / 475 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.1294, allocations: 0.7946 MB / 475.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.125e-05/0.1294, allocations: 27.38 kB / 475.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1295, allocations: 0 / 475.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of Templates: time 0.008876/0.1383, allocations: 6.693 MB / 482.5 MB, free: 14.39 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 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1)