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.001566/0.001566, allocations: 112.5 kB / 15.73 MB, free: 76 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.00213/0.00213, allocations: 187.9 kB / 16.66 MB, free: 6.582 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.565/2.565, allocations: 390.3 MB / 0.6648 GB, free: 136 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 64.19 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3569, allocations: 140.4 MB / 1.087 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.06732/0.4243, allocations: 41.59 MB / 1.128 GB, free: 8.219 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01612/0.4405, allocations: 10.39 MB / 1.138 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002893/0.4434, allocations: 55.69 kB / 1.138 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002513/0.446, allocations: 0.6599 MB / 1.139 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006443/0.4525, allocations: 1.972 MB / 1.141 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.456, allocations: 1.192 MB / 1.142 GB, free: 9.926 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005306/0.4614, allocations: 3.408 MB / 1.145 GB, free: 6.512 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002004/0.4634, allocations: 1.076 MB / 1.146 GB, free: 5.418 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.4668, allocations: 1.266 MB / 1.148 GB, free: 4.152 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001677/0.4685, allocations: 0.8789 MB / 1.148 GB, free: 3.27 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003042/0.4688, allocations: 100 kB / 1.149 GB, free: 3.172 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002438/0.4713, allocations: 0.8617 MB / 1.149 GB, free: 2.309 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004414/0.4717, allocations: 279 kB / 1.15 GB, free: 2.035 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.4729, allocations: 0.626 MB / 1.15 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00369/0.4766, allocations: 1.935 MB / 1.152 GB, free: 15.46 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4767, allocations: 4 kB / 1.152 GB, free: 15.46 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.603e-06/0.4767, allocations: 0 / 1.152 GB, free: 15.46 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.465e-05/0.4767, allocations: 0 / 1.152 GB, free: 15.46 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.003179/0.4799, allocations: 1.548 MB / 1.154 GB, free: 13.86 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.48, allocations: 8.031 kB / 1.154 GB, free: 13.85 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001942/0.4802, allocations: 118.7 kB / 1.154 GB, free: 13.73 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004812/0.4807, allocations: 144.1 kB / 1.154 GB, free: 13.59 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.4828, allocations: 1.108 MB / 1.155 GB, free: 12.43 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.586e-05/0.4829, allocations: 61.98 kB / 1.155 GB, free: 12.38 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.483, allocations: 79.89 kB / 1.155 GB, free: 12.3 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.4844, allocations: 0.7905 MB / 1.156 GB, free: 11.47 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.4845, allocations: 3.938 kB / 1.156 GB, free: 11.46 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.683e-05/0.4846, allocations: 32 kB / 1.156 GB, free: 11.43 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.045e-05/0.4846, allocations: 19.98 kB / 1.156 GB, free: 11.41 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.4858, allocations: 0.5711 MB / 1.157 GB, free: 10.84 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.004367/0.4901, allocations: 3.549 MB / 1.16 GB, free: 7.066 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.4907, allocations: 262.4 kB / 1.16 GB, free: 6.801 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003458/0.4911, allocations: 181.3 kB / 1.16 GB, free: 6.621 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005119/0.4916, allocations: 0.6648 MB / 1.161 GB, free: 5.809 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.4917, allocations: 34.56 kB / 1.161 GB, free: 5.766 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 2.564e-06/0.4917, allocations: 0 / 1.161 GB, free: 5.766 MB / 0.92 GB Notification: Performance of matching and sorting (n=31): time 0.001263/0.4929, allocations: 0.5203 MB / 1.162 GB, free: 5.238 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.493, allocations: 51.41 kB / 1.162 GB, free: 5.176 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/0.4943, allocations: 0.9533 MB / 1.163 GB, free: 4.203 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.271e-05/0.4943, allocations: 33.7 kB / 1.163 GB, free: 4.164 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/0.4947, allocations: 0.4927 MB / 1.163 GB, free: 3.668 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.4948, allocations: 119 kB / 1.163 GB, free: 3.551 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.495, allocations: 114.1 kB / 1.163 GB, free: 3.434 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.4952, allocations: 341.9 kB / 1.164 GB, free: 3.094 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003584/0.4955, allocations: 161 kB / 1.164 GB, free: 2.934 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004738/0.496, allocations: 343 kB / 1.164 GB, free: 2.523 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008114/0.4968, allocations: 0.5147 MB / 1.165 GB, free: 1.938 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.4968, allocations: 7.938 kB / 1.165 GB, free: 1.93 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001225/0.4981, allocations: 0.6215 MB / 1.165 GB, free: 1.301 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.4981, allocations: 8 kB / 1.165 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.4981, allocations: 4 kB / 1.165 GB, free: 1.289 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.4982, allocations: 8 kB / 1.165 GB, free: 1.281 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/0.4986, allocations: 124.2 kB / 1.165 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.4986, allocations: 19.92 kB / 1.165 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006938/0.4993, allocations: 83.42 kB / 1.166 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.353e-05/0.4994, allocations: 27.94 kB / 1.166 GB, free: 1.031 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.0003869/0.4998, allocations: 277.6 kB / 1.166 GB, free: 0.75 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/0.5, allocations: 107.3 kB / 1.166 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.501, allocations: 491.7 kB / 1.166 GB, free: 160 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.5011, allocations: 7.984 kB / 1.166 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5011, allocations: 3.938 kB / 1.166 GB, free: 148 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007607/0.5018, allocations: 445.5 kB / 1.167 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.5041, allocations: 1.364 MB / 1.168 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.5042, allocations: 4 kB / 1.168 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003392/0.5045, allocations: 84.05 kB / 1.168 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/0.5045, allocations: 4 kB / 1.168 GB, free: 14.16 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.5046, allocations: 15.98 kB / 1.168 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.5046, allocations: 0 / 1.168 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5046, allocations: 4 kB / 1.168 GB, free: 14.14 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.5061, allocations: 0.7671 MB / 1.169 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004307/0.5065, allocations: 232.3 kB / 1.169 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001976/0.5067, allocations: 8.062 kB / 1.169 GB, free: 13.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.5073, allocations: 31.95 kB / 1.169 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.466e-05/0.5074, allocations: 23.97 kB / 1.169 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.5074, allocations: 19.98 kB / 1.169 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0009875/0.5084, allocations: 0.6549 MB / 1.17 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5084, allocations: 4 kB / 1.17 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001109/0.5096, allocations: 351.2 kB / 1.17 GB, free: 12 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.002399/0.512, allocations: 1.606 MB / 1.172 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001063/0.5131, allocations: 419.8 kB / 1.172 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5131, allocations: 1.375 kB / 1.172 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.5135, allocations: 193.1 kB / 1.172 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/0.5168, allocations: 0.6098 MB / 1.173 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.5288, allocations: 6.845 MB / 1.18 GB, free: 2.023 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007457/0.5296, allocations: 1.036 MB / 1.181 GB, free: 0.957 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0009108/0.5305, allocations: 196.3 kB / 1.181 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005441/0.5311, allocations: 375.3 kB / 1.181 GB, free: 408 kB / 0.9356 GB Notification: Performance of SimCode: time 1.022e-06/0.5311, allocations: 0 / 1.181 GB, free: 408 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06133/0.5925, allocations: 29.73 MB / 1.21 GB, free: 3 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.99/10.58, allocations: 4 kB / 1.21 GB, free: 2.996 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