Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",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.009541/0.009541, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001938/0.001938, allocations: 189 kB / 16.68 MB, free: 6.367 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7438/0.7438, allocations: 132.2 MB / 422.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 67.17 kB / 0.5809 GB, free: 1.086 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1926, allocations: 80.2 MB / 0.6592 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.08587/0.2785, allocations: 77.14 MB / 0.7345 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.03065/0.3092, allocations: 18.84 MB / 0.7529 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004736/0.314, allocations: 115.2 kB / 0.753 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004893/0.3189, allocations: 1.285 MB / 0.7543 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01457/0.3335, allocations: 3.806 MB / 0.758 GB, free: 8.453 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00603/0.3396, allocations: 2.09 MB / 0.7601 GB, free: 6.383 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009736/0.3494, allocations: 6.687 MB / 0.7666 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004031/0.3534, allocations: 2.102 MB / 0.7686 GB, free: 13.53 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006435/0.3599, allocations: 2.384 MB / 0.771 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004095/0.364, allocations: 1.759 MB / 0.7727 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0008057/0.3648, allocations: 200 kB / 0.7729 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00511/0.3699, allocations: 1.618 MB / 0.7745 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.371, allocations: 0.5333 MB / 0.775 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002735/0.3738, allocations: 1.256 MB / 0.7762 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.007939/0.3817, allocations: 3.764 MB / 0.7799 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3818, allocations: 0 / 0.7799 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3818, allocations: 0 / 0.7799 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001285/0.3819, allocations: 0 / 0.7799 GB, free: 1.996 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.007503/0.3894, allocations: 2.794 MB / 0.7826 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.3895, allocations: 12.03 kB / 0.7826 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006033/0.3901, allocations: 202.8 kB / 0.7828 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/0.3914, allocations: 278.5 kB / 0.7831 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004798/0.3962, allocations: 2.032 MB / 0.7851 GB, free: 12.56 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.3964, allocations: 110.6 kB / 0.7852 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000313/0.3967, allocations: 144 kB / 0.7853 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003032/0.3997, allocations: 1.52 MB / 0.7868 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.128e-05/0.3998, allocations: 11.86 kB / 0.7868 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001275/0.3999, allocations: 63.98 kB / 0.7869 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.097e-05/0.4, allocations: 39.94 kB / 0.7869 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/0.4024, allocations: 1.126 MB / 0.788 GB, free: 9.461 MB / 0.6231 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.4128, allocations: 7.605 MB / 0.7954 GB, free: 1.281 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.4138, allocations: 485.8 kB / 0.7959 GB, free: 0.8008 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006264/0.4145, allocations: 338.3 kB / 0.7962 GB, free: 480 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008836/0.4154, allocations: 1.148 MB / 0.7973 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.4154, allocations: 47.12 kB / 0.7974 GB, free: 15 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=59): time 2.034e-06/0.4154, allocations: 0 / 0.7974 GB, free: 15 MB / 0.6387 GB Notification: Performance of matching and sorting (n=59): time 0.002346/0.4178, allocations: 0.974 MB / 0.7983 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.4179, allocations: 55.97 kB / 0.7984 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/0.4201, allocations: 1.787 MB / 0.8001 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.4202, allocations: 45.7 kB / 0.8002 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007548/0.421, allocations: 0.9489 MB / 0.8011 GB, free: 11.13 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.4212, allocations: 230.1 kB / 0.8013 GB, free: 10.9 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002879/0.4215, allocations: 226.8 kB / 0.8015 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4217, allocations: 345.9 kB / 0.8019 GB, free: 10.33 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006935/0.4224, allocations: 330.4 kB / 0.8022 GB, free: 10.01 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009574/0.4233, allocations: 0.6899 MB / 0.8029 GB, free: 9.16 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.4249, allocations: 1.008 MB / 0.8038 GB, free: 8.023 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.4249, allocations: 4 kB / 0.8038 GB, free: 8.02 MB / 0.6387 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002506/0.4275, allocations: 1.227 MB / 0.805 GB, free: 6.781 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.4275, allocations: 8 kB / 0.8051 GB, free: 6.773 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.4275, allocations: 8 kB / 0.8051 GB, free: 6.766 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.774e-05/0.4275, allocations: 16 kB / 0.8051 GB, free: 6.75 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.4286, allocations: 295.5 kB / 0.8054 GB, free: 6.461 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.462e-05/0.4286, allocations: 24.11 kB / 0.8054 GB, free: 6.438 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.4299, allocations: 174.7 kB / 0.8055 GB, free: 6.266 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-05/0.43, allocations: 56 kB / 0.8056 GB, free: 6.211 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007276/0.4308, allocations: 433.5 kB / 0.806 GB, free: 5.777 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003487/0.4311, allocations: 198.7 kB / 0.8062 GB, free: 5.582 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/0.4328, allocations: 0.8681 MB / 0.8071 GB, free: 4.719 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.4329, allocations: 11.98 kB / 0.8071 GB, free: 4.707 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4329, allocations: 4 kB / 0.8071 GB, free: 4.703 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001354/0.4342, allocations: 0.7956 MB / 0.8078 GB, free: 3.855 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003921/0.4382, allocations: 2.447 MB / 0.8102 GB, free: 1.32 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.4382, allocations: 0 / 0.8102 GB, free: 1.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007819/0.439, allocations: 184 kB / 0.8104 GB, free: 1.141 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.439, allocations: 4 kB / 0.8104 GB, free: 1.137 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.855e-05/0.439, allocations: 19.98 kB / 0.8104 GB, free: 1.117 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.439, allocations: 4 kB / 0.8104 GB, free: 1.113 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.4391, allocations: 7.938 kB / 0.8104 GB, free: 1.105 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.376/0.815, allocations: 1.344 MB / 0.8118 GB, free: 146.4 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.8162, allocations: 371.5 kB / 0.8121 GB, free: 146.3 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003124/0.8165, allocations: 14.31 kB / 0.8121 GB, free: 146.3 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.8177, allocations: 68.03 kB / 0.8122 GB, free: 146.3 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.8178, allocations: 53.94 kB / 0.8122 GB, free: 146.3 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.651e-05/0.8179, allocations: 37.73 kB / 0.8123 GB, free: 146.3 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.002185/0.8201, allocations: 1.238 MB / 0.8135 GB, free: 146.2 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.91e-07/0.8201, allocations: 0 / 0.8135 GB, free: 146.2 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002172/0.8223, allocations: 0.6605 MB / 0.8141 GB, free: 146.2 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.dynBal.U) * 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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004614/0.8269, allocations: 2.405 MB / 0.8165 GB, free: 145.3 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00225/0.8292, allocations: 0.8137 MB / 0.8173 GB, free: 145.1 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.8292, allocations: 1.406 kB / 0.8173 GB, free: 145.1 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008057/0.83, allocations: 356.4 kB / 0.8176 GB, free: 145 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006263/0.8363, allocations: 1.208 MB / 0.8188 GB, free: 144.8 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01996/0.8563, allocations: 12.62 MB / 0.8311 GB, free: 138.6 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007313/0.8571, allocations: 1.408 MB / 0.8325 GB, free: 137.9 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001735/0.8588, allocations: 383.8 kB / 0.8329 GB, free: 137.8 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000873/0.8597, allocations: 0.7657 MB / 0.8336 GB, free: 137.2 MB / 0.6387 GB Notification: Performance of SimCode: time 1.032e-06/0.8597, allocations: 0 / 0.8336 GB, free: 137.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08844/0.9482, allocations: 57.57 MB / 0.8898 GB, free: 84.06 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.76, allocations: 0.5625 kB / 0.8898 GB, free: 84.06 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 IDEAS_IDEAS_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)