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.001057/0.001057, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.007787/0.007787, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.356/1.356, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1905/0.1905, allocations: 22.34 MB / 313.8 MB, free: 13.02 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004785/0.0004785, allocations: 11.98 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3063, allocations: 55.97 MB / 438.7 MB, free: 39.39 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.02231/0.3286, allocations: 21.06 MB / 459.7 MB, free: 32.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.3313, allocations: 1.623 MB / 461.4 MB, free: 31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.3314, allocations: 2.125 kB / 461.4 MB, free: 31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000304/0.3317, allocations: 60.5 kB / 461.4 MB, free: 30.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002031/0.3319, allocations: 78.28 kB / 461.5 MB, free: 30.94 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.0007286/0.3327, allocations: 412.7 kB / 461.9 MB, free: 30.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003543/0.333, allocations: 389.4 kB / 462.3 MB, free: 30.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.3332, allocations: 61.72 kB / 462.3 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.3333, allocations: 148.5 kB / 462.5 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005816/0.3339, allocations: 184 kB / 462.7 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.334, allocations: 10.81 kB / 462.7 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005334/0.3345, allocations: 436.4 kB / 463.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.958e-05/0.3346, allocations: 80 kB / 463.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.513e-05/0.3347, allocations: 150.5 kB / 463.3 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005294/0.3352, allocations: 0.5138 MB / 463.8 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.3353, allocations: 0 / 463.8 MB, free: 30.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3353, allocations: 0 / 463.8 MB, free: 30.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.3353, allocations: 1.406 kB / 463.8 MB, free: 30.01 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.001582/0.3369, allocations: 0.7655 MB / 464.6 MB, free: 29.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.3369, allocations: 14.25 kB / 464.6 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.155e-05/0.337, allocations: 46.58 kB / 464.7 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.3371, allocations: 41.58 kB / 464.7 MB, free: 29.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007733/0.3379, allocations: 402.9 kB / 465.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.3379, allocations: 18.69 kB / 465.1 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.3379, allocations: 21.5 kB / 465.1 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003197/0.3383, allocations: 179.5 kB / 465.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3383, allocations: 0 / 465.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.3383, allocations: 6.406 kB / 465.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.3383, allocations: 2.312 kB / 465.3 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.3387, allocations: 183.2 kB / 465.5 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009436/0.3396, allocations: 0.6474 MB / 466.1 MB, free: 28.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005993/0.3402, allocations: 280.6 kB / 466.4 MB, free: 28.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.3405, allocations: 111.2 kB / 466.5 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.3405, allocations: 2.25 kB / 466.5 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.3408, allocations: 179.5 kB / 466.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.3408, allocations: 0 / 466.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001439/0.3422, allocations: 0.6181 MB / 467.3 MB, free: 28.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.3422, allocations: 57.38 kB / 467.4 MB, free: 28.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007336/0.343, allocations: 428.2 kB / 467.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.343, allocations: 33.7 kB / 467.8 MB, free: 27.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.3431, allocations: 171.4 kB / 468 MB, free: 27.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.3432, allocations: 81.45 kB / 468.1 MB, free: 27.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.3432, allocations: 37.05 kB / 468.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.371e-05/0.3433, allocations: 348 kB / 468.5 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.3435, allocations: 116.2 kB / 468.6 MB, free: 27.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.3437, allocations: 150.4 kB / 468.7 MB, free: 26.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.3456, allocations: 0.6769 MB / 469.4 MB, free: 26.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3456, allocations: 4 kB / 469.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007064/0.3464, allocations: 466.2 kB / 469.9 MB, free: 25.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.3464, allocations: 4 kB / 469.9 MB, free: 25.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.3464, allocations: 3.984 kB / 469.9 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002292/0.3466, allocations: 72.5 kB / 469.9 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.3468, allocations: 47.27 kB / 470 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.3479, allocations: 1.647 MB / 471.6 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.3483, allocations: 67.78 kB / 471.7 MB, free: 24.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.3483, allocations: 8 kB / 471.7 MB, free: 24.09 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.0001561/0.3485, allocations: 175.1 kB / 471.9 MB, free: 23.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.3485, allocations: 35.53 kB / 471.9 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.004e-05/0.3486, allocations: 45.75 kB / 472 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3486, allocations: 0 / 472 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3486, allocations: 4 kB / 472 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.3486, allocations: 0 / 472 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.3488, allocations: 341 kB / 472.3 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3489, allocations: 4 kB / 472.3 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001566/0.349, allocations: 23.47 kB / 472.3 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001874/0.3492, allocations: 72.45 kB / 472.4 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.3492, allocations: 11.94 kB / 472.4 MB, free: 23.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00125/0.3505, allocations: 1.751 MB / 474.1 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3505, allocations: 0 / 474.1 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000801/0.3513, allocations: 0.5167 MB / 474.7 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.3514, allocations: 119.9 kB / 474.8 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.777e-05/0.3514, allocations: 15.05 kB / 474.8 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.3518, allocations: 47.83 kB / 474.8 MB, free: 20.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.031e-05/0.3518, allocations: 19.55 kB / 474.9 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.3519, allocations: 11.69 kB / 474.9 MB, free: 20.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006077/0.3525, allocations: 327.2 kB / 475.2 MB, free: 20.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3525, allocations: 3.938 kB / 475.2 MB, free: 20.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005095/0.353, allocations: 154.4 kB / 475.3 MB, free: 20.56 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.001523/0.3545, allocations: 1.276 MB / 476.6 MB, free: 19.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006218/0.3552, allocations: 423.2 kB / 477 MB, free: 18.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3552, allocations: 0 / 477 MB, free: 18.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.3556, allocations: 269 kB / 477.3 MB, free: 18.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.3559, allocations: 45.03 kB / 477.3 MB, free: 18.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004712/0.3606, allocations: 3.628 MB / 481 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.3608, allocations: 0.7902 MB / 481.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.361, allocations: 58.86 kB / 481.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3611, allocations: 96.56 kB / 481.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3611, allocations: 0 / 481.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.3843, allocations: 8.036 MB / 489.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/0.3846, allocations: 253.6 kB / 490.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.051/2.435, allocations: 4 kB / 490.2 MB, free: 9.152 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)