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.0008204/0.0008205, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.0009161/0.0009162, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.233/0.233, allocations: 22.35 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004493, allocations: 8 kB / 382 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3064, allocations: 55.98 MB / 438 MB, free: 39.23 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.001607/0.3081, allocations: 1.638 MB / 439.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.3098, allocations: 1.51 MB / 441.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.3099, allocations: 2.938 kB / 441.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002675/0.3102, allocations: 59.02 kB / 441.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.3104, allocations: 74.28 kB / 441.3 MB, free: 36.99 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.0006681/0.3111, allocations: 395.5 kB / 441.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.3114, allocations: 341.4 kB / 442 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3115, allocations: 49.53 kB / 442.1 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.3116, allocations: 166 kB / 442.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002822/0.3119, allocations: 174.6 kB / 442.4 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.485e-05/0.312, allocations: 11.28 kB / 442.4 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004878/0.3125, allocations: 444.9 kB / 442.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.252e-05/0.3126, allocations: 75.75 kB / 442.9 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.832e-05/0.3126, allocations: 62.3 kB / 443 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003369/0.313, allocations: 371.2 kB / 443.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.313, allocations: 3.938 kB / 443.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.313, allocations: 2.906 kB / 443.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.313, allocations: 0 / 443.4 MB, free: 36.27 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.001465/0.3145, allocations: 0.7622 MB / 444.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.3145, allocations: 8.625 kB / 444.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.603e-05/0.3146, allocations: 47.5 kB / 444.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.859e-05/0.3147, allocations: 38.16 kB / 444.2 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006553/0.3153, allocations: 405.7 kB / 444.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.3154, allocations: 9.969 kB / 444.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.3154, allocations: 12.34 kB / 444.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.3157, allocations: 185.4 kB / 444.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.3157, allocations: 6.938 kB / 444.8 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.3157, allocations: 7.938 kB / 444.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3158, allocations: 2.5 kB / 444.8 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.3161, allocations: 174.2 kB / 445 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008628/0.3169, allocations: 0.6574 MB / 445.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005432/0.3175, allocations: 274.5 kB / 445.9 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.3177, allocations: 109.6 kB / 446 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.3177, allocations: 2.594 kB / 446 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.318, allocations: 175.7 kB / 446.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.318, allocations: 2.5 kB / 446.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001251/0.3193, allocations: 0.6172 MB / 446.8 MB, free: 34.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/0.3193, allocations: 57.38 kB / 446.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006285/0.3199, allocations: 418.3 kB / 447.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.32, allocations: 46.09 kB / 447.3 MB, free: 34.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.407e-05/0.32, allocations: 169 kB / 447.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.34e-05/0.3201, allocations: 77.28 kB / 447.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.353e-05/0.3201, allocations: 4 kB / 447.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.3202, allocations: 345.8 kB / 447.9 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.3204, allocations: 120.9 kB / 448 MB, free: 33.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.3206, allocations: 156.1 kB / 448.2 MB, free: 33.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.3208, allocations: 145.1 kB / 448.3 MB, free: 33.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3208, allocations: 0 / 448.3 MB, free: 33.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006904/0.3215, allocations: 450.8 kB / 448.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.3216, allocations: 4.219 kB / 448.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3216, allocations: 0 / 448.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000251/0.3218, allocations: 84.89 kB / 448.9 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.322, allocations: 39.28 kB / 448.9 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.3232, allocations: 1.64 MB / 450.5 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003059/0.3235, allocations: 67.3 kB / 450.6 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.3235, allocations: 9.781 kB / 450.6 MB, free: 31.72 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,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000175/0.3237, allocations: 171.9 kB / 450.8 MB, free: 31.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.538e-05/0.3238, allocations: 31.38 kB / 450.8 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.5e-05/0.3239, allocations: 46.97 kB / 450.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3239, allocations: 7.938 kB / 450.9 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3239, allocations: 2.625 kB / 450.9 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3239, allocations: 3.938 kB / 450.9 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.3241, allocations: 339.4 kB / 451.2 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3242, allocations: 0 / 451.2 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.3243, allocations: 27.84 kB / 451.2 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001874/0.3245, allocations: 78.61 kB / 451.3 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.3245, allocations: 7.938 kB / 451.3 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.3258, allocations: 1.75 MB / 453.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3258, allocations: 3.938 kB / 453.1 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007785/0.3266, allocations: 0.5175 MB / 453.6 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.328e-05/0.3266, allocations: 111.1 kB / 453.7 MB, free: 29.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.3267, allocations: 13.19 kB / 453.7 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.327, allocations: 52.11 kB / 453.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.073e-05/0.327, allocations: 19.61 kB / 453.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.3271, allocations: 3.719 kB / 453.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000543/0.3276, allocations: 320.5 kB / 454.1 MB, free: 29.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3276, allocations: 0 / 454.1 MB, free: 29.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000522/0.3282, allocations: 167.2 kB / 454.3 MB, free: 29.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/0.3297, allocations: 1.264 MB / 455.5 MB, free: 28.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006632/0.3304, allocations: 429.1 kB / 455.9 MB, free: 28.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3304, allocations: 0 / 455.9 MB, free: 28.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.3308, allocations: 268.1 kB / 456.2 MB, free: 27.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.3311, allocations: 45.94 kB / 456.2 MB, free: 27.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.3352, allocations: 2.384 MB / 458.6 MB, free: 26.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.3354, allocations: 0.7873 MB / 459.4 MB, free: 26.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001513/0.3355, allocations: 60.02 kB / 459.5 MB, free: 26.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.3357, allocations: 93.69 kB / 459.6 MB, free: 26.11 MB / 350.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3357, allocations: 0 / 459.6 MB, free: 26.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.3612, allocations: 8.205 MB / 467.8 MB, free: 25.47 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/0.3613, allocations: 233.2 kB / 468 MB, free: 25.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.319, allocations: 0.9688 kB / 468 MB, free: 25.23 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/linux/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) Environment - environmentSimulation: