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.0008493/0.0008493, allocations: 75.7 kB / 20.8 MB, free: 3.703 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.0009445/0.0009445, allocations: 166 kB / 24.09 MB, free: 420 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 0.8151/0.8151, allocations: 177.1 MB / 204.4 MB, free: 5.715 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.05861/0.05861, allocations: 18.13 MB / 279 MB, free: 11.49 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.222e-06/1.222e-06, allocations: 0 / 416.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.53e-05, allocations: 3.656 kB / 416.6 MB, free: 12.32 MB / 330.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.01901/0.01904, allocations: 23.1 MB / 439.7 MB, free: 15.27 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.02122, allocations: 1.569 MB / 441.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.02133, allocations: 3.938 kB / 441.2 MB, free: 13.87 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003185/0.02165, allocations: 71.48 kB / 441.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.02184, allocations: 107.7 kB / 441.4 MB, free: 13.73 MB / 346.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.0009679/0.02281, allocations: 0.5771 MB / 442 MB, free: 13.31 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.02308, allocations: 312.7 kB / 442.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.02318, allocations: 38.22 kB / 442.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.02332, allocations: 136.5 kB / 442.5 MB, free: 12.92 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005184/0.02383, allocations: 173.2 kB / 442.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.862e-05/0.02387, allocations: 24 kB / 442.7 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004779/0.02435, allocations: 442 kB / 443.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.02446, allocations: 101.4 kB / 443.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.566e-05/0.02454, allocations: 72.55 kB / 443.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00062/0.02516, allocations: 0.5957 MB / 443.8 MB, free: 11.9 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.02516, allocations: 8 kB / 443.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.02517, allocations: 0 / 443.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.02517, allocations: 0 / 443.9 MB, free: 11.89 MB / 346.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.001135/0.02631, allocations: 0.7354 MB / 444.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.02634, allocations: 15.97 kB / 444.6 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.02646, allocations: 34.2 kB / 444.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.02697, allocations: 358.7 kB / 445 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.02699, allocations: 12.38 kB / 445 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.02702, allocations: 17.22 kB / 445 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002643/0.02729, allocations: 177.2 kB / 445.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.0273, allocations: 4.594 kB / 445.2 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.02732, allocations: 8 kB / 445.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.02732, allocations: 4 kB / 445.2 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.02757, allocations: 174.2 kB / 445.4 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.0283, allocations: 0.5369 MB / 445.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004253/0.02872, allocations: 259.2 kB / 446.2 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.02885, allocations: 100 kB / 446.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.02886, allocations: 0.7031 kB / 446.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.02908, allocations: 172.5 kB / 446.4 MB, free: 9.586 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/0.02908, allocations: 0 / 446.4 MB, free: 9.586 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009371/0.03002, allocations: 0.5295 MB / 447 MB, free: 9.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.03006, allocations: 60.75 kB / 447 MB, free: 9.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004874/0.03054, allocations: 420.8 kB / 447.4 MB, free: 8.727 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.03057, allocations: 43.53 kB / 447.5 MB, free: 8.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.427e-05/0.03065, allocations: 158 kB / 447.6 MB, free: 8.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.785e-05/0.03071, allocations: 85.53 kB / 447.7 MB, free: 8.453 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-05/0.03078, allocations: 60 kB / 447.8 MB, free: 8.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.268e-05/0.03087, allocations: 345.9 kB / 448.1 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.03102, allocations: 119.3 kB / 448.2 MB, free: 7.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.03118, allocations: 153 kB / 448.4 MB, free: 7.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.03243, allocations: 0.6696 MB / 449 MB, free: 7.289 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.03244, allocations: 8 kB / 449.1 MB, free: 7.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005187/0.03296, allocations: 446.8 kB / 449.5 MB, free: 6.895 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.03297, allocations: 4.703 kB / 449.5 MB, free: 6.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.03298, allocations: 3.938 kB / 449.5 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.03315, allocations: 70.44 kB / 449.6 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.03325, allocations: 42.17 kB / 449.6 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.03433, allocations: 1.618 MB / 451.2 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.03451, allocations: 61.61 kB / 451.3 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.03453, allocations: 16 kB / 451.3 MB, free: 5.094 MB / 346.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.000161/0.03469, allocations: 174.7 kB / 451.5 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.013e-05/0.03472, allocations: 35.77 kB / 451.5 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.03476, allocations: 43.28 kB / 451.6 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.03476, allocations: 0 / 451.6 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.03477, allocations: 8.594 kB / 451.6 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.03477, allocations: 0.7969 kB / 451.6 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.03498, allocations: 238.8 kB / 451.8 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.03498, allocations: 0.5625 kB / 451.8 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.721e-05/0.03507, allocations: 32.05 kB / 451.8 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001397/0.03521, allocations: 74.67 kB / 451.9 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.03523, allocations: 12.94 kB / 451.9 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.03632, allocations: 1.794 MB / 453.7 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.03633, allocations: 0 / 453.7 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005678/0.03689, allocations: 0.5233 MB / 454.2 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.03693, allocations: 43.73 kB / 454.3 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.03696, allocations: 8 kB / 454.3 MB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.03711, allocations: 43.92 kB / 454.3 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.202e-05/0.03717, allocations: 19.97 kB / 454.3 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.03718, allocations: 8 kB / 454.4 MB, free: 1.977 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003623/0.03754, allocations: 322.9 kB / 454.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03754, allocations: 0 / 454.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004538/0.038, allocations: 151.6 kB / 454.8 MB, free: 1.516 MB / 346.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.0005783/0.03858, allocations: 364.8 kB / 455.2 MB, free: 1.172 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005172/0.03909, allocations: 406.3 kB / 455.6 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.03909, allocations: 0 / 455.6 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002915/0.03939, allocations: 265.3 kB / 455.8 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.03961, allocations: 47 kB / 455.9 MB, free: 460 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006771/0.04029, allocations: 0.5692 MB / 456.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.0404, allocations: 183.4 kB / 456.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.404e-05/0.0405, allocations: 54.25 kB / 456.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.927e-05/0.04054, allocations: 28.5 kB / 456.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.04055, allocations: 0 / 456.7 MB, free: 15.57 MB / 362.7 MB Notification: Performance of Templates: time 0.007017/0.04756, allocations: 5.751 MB / 462.5 MB, free: 9.855 MB / 362.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=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 2.848769365809858] Failed to read output from testmodel.py, exit status != 0: 0.052875714376568794 0.060767411 0.033514366000000004 Calling exit ...