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.001155/0.001155, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001478/0.001478, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1982/0.1982, allocations: 22.34 MB / 313.3 MB, free: 13.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003249, allocations: 8 kB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3026, allocations: 55.98 MB / 437.9 MB, free: 39.24 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.001523/0.3042, allocations: 1.638 MB / 439.5 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.3059, allocations: 1.523 MB / 441.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.781e-05/0.306, allocations: 3.719 kB / 441.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002943/0.3063, allocations: 57.8 kB / 441.1 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.3065, allocations: 82.59 kB / 441.2 MB, free: 36.99 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.0006527/0.3071, allocations: 386.6 kB / 441.6 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.3074, allocations: 225.4 kB / 441.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.3075, allocations: 51.05 kB / 441.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.3076, allocations: 170.4 kB / 442 MB, free: 36.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.3079, allocations: 161.8 kB / 442.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/0.3079, allocations: 11.28 kB / 442.2 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004362/0.3084, allocations: 422 kB / 442.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.447e-05/0.3084, allocations: 79.3 kB / 442.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.563e-05/0.3085, allocations: 60.98 kB / 442.7 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.3088, allocations: 382.8 kB / 443.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.3089, allocations: 4 kB / 443.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3089, allocations: 0 / 443.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.3089, allocations: 4 kB / 443.1 MB, free: 36.3 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.001465/0.3103, allocations: 0.7531 MB / 443.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.3104, allocations: 9.156 kB / 443.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.332e-05/0.3104, allocations: 51.36 kB / 443.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.772e-05/0.3105, allocations: 35.83 kB / 444 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000703/0.3113, allocations: 397.5 kB / 444.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.3113, allocations: 16.72 kB / 444.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.543e-05/0.3113, allocations: 19.17 kB / 444.4 MB, free: 35.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.3116, allocations: 176 kB / 444.6 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.3116, allocations: 7.938 kB / 444.6 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.3116, allocations: 4 kB / 444.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3117, allocations: 2.938 kB / 444.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000316/0.312, allocations: 179.9 kB / 444.7 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008889/0.3129, allocations: 0.6606 MB / 445.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005303/0.3134, allocations: 273 kB / 445.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.3134, allocations: 2.875 kB / 445.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.3137, allocations: 179.6 kB / 445.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.423e-06/0.3137, allocations: 0 / 445.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00129/0.315, allocations: 0.6855 MB / 446.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.315, allocations: 58.09 kB / 446.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006657/0.3157, allocations: 418.7 kB / 447 MB, free: 34.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.3158, allocations: 43.02 kB / 447 MB, free: 34.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.936e-05/0.3158, allocations: 165.4 kB / 447.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.229e-05/0.3159, allocations: 81.23 kB / 447.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.253e-05/0.3159, allocations: 4 kB / 447.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.002e-05/0.316, allocations: 349.4 kB / 447.6 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.3162, allocations: 114.1 kB / 447.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.3164, allocations: 160 kB / 447.9 MB, free: 33.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.3166, allocations: 139.4 kB / 448 MB, free: 33.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3166, allocations: 3.953 kB / 448 MB, free: 33.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006923/0.3173, allocations: 450.3 kB / 448.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3173, allocations: 7.281 kB / 448.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.3173, allocations: 0 / 448.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002446/0.3176, allocations: 77.05 kB / 448.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.3178, allocations: 41.77 kB / 448.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.3189, allocations: 1.66 MB / 450.3 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.3192, allocations: 67.3 kB / 450.3 MB, free: 31.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.3192, allocations: 8.562 kB / 450.3 MB, free: 31.71 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,$PRE.noise.state[1],noise.state[1],$PRE.noise.state[2],noise.state[2],$PRE.noise.state[3],noise.state[3],$PRE.noise.state[4],noise.state[4],$PRE.noise.r,noise.r,$PRE.noise.r_raw,noise.r_raw,noise.localSeed,noise.actualGlobalSeed,globalSeed.seed,globalSeed.id_impure) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.3194, allocations: 177 kB / 450.5 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/0.3194, allocations: 30 kB / 450.5 MB, free: 31.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.619e-05/0.3195, allocations: 43.97 kB / 450.6 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3195, allocations: 2.688 kB / 450.6 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3195, allocations: 7.953 kB / 450.6 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3195, allocations: 0 / 450.6 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002507/0.3198, allocations: 342.5 kB / 450.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3198, allocations: 0 / 450.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001519/0.32, allocations: 27.11 kB / 451 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/0.3202, allocations: 73.94 kB / 451 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.3202, allocations: 9.578 kB / 451 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.3214, allocations: 1.769 MB / 452.8 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3214, allocations: 0 / 452.8 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007701/0.3222, allocations: 0.5217 MB / 453.3 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.429e-05/0.3223, allocations: 117.2 kB / 453.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.3223, allocations: 13.81 kB / 453.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.3226, allocations: 55.47 kB / 453.5 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.171e-05/0.3227, allocations: 15.72 kB / 453.5 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3227, allocations: 10.77 kB / 453.5 MB, free: 29.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005721/0.3233, allocations: 318.3 kB / 453.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3233, allocations: 0 / 453.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000483/0.3238, allocations: 151.2 kB / 454 MB, free: 29.15 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0718/0.3956, allocations: 1.261 MB / 455.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008764/0.3965, allocations: 428.3 kB / 455.7 MB, free: 28.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3965, allocations: 0 / 455.7 MB, free: 28.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004592/0.397, allocations: 273.8 kB / 455.9 MB, free: 27.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3973, allocations: 44.28 kB / 456 MB, free: 27.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/0.3985, allocations: 1.125 MB / 457.1 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.3988, allocations: 0.8 MB / 457.9 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001474/0.3989, allocations: 56.38 kB / 458 MB, free: 26.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.399, allocations: 91.91 kB / 458.1 MB, free: 26.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.399, allocations: 0 / 458.1 MB, free: 26.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.988/3.387, allocations: 8.019 MB / 466.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/3.387, allocations: 231 kB / 466.3 MB, free: 25.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.872/6.259, allocations: 0 / 466.3 MB, free: 25.51 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/linux/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) Environment - environmentSimulation: