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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 197.9 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.085/1.085, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1543/0.1543, allocations: 22.36 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001022, allocations: 63.91 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.183, allocations: 54.95 MB / 435.2 MB, free: 39.49 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0.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.02039/0.2034, allocations: 21.31 MB / 456.5 MB, free: 32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00191/0.2054, allocations: 1.638 MB / 458.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.465e-05/0.2054, allocations: 2 kB / 458.1 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002476/0.2057, allocations: 67.91 kB / 458.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.2059, allocations: 86.52 kB / 458.3 MB, free: 30.85 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0006205/0.2065, allocations: 406.3 kB / 458.7 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.2068, allocations: 384.9 kB / 459 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.623e-05/0.2069, allocations: 64.98 kB / 459.1 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.207, allocations: 147.6 kB / 459.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.2076, allocations: 186.7 kB / 459.4 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.2077, allocations: 13.56 kB / 459.4 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004605/0.2081, allocations: 450.9 kB / 459.9 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.279e-05/0.2082, allocations: 88.19 kB / 460 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.556e-05/0.2083, allocations: 113.7 kB / 460.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004473/0.2088, allocations: 0.5269 MB / 460.6 MB, free: 29.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2088, allocations: 1.125 kB / 460.6 MB, free: 29.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2088, allocations: 0 / 460.6 MB, free: 29.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.2088, allocations: 0 / 460.6 MB, free: 29.93 MB / 350.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.001442/0.2102, allocations: 0.8062 MB / 461.4 MB, free: 29.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.679e-05/0.2103, allocations: 10.19 kB / 461.4 MB, free: 29.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.585e-05/0.2103, allocations: 51.19 kB / 461.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.077e-05/0.2104, allocations: 35.91 kB / 461.5 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006513/0.2111, allocations: 409.7 kB / 461.9 MB, free: 29.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.2111, allocations: 10.66 kB / 461.9 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.2111, allocations: 18.19 kB / 461.9 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.2114, allocations: 188.8 kB / 462.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.2114, allocations: 0 / 462.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.2114, allocations: 5.375 kB / 462.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2114, allocations: 2.812 kB / 462.1 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.2118, allocations: 171.8 kB / 462.3 MB, free: 28.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008138/0.2126, allocations: 0.6454 MB / 462.9 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005192/0.2131, allocations: 268.1 kB / 463.2 MB, free: 28.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.2133, allocations: 114.7 kB / 463.3 MB, free: 28.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.2133, allocations: 2.281 kB / 463.3 MB, free: 28.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.2136, allocations: 177.7 kB / 463.5 MB, free: 28.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.353e-06/0.2136, allocations: 0 / 463.5 MB, free: 28.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00125/0.2148, allocations: 0.6049 MB / 464.1 MB, free: 27.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.058e-05/0.2148, allocations: 60.44 kB / 464.2 MB, free: 27.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006492/0.2155, allocations: 424.6 kB / 464.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.2155, allocations: 36.14 kB / 464.6 MB, free: 27.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/0.2156, allocations: 160.5 kB / 464.8 MB, free: 27.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.625e-05/0.2157, allocations: 83.94 kB / 464.8 MB, free: 27.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.051e-05/0.2157, allocations: 64.92 kB / 464.9 MB, free: 27.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.441e-05/0.2158, allocations: 345.7 kB / 465.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.216, allocations: 116.7 kB / 465.4 MB, free: 27.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.2162, allocations: 150.5 kB / 465.5 MB, free: 27.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00183/0.218, allocations: 0.6598 MB / 466.2 MB, free: 26.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.218, allocations: 5.094 kB / 466.2 MB, free: 26.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006457/0.2187, allocations: 459.8 kB / 466.6 MB, free: 26.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.2187, allocations: 7.188 kB / 466.6 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2187, allocations: 4 kB / 466.6 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/0.2189, allocations: 69.86 kB / 466.7 MB, free: 26.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.2191, allocations: 47.69 kB / 466.7 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009239/0.22, allocations: 1.645 MB / 468.4 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.2203, allocations: 56.47 kB / 468.4 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.2203, allocations: 15.23 kB / 468.5 MB, free: 24.71 MB / 350.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.0001367/0.2205, allocations: 157.5 kB / 468.6 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.2205, allocations: 31.62 kB / 468.6 MB, free: 24.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.599e-05/0.2206, allocations: 42.52 kB / 468.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2206, allocations: 0 / 468.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2206, allocations: 7.938 kB / 468.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.2206, allocations: 3.188 kB / 468.7 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000202/0.2208, allocations: 350.4 kB / 469 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2208, allocations: 0 / 469 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.2209, allocations: 22.23 kB / 469.1 MB, free: 24.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000171/0.2211, allocations: 72.98 kB / 469.1 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.2211, allocations: 11.12 kB / 469.1 MB, free: 24.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.2222, allocations: 1.76 MB / 470.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2222, allocations: 7.016 kB / 470.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007008/0.2229, allocations: 0.5052 MB / 471.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.755e-05/0.223, allocations: 114.7 kB / 471.5 MB, free: 21.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.223, allocations: 11.05 kB / 471.5 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.2233, allocations: 52.39 kB / 471.6 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.2234, allocations: 18.7 kB / 471.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.2234, allocations: 15.08 kB / 471.6 MB, free: 21.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005109/0.2239, allocations: 318.5 kB / 471.9 MB, free: 21.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2239, allocations: 0 / 471.9 MB, free: 21.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003628/0.2243, allocations: 154.7 kB / 472.1 MB, free: 21.21 MB / 350.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.001274/0.2256, allocations: 1.268 MB / 473.3 MB, free: 20.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005231/0.2261, allocations: 423.7 kB / 473.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.2261, allocations: 0 / 473.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003404/0.2264, allocations: 271.3 kB / 474 MB, free: 19.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002417/0.2267, allocations: 43.81 kB / 474.1 MB, free: 19.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/0.2307, allocations: 3.584 MB / 477.7 MB, free: 16.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.2308, allocations: 0.7939 MB / 478.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001155/0.231, allocations: 54.72 kB / 478.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.961e-05/0.2311, allocations: 97.33 kB / 478.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2311, allocations: 3.938 kB / 478.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/0.2474, allocations: 8.202 MB / 486.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001087/0.2475, allocations: 250.3 kB / 487 MB, free: 9.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/1.838, allocations: 0 / 487 MB, free: 9.777 MB / 350.1 MB (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 --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)