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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 110.1 kB / 16.4 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 245.1 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1032/0.1032, allocations: 22.33 MB / 319.5 MB, free: 6.785 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001978, allocations: 71.83 kB / 445.3 MB, free: 8.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1149, allocations: 54.94 MB / 0.4885 GB, free: 1.641 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.4247/0.5396, allocations: 22.45 MB / 0.5104 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.5419, allocations: 1.603 MB / 0.512 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.5421, allocations: 0 / 0.512 GB, free: 4.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00031/0.5424, allocations: 76.72 kB / 0.512 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.5426, allocations: 95.72 kB / 0.5121 GB, free: 4.664 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.0009966/0.5436, allocations: 491.1 kB / 0.5126 GB, free: 4.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004135/0.5441, allocations: 401.1 kB / 0.513 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.5442, allocations: 69.42 kB / 0.513 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.5444, allocations: 162.4 kB / 0.5132 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000587/0.545, allocations: 200.1 kB / 0.5134 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.318e-05/0.545, allocations: 21.72 kB / 0.5134 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006013/0.5456, allocations: 409.2 kB / 0.5138 GB, free: 4.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.5458, allocations: 96.81 kB / 0.5139 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.5459, allocations: 124.4 kB / 0.514 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007081/0.5466, allocations: 0.5353 MB / 0.5145 GB, free: 4.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5466, allocations: 0 / 0.5145 GB, free: 4.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5466, allocations: 0 / 0.5145 GB, free: 4.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.5466, allocations: 0 / 0.5145 GB, free: 4.207 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.001722/0.5484, allocations: 0.8192 MB / 0.5153 GB, free: 3.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.5484, allocations: 9.922 kB / 0.5153 GB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.093e-05/0.5484, allocations: 46 kB / 0.5154 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.5486, allocations: 39.11 kB / 0.5154 GB, free: 3.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007968/0.5494, allocations: 407.1 kB / 0.5158 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.5494, allocations: 11.47 kB / 0.5158 GB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.5494, allocations: 17.27 kB / 0.5158 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.5498, allocations: 187 kB / 0.516 GB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.5498, allocations: 4 kB / 0.516 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.5498, allocations: 9.531 kB / 0.516 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.5499, allocations: 3.312 kB / 0.516 GB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003672/0.5502, allocations: 173 kB / 0.5162 GB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.5513, allocations: 0.648 MB / 0.5168 GB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/0.5519, allocations: 260.8 kB / 0.5171 GB, free: 2.992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.5521, allocations: 111.5 kB / 0.5172 GB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.5522, allocations: 7.156 kB / 0.5172 GB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003122/0.5525, allocations: 181.4 kB / 0.5174 GB, free: 2.922 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.755e-06/0.5525, allocations: 0 / 0.5174 GB, free: 2.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001601/0.5541, allocations: 0.6054 MB / 0.518 GB, free: 2.754 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.5542, allocations: 69.64 kB / 0.518 GB, free: 2.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008569/0.555, allocations: 418.9 kB / 0.5184 GB, free: 2.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.5551, allocations: 41.19 kB / 0.5185 GB, free: 2.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/0.5552, allocations: 160.9 kB / 0.5186 GB, free: 2.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/0.5552, allocations: 85.89 kB / 0.5187 GB, free: 2.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.786e-05/0.5553, allocations: 58.67 kB / 0.5188 GB, free: 2.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.023e-05/0.5554, allocations: 345.5 kB / 0.5191 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.5556, allocations: 115.4 kB / 0.5192 GB, free: 2.059 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.5559, allocations: 150.5 kB / 0.5193 GB, free: 2.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00219/0.5581, allocations: 0.6654 MB / 0.52 GB, free: 2.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5581, allocations: 1.5 kB / 0.52 GB, free: 2.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008372/0.559, allocations: 455.9 kB / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.559, allocations: 5.594 kB / 0.5204 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.559, allocations: 5.094 kB / 0.5204 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.5593, allocations: 77.08 kB / 0.5205 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.5595, allocations: 42.23 kB / 0.5206 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.5608, allocations: 1.757 MB / 0.5223 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003882/0.5612, allocations: 68.52 kB / 0.5223 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.5612, allocations: 7.609 kB / 0.5223 GB, free: 0.5078 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.0002252/0.5615, allocations: 172.6 kB / 0.5225 GB, free: 392 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.5615, allocations: 38.19 kB / 0.5225 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.686e-05/0.5616, allocations: 39.27 kB / 0.5226 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.5616, allocations: 2.219 kB / 0.5226 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.5616, allocations: 2 kB / 0.5226 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.5616, allocations: 0.7969 kB / 0.5226 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.562, allocations: 343.5 kB / 0.5229 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.562, allocations: 1.094 kB / 0.5229 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.5622, allocations: 26.89 kB / 0.5229 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002292/0.5624, allocations: 77.02 kB / 0.523 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.5625, allocations: 8.844 kB / 0.523 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002067/0.5645, allocations: 1.922 MB / 0.5249 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/0.5646, allocations: 5.141 kB / 0.5249 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.5656, allocations: 0.528 MB / 0.5254 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.5658, allocations: 121.8 kB / 0.5255 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.5658, allocations: 13.89 kB / 0.5255 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.5662, allocations: 51.59 kB / 0.5256 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.261e-05/0.5663, allocations: 17.45 kB / 0.5256 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.5663, allocations: 6.719 kB / 0.5256 GB, free: 14.36 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007441/0.5671, allocations: 319.9 kB / 0.5259 GB, free: 14.28 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5671, allocations: 0 / 0.5259 GB, free: 14.28 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007102/0.5678, allocations: 155.7 kB / 0.5261 GB, free: 14.25 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.002177/0.57, allocations: 1.276 MB / 0.5273 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009115/0.5709, allocations: 415.3 kB / 0.5277 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5709, allocations: 0 / 0.5277 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/0.5715, allocations: 272.6 kB / 0.528 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.5718, allocations: 42.56 kB / 0.528 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006403/0.5782, allocations: 3.531 MB / 0.5315 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004353/0.5787, allocations: 0.7974 MB / 0.5322 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000197/0.5789, allocations: 56.44 kB / 0.5323 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.5791, allocations: 90.55 kB / 0.5324 GB, free: 11.14 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5791, allocations: 0 / 0.5324 GB, free: 11.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03704/0.6161, allocations: 8.623 MB / 0.5408 GB, free: 7.008 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.73, allocations: 5.312 kB / 0.5408 GB, free: 7.004 MB / 398.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.498536350089125] Failed to read output from testmodel.py, exit status != 0: 10.821812361944467 10.843514202 10.292995249 Calling exit ...