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.001965/0.001965, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002182/0.002182, allocations: 162.1 kB / 23.01 MB, free: 4.598 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.552/1.552, allocations: 177.2 MB / 203.4 MB, free: 8.977 MB / 190.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.104/0.104, allocations: 17.79 MB / 277.6 MB, free: 15.35 MB / 270.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.003174/0.003174, allocations: 67.89 kB / 414.6 MB, free: 4.512 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1348, allocations: 59.55 MB / 474.2 MB, free: 8.84 MB / 446.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.4401/0.5748, allocations: 22.76 MB / 497 MB, free: 41.87 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002668/0.5775, allocations: 1.579 MB / 498.5 MB, free: 41.28 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.5777, allocations: 3.031 kB / 498.5 MB, free: 41.28 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003358/0.578, allocations: 72.84 kB / 498.6 MB, free: 41.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.5782, allocations: 102.9 kB / 498.7 MB, free: 41.21 MB / 446.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.001199/0.5794, allocations: 0.5207 MB / 499.2 MB, free: 41.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006421/0.5801, allocations: 467.5 kB / 499.7 MB, free: 41.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.5802, allocations: 35.47 kB / 499.7 MB, free: 41.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.5805, allocations: 192.1 kB / 499.9 MB, free: 41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008058/0.5813, allocations: 202.8 kB / 0.4884 GB, free: 40.95 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.945e-05/0.5813, allocations: 25.97 kB / 0.4884 GB, free: 40.95 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007939/0.5821, allocations: 446.5 kB / 0.4888 GB, free: 40.9 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.5823, allocations: 99.91 kB / 0.4889 GB, free: 40.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.5824, allocations: 101 kB / 0.489 GB, free: 40.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007054/0.5831, allocations: 0.5439 MB / 0.4896 GB, free: 40.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.5831, allocations: 0 / 0.4896 GB, free: 40.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5831, allocations: 0 / 0.4896 GB, free: 40.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.5831, allocations: 0 / 0.4896 GB, free: 40.7 MB / 446.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.001793/0.5849, allocations: 0.7388 MB / 0.4903 GB, free: 40.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.5849, allocations: 9.969 kB / 0.4903 GB, free: 40.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.5851, allocations: 36.67 kB / 0.4903 GB, free: 40.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007927/0.5859, allocations: 350.1 kB / 0.4907 GB, free: 39.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.5859, allocations: 16.56 kB / 0.4907 GB, free: 39.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.5859, allocations: 16.75 kB / 0.4907 GB, free: 39.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.5863, allocations: 178 kB / 0.4909 GB, free: 39.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.5863, allocations: 4 kB / 0.4909 GB, free: 39.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.5863, allocations: 11 kB / 0.4909 GB, free: 39.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.5863, allocations: 2.5 kB / 0.4909 GB, free: 39.89 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003355/0.5866, allocations: 171.8 kB / 0.491 GB, free: 39.84 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009426/0.5876, allocations: 0.5344 MB / 0.4916 GB, free: 39.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006076/0.5882, allocations: 252.1 kB / 0.4918 GB, free: 39.45 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.5884, allocations: 102.4 kB / 0.4919 GB, free: 39.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.5884, allocations: 6.844 kB / 0.4919 GB, free: 39.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.5887, allocations: 174.8 kB / 0.4921 GB, free: 39.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.5887, allocations: 0 / 0.4921 GB, free: 39.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.00144/0.5901, allocations: 0.5448 MB / 0.4926 GB, free: 39.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.5902, allocations: 57.5 kB / 0.4927 GB, free: 39.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007286/0.5909, allocations: 414.4 kB / 0.4931 GB, free: 38.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.5909, allocations: 43.33 kB / 0.4931 GB, free: 38.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.123e-05/0.591, allocations: 159.2 kB / 0.4933 GB, free: 38.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.795e-05/0.5911, allocations: 84.33 kB / 0.4933 GB, free: 38.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.197e-05/0.5911, allocations: 67.02 kB / 0.4934 GB, free: 38.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.5912, allocations: 345.5 kB / 0.4937 GB, free: 38.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.5914, allocations: 118.8 kB / 0.4938 GB, free: 38.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.5916, allocations: 158 kB / 0.494 GB, free: 38.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002122/0.5937, allocations: 0.6616 MB / 0.4946 GB, free: 38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5937, allocations: 0 / 0.4946 GB, free: 38 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008674/0.5946, allocations: 457.4 kB / 0.4951 GB, free: 37.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.5946, allocations: 6.438 kB / 0.4951 GB, free: 37.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.5946, allocations: 0 / 0.4951 GB, free: 37.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.5949, allocations: 74.97 kB / 0.4951 GB, free: 37.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.5951, allocations: 45.7 kB / 0.4952 GB, free: 37.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.5965, allocations: 1.614 MB / 0.4968 GB, free: 36.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.5969, allocations: 70.81 kB / 0.4968 GB, free: 36.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.5969, allocations: 13.7 kB / 0.4968 GB, free: 36.37 MB / 446.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.0002642/0.5972, allocations: 173.9 kB / 0.497 GB, free: 36.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.062e-05/0.5972, allocations: 31.89 kB / 0.497 GB, free: 36.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.967e-05/0.5973, allocations: 48 kB / 0.4971 GB, free: 36.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.5973, allocations: 3.094 kB / 0.4971 GB, free: 36.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.5973, allocations: 0 / 0.4971 GB, free: 36.17 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.5973, allocations: 3.938 kB / 0.4971 GB, free: 36.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.5976, allocations: 239.2 kB / 0.4973 GB, free: 36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.5976, allocations: 0 / 0.4973 GB, free: 36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.5978, allocations: 25.64 kB / 0.4974 GB, free: 35.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000203/0.598, allocations: 78.86 kB / 0.4974 GB, free: 35.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.598, allocations: 6.391 kB / 0.4974 GB, free: 35.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.5993, allocations: 1.802 MB / 0.4992 GB, free: 34.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5993, allocations: 4.062 kB / 0.4992 GB, free: 34.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008235/0.6002, allocations: 0.5148 MB / 0.4997 GB, free: 34.19 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.205e-05/0.6002, allocations: 43.19 kB / 0.4997 GB, free: 34.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.6002, allocations: 10 kB / 0.4997 GB, free: 34.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003323/0.6006, allocations: 50.38 kB / 0.4998 GB, free: 34.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.461e-05/0.6006, allocations: 23.92 kB / 0.4998 GB, free: 34.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.6007, allocations: 6.484 kB / 0.4998 GB, free: 34.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007783/0.6014, allocations: 317.7 kB / 0.5001 GB, free: 34.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6014, allocations: 0 / 0.5001 GB, free: 34.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008526/0.6023, allocations: 163.6 kB / 0.5003 GB, free: 33.97 MB / 446.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.0008668/0.6032, allocations: 337 kB / 0.5006 GB, free: 33.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007292/0.6039, allocations: 404.7 kB / 0.501 GB, free: 33.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.6039, allocations: 4.062 kB / 0.501 GB, free: 33.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004193/0.6043, allocations: 262.3 kB / 0.5012 GB, free: 33.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.6046, allocations: 45.98 kB / 0.5013 GB, free: 33.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008749/0.6055, allocations: 0.5976 MB / 0.5019 GB, free: 33.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001406/0.6056, allocations: 191.4 kB / 0.5021 GB, free: 32.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.6058, allocations: 59.08 kB / 0.5021 GB, free: 32.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.29e-05/0.6058, allocations: 22.78 kB / 0.5021 GB, free: 32.96 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.6058, allocations: 3.938 kB / 0.5021 GB, free: 32.96 MB / 446.1 MB Notification: Performance of Templates: time 0.01038/0.6162, allocations: 5.693 MB / 0.5077 GB, free: 32.36 MB / 446.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 -s ida -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.507451862911694] Failed to read output from testmodel.py, exit status != 0: 0.6269811179954559 0.637013292 0.051184312 Calling exit ...