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.001254/0.001254, allocations: 106.6 kB / 16.45 MB, free: 6.504 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.001275/0.001275, allocations: 191.7 kB / 19.41 MB, free: 3.68 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.428/1.428, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.1012/0.1012, allocations: 22.69 MB / 325.4 MB, free: 3.625 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.002012/0.002012, allocations: 71.88 kB / 457.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1184, allocations: 58.02 MB / 0.5031 GB, free: 7.648 MB / 382.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.399/0.5174, allocations: 22.45 MB / 0.525 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002627/0.52, allocations: 1.62 MB / 0.5266 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.5202, allocations: 2.812 kB / 0.5266 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002964/0.5204, allocations: 75.08 kB / 0.5267 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.5207, allocations: 102.3 kB / 0.5268 GB, free: 5.859 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.001072/0.5217, allocations: 484.1 kB / 0.5272 GB, free: 5.766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003955/0.5221, allocations: 407.4 kB / 0.5276 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.5222, allocations: 40.97 kB / 0.5277 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.5224, allocations: 169.4 kB / 0.5278 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006874/0.5231, allocations: 223.6 kB / 0.528 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.968e-05/0.5232, allocations: 22.72 kB / 0.5281 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006372/0.5238, allocations: 425.8 kB / 0.5285 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.5239, allocations: 98.73 kB / 0.5286 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.524, allocations: 126.8 kB / 0.5287 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007244/0.5247, allocations: 0.5301 MB / 0.5292 GB, free: 5.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.5247, allocations: 5.812 kB / 0.5292 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5247, allocations: 0.5156 kB / 0.5292 GB, free: 5.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.5248, allocations: 4 kB / 0.5292 GB, free: 5.395 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.001864/0.5266, allocations: 0.8111 MB / 0.53 GB, free: 4.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.5267, allocations: 9.812 kB / 0.53 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.513e-05/0.5267, allocations: 47.22 kB / 0.5301 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.5268, allocations: 34.92 kB / 0.5301 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008747/0.5277, allocations: 419.4 kB / 0.5305 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.5277, allocations: 10.91 kB / 0.5305 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/0.5277, allocations: 18.02 kB / 0.5305 GB, free: 4.551 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.5281, allocations: 184.6 kB / 0.5307 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.5281, allocations: 0 / 0.5307 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.5281, allocations: 6.547 kB / 0.5307 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.5281, allocations: 2.281 kB / 0.5307 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003635/0.5285, allocations: 174.7 kB / 0.5309 GB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.5296, allocations: 0.6471 MB / 0.5315 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006535/0.5302, allocations: 254 kB / 0.5318 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.5304, allocations: 108.9 kB / 0.5319 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.5304, allocations: 2.438 kB / 0.5319 GB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.5307, allocations: 174.5 kB / 0.532 GB, free: 4.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.503e-06/0.5307, allocations: 0 / 0.532 GB, free: 4.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.00148/0.5322, allocations: 0.6014 MB / 0.5326 GB, free: 3.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.5322, allocations: 65.72 kB / 0.5327 GB, free: 3.703 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007298/0.533, allocations: 424 kB / 0.5331 GB, free: 3.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.533, allocations: 38.02 kB / 0.5331 GB, free: 3.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.491e-05/0.5331, allocations: 158.9 kB / 0.5333 GB, free: 3.348 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.868e-05/0.5332, allocations: 93.83 kB / 0.5334 GB, free: 3.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.579e-05/0.5333, allocations: 59.59 kB / 0.5334 GB, free: 3.238 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.467e-05/0.5333, allocations: 346.5 kB / 0.5337 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.5335, allocations: 119.2 kB / 0.5339 GB, free: 2.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.5338, allocations: 152.1 kB / 0.534 GB, free: 2.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002265/0.536, allocations: 0.6658 MB / 0.5347 GB, free: 2.621 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.5361, allocations: 1.594 kB / 0.5347 GB, free: 2.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007834/0.5368, allocations: 455.1 kB / 0.5351 GB, free: 2.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.5368, allocations: 5.719 kB / 0.5351 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.5369, allocations: 0 / 0.5351 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.5371, allocations: 76.16 kB / 0.5352 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.5373, allocations: 44.52 kB / 0.5352 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.5386, allocations: 1.754 MB / 0.5369 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004001/0.539, allocations: 69.19 kB / 0.537 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.5391, allocations: 9.906 kB / 0.537 GB, free: 0.8281 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.0001888/0.5392, allocations: 170.4 kB / 0.5372 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.746e-05/0.5393, allocations: 41.28 kB / 0.5372 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.025e-05/0.5394, allocations: 40.08 kB / 0.5372 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.5394, allocations: 7.188 kB / 0.5372 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.5394, allocations: 4.75 kB / 0.5372 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.5394, allocations: 1.781 kB / 0.5373 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.5397, allocations: 344.7 kB / 0.5376 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.5397, allocations: 1.469 kB / 0.5376 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.5399, allocations: 22.72 kB / 0.5376 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002104/0.5401, allocations: 73.48 kB / 0.5377 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.5401, allocations: 4.484 kB / 0.5377 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001996/0.5421, allocations: 1.93 MB / 0.5396 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5421, allocations: 192 / 0.5396 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009861/0.5431, allocations: 0.5172 MB / 0.5401 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.5432, allocations: 126.8 kB / 0.5402 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.605e-05/0.5433, allocations: 12.53 kB / 0.5402 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.5436, allocations: 50.92 kB / 0.5402 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.684e-05/0.5437, allocations: 13.36 kB / 0.5403 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.5437, allocations: 12.5 kB / 0.5403 GB, free: 14.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006851/0.5444, allocations: 316.4 kB / 0.5406 GB, free: 14.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5444, allocations: 0 / 0.5406 GB, free: 14.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005664/0.5449, allocations: 155.6 kB / 0.5407 GB, free: 14.09 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.001992/0.5469, allocations: 1.282 MB / 0.542 GB, free: 13.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007688/0.5477, allocations: 399 kB / 0.5424 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5477, allocations: 0 / 0.5424 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005124/0.5482, allocations: 270.3 kB / 0.5426 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.5485, allocations: 52.7 kB / 0.5427 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005664/0.5542, allocations: 3.507 MB / 0.5461 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.5546, allocations: 0.7935 MB / 0.5469 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000143/0.5548, allocations: 58.88 kB / 0.5469 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.5549, allocations: 95.27 kB / 0.547 GB, free: 10.17 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5549, allocations: 3.938 kB / 0.547 GB, free: 10.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03849/0.5934, allocations: 8.715 MB / 0.5555 GB, free: 3.824 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.92/10.51, allocations: 7.875 kB / 0.5555 GB, free: 3.816 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 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.175794258713722] Failed to read output from testmodel.py, exit status != 0: 10.59830991877243 10.612132744 10.084544156 Calling exit ...