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.007184/0.007184, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001859/0.001859, allocations: 196.9 kB / 16.68 MB, free: 5.93 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09472/0.09472, allocations: 22.33 MB / 312.9 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 55.91 kB / 436.5 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1164, allocations: 54.97 MB / 491.5 MB, free: 5.344 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.3968/0.5132, allocations: 21.89 MB / 0.5014 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.5157, allocations: 1.594 MB / 0.5029 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.5158, allocations: 5.438 kB / 0.5029 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003158/0.5161, allocations: 73.77 kB / 0.503 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.5163, allocations: 94.38 kB / 0.5031 GB, free: 5.137 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.0008717/0.5172, allocations: 493.1 kB / 0.5036 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003902/0.5176, allocations: 399.2 kB / 0.5039 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.5178, allocations: 65.09 kB / 0.504 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.518, allocations: 170.4 kB / 0.5042 GB, free: 4.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006351/0.5186, allocations: 203.2 kB / 0.5044 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.381e-05/0.5187, allocations: 23.25 kB / 0.5044 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005711/0.5192, allocations: 406.1 kB / 0.5048 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.5194, allocations: 102.7 kB / 0.5049 GB, free: 4.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.5195, allocations: 124.6 kB / 0.505 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006342/0.5201, allocations: 0.526 MB / 0.5055 GB, free: 4.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.5201, allocations: 5.812 kB / 0.5055 GB, free: 4.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5201, allocations: 0 / 0.5055 GB, free: 4.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.5202, allocations: 0 / 0.5055 GB, free: 4.727 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.001622/0.5218, allocations: 0.8207 MB / 0.5063 GB, free: 4.199 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.5218, allocations: 8.875 kB / 0.5063 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.291e-05/0.5219, allocations: 51.89 kB / 0.5064 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.522, allocations: 33.22 kB / 0.5064 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.5228, allocations: 412.3 kB / 0.5068 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.5228, allocations: 9.875 kB / 0.5068 GB, free: 3.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.5229, allocations: 17.33 kB / 0.5068 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003242/0.5232, allocations: 186.9 kB / 0.507 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.5232, allocations: 1.266 kB / 0.507 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.5233, allocations: 6.531 kB / 0.507 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.5233, allocations: 3 kB / 0.507 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.5236, allocations: 173.6 kB / 0.5072 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.5246, allocations: 0.6503 MB / 0.5078 GB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006309/0.5253, allocations: 268.3 kB / 0.5081 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.5255, allocations: 116.8 kB / 0.5082 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.5255, allocations: 1.875 kB / 0.5082 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003082/0.5259, allocations: 171.7 kB / 0.5083 GB, free: 3.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.075e-06/0.5259, allocations: 0.6562 kB / 0.5083 GB, free: 3.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001548/0.5274, allocations: 0.6086 MB / 0.5089 GB, free: 3.309 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.5275, allocations: 62.34 kB / 0.509 GB, free: 3.242 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008185/0.5283, allocations: 421.5 kB / 0.5094 GB, free: 3.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.5283, allocations: 38.25 kB / 0.5094 GB, free: 3.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.673e-05/0.5284, allocations: 159.9 kB / 0.5096 GB, free: 3.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.019e-05/0.5285, allocations: 82.77 kB / 0.5097 GB, free: 2.957 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.114e-05/0.5286, allocations: 61.58 kB / 0.5097 GB, free: 2.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.378e-05/0.5287, allocations: 342.3 kB / 0.51 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.5289, allocations: 118.7 kB / 0.5102 GB, free: 2.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/0.5291, allocations: 158 kB / 0.5103 GB, free: 2.602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002214/0.5314, allocations: 0.6661 MB / 0.511 GB, free: 2.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.5314, allocations: 0.75 kB / 0.511 GB, free: 2.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008162/0.5322, allocations: 459.9 kB / 0.5114 GB, free: 2.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.5322, allocations: 9.469 kB / 0.5114 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.5322, allocations: 0.9062 kB / 0.5114 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.5325, allocations: 76.88 kB / 0.5115 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.5327, allocations: 37.64 kB / 0.5115 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.534, allocations: 1.765 MB / 0.5132 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.5344, allocations: 60.84 kB / 0.5133 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.5344, allocations: 10.55 kB / 0.5133 GB, free: 1.098 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.0002033/0.5346, allocations: 175.6 kB / 0.5135 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.232e-05/0.5347, allocations: 37.45 kB / 0.5135 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.298e-05/0.5348, allocations: 40.91 kB / 0.5136 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.5348, allocations: 4 kB / 0.5136 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.5348, allocations: 1.469 kB / 0.5136 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.5348, allocations: 1.031 kB / 0.5136 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003247/0.5351, allocations: 342.6 kB / 0.5139 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5351, allocations: 0.75 kB / 0.5139 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.5353, allocations: 26.69 kB / 0.5139 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000206/0.5355, allocations: 77.42 kB / 0.514 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.5355, allocations: 8.969 kB / 0.514 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.5372, allocations: 1.933 MB / 0.5159 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5372, allocations: 0 / 0.5159 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009784/0.5382, allocations: 0.516 MB / 0.5164 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.5383, allocations: 125 kB / 0.5165 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.5384, allocations: 10.75 kB / 0.5165 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003511/0.5387, allocations: 47.64 kB / 0.5166 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.206e-05/0.5388, allocations: 20.41 kB / 0.5166 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.5389, allocations: 9.234 kB / 0.5166 GB, free: 14.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007107/0.5396, allocations: 320.8 kB / 0.5169 GB, free: 14.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5396, allocations: 1.25 kB / 0.5169 GB, free: 14.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006277/0.5402, allocations: 152.3 kB / 0.517 GB, free: 14.88 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.001949/0.5422, allocations: 1.277 MB / 0.5183 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008002/0.543, allocations: 409.4 kB / 0.5187 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.543, allocations: 2.656 kB / 0.5187 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004894/0.5435, allocations: 272 kB / 0.5189 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.5438, allocations: 47.28 kB / 0.519 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006485/0.5503, allocations: 3.525 MB / 0.5224 GB, free: 12.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.5508, allocations: 0.7918 MB / 0.5232 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.551, allocations: 54.83 kB / 0.5233 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.5512, allocations: 93.33 kB / 0.5233 GB, free: 11.85 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5512, allocations: 2.656 kB / 0.5233 GB, free: 11.85 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0354/0.5866, allocations: 8.628 MB / 0.5318 GB, free: 8.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.942/10.53, allocations: 7.438 kB / 0.5318 GB, free: 8.574 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 & /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)