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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001015, allocations: 107.3 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009984/0.0009985, allocations: 190.3 kB / 16.25 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1759/0.1759, allocations: 22.35 MB / 312.4 MB, free: 12.61 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 64.09 kB / 380.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2294, allocations: 54.94 MB / 435.3 MB, free: 39.55 MB / 350.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.02281/0.2522, allocations: 21.54 MB / 456.9 MB, free: 31.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.2544, allocations: 1.605 MB / 458.5 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.2545, allocations: 2.25 kB / 458.5 MB, free: 30.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003061/0.2548, allocations: 61.33 kB / 458.5 MB, free: 30.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.255, allocations: 79.69 kB / 458.6 MB, free: 30.85 MB / 350.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.0007755/0.2558, allocations: 442 kB / 459.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003223/0.2561, allocations: 407.5 kB / 459.5 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.2563, allocations: 59.05 kB / 459.5 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.2564, allocations: 176.2 kB / 459.7 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000554/0.257, allocations: 205.9 kB / 459.9 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.257, allocations: 23.09 kB / 459.9 MB, free: 30.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004806/0.2575, allocations: 441.9 kB / 460.3 MB, free: 30.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.2576, allocations: 96.72 kB / 460.4 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.996e-05/0.2577, allocations: 130.7 kB / 460.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004955/0.2582, allocations: 0.5339 MB / 461.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2582, allocations: 3.375 kB / 461.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2583, allocations: 0 / 461.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.2583, allocations: 5.031 kB / 461.1 MB, free: 29.85 MB / 350.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.001621/0.2599, allocations: 0.8065 MB / 461.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2599, allocations: 9.438 kB / 461.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.373e-05/0.26, allocations: 46.8 kB / 462 MB, free: 29.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.2601, allocations: 33.53 kB / 462 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007553/0.2609, allocations: 405.9 kB / 462.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.2609, allocations: 10.28 kB / 462.4 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.299e-05/0.261, allocations: 25.52 kB / 462.4 MB, free: 28.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.2613, allocations: 174.4 kB / 462.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.2613, allocations: 1.812 kB / 462.6 MB, free: 28.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.2614, allocations: 8 kB / 462.6 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2614, allocations: 3.25 kB / 462.6 MB, free: 28.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003521/0.2617, allocations: 179.2 kB / 462.8 MB, free: 28.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009225/0.2627, allocations: 0.6474 MB / 463.4 MB, free: 28.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005801/0.2632, allocations: 268.3 kB / 463.7 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.2634, allocations: 108.3 kB / 463.8 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.2635, allocations: 2.375 kB / 463.8 MB, free: 28.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.2637, allocations: 177.8 kB / 464 MB, free: 28.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.503e-06/0.2638, allocations: 1.594 kB / 464 MB, free: 28.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001385/0.2651, allocations: 0.6092 MB / 464.6 MB, free: 27.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.2652, allocations: 56.69 kB / 464.6 MB, free: 27.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000733/0.2659, allocations: 415.6 kB / 465.1 MB, free: 27.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.266, allocations: 43.64 kB / 465.1 MB, free: 27.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.906e-05/0.266, allocations: 157.6 kB / 465.2 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.545e-05/0.2661, allocations: 88.66 kB / 465.3 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.117e-05/0.2662, allocations: 60.45 kB / 465.4 MB, free: 27.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.611e-05/0.2662, allocations: 345.2 kB / 465.7 MB, free: 27.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.2665, allocations: 120.2 kB / 465.8 MB, free: 27.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.2667, allocations: 151 kB / 466 MB, free: 26.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.2686, allocations: 0.666 MB / 466.7 MB, free: 26.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2686, allocations: 4 kB / 466.7 MB, free: 26.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000671/0.2693, allocations: 458.2 kB / 467.1 MB, free: 26.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.2693, allocations: 8 kB / 467.1 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2693, allocations: 0 / 467.1 MB, free: 26.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000218/0.2695, allocations: 73.31 kB / 467.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.2697, allocations: 46.62 kB / 467.2 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.2708, allocations: 1.751 MB / 469 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.2712, allocations: 67.55 kB / 469.1 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.2712, allocations: 11.94 kB / 469.1 MB, free: 24.14 MB / 350.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.0001515/0.2713, allocations: 174 kB / 469.2 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.2714, allocations: 31.56 kB / 469.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.4e-05/0.2715, allocations: 42.53 kB / 469.3 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2715, allocations: 4 kB / 469.3 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2715, allocations: 0 / 469.3 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2715, allocations: 7.234 kB / 469.3 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.2717, allocations: 340.3 kB / 469.7 MB, free: 23.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2717, allocations: 0 / 469.7 MB, free: 23.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.2719, allocations: 22.91 kB / 469.7 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001802/0.2721, allocations: 73.06 kB / 469.7 MB, free: 23.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.2721, allocations: 8 kB / 469.8 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.2733, allocations: 1.932 MB / 471.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2733, allocations: 4.031 kB / 471.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007538/0.274, allocations: 0.5127 MB / 472.2 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.2741, allocations: 119.4 kB / 472.3 MB, free: 20.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.075e-05/0.2742, allocations: 8.562 kB / 472.3 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000325/0.2745, allocations: 45.95 kB / 472.4 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.214e-05/0.2746, allocations: 23.83 kB / 472.4 MB, free: 20.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.2746, allocations: 7.938 kB / 472.4 MB, free: 20.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005814/0.2752, allocations: 325.3 kB / 472.7 MB, free: 20.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2752, allocations: 0 / 472.7 MB, free: 20.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004282/0.2756, allocations: 154.3 kB / 472.9 MB, free: 20.44 MB / 350.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.001408/0.277, allocations: 1.27 MB / 474.1 MB, free: 19.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006208/0.2776, allocations: 445.1 kB / 474.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2777, allocations: 0 / 474.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003755/0.278, allocations: 269.4 kB / 474.8 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.2783, allocations: 43.45 kB / 474.9 MB, free: 18.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00435/0.2827, allocations: 3.606 MB / 478.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001588/0.2829, allocations: 0.7888 MB / 479.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.283, allocations: 50.81 kB / 479.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.2831, allocations: 93.05 kB / 479.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2831, allocations: 4 kB / 479.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.3047, allocations: 8.391 MB / 487.8 MB, free: 9.145 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001467/0.3048, allocations: 252.1 kB / 488.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/2.115, allocations: 0 / 488.1 MB, free: 8.887 MB / 350.1 MB (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 --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)