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.00159/0.00159, 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.00213/0.00213, allocations: 210.2 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.616/1.616, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1075/0.1075, allocations: 24.03 MB / 337.2 MB, free: 11.34 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: translateModel(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise") [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.002145/0.002145, allocations: 67.89 kB / 474.3 MB, free: 5.891 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.361, allocations: 59.58 MB / 0.5214 GB, free: 10.39 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.07696/0.4379, allocations: 22.78 MB / 0.5436 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003099/0.441, allocations: 1.569 MB / 0.5452 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.4413, allocations: 4 kB / 0.5452 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004124/0.4417, allocations: 76.17 kB / 0.5453 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.442, allocations: 103.5 kB / 0.5453 GB, free: 0.9492 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.001293/0.4433, allocations: 0.5116 MB / 0.5458 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006071/0.4439, allocations: 470.8 kB / 0.5463 GB, free: 204 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.444, allocations: 38.08 kB / 0.5463 GB, free: 176 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002779/0.4443, allocations: 183.9 kB / 0.5465 GB, free: 28 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008121/0.4451, allocations: 211.5 kB / 0.5467 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001273/0.4452, allocations: 24 kB / 0.5467 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009577/0.4462, allocations: 438 kB / 0.5472 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.4464, allocations: 99.17 kB / 0.5472 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.4465, allocations: 101 kB / 0.5473 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009139/0.4474, allocations: 0.5462 MB / 0.5479 GB, free: 14.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4474, allocations: 0 / 0.5479 GB, free: 14.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4474, allocations: 4 kB / 0.5479 GB, free: 14.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.4474, allocations: 0 / 0.5479 GB, free: 14.98 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.002222/0.4497, allocations: 0.737 MB / 0.5486 GB, free: 14.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.4497, allocations: 16.03 kB / 0.5486 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.4499, allocations: 39.38 kB / 0.5487 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.451, allocations: 354.2 kB / 0.549 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.451, allocations: 8.375 kB / 0.549 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.058e-05/0.4511, allocations: 20.83 kB / 0.549 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000483/0.4515, allocations: 177.8 kB / 0.5492 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.4516, allocations: 0 / 0.5492 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.4516, allocations: 4 kB / 0.5492 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.4516, allocations: 7.938 kB / 0.5492 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.4521, allocations: 169.6 kB / 0.5494 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.4535, allocations: 0.5372 MB / 0.5499 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007927/0.4543, allocations: 258.9 kB / 0.5501 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.4545, allocations: 104.3 kB / 0.5502 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.4545, allocations: 4.656 kB / 0.5502 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000407/0.455, allocations: 173.4 kB / 0.5504 GB, free: 12.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.653e-06/0.455, allocations: 0 / 0.5504 GB, free: 12.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001661/0.4566, allocations: 0.5356 MB / 0.5509 GB, free: 12.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.4567, allocations: 68.28 kB / 0.551 GB, free: 12.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.4577, allocations: 413.2 kB / 0.5514 GB, free: 11.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.775e-05/0.4578, allocations: 38.88 kB / 0.5514 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.4579, allocations: 158.6 kB / 0.5516 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.458, allocations: 90.16 kB / 0.5517 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.4582, allocations: 59.91 kB / 0.5517 GB, free: 11.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002366/0.4584, allocations: 341.7 kB / 0.552 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000297/0.4587, allocations: 127.5 kB / 0.5522 GB, free: 11.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003079/0.459, allocations: 149.4 kB / 0.5523 GB, free: 10.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/0.4614, allocations: 0.6681 MB / 0.553 GB, free: 10.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4614, allocations: 0 / 0.553 GB, free: 10.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009583/0.4624, allocations: 463.8 kB / 0.5534 GB, free: 9.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.4624, allocations: 4 kB / 0.5534 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.4624, allocations: 0.5156 kB / 0.5534 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002863/0.4627, allocations: 78.67 kB / 0.5535 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.4629, allocations: 37.52 kB / 0.5535 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.4648, allocations: 1.619 MB / 0.5551 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004162/0.4652, allocations: 61.73 kB / 0.5552 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.171e-05/0.4652, allocations: 11.94 kB / 0.5552 GB, free: 8.172 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.0003441/0.4655, allocations: 170.5 kB / 0.5553 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.812e-05/0.4656, allocations: 36.28 kB / 0.5554 GB, free: 7.969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.4657, allocations: 43.22 kB / 0.5554 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4657, allocations: 4 kB / 0.5554 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.4657, allocations: 4 kB / 0.5554 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.4657, allocations: 5.344 kB / 0.5554 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000392/0.4661, allocations: 246.9 kB / 0.5557 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4661, allocations: 0 / 0.5557 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.4663, allocations: 24.06 kB / 0.5557 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002648/0.4666, allocations: 74.48 kB / 0.5557 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/0.4666, allocations: 9.266 kB / 0.5558 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002115/0.4687, allocations: 1.8 MB / 0.5575 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4687, allocations: 0 / 0.5575 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.4698, allocations: 0.5138 MB / 0.558 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.696e-05/0.4699, allocations: 38.56 kB / 0.5581 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.417e-05/0.4699, allocations: 9.688 kB / 0.5581 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/0.4703, allocations: 45.81 kB / 0.5581 GB, free: 5.242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.565e-05/0.4704, allocations: 25.5 kB / 0.5581 GB, free: 5.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.4704, allocations: 4.703 kB / 0.5581 GB, free: 5.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007683/0.4711, allocations: 324.2 kB / 0.5584 GB, free: 4.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4711, allocations: 3.938 kB / 0.5584 GB, free: 4.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007092/0.4718, allocations: 154.1 kB / 0.5586 GB, free: 4.82 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.0008575/0.4727, allocations: 344.5 kB / 0.5589 GB, free: 4.512 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.4737, allocations: 401.3 kB / 0.5593 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4737, allocations: 0 / 0.5593 GB, free: 4.152 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005441/0.4743, allocations: 267.6 kB / 0.5596 GB, free: 3.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.4746, allocations: 42.8 kB / 0.5596 GB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.4757, allocations: 0.6006 MB / 0.5602 GB, free: 3.273 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.4759, allocations: 187.4 kB / 0.5604 GB, free: 3.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001516/0.4761, allocations: 50.25 kB / 0.5604 GB, free: 3.023 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.891e-05/0.4761, allocations: 27.44 kB / 0.5604 GB, free: 2.996 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4761, allocations: 0 / 0.5604 GB, free: 2.996 MB / 398.1 MB Notification: Performance of Templates: time 0.01241/0.4886, allocations: 5.907 MB / 0.5662 GB, free: 13.11 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.makefile [Timeout 660] (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 & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.597140174359083] Failed to read output from testmodel.py, exit status != 0: 0.4981954041868448 0.512892904 0.06212634599999994 Calling exit ...