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.00143/0.00143, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001859/0.001859, allocations: 212.2 kB / 23.01 MB, free: 4.57 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.487/1.487, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.1084/0.1084, allocations: 24.13 MB / 337.3 MB, free: 11.44 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.00258/0.00258, allocations: 71.88 kB / 474.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4156, allocations: 59.6 MB / 0.5216 GB, free: 10.5 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.05522/0.4708, allocations: 22.68 MB / 0.5438 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005353/0.4761, allocations: 1.696 MB / 0.5454 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003733/0.4765, allocations: 4 kB / 0.5454 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005682/0.4771, allocations: 76.5 kB / 0.5455 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005663/0.4776, allocations: 98.89 kB / 0.5456 GB, free: 0.957 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.002269/0.4799, allocations: 0.5161 MB / 0.5461 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.481, allocations: 470.8 kB / 0.5466 GB, free: 208 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.4812, allocations: 46.03 kB / 0.5466 GB, free: 172 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004577/0.4817, allocations: 179.4 kB / 0.5468 GB, free: 28 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001264/0.4829, allocations: 227 kB / 0.547 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.4831, allocations: 24 kB / 0.547 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.4847, allocations: 473.8 kB / 0.5475 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002415/0.485, allocations: 95.28 kB / 0.5476 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003497/0.4853, allocations: 132.2 kB / 0.5477 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001682/0.487, allocations: 0.538 MB / 0.5482 GB, free: 14.92 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.487, allocations: 0 / 0.5482 GB, free: 14.92 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.487, allocations: 0 / 0.5482 GB, free: 14.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.126e-05/0.487, allocations: 0 / 0.5482 GB, free: 14.92 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.003832/0.4909, allocations: 0.7549 MB / 0.5489 GB, free: 14.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.4909, allocations: 8.031 kB / 0.549 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.4912, allocations: 41.55 kB / 0.549 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002005/0.4932, allocations: 339.6 kB / 0.5493 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.4932, allocations: 12.38 kB / 0.5493 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.889e-05/0.4933, allocations: 25.2 kB / 0.5494 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006722/0.494, allocations: 176.9 kB / 0.5495 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.494, allocations: 0 / 0.5495 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.286e-05/0.4941, allocations: 4.797 kB / 0.5495 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.4941, allocations: 4 kB / 0.5495 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007269/0.4948, allocations: 177.9 kB / 0.5497 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002408/0.4972, allocations: 0.6158 MB / 0.5503 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.4985, allocations: 258.9 kB / 0.5505 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004483/0.499, allocations: 100.4 kB / 0.5506 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.499, allocations: 4 kB / 0.5506 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000648/0.4997, allocations: 180.7 kB / 0.5508 GB, free: 12.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 4.138e-06/0.4997, allocations: 0 / 0.5508 GB, free: 12.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003041/0.5027, allocations: 0.5348 MB / 0.5513 GB, free: 12.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.656e-05/0.5028, allocations: 64.45 kB / 0.5514 GB, free: 12.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001938/0.5047, allocations: 416.8 kB / 0.5518 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.5048, allocations: 39.34 kB / 0.5518 GB, free: 11.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002897/0.5051, allocations: 161.9 kB / 0.552 GB, free: 11.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002315/0.5053, allocations: 86.58 kB / 0.5521 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.5056, allocations: 63.94 kB / 0.5521 GB, free: 11.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002864/0.5059, allocations: 342 kB / 0.5525 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005169/0.5064, allocations: 123.3 kB / 0.5526 GB, free: 10.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005604/0.507, allocations: 148.7 kB / 0.5527 GB, free: 10.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004841/0.5118, allocations: 0.665 MB / 0.5534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.5118, allocations: 0 / 0.5534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001915/0.5137, allocations: 459.6 kB / 0.5538 GB, free: 9.852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.5138, allocations: 4.516 kB / 0.5538 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.5138, allocations: 0 / 0.5538 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005274/0.5143, allocations: 74.3 kB / 0.5539 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003932/0.5147, allocations: 46.16 kB / 0.5539 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.5182, allocations: 1.649 MB / 0.5555 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008134/0.519, allocations: 69.28 kB / 0.5556 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.9e-05/0.5191, allocations: 4.75 kB / 0.5556 GB, free: 8.016 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.0005496/0.5196, allocations: 174.5 kB / 0.5558 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.5198, allocations: 35.7 kB / 0.5558 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001668/0.52, allocations: 39.23 kB / 0.5558 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.52, allocations: 4 kB / 0.5559 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.52, allocations: 0.6094 kB / 0.5559 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.52, allocations: 0.8906 kB / 0.5559 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00079/0.5208, allocations: 316.4 kB / 0.5562 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.5208, allocations: 7.938 kB / 0.5562 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.5211, allocations: 24.78 kB / 0.5562 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004729/0.5216, allocations: 70.02 kB / 0.5563 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.5217, allocations: 9.594 kB / 0.5563 GB, free: 7.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003857/0.5255, allocations: 1.83 MB / 0.5581 GB, free: 5.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5255, allocations: 4.672 kB / 0.5581 GB, free: 5.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.5276, allocations: 0.5096 MB / 0.5586 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.5278, allocations: 46.64 kB / 0.5586 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-05/0.5279, allocations: 21.94 kB / 0.5586 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007124/0.5286, allocations: 49.44 kB / 0.5587 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.5288, allocations: 17.19 kB / 0.5587 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.5288, allocations: 9.406 kB / 0.5587 GB, free: 4.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001552/0.5303, allocations: 319.6 kB / 0.559 GB, free: 4.715 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5303, allocations: 0 / 0.559 GB, free: 4.715 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001146/0.5315, allocations: 158.4 kB / 0.5591 GB, free: 4.566 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.001653/0.5331, allocations: 329.5 kB / 0.5595 GB, free: 4.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.5347, allocations: 406 kB / 0.5598 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5347, allocations: 0 / 0.5598 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008755/0.5356, allocations: 270.5 kB / 0.5601 GB, free: 3.609 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005739/0.5362, allocations: 41.06 kB / 0.5601 GB, free: 3.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.5381, allocations: 0.6365 MB / 0.5608 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000681/0.5388, allocations: 0.7947 MB / 0.5615 GB, free: 2.078 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.539, allocations: 23.44 kB / 0.5616 GB, free: 2.055 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.539, allocations: 0 / 0.5616 GB, free: 2.055 MB / 398.1 MB Notification: Performance of Templates: time 0.02041/0.5594, allocations: 6.83 MB / 0.5682 GB, free: 11.21 MB / 414.1 MB " [Timeout remaining time 659] 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: 9.57513589411974] Failed to read output from testmodel.py, exit status != 0: 0.5712053261231631 0.585534473 0.094896171 Calling exit ...