Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_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.005373/0.005373, allocations: 98.27 kB / 15.73 MB, free: 6.004 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.00128/0.00128, allocations: 197.5 kB / 16.67 MB, free: 5.922 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00244/0.00244, allocations: 283 kB / 290.8 MB, free: 1.758 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.082/1.082, allocations: 178.6 MB / 0.5074 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00266/0.002661, allocations: 107.8 kB / 0.6943 GB, free: 3.594 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4998/0.5024, allocations: 89.13 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.08287/0.5854, allocations: 77.16 MB / 0.8567 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02825/0.6136, allocations: 18.88 MB / 0.8751 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005163/0.6189, allocations: 115.3 kB / 0.8752 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.004176/0.6231, allocations: 1.242 MB / 0.8764 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.01137/0.6346, allocations: 3.63 MB / 0.88 GB, free: 9.938 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005692/0.6403, allocations: 2.102 MB / 0.882 GB, free: 7.852 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0102/0.6505, allocations: 6.679 MB / 0.8886 GB, free: 1.152 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003404/0.6539, allocations: 2.101 MB / 0.8906 GB, free: 15.01 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005871/0.6598, allocations: 2.307 MB / 0.8929 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.6632, allocations: 1.751 MB / 0.8946 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0006186/0.6638, allocations: 200 kB / 0.8948 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004358/0.6682, allocations: 1.618 MB / 0.8964 GB, free: 9.133 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008212/0.669, allocations: 0.541 MB / 0.8969 GB, free: 8.59 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.671, allocations: 1.244 MB / 0.8981 GB, free: 7.34 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.006892/0.6779, allocations: 3.75 MB / 0.9018 GB, free: 3.578 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.678, allocations: 0 / 0.9018 GB, free: 3.578 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.847e-06/0.678, allocations: 0 / 0.9018 GB, free: 3.578 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.877e-05/0.6781, allocations: 3.938 kB / 0.9018 GB, free: 3.574 MB / 0.6544 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.005203/0.6833, allocations: 2.792 MB / 0.9045 GB, free: 0.7148 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.6833, allocations: 8.031 kB / 0.9045 GB, free: 0.707 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002475/0.6836, allocations: 198.8 kB / 0.9047 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007991/0.6844, allocations: 283.3 kB / 0.905 GB, free: 232 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003699/0.6881, allocations: 2.043 MB / 0.907 GB, free: 14.14 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.015e-05/0.6882, allocations: 106.7 kB / 0.9071 GB, free: 14.03 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002092/0.6884, allocations: 144 kB / 0.9072 GB, free: 13.89 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002759/0.6912, allocations: 1.516 MB / 0.9087 GB, free: 12.3 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.397e-05/0.6913, allocations: 0 / 0.9087 GB, free: 12.3 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.6914, allocations: 63.98 kB / 0.9087 GB, free: 12.23 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.523e-05/0.6915, allocations: 40 kB / 0.9088 GB, free: 12.2 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002579/0.694, allocations: 1.126 MB / 0.9099 GB, free: 11.06 MB / 0.67 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.7044, allocations: 7.628 MB / 0.9173 GB, free: 2.855 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.7055, allocations: 477.1 kB / 0.9178 GB, free: 2.383 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006614/0.7062, allocations: 334.3 kB / 0.9181 GB, free: 2.055 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009706/0.7072, allocations: 1.152 MB / 0.9192 GB, free: 0.6445 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.7072, allocations: 39.12 kB / 0.9193 GB, free: 0.5977 MB / 0.67 GB Notification: Performance of pre-optimization done (n=59): time 5.089e-06/0.7073, allocations: 4.094 kB / 0.9193 GB, free: 0.5938 MB / 0.67 GB Notification: Performance of matching and sorting (n=59): time 0.00248/0.7097, allocations: 0.9778 MB / 0.9202 GB, free: 15.61 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.7098, allocations: 55.97 kB / 0.9203 GB, free: 15.54 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002446/0.7123, allocations: 1.791 MB / 0.922 GB, free: 13.71 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.7124, allocations: 37.7 kB / 0.9221 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008371/0.7132, allocations: 0.9412 MB / 0.923 GB, free: 12.72 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002425/0.7135, allocations: 230 kB / 0.9232 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003061/0.7138, allocations: 226.8 kB / 0.9234 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.7139, allocations: 353.9 kB / 0.9237 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007193/0.7147, allocations: 330.4 kB / 0.9241 GB, free: 11.59 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.7157, allocations: 0.6899 MB / 0.9247 GB, free: 10.75 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001692/0.7174, allocations: 1.012 MB / 0.9257 GB, free: 9.605 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.033e-05/0.7174, allocations: 4 kB / 0.9257 GB, free: 9.602 MB / 0.6856 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002544/0.72, allocations: 1.219 MB / 0.9269 GB, free: 8.375 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.72, allocations: 12.03 kB / 0.9269 GB, free: 8.363 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.72, allocations: 12 kB / 0.9269 GB, free: 8.352 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.278e-05/0.7201, allocations: 19.98 kB / 0.927 GB, free: 8.332 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.7211, allocations: 287.5 kB / 0.9272 GB, free: 8.051 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-05/0.7212, allocations: 19.94 kB / 0.9273 GB, free: 8.031 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/0.7225, allocations: 170.9 kB / 0.9274 GB, free: 7.863 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.938e-05/0.7226, allocations: 55.98 kB / 0.9275 GB, free: 7.809 MB / 0.6856 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.000804/0.7234, allocations: 437.4 kB / 0.9279 GB, free: 7.371 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004019/0.7238, allocations: 206.7 kB / 0.9281 GB, free: 7.168 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.7256, allocations: 0.8674 MB / 0.9289 GB, free: 6.301 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.7257, allocations: 4 kB / 0.9289 GB, free: 6.297 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.7257, allocations: 0 / 0.9289 GB, free: 6.297 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001359/0.727, allocations: 0.7918 MB / 0.9297 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.7313, allocations: 2.459 MB / 0.9321 GB, free: 2.906 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.7313, allocations: 7.938 kB / 0.9321 GB, free: 2.898 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000778/0.7321, allocations: 180 kB / 0.9323 GB, free: 2.723 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-05/0.7322, allocations: 8 kB / 0.9323 GB, free: 2.715 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.26e-05/0.7322, allocations: 12 kB / 0.9323 GB, free: 2.703 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.538e-06/0.7322, allocations: 8 kB / 0.9323 GB, free: 2.695 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.7322, allocations: 3.938 kB / 0.9323 GB, free: 2.691 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002613/0.7348, allocations: 1.349 MB / 0.9336 GB, free: 1.297 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007153/0.7356, allocations: 379.5 kB / 0.934 GB, free: 0.9062 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/0.7358, allocations: 12 kB / 0.934 GB, free: 0.8945 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000956/0.7368, allocations: 63.91 kB / 0.9341 GB, free: 0.832 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.7369, allocations: 48.5 kB / 0.9341 GB, free: 0.7852 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.399e-05/0.737, allocations: 39.97 kB / 0.9342 GB, free: 0.7461 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001849/0.7389, allocations: 1.243 MB / 0.9354 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7389, allocations: 0 / 0.9354 GB, free: 15.48 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.00188/0.7408, allocations: 0.6587 MB / 0.936 GB, free: 14.82 MB / 0.7012 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.004104/0.7449, allocations: 2.403 MB / 0.9384 GB, free: 12.38 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001885/0.7468, allocations: 0.8234 MB / 0.9392 GB, free: 11.56 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.7468, allocations: 0 / 0.9392 GB, free: 11.56 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.00078/0.7476, allocations: 352.4 kB / 0.9395 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005648/0.7533, allocations: 1.209 MB / 0.9407 GB, free: 10.03 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/0.7757, allocations: 12.63 MB / 0.953 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.7768, allocations: 1.405 MB / 0.9544 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001404/0.7782, allocations: 377.8 kB / 0.9547 GB, free: 11.08 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001006/0.7793, allocations: 0.7648 MB / 0.9555 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of SimCode: time 9.32e-07/0.7793, allocations: 0 / 0.9555 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1087/0.888, allocations: 57.66 MB / 1.012 GB, free: 1.398 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.79, allocations: 8.062 kB / 1.012 GB, free: 1.391 MB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)