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.0009773/0.0009773, allocations: 76.52 kB / 19.95 MB, free: 4.613 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.001165/0.001165, allocations: 165.2 kB / 23.23 MB, free: 1.336 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.9164/0.9164, allocations: 177.1 MB / 203.5 MB, free: 5.754 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.06134/0.06134, allocations: 18.13 MB / 278.1 MB, free: 11.55 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: "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.052e-05/2.258e-05, allocations: 2.281 kB / 415.1 MB, free: 12.69 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.02405/0.02408, allocations: 23.06 MB / 438.1 MB, free: 0 / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00287/0.02695, allocations: 1.569 MB / 439.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.02708, allocations: 0 / 439.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.02741, allocations: 71.44 kB / 439.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.02762, allocations: 115.7 kB / 439.9 MB, free: 14.46 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.001201/0.02883, allocations: 0.5762 MB / 440.4 MB, free: 14.04 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003683/0.02919, allocations: 316.9 kB / 440.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.0293, allocations: 38.52 kB / 440.8 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.02945, allocations: 128.5 kB / 440.9 MB, free: 13.65 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004701/0.02992, allocations: 178.8 kB / 441.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.055e-05/0.02997, allocations: 20 kB / 441.1 MB, free: 13.51 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000561/0.03053, allocations: 449.9 kB / 441.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.03064, allocations: 101.4 kB / 441.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.774e-05/0.03072, allocations: 72.59 kB / 441.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000836/0.03156, allocations: 0.5961 MB / 442.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.03156, allocations: 4 kB / 442.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.03156, allocations: 0 / 442.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.03157, allocations: 0 / 442.3 MB, free: 12.61 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.001243/0.03281, allocations: 0.7391 MB / 443.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.03285, allocations: 15.97 kB / 443.1 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.063e-05/0.03289, allocations: 46.73 kB / 443.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.882e-05/0.03299, allocations: 37.36 kB / 443.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005594/0.03355, allocations: 347 kB / 443.5 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.03357, allocations: 8.375 kB / 443.5 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.0336, allocations: 16.98 kB / 443.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.03389, allocations: 190 kB / 443.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.0339, allocations: 0 / 443.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.03392, allocations: 8 kB / 443.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.03392, allocations: 0 / 443.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.03418, allocations: 170.2 kB / 443.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.03496, allocations: 0.5792 MB / 444.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004208/0.03538, allocations: 254.8 kB / 444.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.03551, allocations: 100.6 kB / 444.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.03553, allocations: 7.938 kB / 444.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.03576, allocations: 172.7 kB / 445 MB, free: 10.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.794e-06/0.03576, allocations: 0 / 445 MB, free: 10.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009662/0.03673, allocations: 0.5294 MB / 445.5 MB, free: 9.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.03677, allocations: 56.91 kB / 445.6 MB, free: 9.703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004909/0.03726, allocations: 424.6 kB / 446 MB, free: 9.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.03729, allocations: 39.53 kB / 446 MB, free: 9.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.66e-05/0.03737, allocations: 153.8 kB / 446.2 MB, free: 9.164 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.322e-05/0.03743, allocations: 90.03 kB / 446.3 MB, free: 9.082 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/0.0375, allocations: 63.62 kB / 446.3 MB, free: 9.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.0376, allocations: 346 kB / 446.7 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.03775, allocations: 114.9 kB / 446.8 MB, free: 8.586 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.03792, allocations: 157.6 kB / 446.9 MB, free: 8.449 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.03921, allocations: 0.6687 MB / 447.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.03921, allocations: 0 / 447.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005278/0.03974, allocations: 453.6 kB / 448 MB, free: 7.523 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.03975, allocations: 4 kB / 448 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.03976, allocations: 0 / 448 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.03994, allocations: 76.7 kB / 448.1 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.915e-05/0.04003, allocations: 45.97 kB / 448.2 MB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.04111, allocations: 1.635 MB / 449.8 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.04129, allocations: 70.45 kB / 449.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.04132, allocations: 8 kB / 449.9 MB, free: 5.688 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.0001587/0.04148, allocations: 175.5 kB / 450 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.065e-05/0.04151, allocations: 35.77 kB / 450.1 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.813e-05/0.04154, allocations: 45.95 kB / 450.1 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.04155, allocations: 4 kB / 450.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.04155, allocations: 0 / 450.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.04155, allocations: 1.031 kB / 450.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002246/0.04178, allocations: 277.9 kB / 450.4 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.04178, allocations: 0 / 450.4 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.138e-05/0.04187, allocations: 32.2 kB / 450.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001351/0.04201, allocations: 74.72 kB / 450.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.04202, allocations: 13.25 kB / 450.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.04315, allocations: 1.825 MB / 452.3 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.04316, allocations: 3.938 kB / 452.3 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005806/0.04374, allocations: 0.5078 MB / 452.9 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.04378, allocations: 47.73 kB / 452.9 MB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.0438, allocations: 8 kB / 452.9 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.04396, allocations: 51.86 kB / 453 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.751e-05/0.04401, allocations: 19.97 kB / 453 MB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.04402, allocations: 8 kB / 453 MB, free: 2.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003511/0.04437, allocations: 314.9 kB / 453.3 MB, free: 2.215 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04437, allocations: 0 / 453.3 MB, free: 2.215 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003916/0.04477, allocations: 159.7 kB / 453.4 MB, free: 2.059 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.001186/0.04595, allocations: 1.296 MB / 454.7 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005025/0.04645, allocations: 413.1 kB / 455.1 MB, free: 356 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.04646, allocations: 0 / 455.1 MB, free: 356 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.04671, allocations: 258.5 kB / 455.4 MB, free: 84 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.04692, allocations: 45.12 kB / 455.4 MB, free: 40 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.05037, allocations: 3.516 MB / 459 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.05049, allocations: 191.4 kB / 459.1 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.659e-05/0.05058, allocations: 54.25 kB / 459.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.05068, allocations: 96.45 kB / 459.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of SimCode: time 9.02e-07/0.05068, allocations: 0 / 459.3 MB, free: 12.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02148/0.07216, allocations: 9.743 MB / 469 MB, free: 2.426 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.47/7.542, allocations: 20.44 kB / 469.1 MB, free: 2.41 MB / 362.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.526482307352126] Failed to read output from testmodel.py, exit status != 0: 7.628310634754598 7.636122254 7.602297575 Calling exit ...