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.001478/0.001478, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2056/0.2056, allocations: 22.33 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002481/0.002482, allocations: 63.91 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.3001, allocations: 54.93 MB / 435.9 MB, free: 39.74 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.03122/0.3314, allocations: 21.51 MB / 457.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002699/0.3341, allocations: 1.611 MB / 459 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.3344, allocations: 2.281 kB / 459 MB, free: 31.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003844/0.3348, allocations: 72.61 kB / 459 MB, free: 31.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.3351, allocations: 95.59 kB / 459.1 MB, free: 31.04 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.001269/0.3364, allocations: 488.1 kB / 459.6 MB, free: 30.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004472/0.3368, allocations: 407.4 kB / 460 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.337, allocations: 58.45 kB / 460.1 MB, free: 30.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.3372, allocations: 162 kB / 460.2 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005778/0.3378, allocations: 199.7 kB / 460.4 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.285e-05/0.3379, allocations: 23.12 kB / 460.4 MB, free: 30.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006176/0.3385, allocations: 411.6 kB / 460.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.3386, allocations: 93.45 kB / 460.9 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.3388, allocations: 129.9 kB / 461.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007433/0.3395, allocations: 0.5259 MB / 461.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3395, allocations: 1.312 kB / 461.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3395, allocations: 0 / 461.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.3396, allocations: 0 / 461.6 MB, free: 30.05 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.001863/0.3414, allocations: 0.8006 MB / 462.4 MB, free: 29.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.3415, allocations: 9.781 kB / 462.4 MB, free: 29.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.3415, allocations: 46.16 kB / 462.5 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.3416, allocations: 37.69 kB / 462.5 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008367/0.3425, allocations: 404.6 kB / 462.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.3425, allocations: 10.41 kB / 462.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.3426, allocations: 21.78 kB / 462.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003415/0.3429, allocations: 181.2 kB / 463.1 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.3429, allocations: 1.125 kB / 463.1 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.343, allocations: 5.125 kB / 463.1 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.118e-06/0.343, allocations: 7.25 kB / 463.1 MB, free: 29.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003918/0.3434, allocations: 172.4 kB / 463.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.3444, allocations: 0.6504 MB / 463.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006251/0.3451, allocations: 267.7 kB / 464.2 MB, free: 28.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.3453, allocations: 112.9 kB / 464.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.3453, allocations: 2.094 kB / 464.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.3456, allocations: 177.9 kB / 464.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.305e-06/0.3456, allocations: 0 / 464.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001537/0.3472, allocations: 0.6181 MB / 465.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.3472, allocations: 57.16 kB / 465.1 MB, free: 28.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008885/0.3481, allocations: 416.2 kB / 465.6 MB, free: 27.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.3482, allocations: 39.73 kB / 465.6 MB, free: 27.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.95e-05/0.3482, allocations: 160.5 kB / 465.7 MB, free: 27.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.897e-05/0.3483, allocations: 84.23 kB / 465.8 MB, free: 27.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.012e-05/0.3484, allocations: 62.45 kB / 465.9 MB, free: 27.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.763e-05/0.3485, allocations: 340.8 kB / 466.2 MB, free: 27.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.3487, allocations: 123.4 kB / 466.3 MB, free: 27.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.3489, allocations: 150.5 kB / 466.5 MB, free: 27.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.351, allocations: 0.6682 MB / 467.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.351, allocations: 0 / 467.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007279/0.3517, allocations: 458.6 kB / 467.6 MB, free: 26.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3517, allocations: 8 kB / 467.6 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3518, allocations: 0 / 467.6 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002374/0.352, allocations: 83.95 kB / 467.7 MB, free: 26.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.3522, allocations: 42.5 kB / 467.7 MB, free: 26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.3535, allocations: 1.754 MB / 469.5 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.3539, allocations: 63.94 kB / 469.6 MB, free: 24.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.3539, allocations: 8 kB / 469.6 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.0001926/0.3541, allocations: 179.9 kB / 469.7 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.3542, allocations: 35.56 kB / 469.8 MB, free: 23.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.677e-05/0.3543, allocations: 38.11 kB / 469.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3543, allocations: 0 / 469.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/0.3543, allocations: 8 kB / 469.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3543, allocations: 2.906 kB / 469.8 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002821/0.3546, allocations: 342.2 kB / 470.2 MB, free: 23.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3546, allocations: 0 / 470.2 MB, free: 23.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.3548, allocations: 31.22 kB / 470.2 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/0.355, allocations: 69.88 kB / 470.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.355, allocations: 4 kB / 470.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.3564, allocations: 1.942 MB / 472.2 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3564, allocations: 0 / 472.2 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008253/0.3572, allocations: 0.5058 MB / 472.7 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.96e-05/0.3573, allocations: 124 kB / 472.8 MB, free: 20.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/0.3574, allocations: 8 kB / 472.8 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.3577, allocations: 43.5 kB / 472.9 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3578, allocations: 22.52 kB / 472.9 MB, free: 20.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.3578, allocations: 4 kB / 472.9 MB, free: 20.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006736/0.3585, allocations: 318.7 kB / 473.2 MB, free: 20.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3585, allocations: 4 kB / 473.2 MB, free: 20.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005661/0.3591, allocations: 154.5 kB / 473.4 MB, free: 20.45 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.001611/0.3607, allocations: 1.275 MB / 474.6 MB, free: 19.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007201/0.3614, allocations: 441.2 kB / 475.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3614, allocations: 0 / 475.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.3619, allocations: 269.8 kB / 475.3 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.0003166/0.3622, allocations: 39.56 kB / 475.4 MB, free: 18.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004929/0.3671, allocations: 3.517 MB / 478.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.3673, allocations: 0.7899 MB / 479.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.3675, allocations: 54.81 kB / 479.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3676, allocations: 97.14 kB / 479.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3676, allocations: 4 kB / 479.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02927/0.3969, allocations: 8.525 MB / 488.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.775/10.17, allocations: 11.47 kB / 488.4 MB, free: 8.883 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)