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.001287/0.001287, allocations: 76.27 kB / 19.96 MB, free: 1.746 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.00143/0.00143, allocations: 171.7 kB / 23.24 MB, free: 4.859 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.485/1.485, allocations: 177.1 MB / 203.5 MB, free: 9.16 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.105/0.105, allocations: 18.13 MB / 278.1 MB, free: 15.04 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: Performance of FrontEnd - loaded program: time 2.865e-06/2.865e-06, allocations: 0 / 415.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.371e-05/3.658e-05, allocations: 2.281 kB / 415.6 MB, free: 2.562 MB / 334.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.04695/0.04699, allocations: 23.1 MB / 438.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00459/0.05158, allocations: 1.562 MB / 440.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.05177, allocations: 4 kB / 440.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005094/0.05228, allocations: 79.42 kB / 440.3 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004155/0.05269, allocations: 95.41 kB / 440.4 MB, free: 9.875 MB / 366.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.002118/0.05481, allocations: 0.5801 MB / 441 MB, free: 9.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005974/0.05541, allocations: 315.1 kB / 441.3 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.05557, allocations: 40.91 kB / 441.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.05582, allocations: 131.6 kB / 441.5 MB, free: 8.816 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008347/0.05665, allocations: 173.1 kB / 441.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.612e-05/0.05673, allocations: 24 kB / 441.7 MB, free: 8.629 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.05784, allocations: 446.9 kB / 442.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.05806, allocations: 107.6 kB / 442.2 MB, free: 8.086 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.05823, allocations: 75.75 kB / 442.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.05946, allocations: 0.5958 MB / 442.9 MB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.05947, allocations: 0 / 442.9 MB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.05947, allocations: 3.938 kB / 442.9 MB, free: 7.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.05948, allocations: 0 / 442.9 MB, free: 7.41 MB / 366.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.002861/0.06234, allocations: 0.7339 MB / 443.6 MB, free: 6.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.06239, allocations: 8.031 kB / 443.6 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.06259, allocations: 40.73 kB / 443.7 MB, free: 6.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.06401, allocations: 353.4 kB / 444 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.54e-05/0.06405, allocations: 12.38 kB / 444 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.812e-05/0.0641, allocations: 12.38 kB / 444 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000565/0.06467, allocations: 186.9 kB / 444.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.06469, allocations: 3.938 kB / 444.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.06472, allocations: 4 kB / 444.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.06473, allocations: 4 kB / 444.2 MB, free: 6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006349/0.06537, allocations: 172.7 kB / 444.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.06706, allocations: 0.5356 MB / 444.9 MB, free: 5.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.06812, allocations: 254.4 kB / 445.2 MB, free: 5.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003336/0.06846, allocations: 104.8 kB / 445.3 MB, free: 4.902 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.06849, allocations: 11.92 kB / 445.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000505/0.069, allocations: 167.3 kB / 445.4 MB, free: 4.715 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.069, allocations: 0 / 445.4 MB, free: 4.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.002521/0.07152, allocations: 0.5371 MB / 446 MB, free: 4.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.07159, allocations: 63.33 kB / 446 MB, free: 4.094 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/0.073, allocations: 424.3 kB / 446.5 MB, free: 3.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.048e-05/0.07306, allocations: 41.7 kB / 446.5 MB, free: 3.621 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.07324, allocations: 156.7 kB / 446.7 MB, free: 3.465 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.07337, allocations: 83.33 kB / 446.7 MB, free: 3.383 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.07353, allocations: 61.69 kB / 446.8 MB, free: 3.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002398/0.07377, allocations: 342.8 kB / 447.1 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000401/0.07417, allocations: 120.2 kB / 447.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/0.07462, allocations: 150.2 kB / 447.4 MB, free: 2.699 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003639/0.07826, allocations: 0.6744 MB / 448.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.07827, allocations: 0 / 448.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001405/0.07967, allocations: 449.8 kB / 448.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.07969, allocations: 4 kB / 448.5 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.0797, allocations: 0 / 448.5 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003954/0.08009, allocations: 76.77 kB / 448.6 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.08039, allocations: 43.97 kB / 448.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2608/0.3412, allocations: 1.616 MB / 450.2 MB, free: 43.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006947/0.3419, allocations: 65.67 kB / 450.3 MB, free: 43.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.033e-05/0.342, allocations: 11.09 kB / 450.3 MB, free: 43.51 MB / 366.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.0002863/0.3422, allocations: 168.8 kB / 450.5 MB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.271e-05/0.3423, allocations: 32.39 kB / 450.5 MB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.17e-05/0.3424, allocations: 41.41 kB / 450.6 MB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.3424, allocations: 1.969 kB / 450.6 MB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.3424, allocations: 3 kB / 450.6 MB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3424, allocations: 2.047 kB / 450.6 MB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003979/0.3428, allocations: 244.2 kB / 450.8 MB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.3428, allocations: 11.86 kB / 450.8 MB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.3431, allocations: 23.69 kB / 450.8 MB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003762/0.3435, allocations: 72.77 kB / 450.9 MB, free: 43.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.3435, allocations: 7.844 kB / 450.9 MB, free: 43.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002396/0.3459, allocations: 1.8 MB / 452.7 MB, free: 41.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3459, allocations: 0 / 452.7 MB, free: 41.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001589/0.3475, allocations: 0.517 MB / 453.2 MB, free: 41.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.577e-05/0.3476, allocations: 50.02 kB / 453.3 MB, free: 41.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.888e-05/0.3477, allocations: 10.31 kB / 453.3 MB, free: 41.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005831/0.3482, allocations: 42.84 kB / 453.3 MB, free: 41.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.3484, allocations: 20.16 kB / 453.4 MB, free: 41.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.3484, allocations: 8.797 kB / 453.4 MB, free: 41.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007773/0.3492, allocations: 320.4 kB / 453.7 MB, free: 41.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3492, allocations: 0 / 453.7 MB, free: 41.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006844/0.3498, allocations: 153.2 kB / 453.8 MB, free: 41.62 MB / 366.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.00102/0.3509, allocations: 359.3 kB / 454.2 MB, free: 41.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.3519, allocations: 407.6 kB / 454.6 MB, free: 41.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3519, allocations: 2.656 kB / 454.6 MB, free: 41.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005552/0.3524, allocations: 261.9 kB / 454.8 MB, free: 41.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.3528, allocations: 46.23 kB / 454.9 MB, free: 41.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.354, allocations: 0.5752 MB / 455.5 MB, free: 40.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.3543, allocations: 181.7 kB / 455.6 MB, free: 40.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000157/0.3544, allocations: 59.08 kB / 455.7 MB, free: 40.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.763e-05/0.3545, allocations: 29.05 kB / 455.7 MB, free: 40.76 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3545, allocations: 2.688 kB / 455.7 MB, free: 40.76 MB / 366.1 MB Notification: Performance of Templates: time 0.01522/0.3697, allocations: 5.739 MB / 461.5 MB, free: 40.39 MB / 366.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.029233481734991] Failed to read output from testmodel.py, exit status != 0: 0.3814367204904556 0.39174411200000003 0.32991336000000004 Calling exit ...