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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 109.4 kB / 17.14 MB, free: 6.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 207.2 kB / 20.11 MB, free: 3.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1348/0.1348, allocations: 24.03 MB / 333.6 MB, free: 1.539 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 67.92 kB / 468.4 MB, free: 31.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1083, allocations: 59.54 MB / 0.5156 GB, free: 12.28 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1.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.03715/0.1455, allocations: 22.87 MB / 0.5379 GB, free: 5.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003347/0.1488, allocations: 1.66 MB / 0.5395 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.149, allocations: 7.938 kB / 0.5395 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004234/0.1494, allocations: 79.44 kB / 0.5396 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00029/0.1497, allocations: 95.45 kB / 0.5397 GB, free: 3.68 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.001287/0.151, allocations: 490.7 kB / 0.5402 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00051/0.1515, allocations: 411.1 kB / 0.5406 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.1516, allocations: 40.72 kB / 0.5406 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.1519, allocations: 179.4 kB / 0.5408 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007314/0.1526, allocations: 211.3 kB / 0.541 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.533e-05/0.1527, allocations: 24 kB / 0.541 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006793/0.1533, allocations: 443.2 kB / 0.5414 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.1535, allocations: 99.64 kB / 0.5415 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.1536, allocations: 127.1 kB / 0.5416 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007911/0.1544, allocations: 0.5371 MB / 0.5422 GB, free: 1.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1544, allocations: 4 kB / 0.5422 GB, free: 1.152 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1544, allocations: 0 / 0.5422 GB, free: 1.152 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.1544, allocations: 3.938 kB / 0.5422 GB, free: 1.148 MB / 398.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.002062/0.1565, allocations: 0.817 MB / 0.543 GB, free: 288 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.1565, allocations: 8.031 kB / 0.543 GB, free: 280 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.071e-05/0.1566, allocations: 50.72 kB / 0.543 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1567, allocations: 44.69 kB / 0.5431 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009508/0.1577, allocations: 404.2 kB / 0.5434 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.1577, allocations: 12.38 kB / 0.5435 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.853e-05/0.1578, allocations: 23.94 kB / 0.5435 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003769/0.1581, allocations: 182.3 kB / 0.5437 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1582, allocations: 0 / 0.5437 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.1582, allocations: 4 kB / 0.5437 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.1582, allocations: 11.94 kB / 0.5437 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004098/0.1586, allocations: 169.2 kB / 0.5438 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.1598, allocations: 0.6491 MB / 0.5445 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006998/0.1605, allocations: 250.4 kB / 0.5447 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.1608, allocations: 104.8 kB / 0.5448 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.1608, allocations: 0 / 0.5448 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003584/0.1611, allocations: 183.1 kB / 0.545 GB, free: 14.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.473e-06/0.1611, allocations: 7.875 kB / 0.545 GB, free: 14.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.001734/0.1629, allocations: 0.6084 MB / 0.5456 GB, free: 13.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.1629, allocations: 63.39 kB / 0.5456 GB, free: 13.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009221/0.1639, allocations: 416.4 kB / 0.546 GB, free: 12.95 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.727e-05/0.1639, allocations: 37.7 kB / 0.5461 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.164, allocations: 164.5 kB / 0.5462 GB, free: 12.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.1641, allocations: 87.28 kB / 0.5463 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.1643, allocations: 61.69 kB / 0.5464 GB, free: 12.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1644, allocations: 342.8 kB / 0.5467 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002537/0.1647, allocations: 116.3 kB / 0.5468 GB, free: 12.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.165, allocations: 155.1 kB / 0.547 GB, free: 11.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.1673, allocations: 0.6712 MB / 0.5476 GB, free: 11.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1673, allocations: 0 / 0.5476 GB, free: 11.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009636/0.1683, allocations: 453.4 kB / 0.548 GB, free: 10.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1683, allocations: 8 kB / 0.548 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.1683, allocations: 3.938 kB / 0.5481 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002934/0.1686, allocations: 80.81 kB / 0.5481 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.1688, allocations: 39.92 kB / 0.5482 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/0.1708, allocations: 1.747 MB / 0.5499 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004092/0.1712, allocations: 63.8 kB / 0.5499 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.1712, allocations: 12.06 kB / 0.5499 GB, free: 8.758 MB / 414.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.000275/0.1715, allocations: 168.6 kB / 0.5501 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.1716, allocations: 39.7 kB / 0.5501 GB, free: 8.547 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.947e-05/0.1716, allocations: 43.28 kB / 0.5502 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1716, allocations: 0 / 0.5502 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.1717, allocations: 8 kB / 0.5502 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.1717, allocations: 3.984 kB / 0.5502 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003729/0.172, allocations: 341.3 kB / 0.5505 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.172, allocations: 0 / 0.5505 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.1722, allocations: 27.98 kB / 0.5506 GB, free: 8.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002344/0.1724, allocations: 64.8 kB / 0.5506 GB, free: 8.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.1725, allocations: 12 kB / 0.5506 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.1745, allocations: 1.939 MB / 0.5525 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1745, allocations: 192 / 0.5525 GB, free: 5.922 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.1756, allocations: 0.513 MB / 0.553 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.1757, allocations: 120.8 kB / 0.5531 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/0.1757, allocations: 8.094 kB / 0.5531 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000358/0.1761, allocations: 51.92 kB / 0.5532 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.72e-05/0.1762, allocations: 31.89 kB / 0.5532 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1762, allocations: 4 kB / 0.5532 GB, free: 5.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007567/0.177, allocations: 322.9 kB / 0.5535 GB, free: 4.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.177, allocations: 0 / 0.5535 GB, free: 4.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005857/0.1775, allocations: 155.6 kB / 0.5537 GB, free: 4.688 MB / 414.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.002165/0.1797, allocations: 1.283 MB / 0.5549 GB, free: 3.391 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009044/0.1806, allocations: 394.4 kB / 0.5553 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1806, allocations: 0 / 0.5553 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005328/0.1811, allocations: 266.6 kB / 0.5556 GB, free: 2.719 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.1815, allocations: 48.23 kB / 0.5556 GB, free: 2.676 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006603/0.1881, allocations: 3.52 MB / 0.559 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.1885, allocations: 0.787 MB / 0.5598 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.1887, allocations: 58.23 kB / 0.5599 GB, free: 14.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.1889, allocations: 95.34 kB / 0.56 GB, free: 14.1 MB / 430.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1889, allocations: 0 / 0.56 GB, free: 14.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04124/0.2301, allocations: 8.813 MB / 0.5686 GB, free: 5.344 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.49, allocations: 7.938 kB / 0.5686 GB, free: 5.336 MB / 430.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.579076733905822] Failed to read output from testmodel.py, exit status != 0: 10.575938828056678 10.593454491 10.435877997 Calling exit ...