Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_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.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_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.007706/0.007706, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.00158/0.00158, allocations: 198.3 kB / 16.68 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2066/0.2066, allocations: 22.35 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002392/0.002392, allocations: 60.44 kB / 436.6 MB, free: 34.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1377, allocations: 54.96 MB / 491.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.003814/0.1416, allocations: 1.134 MB / 492.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.1444, allocations: 1.295 MB / 494 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002303/0.1447, allocations: 4 kB / 494 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005789/0.1453, allocations: 75.55 kB / 494.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004601/0.1458, allocations: 75.67 kB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.1464, allocations: 143.7 kB / 494.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007365/0.1472, allocations: 383.3 kB / 494.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/0.1474, allocations: 52.39 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004016/0.1478, allocations: 163.5 kB / 494.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004922/0.1483, allocations: 191.3 kB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.593e-05/0.1484, allocations: 20 kB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.231e-05/0.1485, allocations: 24 kB / 495.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002213/0.1488, allocations: 107.7 kB / 495.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.149, allocations: 127.2 kB / 495.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004973/0.1495, allocations: 262.8 kB / 495.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1495, allocations: 3.938 kB / 495.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1496, allocations: 0 / 495.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.1496, allocations: 4 kB / 495.6 MB, free: 13.66 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.003483/0.1531, allocations: 0.7634 MB / 496.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.1531, allocations: 12.03 kB / 496.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.636e-05/0.1532, allocations: 46.75 kB / 496.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.1534, allocations: 32.75 kB / 496.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.1553, allocations: 423.5 kB / 496.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.1553, allocations: 12.66 kB / 496.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.524e-05/0.1554, allocations: 12.38 kB / 496.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.156, allocations: 195.9 kB / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.156, allocations: 0 / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.799e-05/0.1561, allocations: 8 kB / 497.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.1561, allocations: 4 kB / 497.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00071/0.1568, allocations: 196.6 kB / 497.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.159, allocations: 0.6995 MB / 498 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009593/0.16, allocations: 281 kB / 498.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.1604, allocations: 124.8 kB / 498.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.1604, allocations: 0 / 498.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.1605, allocations: 38.55 kB / 498.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.264e-06/0.1605, allocations: 0 / 498.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.003309/0.1638, allocations: 0.6853 MB / 499.1 MB, free: 9.965 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.1639, allocations: 55.41 kB / 499.1 MB, free: 9.898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/0.1657, allocations: 418.8 kB / 499.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.429e-05/0.1658, allocations: 29.7 kB / 499.6 MB, free: 9.441 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1659, allocations: 156.5 kB / 499.7 MB, free: 9.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.1661, allocations: 95.2 kB / 499.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.1663, allocations: 45.7 kB / 499.9 MB, free: 9.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.1665, allocations: 342.8 kB / 0.4885 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003514/0.1669, allocations: 107.9 kB / 0.4886 GB, free: 8.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.1672, allocations: 96.69 kB / 0.4887 GB, free: 8.598 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004104/0.1713, allocations: 0.7089 MB / 0.4894 GB, free: 7.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1714, allocations: 4 kB / 0.4894 GB, free: 7.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001555/0.1729, allocations: 446 kB / 0.4898 GB, free: 7.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.173, allocations: 7.938 kB / 0.4898 GB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.173, allocations: 0 / 0.4898 GB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005454/0.1736, allocations: 92.7 kB / 0.4899 GB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000351/0.1739, allocations: 39.92 kB / 0.4899 GB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003122/0.1771, allocations: 1.861 MB / 0.4917 GB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008169/0.1779, allocations: 63.8 kB / 0.4918 GB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.178, allocations: 11.94 kB / 0.4918 GB, free: 5.215 MB / 366.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (25): * Single equations (assignments): 24 * Array equations: 0 * 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.000408/0.1784, allocations: 180.4 kB / 0.492 GB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.1785, allocations: 27.81 kB / 0.492 GB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.1787, allocations: 46.25 kB / 0.4921 GB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.1787, allocations: 4 kB / 0.4921 GB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1787, allocations: 0 / 0.4921 GB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1787, allocations: 4 kB / 0.4921 GB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007244/0.1795, allocations: 361.2 kB / 0.4924 GB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.1795, allocations: 0 / 0.4924 GB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.1799, allocations: 35.97 kB / 0.4924 GB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005193/0.1805, allocations: 88.77 kB / 0.4925 GB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.1805, allocations: 8 kB / 0.4925 GB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002989/0.1835, allocations: 1.85 MB / 0.4943 GB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1836, allocations: 8.094 kB / 0.4944 GB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.1855, allocations: 0.6121 MB / 0.4949 GB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.1857, allocations: 112.9 kB / 0.4951 GB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.754e-05/0.1857, allocations: 11.98 kB / 0.4951 GB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008724/0.1866, allocations: 55.92 kB / 0.4951 GB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.1868, allocations: 19.91 kB / 0.4951 GB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.1868, allocations: 8 kB / 0.4951 GB, free: 1.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001592/0.1884, allocations: 325.8 kB / 0.4955 GB, free: 1.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1884, allocations: 0 / 0.4955 GB, free: 1.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000669/0.1891, allocations: 67.94 kB / 0.4955 GB, free: 1.184 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.002391/0.1915, allocations: 1.16 MB / 0.4967 GB, free: 16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.1928, allocations: 411 kB / 0.497 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.1928, allocations: 4 kB / 0.4971 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000699/0.1935, allocations: 278.5 kB / 0.4973 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006977/0.1943, allocations: 44.8 kB / 0.4974 GB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/0.2058, allocations: 3.584 MB / 0.5009 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005706/0.2064, allocations: 0.7948 MB / 0.5016 GB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003091/0.2068, allocations: 58.25 kB / 0.5017 GB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002385/0.207, allocations: 87.39 kB / 0.5018 GB, free: 10.6 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2071, allocations: 0 / 0.5018 GB, free: 10.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/0.2331, allocations: 6.523 MB / 0.5081 GB, free: 4.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.436/9.669, allocations: 11.72 kB / 0.5082 GB, free: 4.156 MB / 382.1 MB (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)