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.001575/0.001575, 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.001909/0.001909, allocations: 195.3 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.26/2.26, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003275/0.003275, allocations: 279.1 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.569/1.569, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003095/0.003096, allocations: 104.5 kB / 0.5953 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2683, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.07488/0.3432, allocations: 41.54 MB / 0.7209 GB, free: 6.91 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02363/0.3669, allocations: 10.41 MB / 0.731 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003252/0.3702, allocations: 55.69 kB / 0.7311 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003955/0.3743, allocations: 0.6365 MB / 0.7317 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.008986/0.3833, allocations: 1.881 MB / 0.7335 GB, free: 9.891 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004862/0.3882, allocations: 1.182 MB / 0.7347 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.006406/0.3946, allocations: 3.389 MB / 0.738 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002735/0.3974, allocations: 1.064 MB / 0.739 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004251/0.4017, allocations: 1.23 MB / 0.7402 GB, free: 3.008 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002194/0.4039, allocations: 0.8828 MB / 0.7411 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0004603/0.4044, allocations: 100 kB / 0.7412 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00351/0.4079, allocations: 0.8539 MB / 0.742 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006922/0.4086, allocations: 283 kB / 0.7423 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001748/0.4104, allocations: 0.626 MB / 0.7429 GB, free: 268 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.005378/0.4158, allocations: 1.912 MB / 0.7448 GB, free: 14.34 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.4158, allocations: 4 kB / 0.7448 GB, free: 14.34 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.485e-06/0.4158, allocations: 0 / 0.7448 GB, free: 14.34 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.893e-05/0.4159, allocations: 4 kB / 0.7448 GB, free: 14.34 MB / 0.545 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.004659/0.4206, allocations: 1.511 MB / 0.7463 GB, free: 12.77 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.79e-05/0.4207, allocations: 12.03 kB / 0.7463 GB, free: 12.76 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003269/0.421, allocations: 118.7 kB / 0.7464 GB, free: 12.64 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000749/0.4218, allocations: 135.4 kB / 0.7465 GB, free: 12.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002865/0.4247, allocations: 1.041 MB / 0.7475 GB, free: 11.42 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.367e-05/0.4248, allocations: 61.92 kB / 0.7476 GB, free: 11.36 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.425, allocations: 68 kB / 0.7477 GB, free: 11.29 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002295/0.4273, allocations: 0.7944 MB / 0.7484 GB, free: 10.46 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.048e-05/0.4273, allocations: 11.83 kB / 0.7484 GB, free: 10.45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.4275, allocations: 32 kB / 0.7485 GB, free: 10.42 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.463e-05/0.4275, allocations: 16 kB / 0.7485 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.4294, allocations: 0.5711 MB / 0.749 GB, free: 9.832 MB / 0.545 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.006653/0.436, allocations: 3.575 MB / 0.7525 GB, free: 6.031 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008677/0.4369, allocations: 259.1 kB / 0.7528 GB, free: 5.77 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/0.4375, allocations: 173.3 kB / 0.753 GB, free: 5.598 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006922/0.4382, allocations: 0.6687 MB / 0.7536 GB, free: 4.781 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.4382, allocations: 38.56 kB / 0.7536 GB, free: 4.734 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 2.865e-06/0.4383, allocations: 0 / 0.7536 GB, free: 4.734 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.00198/0.4402, allocations: 0.5059 MB / 0.7541 GB, free: 4.223 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.4403, allocations: 63.34 kB / 0.7542 GB, free: 4.148 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/0.4427, allocations: 0.9456 MB / 0.7551 GB, free: 3.184 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.4428, allocations: 37.7 kB / 0.7552 GB, free: 3.141 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006278/0.4434, allocations: 495.6 kB / 0.7556 GB, free: 2.652 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.4436, allocations: 114.4 kB / 0.7557 GB, free: 2.539 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.4439, allocations: 118.1 kB / 0.7558 GB, free: 2.418 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.4441, allocations: 333.8 kB / 0.7562 GB, free: 2.086 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005566/0.4446, allocations: 165 kB / 0.7563 GB, free: 1.922 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007403/0.4454, allocations: 347.6 kB / 0.7567 GB, free: 1.512 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.4467, allocations: 0.5148 MB / 0.7572 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.4467, allocations: 0 / 0.7572 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002029/0.4488, allocations: 0.6175 MB / 0.7578 GB, free: 308 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.076e-05/0.4488, allocations: 8 kB / 0.7578 GB, free: 300 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.641e-05/0.4489, allocations: 4 kB / 0.7578 GB, free: 296 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.547e-05/0.4489, allocations: 8 kB / 0.7578 GB, free: 288 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000706/0.4496, allocations: 127.8 kB / 0.7579 GB, free: 160 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.312e-05/0.4497, allocations: 11.94 kB / 0.7579 GB, free: 148 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/0.4509, allocations: 79.19 kB / 0.758 GB, free: 68 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-05/0.451, allocations: 36.03 kB / 0.758 GB, free: 32 kB / 0.545 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.0006764/0.4517, allocations: 278.5 kB / 0.7583 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000434/0.4522, allocations: 98.78 kB / 0.7584 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.4538, allocations: 492.3 kB / 0.7589 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.4538, allocations: 4 kB / 0.7589 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4538, allocations: 3.938 kB / 0.7589 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001078/0.4549, allocations: 449.5 kB / 0.7593 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.4584, allocations: 1.373 MB / 0.7606 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/0.4585, allocations: 0 / 0.7606 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005227/0.459, allocations: 87.97 kB / 0.7607 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.908e-06/0.459, allocations: 4 kB / 0.7607 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.4591, allocations: 8 kB / 0.7607 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.4591, allocations: 4 kB / 0.7607 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.4591, allocations: 0 / 0.7607 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.4612, allocations: 0.7621 MB / 0.7615 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006057/0.4618, allocations: 231.7 kB / 0.7617 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002906/0.4621, allocations: 16.05 kB / 0.7617 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009517/0.4631, allocations: 32.03 kB / 0.7617 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.4632, allocations: 23.97 kB / 0.7618 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.071e-05/0.4633, allocations: 19.98 kB / 0.7618 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001613/0.465, allocations: 0.6627 MB / 0.7624 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.81e-07/0.465, allocations: 0 / 0.7624 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001819/0.4668, allocations: 331.5 kB / 0.7627 GB, free: 11.02 MB / 0.5606 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.003967/0.4708, allocations: 1.597 MB / 0.7643 GB, free: 9.391 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001672/0.4725, allocations: 444.6 kB / 0.7647 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.4725, allocations: 7.938 kB / 0.7647 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006051/0.4732, allocations: 188.1 kB / 0.7649 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00482/0.478, allocations: 0.6124 MB / 0.7655 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01717/0.4952, allocations: 7.217 MB / 0.7726 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4581/0.9534, allocations: 1.037 MB / 0.7736 GB, free: 93.87 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001724/0.9551, allocations: 195.2 kB / 0.7738 GB, free: 93.86 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008712/0.956, allocations: 374.5 kB / 0.7741 GB, free: 93.85 MB / 0.5606 GB Notification: Performance of SimCode: time 1.152e-06/0.9561, allocations: 0 / 0.7741 GB, free: 93.85 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/1.062, allocations: 29.6 MB / 0.803 GB, free: 83.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/13.32, allocations: 1.969 kB / 0.803 GB, free: 83.7 MB / 0.5606 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)