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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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/AES main/package.mo): time 0.07768/0.07768, allocations: 17.69 MB / 33.63 MB, free: 1.746 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001103, allocations: 182.6 kB / 38.92 MB, free: 0 / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.722/1.722, allocations: 205.4 MB / 249.5 MB, free: 2.336 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008084/0.0008085, allocations: 98.23 kB / 302.2 MB, free: 4.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003965/0.0003968, allocations: 12 kB / 366.9 MB, free: 3.609 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.339, allocations: 51.99 MB / 418.9 MB, free: 24.38 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Interfaces.mo:1486:5-1487: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 3.2.3+maint.om/Blocks/Interfaces.mo:1486:5-1487: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.01601/0.3551, allocations: 17.53 MB / 436.5 MB, free: 6.801 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.3573, allocations: 1.521 MB / 438 MB, free: 5.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.3574, allocations: 7.938 kB / 438 MB, free: 5.262 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003301/0.3578, allocations: 51.69 kB / 438 MB, free: 5.211 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.358, allocations: 83.64 kB / 438.1 MB, free: 5.129 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000693/0.3587, allocations: 395 kB / 438.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002566/0.3589, allocations: 335.2 kB / 438.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.3591, allocations: 60.59 kB / 438.9 MB, free: 4.352 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.3592, allocations: 147.4 kB / 439 MB, free: 4.207 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.3594, allocations: 163.3 kB / 439.2 MB, free: 4.047 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.234e-05/0.3594, allocations: 12 kB / 439.2 MB, free: 4.035 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004551/0.3599, allocations: 451.2 kB / 439.6 MB, free: 3.594 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.094e-05/0.36, allocations: 83.7 kB / 439.7 MB, free: 3.512 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.3601, allocations: 133 kB / 439.9 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005535/0.3607, allocations: 0.5298 MB / 440.4 MB, free: 2.844 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.3607, allocations: 0 / 440.4 MB, free: 2.844 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3607, allocations: 0 / 440.4 MB, free: 2.844 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3607, allocations: 0 / 440.4 MB, free: 2.844 MB / 298.7 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.001629/0.3624, allocations: 0.7673 MB / 441.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3624, allocations: 8.031 kB / 441.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.3625, allocations: 36.47 kB / 441.2 MB, free: 1.984 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006833/0.3632, allocations: 411.9 kB / 441.6 MB, free: 1.539 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.3632, allocations: 16.36 kB / 441.6 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.3633, allocations: 16.38 kB / 441.6 MB, free: 1.508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.3636, allocations: 186.7 kB / 441.8 MB, free: 1.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.3636, allocations: 0 / 441.8 MB, free: 1.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.3636, allocations: 4 kB / 441.8 MB, free: 1.316 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.3636, allocations: 4 kB / 441.8 MB, free: 1.312 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.3639, allocations: 180.1 kB / 442 MB, free: 1.137 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009054/0.3649, allocations: 0.6569 MB / 442.7 MB, free: 440 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.3654, allocations: 270.3 kB / 442.9 MB, free: 160 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.3656, allocations: 116.8 kB / 443 MB, free: 40 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.3656, allocations: 0 / 443 MB, free: 40 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003658/0.366, allocations: 183.2 kB / 443.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.874e-06/0.366, allocations: 3.938 kB / 443.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.001511/0.3675, allocations: 0.612 MB / 443.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.3676, allocations: 59.34 kB / 443.9 MB, free: 15.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007866/0.3684, allocations: 424.3 kB / 444.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.3684, allocations: 41.69 kB / 444.3 MB, free: 14.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3686, allocations: 156.5 kB / 444.5 MB, free: 14.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.3687, allocations: 82.81 kB / 444.6 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.3687, allocations: 4 kB / 444.6 MB, free: 14.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.3688, allocations: 354.8 kB / 444.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.3691, allocations: 116.2 kB / 445 MB, free: 13.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.3693, allocations: 154.2 kB / 445.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/0.3715, allocations: 0.6899 MB / 445.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3715, allocations: 0 / 445.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008497/0.3724, allocations: 457.4 kB / 446.3 MB, free: 12.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.3724, allocations: 10.81 kB / 446.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3724, allocations: 0 / 446.3 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.3727, allocations: 68.8 kB / 446.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.3729, allocations: 43.91 kB / 446.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/0.3748, allocations: 1.76 MB / 448.2 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.3751, allocations: 67.73 kB / 448.3 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.3752, allocations: 8 kB / 448.3 MB, free: 10.55 MB / 314.7 MB Warning: Assuming fixed start value for the following 4 variables: Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Fn.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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],$PRE.noise.state[2],$PRE.noise.state[3],$PRE.noise.state[4],$PRE.noise.r,$PRE.noise.r_raw,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * 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.0002461/0.3754, allocations: 182.6 kB / 448.5 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.3755, allocations: 31.56 kB / 448.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.145e-05/0.3755, allocations: 39.09 kB / 448.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.3756, allocations: 4 kB / 448.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3756, allocations: 0 / 448.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3756, allocations: 0 / 448.5 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004122/0.376, allocations: 341.3 kB / 448.9 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.376, allocations: 4 kB / 448.9 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.3762, allocations: 23.98 kB / 448.9 MB, free: 9.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000224/0.3764, allocations: 72.73 kB / 449 MB, free: 9.809 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.3764, allocations: 11.98 kB / 449 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.3784, allocations: 1.749 MB / 450.7 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3785, allocations: 0 / 450.7 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.3795, allocations: 0.5206 MB / 451.2 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.3797, allocations: 116.7 kB / 451.4 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.257e-05/0.3797, allocations: 11.98 kB / 451.4 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000314/0.38, allocations: 47.94 kB / 451.4 MB, free: 7.18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.304e-05/0.3801, allocations: 27.84 kB / 451.4 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.3801, allocations: 4 kB / 451.4 MB, free: 7.148 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006776/0.3808, allocations: 330.9 kB / 451.8 MB, free: 6.824 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3808, allocations: 0 / 451.8 MB, free: 6.824 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006809/0.3815, allocations: 152 kB / 451.9 MB, free: 6.676 MB / 314.7 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.0009727/0.3825, allocations: 348.6 kB / 452.3 MB, free: 6.332 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009943/0.3835, allocations: 436 kB / 452.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3835, allocations: 0 / 452.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004775/0.384, allocations: 266.5 kB / 452.9 MB, free: 5.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.3844, allocations: 45 kB / 453 MB, free: 5.578 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.3855, allocations: 0.6548 MB / 453.6 MB, free: 4.895 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005784/0.3861, allocations: 0.8024 MB / 454.4 MB, free: 4.066 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000175/0.3863, allocations: 54.25 kB / 454.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.793e-05/0.3864, allocations: 23.44 kB / 454.5 MB, free: 3.992 MB / 314.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3864, allocations: 0 / 454.5 MB, free: 3.992 MB / 314.7 MB Notification: Performance of Templates: time 0.01058/0.397, allocations: 5.098 MB / 459.6 MB, free: 14.88 MB / 330.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1)