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.001281/0.001281, allocations: 108 kB / 15.61 MB, free: 152 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.001307/0.001307, allocations: 191.7 kB / 16.53 MB, free: 6.664 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00242/0.00242, allocations: 282.7 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9721/0.9721, allocations: 169.2 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002595/0.002595, allocations: 108.6 kB / 0.5953 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1547, allocations: 86.97 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.08267/0.2374, allocations: 77.14 MB / 0.7556 GB, free: 3.195 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02993/0.2674, allocations: 18.89 MB / 0.7741 GB, free: 272 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003967/0.2714, allocations: 111.4 kB / 0.7742 GB, free: 160 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.3069/0.5784, allocations: 1.243 MB / 0.7754 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.008805/0.5873, allocations: 3.633 MB / 0.7789 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004472/0.5917, allocations: 2.078 MB / 0.781 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.008939/0.6007, allocations: 6.671 MB / 0.7875 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003503/0.6042, allocations: 2.088 MB / 0.7895 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005683/0.6099, allocations: 2.298 MB / 0.7918 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003585/0.6135, allocations: 1.755 MB / 0.7935 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0007325/0.6143, allocations: 197.6 kB / 0.7937 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004982/0.6193, allocations: 1.619 MB / 0.7952 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001217/0.6205, allocations: 0.5349 MB / 0.7958 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002879/0.6234, allocations: 1.253 MB / 0.797 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.007058/0.6305, allocations: 3.709 MB / 0.8006 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.6305, allocations: 4.281 kB / 0.8006 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.346e-06/0.6305, allocations: 0 / 0.8006 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001194/0.6307, allocations: 3.562 kB / 0.8006 GB, free: 6.176 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.007663/0.6383, allocations: 2.711 MB / 0.8033 GB, free: 20.88 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.6384, allocations: 13.38 kB / 0.8033 GB, free: 20.87 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004617/0.6388, allocations: 205.5 kB / 0.8035 GB, free: 20.83 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001125/0.64, allocations: 265.4 kB / 0.8037 GB, free: 20.71 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003465/0.6435, allocations: 1.901 MB / 0.8056 GB, free: 20.23 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.501e-05/0.6436, allocations: 112.5 kB / 0.8057 GB, free: 20.22 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.6438, allocations: 153.7 kB / 0.8058 GB, free: 20.21 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/0.6465, allocations: 1.511 MB / 0.8073 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.8e-05/0.6465, allocations: 4.531 kB / 0.8073 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.6467, allocations: 60.41 kB / 0.8074 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.816e-05/0.6467, allocations: 39.28 kB / 0.8074 GB, free: 19.98 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002098/0.6488, allocations: 1.123 MB / 0.8085 GB, free: 19.96 MB / 0.5762 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.008947/0.6578, allocations: 7.657 MB / 0.816 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009019/0.6587, allocations: 473.8 kB / 0.8164 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000596/0.6593, allocations: 341.3 kB / 0.8168 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001023/0.6603, allocations: 1.154 MB / 0.8179 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.6604, allocations: 44.06 kB / 0.8179 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=59): time 2.845e-06/0.6604, allocations: 0 / 0.8179 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=59): time 0.002234/0.6626, allocations: 0.9648 MB / 0.8189 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.6627, allocations: 57.59 kB / 0.8189 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.6646, allocations: 1.785 MB / 0.8207 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.367e-05/0.6647, allocations: 40.61 kB / 0.8207 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005495/0.6653, allocations: 0.9337 MB / 0.8216 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.6655, allocations: 212.6 kB / 0.8218 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/0.6657, allocations: 231.4 kB / 0.822 GB, free: 13.32 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001697/0.6659, allocations: 353.4 kB / 0.8224 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006104/0.6665, allocations: 325 kB / 0.8227 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007804/0.6673, allocations: 0.6917 MB / 0.8234 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.6686, allocations: 1.011 MB / 0.8244 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.6687, allocations: 5.719 kB / 0.8244 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00203/0.6707, allocations: 1.218 MB / 0.8255 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.6707, allocations: 15.91 kB / 0.8256 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.6707, allocations: 8.094 kB / 0.8256 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.6708, allocations: 16.94 kB / 0.8256 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009146/0.6717, allocations: 285.5 kB / 0.8259 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.934e-05/0.6717, allocations: 23.5 kB / 0.8259 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/0.6731, allocations: 172.1 kB / 0.826 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.537e-05/0.6731, allocations: 54.38 kB / 0.8261 GB, free: 11.17 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.0006612/0.6738, allocations: 434.2 kB / 0.8265 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/0.6741, allocations: 194.2 kB / 0.8267 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.6757, allocations: 0.8755 MB / 0.8276 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.6757, allocations: 5.5 kB / 0.8276 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.6757, allocations: 0 / 0.8276 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001216/0.6769, allocations: 0.7934 MB / 0.8283 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003894/0.6808, allocations: 2.454 MB / 0.8307 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.6808, allocations: 2.875 kB / 0.8307 GB, free: 8.363 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007404/0.6816, allocations: 184.6 kB / 0.8309 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.6816, allocations: 5.469 kB / 0.8309 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.6816, allocations: 17.69 kB / 0.8309 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.6817, allocations: 9.031 kB / 0.8309 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6817, allocations: 3.219 kB / 0.8309 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002376/0.684, allocations: 1.333 MB / 0.8322 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007098/0.6848, allocations: 368.1 kB / 0.8326 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002369/0.685, allocations: 19.47 kB / 0.8326 GB, free: 7.191 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009572/0.686, allocations: 63.78 kB / 0.8327 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.6861, allocations: 55.94 kB / 0.8327 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.83e-05/0.6862, allocations: 37.78 kB / 0.8328 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001619/0.6878, allocations: 1.234 MB / 0.834 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6878, allocations: 0 / 0.834 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002111/0.6899, allocations: 0.6585 MB / 0.8346 GB, free: 6.27 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.004176/0.6941, allocations: 2.384 MB / 0.8369 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002028/0.6962, allocations: 0.89 MB / 0.8378 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.6962, allocations: 0 / 0.8378 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007045/0.6969, allocations: 358.3 kB / 0.8381 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005477/0.7024, allocations: 1.208 MB / 0.8393 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/0.7217, allocations: 14.22 MB / 0.8532 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/0.7228, allocations: 1.416 MB / 0.8546 GB, free: 6.516 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001643/0.7245, allocations: 383.6 kB / 0.855 GB, free: 6.148 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009862/0.7255, allocations: 0.7696 MB / 0.8557 GB, free: 5.383 MB / 0.5919 GB Notification: Performance of SimCode: time 7.01e-07/0.7255, allocations: 0 / 0.8557 GB, free: 5.383 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1126/0.8381, allocations: 57.35 MB / 0.9117 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.001/9.839, allocations: 4.688 kB / 0.9117 GB, free: 12.93 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)