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.001318/0.001318, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001682/0.001682, allocations: 211.8 kB / 23.01 MB, free: 4.992 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.109/0.109, allocations: 24.04 MB / 337.2 MB, free: 11.45 MB / 270.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.002158/0.002158, allocations: 71.89 kB / 473.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3827, allocations: 59.57 MB / 0.5209 GB, free: 10.04 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.0709/0.4536, allocations: 22.79 MB / 0.5432 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00274/0.4563, allocations: 1.568 MB / 0.5447 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.4565, allocations: 3.938 kB / 0.5447 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003167/0.4568, allocations: 71.69 kB / 0.5448 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.457, allocations: 96.25 kB / 0.5449 GB, free: 0.9102 MB / 382.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.001064/0.4581, allocations: 0.5204 MB / 0.5454 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004806/0.4586, allocations: 461.6 kB / 0.5458 GB, free: 164 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.4587, allocations: 46.06 kB / 0.5458 GB, free: 128 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.4589, allocations: 186.5 kB / 0.546 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00071/0.4597, allocations: 205.5 kB / 0.5462 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.559e-05/0.4597, allocations: 24 kB / 0.5462 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000796/0.4605, allocations: 446.6 kB / 0.5467 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.4607, allocations: 95.56 kB / 0.5468 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.4608, allocations: 104.5 kB / 0.5469 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008654/0.4617, allocations: 0.5401 MB / 0.5474 GB, free: 14.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4617, allocations: 4 kB / 0.5474 GB, free: 14.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4617, allocations: 0 / 0.5474 GB, free: 14.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.4617, allocations: 3.938 kB / 0.5474 GB, free: 14.93 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.001963/0.4636, allocations: 0.7473 MB / 0.5481 GB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.4637, allocations: 8.031 kB / 0.5481 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.196e-05/0.4637, allocations: 45.98 kB / 0.5482 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.4639, allocations: 36.7 kB / 0.5482 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009155/0.4648, allocations: 352.2 kB / 0.5485 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.4648, allocations: 12.38 kB / 0.5486 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/0.4648, allocations: 15.94 kB / 0.5486 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003816/0.4652, allocations: 183 kB / 0.5487 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.4652, allocations: 0 / 0.5487 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.4653, allocations: 4 kB / 0.5488 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.994e-06/0.4653, allocations: 4 kB / 0.5488 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004101/0.4657, allocations: 171.8 kB / 0.5489 GB, free: 13.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.4669, allocations: 0.5679 MB / 0.5495 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006874/0.4676, allocations: 262.9 kB / 0.5497 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.4678, allocations: 104.3 kB / 0.5498 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.4678, allocations: 4 kB / 0.5498 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.4681, allocations: 179 kB / 0.55 GB, free: 12.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.803e-06/0.4681, allocations: 0 / 0.55 GB, free: 12.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001621/0.4697, allocations: 0.534 MB / 0.5505 GB, free: 12.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.4698, allocations: 64.7 kB / 0.5506 GB, free: 12.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008813/0.4707, allocations: 416.4 kB / 0.551 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.146e-05/0.4707, allocations: 43.84 kB / 0.551 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.4708, allocations: 162 kB / 0.5512 GB, free: 11.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.128e-05/0.4709, allocations: 90.38 kB / 0.5513 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.471, allocations: 59.81 kB / 0.5513 GB, free: 11.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.4712, allocations: 345.2 kB / 0.5516 GB, free: 11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.4715, allocations: 123.8 kB / 0.5518 GB, free: 10.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002742/0.4717, allocations: 148.9 kB / 0.5519 GB, free: 10.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/0.4741, allocations: 0.6649 MB / 0.5526 GB, free: 10.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4741, allocations: 0 / 0.5526 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009205/0.475, allocations: 455.8 kB / 0.553 GB, free: 9.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.475, allocations: 4.031 kB / 0.553 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.475, allocations: 8 kB / 0.553 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002863/0.4753, allocations: 78.2 kB / 0.5531 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.4755, allocations: 38.41 kB / 0.5531 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001867/0.4773, allocations: 1.63 MB / 0.5547 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003856/0.4777, allocations: 77.09 kB / 0.5548 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.4778, allocations: 8.656 kB / 0.5548 GB, free: 7.996 MB / 398.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.0002636/0.478, allocations: 182.3 kB / 0.555 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.4781, allocations: 36.36 kB / 0.555 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.471e-05/0.4782, allocations: 39 kB / 0.555 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.4782, allocations: 7.984 kB / 0.555 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.4782, allocations: 0 / 0.555 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.4782, allocations: 1.219 kB / 0.555 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003685/0.4786, allocations: 286.3 kB / 0.5553 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4786, allocations: 4 kB / 0.5553 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.4787, allocations: 24.03 kB / 0.5553 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002284/0.4789, allocations: 70.62 kB / 0.5554 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.479, allocations: 9.359 kB / 0.5554 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.481, allocations: 1.816 MB / 0.5572 GB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.481, allocations: 0 / 0.5572 GB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.482, allocations: 0.5068 MB / 0.5577 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.28e-05/0.4821, allocations: 45.98 kB / 0.5577 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.514e-05/0.4822, allocations: 10.25 kB / 0.5577 GB, free: 5.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003605/0.4825, allocations: 57.3 kB / 0.5578 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.4826, allocations: 13.33 kB / 0.5578 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.4826, allocations: 13.31 kB / 0.5578 GB, free: 4.961 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007622/0.4834, allocations: 319.3 kB / 0.5581 GB, free: 4.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4834, allocations: 0 / 0.5581 GB, free: 4.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006975/0.4841, allocations: 158.6 kB / 0.5583 GB, free: 4.562 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.002101/0.4862, allocations: 1.288 MB / 0.5595 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008474/0.487, allocations: 401.4 kB / 0.5599 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.487, allocations: 0 / 0.5599 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005179/0.4875, allocations: 263.6 kB / 0.5602 GB, free: 2.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.4878, allocations: 46.3 kB / 0.5602 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006644/0.4945, allocations: 3.521 MB / 0.5637 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001974/0.4947, allocations: 183.4 kB / 0.5638 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.4949, allocations: 54.25 kB / 0.5639 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.495, allocations: 91.41 kB / 0.564 GB, free: 14.78 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.495, allocations: 3.938 kB / 0.564 GB, free: 14.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0511/0.5461, allocations: 9.56 MB / 0.5733 GB, free: 5.328 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.55, allocations: 21.5 kB / 0.5733 GB, free: 5.312 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.504438251256943] Failed to read output from testmodel.py, exit status != 0: 12.66556387487799 12.68223858 12.217184352 Calling exit ...