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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 87.56 kB / 20.97 MB, free: 3.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 177 kB / 24.27 MB, free: 284 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.005/1.005, allocations: 177.1 MB / 204.6 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.06564/0.06564, allocations: 18.15 MB / 279.2 MB, free: 11.38 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,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=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 3.938 kB / 357.2 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.012e-05/3.232e-05, allocations: 5.406 kB / 357.2 MB, free: 8.195 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1.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.03393/0.03396, allocations: 25.59 MB / 382.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002919/0.03688, allocations: 1.605 MB / 384.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002309/0.03711, allocations: 7.938 kB / 384.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004374/0.03755, allocations: 71.48 kB / 384.5 MB, free: 13.08 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002878/0.03784, allocations: 103.3 kB / 384.6 MB, free: 12.98 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.001586/0.03942, allocations: 0.5801 MB / 385.2 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005092/0.03993, allocations: 315.1 kB / 385.5 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.04009, allocations: 44.88 kB / 385.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/0.04034, allocations: 131.6 kB / 385.7 MB, free: 11.91 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006413/0.04098, allocations: 186.4 kB / 385.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.729e-05/0.04108, allocations: 20 kB / 385.9 MB, free: 11.71 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008161/0.04189, allocations: 447 kB / 386.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.04205, allocations: 103.6 kB / 386.4 MB, free: 11.17 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.04217, allocations: 75.75 kB / 386.5 MB, free: 11.1 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.04319, allocations: 0.5178 MB / 387 MB, free: 10.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.0432, allocations: 0 / 387 MB, free: 10.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.0432, allocations: 0 / 387 MB, free: 10.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.04321, allocations: 4 kB / 387 MB, free: 10.57 MB / 314.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.001194/0.0444, allocations: 0.7714 MB / 387.8 MB, free: 9.766 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.04445, allocations: 8.031 kB / 387.8 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.04459, allocations: 44.75 kB / 387.8 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.04501, allocations: 305.2 kB / 388.1 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.04503, allocations: 16.31 kB / 388.2 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.286e-05/0.04506, allocations: 20.38 kB / 388.2 MB, free: 9.352 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/0.04527, allocations: 107 kB / 388.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.04529, allocations: 3.938 kB / 388.3 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.0453, allocations: 4 kB / 388.3 MB, free: 9.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.04531, allocations: 4 kB / 388.3 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001478/0.04546, allocations: 68.22 kB / 388.4 MB, free: 9.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007261/0.04618, allocations: 0.5388 MB / 388.9 MB, free: 8.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.04654, allocations: 169.5 kB / 389.1 MB, free: 8.41 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.332e-05/0.04664, allocations: 47.67 kB / 389.1 MB, free: 8.359 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.04665, allocations: 7.984 kB / 389.1 MB, free: 8.352 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/0.04681, allocations: 105 kB / 389.2 MB, free: 8.234 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 2.184e-06/0.04681, allocations: 4 kB / 389.2 MB, free: 8.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.0008254/0.04764, allocations: 364.9 kB / 389.6 MB, free: 7.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.04768, allocations: 59.34 kB / 389.6 MB, free: 7.793 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.04795, allocations: 354.3 kB / 390 MB, free: 7.426 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.04798, allocations: 45.67 kB / 390 MB, free: 7.375 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.04809, allocations: 203.5 kB / 390.2 MB, free: 7.172 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.991e-05/0.04815, allocations: 87.28 kB / 390.3 MB, free: 7.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.04823, allocations: 71.28 kB / 390.4 MB, free: 7.008 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.04839, allocations: 0.5196 MB / 390.9 MB, free: 6.477 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.04849, allocations: 40.3 kB / 390.9 MB, free: 6.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.04859, allocations: 76 kB / 391 MB, free: 6.352 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.04886, allocations: 176.6 kB / 391.2 MB, free: 6.172 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.04886, allocations: 3.938 kB / 391.2 MB, free: 6.168 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003961/0.04926, allocations: 284.2 kB / 391.5 MB, free: 5.879 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.04927, allocations: 4.031 kB / 391.5 MB, free: 5.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.04928, allocations: 4 kB / 391.5 MB, free: 5.871 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00024/0.04952, allocations: 51.64 kB / 391.5 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.04965, allocations: 51.91 kB / 391.6 MB, free: 5.766 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.05078, allocations: 1.94 MB / 393.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.05091, allocations: 43.81 kB / 393.6 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.05093, allocations: 4 kB / 393.6 MB, free: 3.66 MB / 314.7 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.0001714/0.0511, allocations: 189.7 kB / 393.8 MB, free: 3.465 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.972e-05/0.05114, allocations: 43.75 kB / 393.8 MB, free: 3.422 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.571e-05/0.05119, allocations: 39.19 kB / 393.8 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.05119, allocations: 0 / 393.8 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.0512, allocations: 7.938 kB / 393.8 MB, free: 3.371 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.0512, allocations: 0 / 393.8 MB, free: 3.371 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/0.05143, allocations: 232.4 kB / 394.1 MB, free: 3.109 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.05143, allocations: 0 / 394.1 MB, free: 3.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.981e-05/0.05152, allocations: 27.98 kB / 394.1 MB, free: 3.082 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001629/0.05169, allocations: 63.75 kB / 394.2 MB, free: 3.016 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.0517, allocations: 4 kB / 394.2 MB, free: 3.012 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.0529, allocations: 2.184 MB / 396.3 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.0529, allocations: 0 / 396.3 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004501/0.05335, allocations: 343.5 kB / 396.7 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.05339, allocations: 43.69 kB / 396.7 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.05342, allocations: 4.031 kB / 396.7 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.444e-05/0.05352, allocations: 27.97 kB / 396.8 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/0.05358, allocations: 19.97 kB / 396.8 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.05359, allocations: 4 kB / 396.8 MB, free: 256 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001631/0.05376, allocations: 247 kB / 397 MB, free: 8 kB / 314.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.05376, allocations: 0 / 397 MB, free: 8 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004564/0.05421, allocations: 147.8 kB / 397.2 MB, free: 15.86 MB / 330.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 (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.0006582/0.05487, allocations: 364.4 kB / 397.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004576/0.05533, allocations: 339.2 kB / 397.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.05534, allocations: 0 / 397.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.05567, allocations: 269.4 kB / 398.1 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.05595, allocations: 57.06 kB / 398.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008747/0.05682, allocations: 0.5297 MB / 398.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.865e-05/0.05691, allocations: 108.2 kB / 398.8 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.05702, allocations: 46.25 kB / 398.8 MB, free: 14.1 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.376e-05/0.05708, allocations: 24.5 kB / 398.9 MB, free: 14.08 MB / 330.7 MB Notification: Performance of SimCode: time 1.774e-06/0.05708, allocations: 0 / 398.9 MB, free: 14.08 MB / 330.7 MB Notification: Performance of Templates: time 0.008182/0.06526, allocations: 5.774 MB / 404.6 MB, free: 8.348 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.makefile [Timeout 660] (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=240 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.3454619699623436]