Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.004935/0.004935, allocations: 99.06 kB / 15.73 MB, free: 6.492 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.001281/0.001281, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002761/0.002761, allocations: 286.4 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.07/1.07, allocations: 178.6 MB / 0.5074 GB, free: 4.508 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002681/0.002681, allocations: 104.5 kB / 0.6943 GB, free: 3.617 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4757/0.4784, allocations: 89.14 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.05862/0.537, allocations: 41.57 MB / 0.8219 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01592/0.553, allocations: 10.4 MB / 0.8321 GB, free: 5.852 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.5551, allocations: 58.72 kB / 0.8321 GB, free: 5.828 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.5577, allocations: 0.6346 MB / 0.8328 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.006427/0.5642, allocations: 1.891 MB / 0.8346 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003461/0.5677, allocations: 1.179 MB / 0.8358 GB, free: 2.863 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005479/0.5732, allocations: 3.403 MB / 0.8391 GB, free: 0.8516 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001969/0.5752, allocations: 1.059 MB / 0.8401 GB, free: 192 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003433/0.5786, allocations: 1.243 MB / 0.8413 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/0.581, allocations: 0.8881 MB / 0.8422 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0004968/0.5816, allocations: 100.2 kB / 0.8423 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003176/0.5848, allocations: 0.86 MB / 0.8431 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0007107/0.5855, allocations: 272.2 kB / 0.8434 GB, free: 14.24 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002455/0.588, allocations: 0.6299 MB / 0.844 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006014/0.594, allocations: 1.94 MB / 0.8459 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.5941, allocations: 5.156 kB / 0.8459 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.034e-06/0.5941, allocations: 0 / 0.8459 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.796e-05/0.5941, allocations: 0 / 0.8459 GB, free: 12.54 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.00368/0.5978, allocations: 1.543 MB / 0.8474 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.5979, allocations: 14.09 kB / 0.8474 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000208/0.5981, allocations: 114.4 kB / 0.8475 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005092/0.5986, allocations: 151.8 kB / 0.8477 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002168/0.6008, allocations: 1.1 MB / 0.8488 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.963e-05/0.6009, allocations: 61.98 kB / 0.8488 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.601, allocations: 72 kB / 0.8489 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/0.6027, allocations: 0.7905 MB / 0.8497 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.6027, allocations: 0 / 0.8497 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.889e-05/0.6028, allocations: 31.98 kB / 0.8497 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.347e-05/0.6029, allocations: 23.94 kB / 0.8497 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.6042, allocations: 0.5711 MB / 0.8503 GB, free: 8.371 MB / 0.6075 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.00544/0.6096, allocations: 3.56 MB / 0.8537 GB, free: 4.582 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006432/0.6103, allocations: 259 kB / 0.854 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003621/0.6107, allocations: 172.8 kB / 0.8542 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005681/0.6113, allocations: 0.661 MB / 0.8548 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.6113, allocations: 30.56 kB / 0.8548 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/0.6113, allocations: 0 / 0.8548 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001418/0.6128, allocations: 0.5291 MB / 0.8554 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.6128, allocations: 55.41 kB / 0.8554 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.6143, allocations: 0.9417 MB / 0.8563 GB, free: 1.738 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.106e-05/0.6144, allocations: 33.7 kB / 0.8564 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004616/0.6148, allocations: 0.5043 MB / 0.8568 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.615, allocations: 119 kB / 0.857 GB, free: 1.074 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.6152, allocations: 114.1 kB / 0.8571 GB, free: 0.957 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.6153, allocations: 337.8 kB / 0.8574 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003763/0.6157, allocations: 165 kB / 0.8575 GB, free: 472 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005522/0.6163, allocations: 350.9 kB / 0.8579 GB, free: 44 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009093/0.6172, allocations: 0.5069 MB / 0.8584 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.6172, allocations: 8 kB / 0.8584 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001333/0.6185, allocations: 0.6216 MB / 0.859 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.6186, allocations: 9.875 kB / 0.859 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.6186, allocations: 4 kB / 0.859 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.6186, allocations: 8 kB / 0.859 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.6191, allocations: 123.9 kB / 0.8591 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.6191, allocations: 12.44 kB / 0.8591 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007534/0.6199, allocations: 95.36 kB / 0.8592 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.977e-05/0.62, allocations: 31.92 kB / 0.8593 GB, free: 14.55 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * 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.0004342/0.6204, allocations: 269.6 kB / 0.8595 GB, free: 14.28 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002582/0.6207, allocations: 107.3 kB / 0.8596 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.6218, allocations: 490.3 kB / 0.8601 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.6218, allocations: 4 kB / 0.8601 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.6218, allocations: 0 / 0.8601 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007579/0.6226, allocations: 453.2 kB / 0.8605 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002594/0.6252, allocations: 1.36 MB / 0.8619 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.487e-06/0.6252, allocations: 7.984 kB / 0.8619 GB, free: 11.78 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.6256, allocations: 79.98 kB / 0.8619 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.6256, allocations: 4 kB / 0.8619 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.121e-05/0.6256, allocations: 11.98 kB / 0.862 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.6256, allocations: 0 / 0.862 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.6256, allocations: 7.938 kB / 0.862 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.6271, allocations: 0.7644 MB / 0.8627 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004963/0.6276, allocations: 236.2 kB / 0.8629 GB, free: 10.63 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002273/0.6279, allocations: 8.062 kB / 0.8629 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006305/0.6285, allocations: 31.97 kB / 0.863 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.094e-05/0.6286, allocations: 31.89 kB / 0.863 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.156e-05/0.6286, allocations: 19.98 kB / 0.863 GB, free: 10.54 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001052/0.6297, allocations: 0.6549 MB / 0.8637 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6297, allocations: 0 / 0.8637 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001304/0.631, allocations: 343.3 kB / 0.864 GB, free: 9.543 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002673/0.6337, allocations: 1.603 MB / 0.8656 GB, free: 7.906 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009868/0.6347, allocations: 421.1 kB / 0.866 GB, free: 7.496 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6347, allocations: 448 / 0.866 GB, free: 7.496 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004121/0.6352, allocations: 195.7 kB / 0.8661 GB, free: 7.305 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/0.6383, allocations: 0.607 MB / 0.8667 GB, free: 6.715 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.6498, allocations: 6.85 MB / 0.8734 GB, free: 15.57 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007468/0.6506, allocations: 1.04 MB / 0.8744 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008/0.6514, allocations: 204 kB / 0.8746 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005416/0.6519, allocations: 371.2 kB / 0.875 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of SimCode: time 8.92e-07/0.652, allocations: 0 / 0.875 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07598/0.7279, allocations: 29.78 MB / 0.9041 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.889/10.62, allocations: 4.016 kB / 0.9041 GB, free: 0.6328 MB / 0.6544 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_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_FourPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)