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.001504/0.001504, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.00202/0.00202, allocations: 189.4 kB / 22.23 MB, free: 5.105 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.492/1.492, allocations: 225.6 MB / 251 MB, free: 13.03 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.1002/0.1002, allocations: 22.69 MB / 329 MB, free: 2.473 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: 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: Performance of FrontEnd - loaded program: time 0.002385/0.002385, allocations: 63.89 kB / 463.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1529, allocations: 58.06 MB / 0.5089 GB, free: 4.473 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.5014/0.6543, allocations: 22.44 MB / 0.5309 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.6572, allocations: 1.65 MB / 0.5325 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.6574, allocations: 3.219 kB / 0.5325 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003864/0.6578, allocations: 80.66 kB / 0.5325 GB, free: 6.957 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002329/0.658, allocations: 94.95 kB / 0.5326 GB, free: 6.922 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.001226/0.6592, allocations: 0.5135 MB / 0.5331 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005893/0.6598, allocations: 474.2 kB / 0.5336 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.6599, allocations: 41.52 kB / 0.5336 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.6601, allocations: 183.8 kB / 0.5338 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006613/0.6608, allocations: 216.6 kB / 0.534 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/0.6609, allocations: 23.09 kB / 0.534 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000803/0.6617, allocations: 468.4 kB / 0.5345 GB, free: 6.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.6618, allocations: 94.7 kB / 0.5346 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.6619, allocations: 132.4 kB / 0.5347 GB, free: 6.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000783/0.6627, allocations: 0.5326 MB / 0.5352 GB, free: 6.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.6627, allocations: 7.938 kB / 0.5352 GB, free: 6.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.6627, allocations: 1.25 kB / 0.5352 GB, free: 6.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.6627, allocations: 0 / 0.5352 GB, free: 6.434 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.001872/0.6646, allocations: 0.7294 MB / 0.5359 GB, free: 6.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.6646, allocations: 9.656 kB / 0.5359 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.6648, allocations: 38.89 kB / 0.536 GB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009011/0.6657, allocations: 351.8 kB / 0.5363 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.6657, allocations: 15.48 kB / 0.5363 GB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.505e-05/0.6657, allocations: 18.98 kB / 0.5364 GB, free: 5.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003691/0.6661, allocations: 182 kB / 0.5365 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.6661, allocations: 3.984 kB / 0.5365 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.6661, allocations: 2.812 kB / 0.5365 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.6661, allocations: 2.469 kB / 0.5365 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.6665, allocations: 181.4 kB / 0.5367 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.6677, allocations: 0.6096 MB / 0.5373 GB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/0.6683, allocations: 256.4 kB / 0.5375 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001887/0.6685, allocations: 106.5 kB / 0.5376 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.6686, allocations: 0 / 0.5376 GB, free: 5.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.6688, allocations: 180.7 kB / 0.5378 GB, free: 5.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.804e-06/0.6688, allocations: 0 / 0.5378 GB, free: 5.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001484/0.6703, allocations: 0.5341 MB / 0.5383 GB, free: 5.125 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.6704, allocations: 62.78 kB / 0.5384 GB, free: 5.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000775/0.6711, allocations: 418.9 kB / 0.5388 GB, free: 4.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.6712, allocations: 40.73 kB / 0.5388 GB, free: 4.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.6712, allocations: 162.7 kB / 0.539 GB, free: 4.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.201e-05/0.6713, allocations: 92.25 kB / 0.5391 GB, free: 4.633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.631e-05/0.6714, allocations: 57.98 kB / 0.5391 GB, free: 4.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.6714, allocations: 344.5 kB / 0.5395 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.6716, allocations: 118.5 kB / 0.5396 GB, free: 4.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.6719, allocations: 149.5 kB / 0.5397 GB, free: 4.176 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002166/0.674, allocations: 0.6716 MB / 0.5404 GB, free: 3.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.674, allocations: 0 / 0.5404 GB, free: 3.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008378/0.6749, allocations: 451 kB / 0.5408 GB, free: 3.805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.6749, allocations: 6.688 kB / 0.5408 GB, free: 3.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.6749, allocations: 3.938 kB / 0.5408 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002965/0.6752, allocations: 74.92 kB / 0.5409 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.6754, allocations: 44.69 kB / 0.5409 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/0.6769, allocations: 1.651 MB / 0.5425 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004455/0.6773, allocations: 64.12 kB / 0.5426 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.6773, allocations: 17.53 kB / 0.5426 GB, free: 2.309 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.0002432/0.6776, allocations: 162.9 kB / 0.5428 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.535e-05/0.6776, allocations: 33.5 kB / 0.5428 GB, free: 2.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.436e-05/0.6777, allocations: 48.95 kB / 0.5429 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.6777, allocations: 1.375 kB / 0.5429 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.6777, allocations: 1.375 kB / 0.5429 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.6777, allocations: 1.547 kB / 0.5429 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003774/0.6781, allocations: 312.9 kB / 0.5432 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.6781, allocations: 5.062 kB / 0.5432 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.6783, allocations: 23.05 kB / 0.5432 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002397/0.6785, allocations: 74.83 kB / 0.5433 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.6786, allocations: 11.5 kB / 0.5433 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001655/0.6802, allocations: 1.841 MB / 0.5451 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6802, allocations: 4 kB / 0.5451 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.6813, allocations: 0.5097 MB / 0.5456 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.292e-05/0.6814, allocations: 32.89 kB / 0.5456 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.044e-05/0.6814, allocations: 14.66 kB / 0.5456 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.6818, allocations: 47.03 kB / 0.5457 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/0.6819, allocations: 24.25 kB / 0.5457 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.6819, allocations: 4.781 kB / 0.5457 GB, free: 4 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008256/0.6827, allocations: 318.6 kB / 0.546 GB, free: 15.88 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6827, allocations: 4 kB / 0.546 GB, free: 15.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007753/0.6835, allocations: 157.8 kB / 0.5461 GB, free: 15.83 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.0008626/0.6844, allocations: 324.6 kB / 0.5465 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009961/0.6854, allocations: 405.1 kB / 0.5468 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6854, allocations: 4.062 kB / 0.5468 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005414/0.6859, allocations: 261.3 kB / 0.5471 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000354/0.6863, allocations: 47.25 kB / 0.5471 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.6874, allocations: 0.5915 MB / 0.5477 GB, free: 14.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004614/0.6879, allocations: 0.79 MB / 0.5485 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001756/0.688, allocations: 58.3 kB / 0.5485 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.617e-05/0.6881, allocations: 28.75 kB / 0.5486 GB, free: 13.6 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.6881, allocations: 0 / 0.5486 GB, free: 13.6 MB / 398.1 MB Notification: Performance of Templates: time 0.01314/0.7012, allocations: 5.572 MB / 0.554 GB, free: 8.824 MB / 398.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: 5.803146963007748] Failed to read output from testmodel.py, exit status != 0: 0.7109409654513001 0.725532657 0.059454502000000006 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f7f8b00d7b0>