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.001468/0.001468, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002191/0.002191, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.485/1.485, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2228/0.2228, allocations: 22.35 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.89 kB / 380.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3711, allocations: 54.94 MB / 435.9 MB, free: 39.71 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.03181/0.4029, allocations: 21.46 MB / 457.3 MB, free: 32.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003259/0.4062, allocations: 1.606 MB / 458.9 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002777/0.4065, allocations: 2.688 kB / 458.9 MB, free: 31.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004435/0.407, allocations: 80.48 kB / 459 MB, free: 31.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002574/0.4073, allocations: 96.42 kB / 459.1 MB, free: 31.03 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.001242/0.4085, allocations: 484.6 kB / 459.6 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004339/0.409, allocations: 411.9 kB / 460 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.4091, allocations: 55.81 kB / 460.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.4093, allocations: 168.3 kB / 460.2 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006879/0.41, allocations: 194.6 kB / 460.4 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.946e-05/0.4101, allocations: 23.41 kB / 460.4 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006289/0.4107, allocations: 410.8 kB / 460.8 MB, free: 30.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.4109, allocations: 90.17 kB / 460.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001254/0.411, allocations: 143.3 kB / 461.1 MB, free: 30.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006908/0.4117, allocations: 0.5161 MB / 461.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4117, allocations: 1.094 kB / 461.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4117, allocations: 0 / 461.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.4117, allocations: 0 / 461.6 MB, free: 30.05 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.001869/0.4136, allocations: 0.7993 MB / 462.4 MB, free: 29.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.4136, allocations: 9.781 kB / 462.4 MB, free: 29.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.023e-05/0.4137, allocations: 51.22 kB / 462.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.4139, allocations: 36.91 kB / 462.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008512/0.4147, allocations: 407 kB / 462.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.4147, allocations: 13.81 kB / 462.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.4148, allocations: 22.11 kB / 462.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.4152, allocations: 173.1 kB / 463.1 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.4152, allocations: 0 / 463.1 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.4152, allocations: 9.156 kB / 463.1 MB, free: 29.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.4153, allocations: 7.234 kB / 463.1 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004347/0.4157, allocations: 176 kB / 463.3 MB, free: 29.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.4169, allocations: 0.6478 MB / 463.9 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006967/0.4176, allocations: 268.2 kB / 464.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.4178, allocations: 110.6 kB / 464.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.4179, allocations: 2.031 kB / 464.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003371/0.4182, allocations: 180.6 kB / 464.5 MB, free: 28.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.913e-06/0.4182, allocations: 0 / 464.5 MB, free: 28.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001678/0.4199, allocations: 0.6085 MB / 465.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.42, allocations: 64.03 kB / 465.1 MB, free: 28.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008189/0.4208, allocations: 419.5 kB / 465.5 MB, free: 27.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.4208, allocations: 37.7 kB / 465.6 MB, free: 27.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.563e-05/0.4209, allocations: 162.8 kB / 465.7 MB, free: 27.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.874e-05/0.421, allocations: 85.44 kB / 465.8 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.281e-05/0.4211, allocations: 60.61 kB / 465.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.586e-05/0.4211, allocations: 340.9 kB / 466.2 MB, free: 27.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000195/0.4213, allocations: 124 kB / 466.3 MB, free: 27.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002225/0.4216, allocations: 158.2 kB / 466.5 MB, free: 26.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/0.4236, allocations: 0.659 MB / 467.1 MB, free: 26.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4236, allocations: 4 kB / 467.1 MB, free: 26.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007285/0.4243, allocations: 454.8 kB / 467.6 MB, free: 26.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4244, allocations: 7.938 kB / 467.6 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.4244, allocations: 3.938 kB / 467.6 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002516/0.4246, allocations: 76.88 kB / 467.7 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.4248, allocations: 39.27 kB / 467.7 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.4261, allocations: 1.753 MB / 469.5 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.4265, allocations: 67.67 kB / 469.5 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.4265, allocations: 8 kB / 469.5 MB, free: 24.06 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.0001949/0.4267, allocations: 184.2 kB / 469.7 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/0.4268, allocations: 35.56 kB / 469.8 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.495e-05/0.4268, allocations: 38.3 kB / 469.8 MB, free: 23.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4268, allocations: 8 kB / 469.8 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.4269, allocations: 0 / 469.8 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.4269, allocations: 3.469 kB / 469.8 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.4271, allocations: 343.2 kB / 470.1 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4271, allocations: 0 / 470.1 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.4273, allocations: 30.36 kB / 470.2 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.4275, allocations: 68.33 kB / 470.2 MB, free: 23.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.4275, allocations: 4.797 kB / 470.2 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001363/0.4289, allocations: 1.932 MB / 472.2 MB, free: 21.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4289, allocations: 3.328 kB / 472.2 MB, free: 21.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008449/0.4298, allocations: 0.5086 MB / 472.7 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.624e-05/0.4299, allocations: 119.9 kB / 472.8 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.4299, allocations: 8 kB / 472.8 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/0.4302, allocations: 46.75 kB / 472.9 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/0.4303, allocations: 22.56 kB / 472.9 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.4303, allocations: 8 kB / 472.9 MB, free: 20.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006173/0.431, allocations: 324.5 kB / 473.2 MB, free: 20.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.431, allocations: 0 / 473.2 MB, free: 20.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006152/0.4316, allocations: 154 kB / 473.4 MB, free: 20.36 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.001603/0.4332, allocations: 1.271 MB / 474.6 MB, free: 19.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000744/0.434, allocations: 441.4 kB / 475.1 MB, free: 18.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.434, allocations: 0 / 475.1 MB, free: 18.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000408/0.4344, allocations: 268.2 kB / 475.3 MB, free: 18.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.4347, allocations: 44.58 kB / 475.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004861/0.4396, allocations: 3.515 MB / 478.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/0.4398, allocations: 0.7898 MB / 479.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.44, allocations: 58.17 kB / 479.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.4402, allocations: 101.4 kB / 479.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4402, allocations: 3.938 kB / 479.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.4736, allocations: 8.517 MB / 488.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.522/9.996, allocations: 11.47 kB / 488.4 MB, free: 8.879 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1)