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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 101.7 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002286/0.002286, allocations: 186.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.1027/0.1027, allocations: 22.7 MB / 325.4 MB, free: 3.547 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.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=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 0.002073/0.002073, allocations: 67.88 kB / 457.6 MB, free: 1.277 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1318, allocations: 58.02 MB / 0.5036 GB, free: 7.145 MB / 382.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.5351/0.667, allocations: 22.16 MB / 0.5252 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002978/0.67, allocations: 1.618 MB / 0.5268 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.6702, allocations: 3.938 kB / 0.5268 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004336/0.6706, allocations: 80.14 kB / 0.5269 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.6709, allocations: 98.19 kB / 0.527 GB, free: 6.293 MB / 382.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.001438/0.6723, allocations: 482.9 kB / 0.5274 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005363/0.6729, allocations: 411.3 kB / 0.5278 GB, free: 6.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.673, allocations: 41.72 kB / 0.5279 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002232/0.6732, allocations: 175.1 kB / 0.528 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007517/0.674, allocations: 213.6 kB / 0.5282 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.674, allocations: 24.19 kB / 0.5283 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008679/0.6749, allocations: 427.2 kB / 0.5287 GB, free: 6.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.6751, allocations: 94.25 kB / 0.5288 GB, free: 6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.6752, allocations: 132.4 kB / 0.5289 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009963/0.6762, allocations: 0.5296 MB / 0.5294 GB, free: 5.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.6762, allocations: 1.312 kB / 0.5294 GB, free: 5.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6762, allocations: 4 kB / 0.5294 GB, free: 5.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.6762, allocations: 0 / 0.5294 GB, free: 5.832 MB / 382.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.002001/0.6782, allocations: 0.8101 MB / 0.5302 GB, free: 5.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.6783, allocations: 9.625 kB / 0.5302 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.6784, allocations: 34.84 kB / 0.5302 GB, free: 5.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009213/0.6793, allocations: 422 kB / 0.5306 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.104e-05/0.6794, allocations: 10.55 kB / 0.5307 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.473e-05/0.6794, allocations: 19.06 kB / 0.5307 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004246/0.6798, allocations: 191.1 kB / 0.5309 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.6799, allocations: 1.031 kB / 0.5309 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.6799, allocations: 4.438 kB / 0.5309 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.6799, allocations: 4.062 kB / 0.5309 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004572/0.6804, allocations: 176 kB / 0.531 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.6816, allocations: 0.651 MB / 0.5317 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007278/0.6824, allocations: 251.9 kB / 0.5319 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.6826, allocations: 102.5 kB / 0.532 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.6826, allocations: 1.766 kB / 0.532 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003623/0.683, allocations: 181.2 kB / 0.5322 GB, free: 4.539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.683, allocations: 0 / 0.5322 GB, free: 4.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001739/0.6847, allocations: 0.6042 MB / 0.5328 GB, free: 4.277 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.6848, allocations: 65.12 kB / 0.5328 GB, free: 4.211 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008488/0.6856, allocations: 416 kB / 0.5332 GB, free: 4.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.6857, allocations: 40.47 kB / 0.5333 GB, free: 3.992 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.7e-05/0.6857, allocations: 161.6 kB / 0.5334 GB, free: 3.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.256e-05/0.6858, allocations: 93.52 kB / 0.5335 GB, free: 3.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.6859, allocations: 55.72 kB / 0.5336 GB, free: 3.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.655e-05/0.686, allocations: 347.1 kB / 0.5339 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.6862, allocations: 115.4 kB / 0.534 GB, free: 3.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.6865, allocations: 150.5 kB / 0.5341 GB, free: 3.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002429/0.6889, allocations: 0.6706 MB / 0.5348 GB, free: 3.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.6889, allocations: 0 / 0.5348 GB, free: 3.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009525/0.6898, allocations: 451.9 kB / 0.5352 GB, free: 2.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.6899, allocations: 5.891 kB / 0.5352 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/0.6899, allocations: 0 / 0.5352 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000297/0.6902, allocations: 74.88 kB / 0.5353 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.6904, allocations: 45.47 kB / 0.5354 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.6919, allocations: 1.762 MB / 0.5371 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/0.6923, allocations: 64.23 kB / 0.5371 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.6923, allocations: 12.52 kB / 0.5371 GB, free: 1.34 MB / 382.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.0002498/0.6926, allocations: 171.6 kB / 0.5373 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6e-05/0.6926, allocations: 38.47 kB / 0.5373 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.007e-05/0.6927, allocations: 38.92 kB / 0.5374 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.6927, allocations: 11.52 kB / 0.5374 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.6927, allocations: 1.469 kB / 0.5374 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.6927, allocations: 0.6094 kB / 0.5374 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003877/0.6931, allocations: 344.6 kB / 0.5377 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.6931, allocations: 3.938 kB / 0.5377 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.6933, allocations: 25.95 kB / 0.5378 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000229/0.6935, allocations: 74.08 kB / 0.5378 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.6935, allocations: 5.422 kB / 0.5378 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001846/0.6954, allocations: 1.939 MB / 0.5397 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6954, allocations: 0 / 0.5397 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.6964, allocations: 0.5159 MB / 0.5402 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.6966, allocations: 122.4 kB / 0.5403 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.6966, allocations: 12.78 kB / 0.5404 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003636/0.697, allocations: 46.62 kB / 0.5404 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.591e-05/0.6971, allocations: 21.89 kB / 0.5404 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.6971, allocations: 8.531 kB / 0.5404 GB, free: 14.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007689/0.6979, allocations: 314.9 kB / 0.5407 GB, free: 14.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6979, allocations: 4 kB / 0.5407 GB, free: 14.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008161/0.6987, allocations: 150.2 kB / 0.5409 GB, free: 14.6 MB / 398.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.000877/0.6995, allocations: 322.8 kB / 0.5412 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008897/0.7004, allocations: 404.7 kB / 0.5416 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.7004, allocations: 0 / 0.5416 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005285/0.701, allocations: 263.4 kB / 0.5418 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.7013, allocations: 54.72 kB / 0.5419 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.7024, allocations: 0.6005 MB / 0.5425 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/0.7029, allocations: 0.7899 MB / 0.5432 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.7031, allocations: 62.66 kB / 0.5433 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.7e-05/0.7032, allocations: 22.91 kB / 0.5433 GB, free: 12.97 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.7032, allocations: 0 / 0.5433 GB, free: 12.97 MB / 398.1 MB Notification: Performance of Templates: time 0.01309/0.7162, allocations: 5.453 MB / 0.5486 GB, free: 11.01 MB / 398.1 MB " [Timeout remaining time 659] 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.626392430160195] Failed to read output from testmodel.py, exit status != 0: 0.7252855417318642 0.739089209 0.05976205800000001 Calling exit ...