Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_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.008648/0.008649, allocations: 104.2 kB / 15.73 MB, free: 6.039 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.001842/0.001842, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.5/1.5, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.438/2.438, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.06 kB / 0.9504 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.312, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04898/0.3611, allocations: 41.58 MB / 1.128 GB, free: 8.277 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01648/0.3776, allocations: 10.38 MB / 1.138 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00273/0.3804, allocations: 59.62 kB / 1.138 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002642/0.3831, allocations: 0.6365 MB / 1.139 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007373/0.3905, allocations: 1.89 MB / 1.141 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003929/0.3945, allocations: 1.182 MB / 1.142 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005766/0.4003, allocations: 3.398 MB / 1.145 GB, free: 6.695 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002149/0.4024, allocations: 1.066 MB / 1.146 GB, free: 5.613 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003622/0.4061, allocations: 1.239 MB / 1.147 GB, free: 4.375 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001782/0.4079, allocations: 0.8828 MB / 1.148 GB, free: 3.488 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003661/0.4083, allocations: 100 kB / 1.148 GB, free: 3.391 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002663/0.411, allocations: 0.8617 MB / 1.149 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0005056/0.4115, allocations: 283 kB / 1.15 GB, free: 2.25 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001316/0.4128, allocations: 0.6298 MB / 1.15 GB, free: 1.617 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003618/0.4164, allocations: 1.921 MB / 1.152 GB, free: 15.69 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 9.878e-06/0.4165, allocations: 0 / 1.152 GB, free: 15.69 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.325e-06/0.4165, allocations: 7.875 kB / 1.152 GB, free: 15.68 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.851e-05/0.4165, allocations: 0 / 1.152 GB, free: 15.68 MB / 0.92 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.002847/0.4194, allocations: 1.503 MB / 1.154 GB, free: 14.13 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4194, allocations: 15.97 kB / 1.154 GB, free: 14.11 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001329/0.4196, allocations: 114.7 kB / 1.154 GB, free: 13.99 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000383/0.42, allocations: 139.4 kB / 1.154 GB, free: 13.86 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001931/0.4219, allocations: 1.111 MB / 1.155 GB, free: 12.7 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.422, allocations: 50 kB / 1.155 GB, free: 12.65 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.4221, allocations: 72 kB / 1.155 GB, free: 12.58 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.4235, allocations: 0.7944 MB / 1.156 GB, free: 11.75 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.4235, allocations: 0 / 1.156 GB, free: 11.75 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.042e-05/0.4236, allocations: 35.98 kB / 1.156 GB, free: 11.71 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-05/0.4237, allocations: 19.94 kB / 1.156 GB, free: 11.7 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.4248, allocations: 0.5672 MB / 1.156 GB, free: 11.13 MB / 0.92 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.004271/0.4291, allocations: 3.551 MB / 1.16 GB, free: 7.348 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.4297, allocations: 254.4 kB / 1.16 GB, free: 7.09 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003416/0.43, allocations: 184.7 kB / 1.16 GB, free: 6.906 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005028/0.4305, allocations: 0.6609 MB / 1.161 GB, free: 6.098 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.4306, allocations: 38.56 kB / 1.161 GB, free: 6.051 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 2.825e-06/0.4306, allocations: 0 / 1.161 GB, free: 6.051 MB / 0.92 GB Notification: Performance of matching and sorting (n=31): time 0.001306/0.4319, allocations: 0.5124 MB / 1.161 GB, free: 5.531 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.432, allocations: 55.41 kB / 1.161 GB, free: 5.465 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.4332, allocations: 0.9456 MB / 1.162 GB, free: 4.5 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.669e-05/0.4333, allocations: 37.7 kB / 1.162 GB, free: 4.457 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.4337, allocations: 495.6 kB / 1.163 GB, free: 3.969 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.4338, allocations: 118.4 kB / 1.163 GB, free: 3.852 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.434, allocations: 118.1 kB / 1.163 GB, free: 3.73 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4341, allocations: 329.9 kB / 1.163 GB, free: 3.402 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/0.4345, allocations: 165 kB / 1.164 GB, free: 3.238 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.435, allocations: 346.9 kB / 1.164 GB, free: 2.824 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008719/0.4359, allocations: 0.5186 MB / 1.164 GB, free: 2.234 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.4359, allocations: 4 kB / 1.164 GB, free: 2.23 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001298/0.4372, allocations: 0.6093 MB / 1.165 GB, free: 1.613 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.4372, allocations: 8 kB / 1.165 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.4372, allocations: 4 kB / 1.165 GB, free: 1.602 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.4373, allocations: 11.94 kB / 1.165 GB, free: 1.59 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.4377, allocations: 132.3 kB / 1.165 GB, free: 1.461 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.905e-05/0.4378, allocations: 8 kB / 1.165 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006937/0.4385, allocations: 83.19 kB / 1.165 GB, free: 1.371 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.4385, allocations: 27.94 kB / 1.165 GB, free: 1.344 MB / 0.92 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.0004261/0.439, allocations: 281.6 kB / 1.166 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00024/0.4392, allocations: 102.7 kB / 1.166 GB, free: 0.957 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00106/0.4403, allocations: 488.2 kB / 1.166 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.439e-05/0.4403, allocations: 4 kB / 1.166 GB, free: 476 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4403, allocations: 0 / 1.166 GB, free: 476 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007595/0.4411, allocations: 457.5 kB / 1.167 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.4434, allocations: 1.352 MB / 1.168 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.4435, allocations: 8.156 kB / 1.168 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003476/0.4438, allocations: 83.81 kB / 1.168 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.297e-06/0.4438, allocations: 3.984 kB / 1.168 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.4439, allocations: 8 kB / 1.168 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.4439, allocations: 4 kB / 1.168 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4439, allocations: 4 kB / 1.168 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.4453, allocations: 0.7669 MB / 1.169 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004338/0.4458, allocations: 227.6 kB / 1.169 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/0.446, allocations: 12.05 kB / 1.169 GB, free: 13.4 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005596/0.4465, allocations: 31.97 kB / 1.169 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.4466, allocations: 27.91 kB / 1.169 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.4467, allocations: 19.98 kB / 1.169 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.00101/0.4477, allocations: 0.6627 MB / 1.17 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4477, allocations: 4.062 kB / 1.17 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00115/0.4488, allocations: 335.5 kB / 1.17 GB, free: 12.32 MB / 0.9356 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.002511/0.4514, allocations: 1.599 MB / 1.172 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000983/0.4524, allocations: 421 kB / 1.172 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4524, allocations: 0 / 1.172 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004176/0.4528, allocations: 193.1 kB / 1.172 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/0.4558, allocations: 0.609 MB / 1.173 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.468, allocations: 6.8 MB / 1.179 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008339/0.4689, allocations: 1.044 MB / 1.18 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0008563/0.4698, allocations: 196.4 kB / 1.181 GB, free: 1.137 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005102/0.4703, allocations: 375.2 kB / 1.181 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of SimCode: time 1.653e-06/0.4703, allocations: 0 / 1.181 GB, free: 0.7695 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06267/0.533, allocations: 29.73 MB / 1.21 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.8, allocations: 5.812 kB / 1.21 GB, free: 3.375 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches