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.005481/0.005481, allocations: 100.3 kB / 15.73 MB, free: 6.062 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.001178/0.001178, allocations: 192.7 kB / 16.67 MB, free: 5.973 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08936/0.08936, allocations: 22.33 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 64.09 kB / 436.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1145, allocations: 54.95 MB / 491.5 MB, free: 5.395 MB / 366.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.497/0.6115, allocations: 21.53 MB / 0.501 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.6139, allocations: 1.6 MB / 0.5026 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.6141, allocations: 2.781 kB / 0.5026 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003047/0.6144, allocations: 73.44 kB / 0.5026 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.6146, allocations: 95.19 kB / 0.5027 GB, free: 5.156 MB / 382.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.0009116/0.6155, allocations: 490.9 kB / 0.5032 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.6159, allocations: 404.1 kB / 0.5036 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.616, allocations: 57.47 kB / 0.5036 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.6162, allocations: 176.8 kB / 0.5038 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005927/0.6168, allocations: 196.8 kB / 0.504 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.597e-05/0.6169, allocations: 21.91 kB / 0.504 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005429/0.6174, allocations: 410.8 kB / 0.5044 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.6176, allocations: 97.47 kB / 0.5045 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.6177, allocations: 127.8 kB / 0.5046 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006327/0.6183, allocations: 0.5348 MB / 0.5051 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.6183, allocations: 0 / 0.5051 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.6183, allocations: 0.9375 kB / 0.5051 GB, free: 4.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.6183, allocations: 1.219 kB / 0.5051 GB, free: 4.785 MB / 382.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.00174/0.6201, allocations: 0.8187 MB / 0.5059 GB, free: 4.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.6201, allocations: 11.5 kB / 0.506 GB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.187e-05/0.6202, allocations: 45.23 kB / 0.506 GB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.6203, allocations: 36.61 kB / 0.506 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008412/0.6211, allocations: 410 kB / 0.5064 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.6212, allocations: 12.94 kB / 0.5064 GB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.558e-05/0.6212, allocations: 20.44 kB / 0.5065 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.6216, allocations: 184.5 kB / 0.5066 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.6216, allocations: 3.047 kB / 0.5066 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.6216, allocations: 7.375 kB / 0.5066 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.6216, allocations: 4.219 kB / 0.5066 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003727/0.622, allocations: 176.8 kB / 0.5068 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.6231, allocations: 0.6465 MB / 0.5074 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/0.6238, allocations: 266.4 kB / 0.5077 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002024/0.624, allocations: 111.6 kB / 0.5078 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.624, allocations: 3.062 kB / 0.5078 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.6243, allocations: 173.3 kB / 0.508 GB, free: 3.531 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.754e-06/0.6244, allocations: 0 / 0.508 GB, free: 3.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001705/0.6261, allocations: 0.609 MB / 0.5086 GB, free: 3.371 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.6261, allocations: 62.55 kB / 0.5086 GB, free: 3.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008725/0.627, allocations: 419.1 kB / 0.509 GB, free: 3.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.627, allocations: 40.11 kB / 0.5091 GB, free: 3.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.592e-05/0.6271, allocations: 165.7 kB / 0.5092 GB, free: 3.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.739e-05/0.6272, allocations: 86.77 kB / 0.5093 GB, free: 3.012 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.228e-05/0.6273, allocations: 59.91 kB / 0.5094 GB, free: 2.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.055e-05/0.6274, allocations: 344 kB / 0.5097 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.6276, allocations: 118.4 kB / 0.5098 GB, free: 2.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.6279, allocations: 153.1 kB / 0.51 GB, free: 2.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/0.6302, allocations: 0.6622 MB / 0.5106 GB, free: 2.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.6302, allocations: 3.938 kB / 0.5106 GB, free: 2.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008449/0.6311, allocations: 460.6 kB / 0.511 GB, free: 2.555 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.6311, allocations: 5.594 kB / 0.511 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.6311, allocations: 0.75 kB / 0.5111 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002651/0.6314, allocations: 77.27 kB / 0.5111 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.6316, allocations: 41.38 kB / 0.5112 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.633, allocations: 1.761 MB / 0.5129 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.6334, allocations: 60.39 kB / 0.5129 GB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.6334, allocations: 10.16 kB / 0.513 GB, free: 1.156 MB / 382.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.0001926/0.6336, allocations: 167.1 kB / 0.5131 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.6337, allocations: 39.33 kB / 0.5131 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.186e-05/0.6338, allocations: 38.42 kB / 0.5132 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.6338, allocations: 3.266 kB / 0.5132 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.6338, allocations: 1.375 kB / 0.5132 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.6338, allocations: 8.141 kB / 0.5132 GB, free: 1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.6341, allocations: 346.8 kB / 0.5135 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.6341, allocations: 0 / 0.5135 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.6343, allocations: 23 kB / 0.5135 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002176/0.6345, allocations: 72.91 kB / 0.5136 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.6345, allocations: 9.781 kB / 0.5136 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001649/0.6362, allocations: 1.934 MB / 0.5155 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.6362, allocations: 2.422 kB / 0.5155 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009921/0.6372, allocations: 0.5168 MB / 0.516 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.6373, allocations: 120.3 kB / 0.5161 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.89e-05/0.6374, allocations: 10.2 kB / 0.5161 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.6378, allocations: 54.62 kB / 0.5162 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.876e-05/0.6378, allocations: 19.97 kB / 0.5162 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.6379, allocations: 6.125 kB / 0.5162 GB, free: 15.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007302/0.6386, allocations: 322.3 kB / 0.5165 GB, free: 14.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6386, allocations: 0 / 0.5165 GB, free: 14.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000644/0.6393, allocations: 156.3 kB / 0.5167 GB, free: 14.94 MB / 398.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.002008/0.6413, allocations: 1.274 MB / 0.5179 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008675/0.6422, allocations: 418.8 kB / 0.5183 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6422, allocations: 0 / 0.5183 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005406/0.6427, allocations: 272.1 kB / 0.5186 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.6431, allocations: 47.48 kB / 0.5186 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00672/0.6498, allocations: 3.528 MB / 0.5221 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.6502, allocations: 0.7921 MB / 0.5228 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001575/0.6504, allocations: 53.97 kB / 0.5229 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.6505, allocations: 100.6 kB / 0.523 GB, free: 11.91 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.6505, allocations: 0 / 0.523 GB, free: 11.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03501/0.6855, allocations: 8.624 MB / 0.5314 GB, free: 8.699 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.62/10.31, allocations: 6.609 kB / 0.5314 GB, free: 8.695 MB / 398.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)