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.005774/0.005774, allocations: 100.6 kB / 15.73 MB, free: 6.469 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.001267/0.001267, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2212/0.2212, allocations: 22.35 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 66.7 kB / 436.6 MB, free: 34.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.09922, allocations: 54.96 MB / 491.5 MB, free: 1.859 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.03181/0.1311, allocations: 21.47 MB / 0.501 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002968/0.1341, allocations: 1.617 MB / 0.5025 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.1343, allocations: 0 / 0.5025 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004097/0.1347, allocations: 67.5 kB / 0.5026 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000351/0.1351, allocations: 91.53 kB / 0.5027 GB, free: 10.74 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.001428/0.1365, allocations: 0.4908 MB / 0.5032 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006102/0.1371, allocations: 395.2 kB / 0.5035 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.1373, allocations: 64.64 kB / 0.5036 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.1376, allocations: 167.5 kB / 0.5038 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007349/0.1384, allocations: 207.2 kB / 0.504 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.44e-05/0.1385, allocations: 20 kB / 0.504 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006746/0.1392, allocations: 411.3 kB / 0.5044 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.1393, allocations: 91.72 kB / 0.5045 GB, free: 8.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.1395, allocations: 135.1 kB / 0.5046 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008727/0.1404, allocations: 0.5259 MB / 0.5051 GB, free: 8.262 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1404, allocations: 0 / 0.5051 GB, free: 8.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1404, allocations: 0 / 0.5051 GB, free: 8.262 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.1404, allocations: 0 / 0.5051 GB, free: 8.262 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.002145/0.1425, allocations: 0.8021 MB / 0.5059 GB, free: 7.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1426, allocations: 12.03 kB / 0.5059 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.432e-05/0.1427, allocations: 46.73 kB / 0.5059 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.1429, allocations: 36.56 kB / 0.506 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009911/0.1439, allocations: 411.8 kB / 0.5064 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.1439, allocations: 16.38 kB / 0.5064 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.1439, allocations: 15.94 kB / 0.5064 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003647/0.1443, allocations: 183.2 kB / 0.5066 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.1443, allocations: 0 / 0.5066 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1444, allocations: 4 kB / 0.5066 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1444, allocations: 4 kB / 0.5066 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003826/0.1448, allocations: 172.1 kB / 0.5068 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.1459, allocations: 0.6452 MB / 0.5074 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006621/0.1466, allocations: 270.4 kB / 0.5076 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.1468, allocations: 112.7 kB / 0.5077 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.1468, allocations: 0 / 0.5077 GB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003106/0.1471, allocations: 171.2 kB / 0.5079 GB, free: 5.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 3.306e-06/0.1472, allocations: 0 / 0.5079 GB, free: 5.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001577/0.1487, allocations: 0.6173 MB / 0.5085 GB, free: 4.562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.1488, allocations: 59.39 kB / 0.5086 GB, free: 4.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008219/0.1496, allocations: 420.4 kB / 0.509 GB, free: 4.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.058e-05/0.1497, allocations: 33.7 kB / 0.509 GB, free: 4.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1498, allocations: 160.5 kB / 0.5092 GB, free: 3.871 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.898e-05/0.1499, allocations: 90.73 kB / 0.5092 GB, free: 3.781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-05/0.15, allocations: 57.69 kB / 0.5093 GB, free: 3.719 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1501, allocations: 346.8 kB / 0.5096 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000233/0.1504, allocations: 120.2 kB / 0.5097 GB, free: 3.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.1506, allocations: 151 kB / 0.5099 GB, free: 3.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.1528, allocations: 0.6707 MB / 0.5105 GB, free: 2.422 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1528, allocations: 0 / 0.5105 GB, free: 2.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008249/0.1537, allocations: 449.3 kB / 0.511 GB, free: 1.973 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1537, allocations: 4 kB / 0.511 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1537, allocations: 0 / 0.511 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002614/0.154, allocations: 80.78 kB / 0.5111 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.1542, allocations: 35.92 kB / 0.5111 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.1558, allocations: 1.766 MB / 0.5128 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/0.1562, allocations: 59.72 kB / 0.5129 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.1562, allocations: 4 kB / 0.5129 GB, free: 15.88 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.0002365/0.1564, allocations: 175.3 kB / 0.513 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.1565, allocations: 31.56 kB / 0.5131 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.597e-05/0.1566, allocations: 39.09 kB / 0.5131 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1566, allocations: 4 kB / 0.5131 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1566, allocations: 0 / 0.5131 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1566, allocations: 3.938 kB / 0.5131 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003322/0.1569, allocations: 353.1 kB / 0.5135 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.157, allocations: 4 kB / 0.5135 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.1571, allocations: 19.98 kB / 0.5135 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002228/0.1574, allocations: 72.78 kB / 0.5135 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.1574, allocations: 8 kB / 0.5136 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.1592, allocations: 1.936 MB / 0.5154 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1592, allocations: 0 / 0.5154 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009473/0.1601, allocations: 0.519 MB / 0.5159 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.955e-05/0.1602, allocations: 120.7 kB / 0.5161 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.1603, allocations: 12 kB / 0.5161 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.1607, allocations: 47.92 kB / 0.5161 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.1607, allocations: 15.98 kB / 0.5161 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.1608, allocations: 7.984 kB / 0.5161 GB, free: 12.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000743/0.1615, allocations: 318.9 kB / 0.5164 GB, free: 11.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1615, allocations: 0 / 0.5164 GB, free: 11.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005767/0.1621, allocations: 155.8 kB / 0.5166 GB, free: 11.82 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.001942/0.1641, allocations: 1.276 MB / 0.5178 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000807/0.1649, allocations: 422.6 kB / 0.5182 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1649, allocations: 3.938 kB / 0.5182 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.1654, allocations: 267.8 kB / 0.5185 GB, free: 9.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.1657, allocations: 45.11 kB / 0.5185 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005927/0.1716, allocations: 3.503 MB / 0.522 GB, free: 6.191 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003883/0.172, allocations: 0.8024 MB / 0.5228 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.1722, allocations: 50.25 kB / 0.5228 GB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.1724, allocations: 95.41 kB / 0.5229 GB, free: 5.223 MB / 398.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1724, allocations: 0 / 0.5229 GB, free: 5.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03189/0.2043, allocations: 8.778 MB / 0.5315 GB, free: 12.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.694/9.898, allocations: 23.7 kB / 0.5315 GB, free: 12.48 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)