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.0009226/0.0009226, allocations: 72.83 kB / 20.74 MB, free: 3.754 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.001109/0.001109, allocations: 173 kB / 24.17 MB, free: 336 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.054/1.054, allocations: 177.1 MB / 204.6 MB, free: 5.465 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.06859/0.06859, allocations: 18.14 MB / 279.2 MB, free: 11.18 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 1.663e-06/1.663e-06, allocations: 0 / 304.6 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.019e-05/2.185e-05, allocations: 2.312 kB / 304.6 MB, free: 336 kB / 266.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.03045/0.03047, allocations: 31.53 MB / 336.1 MB, free: 2.574 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002644/0.03311, allocations: 1.626 MB / 337.7 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.03327, allocations: 7.938 kB / 337.7 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003755/0.03364, allocations: 79.36 kB / 337.8 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.03386, allocations: 95.45 kB / 337.9 MB, free: 0.7578 MB / 298.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.001236/0.0351, allocations: 0.5411 MB / 338.4 MB, free: 220 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003634/0.03546, allocations: 311.2 kB / 338.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.03557, allocations: 38.88 kB / 338.8 MB, free: 15.88 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.03573, allocations: 143.5 kB / 338.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004826/0.03621, allocations: 169.9 kB / 339.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.671e-05/0.03628, allocations: 24 kB / 339.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006825/0.03696, allocations: 486.9 kB / 339.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.03707, allocations: 103.6 kB / 339.7 MB, free: 14.98 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.704e-05/0.03715, allocations: 79.73 kB / 339.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000611/0.03776, allocations: 0.5101 MB / 340.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.03776, allocations: 0 / 340.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.03776, allocations: 0 / 340.3 MB, free: 14.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.03777, allocations: 0 / 340.3 MB, free: 14.39 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.000886/0.03865, allocations: 0.617 MB / 340.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.03869, allocations: 8.031 kB / 340.9 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.0388, allocations: 40.91 kB / 340.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003671/0.03916, allocations: 262.5 kB / 341.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.03919, allocations: 8.375 kB / 341.2 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.03922, allocations: 16.38 kB / 341.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.03939, allocations: 110.6 kB / 341.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.03941, allocations: 7.875 kB / 341.3 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.03942, allocations: 4 kB / 341.3 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.03943, allocations: 4 kB / 341.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001032/0.03953, allocations: 52.75 kB / 341.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.04009, allocations: 351.3 kB / 341.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.04037, allocations: 194.8 kB / 341.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.054e-05/0.04043, allocations: 32.84 kB / 342 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.04044, allocations: 4 kB / 342 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.04059, allocations: 110.1 kB / 342.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.923e-06/0.04059, allocations: 0 / 342.1 MB, free: 12.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.0006143/0.04121, allocations: 282.2 kB / 342.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.04125, allocations: 63.34 kB / 342.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.04143, allocations: 279.1 kB / 342.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.04146, allocations: 33.7 kB / 342.7 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.04152, allocations: 133.3 kB / 342.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.241e-05/0.04158, allocations: 83.27 kB / 342.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/0.04165, allocations: 61.64 kB / 343 MB, free: 11.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.04175, allocations: 350.7 kB / 343.3 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.273e-05/0.0418, allocations: 27.16 kB / 343.4 MB, free: 11.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.625e-05/0.04187, allocations: 58.31 kB / 343.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.04207, allocations: 161.8 kB / 343.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.04207, allocations: 0 / 343.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002847/0.04236, allocations: 196.8 kB / 343.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.04237, allocations: 8 kB / 343.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.04238, allocations: 0 / 343.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001906/0.04257, allocations: 51.67 kB / 343.8 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.04269, allocations: 59.89 kB / 343.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009192/0.04361, allocations: 1.327 MB / 345.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.04371, allocations: 31.86 kB / 345.2 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.04373, allocations: 4 kB / 345.2 MB, free: 9.129 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,noise.localSeed,globalSeed.seed,noise.actualGlobalSeed,globalSeed.id_impure,$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.0001474/0.04388, allocations: 153.6 kB / 345.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.075e-05/0.04391, allocations: 27.97 kB / 345.4 MB, free: 8.941 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.307e-05/0.04395, allocations: 39.19 kB / 345.5 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.04395, allocations: 0 / 345.5 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.04396, allocations: 4 kB / 345.5 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.04396, allocations: 0 / 345.5 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000152/0.04411, allocations: 153.6 kB / 345.6 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.04412, allocations: 4 kB / 345.6 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.844e-05/0.04419, allocations: 23.98 kB / 345.6 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001278/0.04432, allocations: 55.56 kB / 345.7 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.04434, allocations: 11.92 kB / 345.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009023/0.04524, allocations: 1.503 MB / 347.2 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.04524, allocations: 0 / 347.2 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.04553, allocations: 233 kB / 347.4 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.579e-05/0.04557, allocations: 31.8 kB / 347.5 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.04559, allocations: 8 kB / 347.5 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.699e-05/0.04567, allocations: 20.02 kB / 347.5 MB, free: 6.723 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.04573, allocations: 19.91 kB / 347.5 MB, free: 6.703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.04574, allocations: 4 kB / 347.5 MB, free: 6.699 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.189e-05/0.04583, allocations: 108.6 kB / 347.6 MB, free: 6.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.04583, allocations: 0 / 347.6 MB, free: 6.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003356/0.04616, allocations: 163.5 kB / 347.8 MB, free: 6.43 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 (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.0005266/0.04669, allocations: 344.9 kB / 348.1 MB, free: 6.109 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00035/0.04704, allocations: 253.3 kB / 348.4 MB, free: 5.848 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.04705, allocations: 4.062 kB / 348.4 MB, free: 5.844 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.04723, allocations: 203.3 kB / 348.6 MB, free: 5.629 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001672/0.0474, allocations: 52.84 kB / 348.6 MB, free: 5.582 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006422/0.04804, allocations: 0.5212 MB / 349.1 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.235e-05/0.04811, allocations: 120.1 kB / 349.3 MB, free: 4.895 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.465e-05/0.04817, allocations: 18.3 kB / 349.3 MB, free: 4.875 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.04828, allocations: 83.36 kB / 349.4 MB, free: 4.793 MB / 314.7 MB Notification: Performance of SimCode: time 8.42e-07/0.04828, allocations: 8 kB / 349.4 MB, free: 4.785 MB / 314.7 MB Notification: Performance of Templates: time 0.007958/0.05624, allocations: 6.155 MB / 355.5 MB, free: 14.66 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1267285561189055]