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.007317/0.007317, allocations: 101.6 kB / 15.73 MB, free: 6.031 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.001282/0.001282, allocations: 200.2 kB / 16.67 MB, free: 5.969 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2118/0.2118, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 68.69 kB / 436.6 MB, free: 33.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09691, allocations: 54.95 MB / 491.5 MB, free: 1.719 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.02816/0.1251, allocations: 21.37 MB / 0.5009 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1278, allocations: 1.602 MB / 0.5024 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.128, allocations: 4 kB / 0.5024 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000353/0.1283, allocations: 75.48 kB / 0.5025 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.1286, allocations: 91.52 kB / 0.5026 GB, free: 10.7 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.00104/0.1296, allocations: 494.6 kB / 0.5031 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004122/0.1301, allocations: 411.1 kB / 0.5035 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.1302, allocations: 56.66 kB / 0.5035 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001824/0.1304, allocations: 167.4 kB / 0.5037 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005872/0.131, allocations: 200.5 kB / 0.5039 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-05/0.1311, allocations: 24 kB / 0.5039 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000558/0.1316, allocations: 411.3 kB / 0.5043 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.1317, allocations: 91.72 kB / 0.5044 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.1319, allocations: 135.1 kB / 0.5045 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005968/0.1325, allocations: 0.5259 MB / 0.505 GB, free: 8.227 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1325, allocations: 0 / 0.505 GB, free: 8.227 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1325, allocations: 0 / 0.505 GB, free: 8.227 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1325, allocations: 0 / 0.505 GB, free: 8.227 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.001778/0.1343, allocations: 0.806 MB / 0.5058 GB, free: 7.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1343, allocations: 8.031 kB / 0.5058 GB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.784e-05/0.1344, allocations: 46.73 kB / 0.5059 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001461/0.1345, allocations: 40.55 kB / 0.5059 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008646/0.1354, allocations: 403.9 kB / 0.5063 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.1355, allocations: 12.38 kB / 0.5063 GB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.1355, allocations: 19.94 kB / 0.5063 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.1358, allocations: 187.2 kB / 0.5065 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1359, allocations: 0 / 0.5065 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.1359, allocations: 4 kB / 0.5065 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1359, allocations: 4 kB / 0.5065 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003561/0.1363, allocations: 172.1 kB / 0.5067 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.1374, allocations: 0.649 MB / 0.5073 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006304/0.138, allocations: 262.4 kB / 0.5075 GB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/0.1382, allocations: 112.8 kB / 0.5077 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.1383, allocations: 0 / 0.5077 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.1386, allocations: 179.2 kB / 0.5078 GB, free: 5.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.694e-06/0.1386, allocations: 0 / 0.5078 GB, free: 5.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001472/0.1401, allocations: 0.6106 MB / 0.5084 GB, free: 4.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.1401, allocations: 59.39 kB / 0.5085 GB, free: 4.461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007961/0.1409, allocations: 416.4 kB / 0.5089 GB, free: 4.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.141, allocations: 41.64 kB / 0.5089 GB, free: 3.996 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1411, allocations: 164.5 kB / 0.5091 GB, free: 3.832 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.661e-05/0.1411, allocations: 82.81 kB / 0.5091 GB, free: 3.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.408e-05/0.1412, allocations: 65.69 kB / 0.5092 GB, free: 3.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1414, allocations: 342.8 kB / 0.5095 GB, free: 3.336 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.1416, allocations: 116.3 kB / 0.5097 GB, free: 3.219 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002403/0.1419, allocations: 155 kB / 0.5098 GB, free: 3.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/0.1439, allocations: 0.6707 MB / 0.5105 GB, free: 2.387 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1439, allocations: 0 / 0.5105 GB, free: 2.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000803/0.1447, allocations: 449.3 kB / 0.5109 GB, free: 1.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.1448, allocations: 12.03 kB / 0.5109 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1448, allocations: 0 / 0.5109 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/0.145, allocations: 76.78 kB / 0.511 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.1452, allocations: 39.92 kB / 0.511 GB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.1467, allocations: 1.754 MB / 0.5127 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003634/0.1471, allocations: 59.88 kB / 0.5128 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.1471, allocations: 12 kB / 0.5128 GB, free: 15.85 MB / 398.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.0001843/0.1473, allocations: 171.3 kB / 0.5129 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.437e-05/0.1474, allocations: 35.56 kB / 0.513 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.88e-05/0.1474, allocations: 47.03 kB / 0.513 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1475, allocations: 0 / 0.513 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1475, allocations: 4 kB / 0.513 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1475, allocations: 3.984 kB / 0.513 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002978/0.1478, allocations: 337.3 kB / 0.5134 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1478, allocations: 0 / 0.5134 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.1479, allocations: 23.98 kB / 0.5134 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.1481, allocations: 72.8 kB / 0.5134 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.1482, allocations: 11.98 kB / 0.5135 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001622/0.1498, allocations: 1.936 MB / 0.5154 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1498, allocations: 4.031 kB / 0.5154 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008829/0.1507, allocations: 0.514 MB / 0.5159 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.82e-05/0.1508, allocations: 116.6 kB / 0.516 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.1509, allocations: 15.98 kB / 0.516 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.1512, allocations: 47.94 kB / 0.516 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.1513, allocations: 19.97 kB / 0.516 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.1513, allocations: 4 kB / 0.5161 GB, free: 12.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006692/0.152, allocations: 322.9 kB / 0.5164 GB, free: 11.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.152, allocations: 0 / 0.5164 GB, free: 11.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004718/0.1525, allocations: 159.8 kB / 0.5165 GB, free: 11.78 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.001657/0.1541, allocations: 1.273 MB / 0.5178 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006951/0.1548, allocations: 411.4 kB / 0.5181 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1549, allocations: 8.062 kB / 0.5182 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004484/0.1553, allocations: 274.4 kB / 0.5184 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.1556, allocations: 41.06 kB / 0.5185 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00518/0.1608, allocations: 3.499 MB / 0.5219 GB, free: 6.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.1611, allocations: 0.7946 MB / 0.5226 GB, free: 5.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.1612, allocations: 54.25 kB / 0.5227 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1614, allocations: 95.39 kB / 0.5228 GB, free: 5.195 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1614, allocations: 0 / 0.5228 GB, free: 5.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1466/0.308, allocations: 8.562 MB / 0.5312 GB, free: 12.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.68/9.988, allocations: 21.97 kB / 0.5312 GB, free: 12.66 MB / 414.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)