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.001225/0.001225, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002444/0.002444, allocations: 290.9 kB / 290.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.05/1.05, allocations: 178.6 MB / 0.5073 GB, free: 4.562 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002678/0.002678, allocations: 99.67 kB / 0.6065 GB, free: 24.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1714, allocations: 89.14 MB / 0.6936 GB, free: 4.246 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.4004/0.5719, allocations: 77.13 MB / 0.7689 GB, free: 7.543 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02346/0.5954, allocations: 18.9 MB / 0.7874 GB, free: 7.148 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004147/0.5996, allocations: 111.9 kB / 0.7875 GB, free: 7.148 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00365/0.6033, allocations: 1.248 MB / 0.7887 GB, free: 7.129 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.6141, allocations: 3.632 MB / 0.7922 GB, free: 6.824 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005598/0.6197, allocations: 2.072 MB / 0.7943 GB, free: 6.234 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.008434/0.6282, allocations: 6.666 MB / 0.8008 GB, free: 3.234 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00308/0.6313, allocations: 2.103 MB / 0.8028 GB, free: 2.297 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006205/0.6375, allocations: 2.309 MB / 0.8051 GB, free: 1.332 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003303/0.6409, allocations: 1.748 MB / 0.8068 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0005408/0.6414, allocations: 199 kB / 0.807 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005248/0.6467, allocations: 1.618 MB / 0.8086 GB, free: 144 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.648, allocations: 0.5782 MB / 0.8091 GB, free: 0 / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002812/0.6508, allocations: 1.256 MB / 0.8104 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008279/0.6591, allocations: 3.701 MB / 0.814 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.6592, allocations: 1.094 kB / 0.814 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.154e-06/0.6592, allocations: 0 / 0.814 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.607e-05/0.6592, allocations: 0 / 0.814 GB, free: 13.99 MB / 0.5606 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.006153/0.6654, allocations: 2.712 MB / 0.8166 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.6655, allocations: 9.188 kB / 0.8166 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000264/0.6657, allocations: 205.9 kB / 0.8168 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008392/0.6666, allocations: 267.9 kB / 0.8171 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003518/0.6701, allocations: 1.9 MB / 0.8189 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.094e-05/0.6702, allocations: 104.5 kB / 0.819 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002081/0.6704, allocations: 142.5 kB / 0.8192 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/0.6732, allocations: 1.521 MB / 0.8207 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.6732, allocations: 2.75 kB / 0.8207 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.6734, allocations: 57.75 kB / 0.8207 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.994e-05/0.6734, allocations: 43.67 kB / 0.8208 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00227/0.6757, allocations: 1.121 MB / 0.8218 GB, free: 8.648 MB / 0.5606 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.009311/0.685, allocations: 7.656 MB / 0.8293 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009648/0.686, allocations: 490.2 kB / 0.8298 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006287/0.6866, allocations: 330.7 kB / 0.8301 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/0.6877, allocations: 1.15 MB / 0.8312 GB, free: 104 kB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.6877, allocations: 50.08 kB / 0.8313 GB, free: 52 kB / 0.5606 GB Notification: Performance of pre-optimization done (n=59): time 2.415e-06/0.6877, allocations: 0 / 0.8313 GB, free: 52 kB / 0.5606 GB Notification: Performance of matching and sorting (n=59): time 0.002276/0.69, allocations: 0.9575 MB / 0.8322 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.6901, allocations: 61.72 kB / 0.8323 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/0.6922, allocations: 1.785 MB / 0.834 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.719e-05/0.6923, allocations: 43.05 kB / 0.8341 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007966/0.6931, allocations: 0.9385 MB / 0.835 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.6933, allocations: 216.8 kB / 0.8352 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002851/0.6936, allocations: 227.9 kB / 0.8354 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.6937, allocations: 350.4 kB / 0.8357 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006594/0.6944, allocations: 325.2 kB / 0.836 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009826/0.6954, allocations: 0.696 MB / 0.8367 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.697, allocations: 1.007 MB / 0.8377 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.331e-06/0.697, allocations: 9.062 kB / 0.8377 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002117/0.6991, allocations: 1.216 MB / 0.8389 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.6992, allocations: 15.05 kB / 0.8389 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.6992, allocations: 8.375 kB / 0.8389 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.6992, allocations: 17.06 kB / 0.8389 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009571/0.7002, allocations: 291.3 kB / 0.8392 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.999e-05/0.7002, allocations: 19.31 kB / 0.8392 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.7015, allocations: 165.1 kB / 0.8394 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.469e-05/0.7016, allocations: 52.05 kB / 0.8394 GB, free: 10.68 MB / 0.5762 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.0006362/0.7022, allocations: 453 kB / 0.8399 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.7025, allocations: 192.2 kB / 0.8401 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.7042, allocations: 0.8557 MB / 0.8409 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.7042, allocations: 11.47 kB / 0.8409 GB, free: 9.781 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.7042, allocations: 0 / 0.8409 GB, free: 9.781 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001333/0.7056, allocations: 0.7995 MB / 0.8417 GB, free: 9.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003834/0.7094, allocations: 2.446 MB / 0.8441 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.7094, allocations: 3.938 kB / 0.8441 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007392/0.7102, allocations: 180.6 kB / 0.8442 GB, free: 7.488 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.7102, allocations: 6.875 kB / 0.8443 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-05/0.7103, allocations: 16.09 kB / 0.8443 GB, free: 7.477 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.7103, allocations: 9.703 kB / 0.8443 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.7103, allocations: 0 / 0.8443 GB, free: 7.473 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.7126, allocations: 1.338 MB / 0.8456 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006122/0.7132, allocations: 368.6 kB / 0.8459 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/0.7134, allocations: 18.73 kB / 0.846 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009493/0.7144, allocations: 63.42 kB / 0.846 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.7145, allocations: 48.44 kB / 0.8461 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-05/0.7146, allocations: 39.97 kB / 0.8461 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001696/0.7163, allocations: 1.239 MB / 0.8473 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7163, allocations: 0 / 0.8473 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001756/0.7181, allocations: 0.6629 MB / 0.848 GB, free: 4.281 MB / 0.5762 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.003811/0.7219, allocations: 2.386 MB / 0.8503 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002024/0.7239, allocations: 0.898 MB / 0.8512 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.7239, allocations: 0 / 0.8512 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007346/0.7247, allocations: 355.9 kB / 0.8515 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005131/0.7298, allocations: 1.201 MB / 0.8527 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02122/0.751, allocations: 14.23 MB / 0.8666 GB, free: 236 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/0.7523, allocations: 1.405 MB / 0.8679 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001668/0.7539, allocations: 391.3 kB / 0.8683 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000999/0.7549, allocations: 0.7609 MB / 0.8691 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of SimCode: time 7.52e-07/0.755, allocations: 0 / 0.8691 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.111/0.866, allocations: 57.37 MB / 0.9251 GB, free: 5.043 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.018/9.884, allocations: 6.797 kB / 0.9251 GB, free: 5.039 MB / 0.6544 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)