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.0008142/0.0008142, allocations: 80.45 kB / 20.71 MB, free: 3.859 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.0008145/0.0008145, allocations: 169.6 kB / 23.98 MB, free: 0.582 MB / 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.8847/0.8847, allocations: 177.1 MB / 204.3 MB, free: 5.758 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.06223/0.06223, allocations: 18.13 MB / 278.8 MB, free: 11.56 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 2.705e-06/2.705e-06, allocations: 0 / 416.3 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.532e-05/3.802e-05, allocations: 2.281 kB / 416.3 MB, free: 12.47 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.0227/0.02273, allocations: 23.07 MB / 439.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002495/0.02523, allocations: 1.561 MB / 440.9 MB, free: 14.17 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.02536, allocations: 4 kB / 440.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003184/0.02568, allocations: 79.88 kB / 441 MB, free: 14.1 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.02588, allocations: 107.2 kB / 441.1 MB, free: 14.02 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.00118/0.02706, allocations: 0.5834 MB / 441.7 MB, free: 13.58 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003522/0.02741, allocations: 313.9 kB / 442 MB, free: 13.33 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.02752, allocations: 33.48 kB / 442 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.02768, allocations: 140.7 kB / 442.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005978/0.02828, allocations: 172.6 kB / 442.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.327e-05/0.02832, allocations: 24 kB / 442.4 MB, free: 13.05 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007082/0.02903, allocations: 438.2 kB / 442.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.02916, allocations: 97.58 kB / 442.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.135e-05/0.02925, allocations: 80.86 kB / 443 MB, free: 12.59 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008276/0.03008, allocations: 0.603 MB / 443.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.03008, allocations: 0.75 kB / 443.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.03008, allocations: 0 / 443.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.064e-06/0.03009, allocations: 0 / 443.6 MB, free: 12.16 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.001254/0.03134, allocations: 0.7391 MB / 444.3 MB, free: 11.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.03138, allocations: 8.031 kB / 444.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.0315, allocations: 33.27 kB / 444.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.03206, allocations: 354.8 kB / 444.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.03207, allocations: 8.938 kB / 444.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.03211, allocations: 16.89 kB / 444.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.0324, allocations: 181.8 kB / 444.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.03241, allocations: 3.938 kB / 444.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.03243, allocations: 8.609 kB / 444.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.03243, allocations: 0 / 444.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002735/0.0327, allocations: 173.9 kB / 445.1 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007964/0.0335, allocations: 0.5339 MB / 445.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004936/0.03399, allocations: 256.8 kB / 445.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.03412, allocations: 103.9 kB / 446 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.03414, allocations: 8.453 kB / 446 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.03436, allocations: 168.8 kB / 446.2 MB, free: 9.867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 2.625e-06/0.03437, allocations: 7.984 kB / 446.2 MB, free: 9.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009638/0.03533, allocations: 0.5253 MB / 446.7 MB, free: 9.422 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.03537, allocations: 68.75 kB / 446.8 MB, free: 9.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005759/0.03595, allocations: 417 kB / 447.2 MB, free: 9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.03598, allocations: 47.38 kB / 447.2 MB, free: 8.949 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.03606, allocations: 162 kB / 447.4 MB, free: 8.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.893e-05/0.03612, allocations: 81.53 kB / 447.4 MB, free: 8.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.875e-05/0.03619, allocations: 56.28 kB / 447.5 MB, free: 8.668 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.29e-05/0.03628, allocations: 349.2 kB / 447.8 MB, free: 8.328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.03644, allocations: 119.6 kB / 448 MB, free: 8.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.03661, allocations: 148.8 kB / 448.1 MB, free: 8.098 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.03788, allocations: 0.6776 MB / 448.8 MB, free: 7.555 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.03789, allocations: 4 kB / 448.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006595/0.03855, allocations: 447.6 kB / 449.2 MB, free: 7.164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.03856, allocations: 4 kB / 449.2 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.03857, allocations: 4 kB / 449.2 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.03875, allocations: 70.06 kB / 449.3 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.03886, allocations: 50.62 kB / 449.3 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.03997, allocations: 1.612 MB / 451 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.04015, allocations: 67.16 kB / 451 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.04017, allocations: 8.75 kB / 451 MB, free: 5.363 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.0001786/0.04035, allocations: 174.5 kB / 451.2 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.04039, allocations: 31.77 kB / 451.2 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.159e-05/0.04043, allocations: 44.27 kB / 451.3 MB, free: 5.125 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.04043, allocations: 4 kB / 451.3 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.04044, allocations: 3.938 kB / 451.3 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.04044, allocations: 4.734 kB / 451.3 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.04066, allocations: 242.5 kB / 451.5 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.04066, allocations: 0.6562 kB / 451.5 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.032e-05/0.04075, allocations: 27.64 kB / 451.6 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001399/0.04089, allocations: 71.42 kB / 451.6 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.0409, allocations: 8.797 kB / 451.6 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001374/0.04228, allocations: 1.8 MB / 453.4 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.04228, allocations: 0 / 453.4 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005795/0.04286, allocations: 0.5155 MB / 453.9 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.145e-05/0.0429, allocations: 43.73 kB / 454 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.04292, allocations: 8 kB / 454 MB, free: 2.332 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.04308, allocations: 51.92 kB / 454 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.04313, allocations: 11.97 kB / 454.1 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.04314, allocations: 12 kB / 454.1 MB, free: 2.258 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003566/0.0435, allocations: 318.9 kB / 454.4 MB, free: 1.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0435, allocations: 0 / 454.4 MB, free: 1.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004721/0.04397, allocations: 167.5 kB / 454.5 MB, free: 1.785 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.0005729/0.04454, allocations: 365.7 kB / 454.9 MB, free: 1.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005266/0.04507, allocations: 398.3 kB / 455.3 MB, free: 1.047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.04507, allocations: 0 / 455.3 MB, free: 1.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002816/0.04535, allocations: 265.4 kB / 455.6 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002213/0.04558, allocations: 41.12 kB / 455.6 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007305/0.04631, allocations: 0.6099 MB / 456.2 MB, free: 92 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.04643, allocations: 187.4 kB / 456.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.271e-05/0.04649, allocations: 20.5 kB / 456.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of SimCode: time 7.81e-07/0.04649, allocations: 0 / 456.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of Templates: time 0.006775/0.05326, allocations: 6.994 MB / 463.4 MB, free: 8.867 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 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.489023823291063] Failed to read output from testmodel.py, exit status != 0: 0.06022891774773598 0.067991232 0.036251852 Calling exit ...