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.001743/0.001743, allocations: 110.1 kB / 17.15 MB, free: 6.02 MB / 14.72 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.002338/0.002338, allocations: 203.2 kB / 20.11 MB, free: 3.066 MB / 14.72 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.591/1.591, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.1035/0.1035, allocations: 24.03 MB / 333.5 MB, free: 1.578 MB / 254.1 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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 68.98 kB / 468.9 MB, free: 31.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1308, allocations: 59.55 MB / 0.5161 GB, free: 11.79 MB / 382.1 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.04295/0.1738, allocations: 22.84 MB / 0.5384 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004138/0.1779, allocations: 1.66 MB / 0.54 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003961/0.1783, allocations: 7.938 kB / 0.54 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005451/0.1788, allocations: 79.48 kB / 0.5401 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004263/0.1793, allocations: 91.45 kB / 0.5401 GB, free: 3.227 MB / 398.1 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.001818/0.1811, allocations: 498.7 kB / 0.5406 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000826/0.1819, allocations: 403.1 kB / 0.541 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.1821, allocations: 44.66 kB / 0.541 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000367/0.1824, allocations: 175.4 kB / 0.5412 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009772/0.1834, allocations: 217 kB / 0.5414 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.1835, allocations: 24 kB / 0.5414 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000945/0.1845, allocations: 439.2 kB / 0.5419 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002002/0.1847, allocations: 103.6 kB / 0.542 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.1849, allocations: 123.1 kB / 0.5421 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00133/0.1862, allocations: 0.5449 MB / 0.5426 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1862, allocations: 0 / 0.5426 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1862, allocations: 0 / 0.5426 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.1862, allocations: 0 / 0.5426 GB, free: 0.6914 MB / 398.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.002398/0.1886, allocations: 0.817 MB / 0.5434 GB, free: 15.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.1887, allocations: 11.97 kB / 0.5434 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.1889, allocations: 36.7 kB / 0.5435 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.19, allocations: 408.2 kB / 0.5438 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/0.19, allocations: 16.36 kB / 0.5439 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.092e-05/0.1901, allocations: 20.12 kB / 0.5439 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.1905, allocations: 178.4 kB / 0.544 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1905, allocations: 7.938 kB / 0.5441 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.1905, allocations: 7.984 kB / 0.5441 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.944e-06/0.1905, allocations: 8 kB / 0.5441 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004249/0.191, allocations: 168.7 kB / 0.5442 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.1924, allocations: 0.6413 MB / 0.5449 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007428/0.1932, allocations: 258.7 kB / 0.5451 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002311/0.1934, allocations: 100.8 kB / 0.5452 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.1934, allocations: 4 kB / 0.5452 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003497/0.1938, allocations: 187.1 kB / 0.5454 GB, free: 13.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.833e-06/0.1938, allocations: 0 / 0.5454 GB, free: 13.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.00179/0.1956, allocations: 0.6045 MB / 0.546 GB, free: 13.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/0.1956, allocations: 55.41 kB / 0.546 GB, free: 12.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009185/0.1965, allocations: 420.3 kB / 0.5464 GB, free: 12.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.1966, allocations: 41.69 kB / 0.5465 GB, free: 12.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.1967, allocations: 164.6 kB / 0.5466 GB, free: 12.36 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1968, allocations: 91.27 kB / 0.5467 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1969, allocations: 57.7 kB / 0.5468 GB, free: 12.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.1971, allocations: 350.7 kB / 0.5471 GB, free: 11.85 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/0.1974, allocations: 120.2 kB / 0.5472 GB, free: 11.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.1977, allocations: 147.1 kB / 0.5474 GB, free: 11.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002343/0.2, allocations: 0.6712 MB / 0.548 GB, free: 10.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2, allocations: 0 / 0.548 GB, free: 10.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009325/0.2009, allocations: 457.4 kB / 0.5484 GB, free: 10.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.201, allocations: 4 kB / 0.5485 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.201, allocations: 0 / 0.5485 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/0.2013, allocations: 80.83 kB / 0.5485 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.2015, allocations: 39.91 kB / 0.5486 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.2034, allocations: 1.758 MB / 0.5503 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00039/0.2038, allocations: 63.81 kB / 0.5503 GB, free: 8.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.2038, allocations: 12 kB / 0.5504 GB, free: 8.355 MB / 414.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.0002459/0.2041, allocations: 162.8 kB / 0.5505 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.688e-05/0.2041, allocations: 35.7 kB / 0.5505 GB, free: 8.152 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2042, allocations: 47.09 kB / 0.5506 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2042, allocations: 4 kB / 0.5506 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2042, allocations: 0 / 0.5506 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2042, allocations: 0 / 0.5506 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.2046, allocations: 337.3 kB / 0.5509 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.2046, allocations: 7.938 kB / 0.5509 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.2048, allocations: 19.98 kB / 0.5509 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002374/0.205, allocations: 80.91 kB / 0.551 GB, free: 7.609 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.981e-05/0.2051, allocations: 16 kB / 0.551 GB, free: 7.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00208/0.2071, allocations: 1.935 MB / 0.5529 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2071, allocations: 0 / 0.5529 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.2082, allocations: 0.5198 MB / 0.5534 GB, free: 4.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.2083, allocations: 112.9 kB / 0.5535 GB, free: 4.852 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.2084, allocations: 11.94 kB / 0.5536 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.2087, allocations: 43.94 kB / 0.5536 GB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.955e-05/0.2088, allocations: 23.97 kB / 0.5536 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.2088, allocations: 8 kB / 0.5536 GB, free: 4.766 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007662/0.2096, allocations: 322.9 kB / 0.5539 GB, free: 4.449 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2096, allocations: 0 / 0.5539 GB, free: 4.449 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006417/0.2102, allocations: 151.6 kB / 0.5541 GB, free: 4.301 MB / 414.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.0008563/0.2111, allocations: 341.3 kB / 0.5544 GB, free: 3.973 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009309/0.212, allocations: 399 kB / 0.5548 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.212, allocations: 4.062 kB / 0.5548 GB, free: 3.566 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005263/0.2125, allocations: 266.5 kB / 0.555 GB, free: 3.293 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.2129, allocations: 49.91 kB / 0.5551 GB, free: 3.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.2141, allocations: 0.5915 MB / 0.5557 GB, free: 2.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.2147, allocations: 0.787 MB / 0.5564 GB, free: 1.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001559/0.2148, allocations: 54.25 kB / 0.5565 GB, free: 1.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.397e-05/0.2149, allocations: 23.42 kB / 0.5565 GB, free: 1.742 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2149, allocations: 0 / 0.5565 GB, free: 1.742 MB / 414.1 MB Notification: Performance of Templates: time 0.01234/0.2272, allocations: 5.551 MB / 0.5619 GB, free: 12.2 MB / 430.1 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=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.324107499793172] Failed to read output from testmodel.py, exit status != 0: 0.23796468414366245 0.251388275 0.062205686 Calling exit ...