Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.Exploiting_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_Exploiting_2dof",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.005321/0.005321, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001149/0.001149, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09142/0.09142, allocations: 22.32 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 59.91 kB / 436.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.138, allocations: 54.95 MB / 491.5 MB, free: 5.27 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002365/0.1404, allocations: 1.297 MB / 492.8 MB, free: 3.973 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.1423, allocations: 1.408 MB / 494.2 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.1424, allocations: 4 kB / 494.2 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003965/0.1429, allocations: 99.38 kB / 494.3 MB, free: 2.445 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.1432, allocations: 123.4 kB / 494.4 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.1436, allocations: 195.7 kB / 494.6 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005587/0.1442, allocations: 0.5146 MB / 495.1 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.1444, allocations: 72.72 kB / 495.2 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000292/0.1447, allocations: 211.3 kB / 495.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003444/0.145, allocations: 247 kB / 495.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-05/0.1451, allocations: 28 kB / 495.7 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.901e-05/0.1451, allocations: 28 kB / 495.7 MB, free: 1.039 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1453, allocations: 115.7 kB / 495.8 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.1454, allocations: 143 kB / 496 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003449/0.1458, allocations: 330.5 kB / 496.3 MB, free: 472 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1458, allocations: 4 kB / 496.3 MB, free: 468 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1458, allocations: 4 kB / 496.3 MB, free: 464 kB / 366.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.1458, allocations: 0 / 496.3 MB, free: 464 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.002317/0.1482, allocations: 0.8723 MB / 497.2 MB, free: 15.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1482, allocations: 12.03 kB / 497.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.237e-05/0.1483, allocations: 54.67 kB / 497.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.621e-05/0.1484, allocations: 40.7 kB / 497.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/0.1496, allocations: 0.4905 MB / 497.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.1497, allocations: 12.7 kB / 497.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.1497, allocations: 16.38 kB / 497.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000367/0.1501, allocations: 216.2 kB / 498 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1501, allocations: 4 kB / 498 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.1502, allocations: 12 kB / 498 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1502, allocations: 4 kB / 498 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004138/0.1506, allocations: 228.4 kB / 498.2 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1519, allocations: 0.7617 MB / 499 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/0.1527, allocations: 326.3 kB / 499.3 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.1529, allocations: 140.8 kB / 499.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.153, allocations: 8 kB / 499.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.153, allocations: 30.56 kB / 499.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 2.846e-06/0.153, allocations: 0 / 499.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.002062/0.1551, allocations: 0.7901 MB / 0.4886 GB, free: 12.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1551, allocations: 59.34 kB / 0.4886 GB, free: 12.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.1564, allocations: 0.5014 MB / 0.4891 GB, free: 11.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.1565, allocations: 29.7 kB / 0.4891 GB, free: 11.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.1566, allocations: 176.5 kB / 0.4893 GB, free: 11.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.666e-05/0.1567, allocations: 99.12 kB / 0.4894 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.917e-05/0.1568, allocations: 49.7 kB / 0.4894 GB, free: 11.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.1569, allocations: 350.8 kB / 0.4898 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.1572, allocations: 116.1 kB / 0.4899 GB, free: 10.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.1573, allocations: 116.4 kB / 0.49 GB, free: 10.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/0.1596, allocations: 0.7108 MB / 0.4907 GB, free: 9.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.1596, allocations: 0 / 0.4907 GB, free: 9.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009279/0.1605, allocations: 487.6 kB / 0.4912 GB, free: 9.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1605, allocations: 4 kB / 0.4912 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1606, allocations: 0 / 0.4912 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004328/0.161, allocations: 117.6 kB / 0.4913 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.1612, allocations: 43.92 kB / 0.4913 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.164, allocations: 3.193 MB / 0.4944 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005355/0.1646, allocations: 79.89 kB / 0.4945 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.1646, allocations: 11.94 kB / 0.4945 GB, free: 5.773 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00027/0.1649, allocations: 180.5 kB / 0.4947 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-05/0.165, allocations: 35.77 kB / 0.4947 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.531e-05/0.1651, allocations: 59.25 kB / 0.4948 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1651, allocations: 4 kB / 0.4948 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.1651, allocations: 0 / 0.4948 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1651, allocations: 0 / 0.4948 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000482/0.1656, allocations: 401.2 kB / 0.4952 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.1656, allocations: 0 / 0.4952 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.1658, allocations: 31.92 kB / 0.4952 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003265/0.1662, allocations: 117.6 kB / 0.4953 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.141e-05/0.1662, allocations: 11.98 kB / 0.4953 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002567/0.1688, allocations: 3.2 MB / 0.4985 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1688, allocations: 7.922 kB / 0.4985 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1699, allocations: 0.6606 MB / 0.4991 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.1701, allocations: 124.8 kB / 0.4992 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.119e-05/0.1702, allocations: 8 kB / 0.4992 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005349/0.1707, allocations: 71.89 kB / 0.4993 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.359e-05/0.1708, allocations: 15.97 kB / 0.4993 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.1708, allocations: 12 kB / 0.4993 GB, free: 476 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001091/0.1719, allocations: 402.9 kB / 0.4997 GB, free: 76 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1719, allocations: 0 / 0.4997 GB, free: 76 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003917/0.1723, allocations: 71.95 kB / 0.4998 GB, free: 4 kB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.219/0.3913, allocations: 1.203 MB / 0.501 GB, free: 21.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000964/0.3923, allocations: 0.5465 MB / 0.5015 GB, free: 21.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.3924, allocations: 1.375 kB / 0.5015 GB, free: 21.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.3929, allocations: 394.3 kB / 0.5019 GB, free: 21.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/0.3934, allocations: 60.98 kB / 0.5019 GB, free: 21.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006823/0.4003, allocations: 4.006 MB / 0.5058 GB, free: 19.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.4006, allocations: 0.822 MB / 0.5066 GB, free: 19.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.4007, allocations: 67.83 kB / 0.5067 GB, free: 19.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.4009, allocations: 110.7 kB / 0.5068 GB, free: 19.13 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4009, allocations: 3.812 kB / 0.5068 GB, free: 19.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04114/0.442, allocations: 7.703 MB / 0.5143 GB, free: 18.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.421/9.863, allocations: 8.031 kB / 0.5143 GB, free: 18.25 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.Exploiting_2dof_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Tuning_brushup_Exploiting_2dof.fmu > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)