Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, 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.001737/0.001736, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.426/1.426, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.905/2.905, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 61.75 kB / 0.9121 GB, free: 33.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.341, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04311/0.3842, allocations: 41.58 MB / 1.109 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01621/0.4005, allocations: 10.4 MB / 1.119 GB, free: 6.23 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001922/0.4024, allocations: 59.62 kB / 1.119 GB, free: 6.172 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002219/0.4047, allocations: 0.6404 MB / 1.12 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007903/0.4126, allocations: 1.87 MB / 1.121 GB, free: 3.648 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003611/0.4163, allocations: 1.186 MB / 1.123 GB, free: 2.473 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004546/0.4208, allocations: 3.397 MB / 1.126 GB, free: 15.06 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.4226, allocations: 1.052 MB / 1.127 GB, free: 13.99 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002935/0.4255, allocations: 1.227 MB / 1.128 GB, free: 12.76 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.4269, allocations: 0.8711 MB / 1.129 GB, free: 11.89 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.4271, allocations: 100 kB / 1.129 GB, free: 11.79 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001938/0.4291, allocations: 0.8656 MB / 1.13 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002661/0.4294, allocations: 283 kB / 1.13 GB, free: 10.64 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0006728/0.43, allocations: 0.6298 MB / 1.131 GB, free: 10.01 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002279/0.4323, allocations: 1.897 MB / 1.133 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.4323, allocations: 0 / 1.133 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4323, allocations: 0 / 1.133 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.4324, allocations: 0 / 1.133 GB, free: 8.109 MB / 0.8887 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.002255/0.4346, allocations: 1.522 MB / 1.134 GB, free: 6.535 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.4347, allocations: 8.031 kB / 1.134 GB, free: 6.527 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003561/0.435, allocations: 131.4 kB / 1.134 GB, free: 6.398 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.4366, allocations: 1.045 MB / 1.135 GB, free: 5.309 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.4366, allocations: 54 kB / 1.135 GB, free: 5.258 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.4367, allocations: 79.91 kB / 1.135 GB, free: 5.18 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.438, allocations: 0.7866 MB / 1.136 GB, free: 4.355 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.4381, allocations: 4 kB / 1.136 GB, free: 4.352 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.779e-05/0.4381, allocations: 32 kB / 1.136 GB, free: 4.32 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.4382, allocations: 23.97 kB / 1.136 GB, free: 4.297 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.4393, allocations: 0.5749 MB / 1.137 GB, free: 3.723 MB / 0.8887 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.003899/0.4432, allocations: 3.571 MB / 1.14 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.4438, allocations: 270.2 kB / 1.141 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/0.4442, allocations: 182 kB / 1.141 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000517/0.4447, allocations: 0.6532 MB / 1.141 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.4447, allocations: 42.55 kB / 1.141 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.4448, allocations: 0 / 1.141 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31): time 0.001228/0.446, allocations: 0.5124 MB / 1.142 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.446, allocations: 55.41 kB / 1.142 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.4472, allocations: 0.9495 MB / 1.143 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.851e-05/0.4472, allocations: 33.7 kB / 1.143 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004109/0.4477, allocations: 0.4918 MB / 1.143 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 9.891e-05/0.4478, allocations: 106.4 kB / 1.144 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.4479, allocations: 118 kB / 1.144 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.4481, allocations: 333.9 kB / 1.144 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003607/0.4484, allocations: 165 kB / 1.144 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004927/0.4489, allocations: 352.7 kB / 1.144 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008285/0.4498, allocations: 0.511 MB / 1.145 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4498, allocations: 0 / 1.145 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001133/0.4509, allocations: 0.6133 MB / 1.146 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.4509, allocations: 8 kB / 1.146 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.451, allocations: 4 kB / 1.146 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.451, allocations: 8 kB / 1.146 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.4514, allocations: 124.2 kB / 1.146 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/0.4515, allocations: 15.92 kB / 1.146 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005854/0.4521, allocations: 83.25 kB / 1.146 GB, free: 9.953 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.4521, allocations: 28 kB / 1.146 GB, free: 9.926 MB / 0.9044 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.0003429/0.4525, allocations: 277.5 kB / 1.146 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.4526, allocations: 98.78 kB / 1.146 GB, free: 9.547 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/0.4536, allocations: 496.5 kB / 1.147 GB, free: 9.055 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.4537, allocations: 4 kB / 1.147 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4537, allocations: 0 / 1.147 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007548/0.4544, allocations: 453.2 kB / 1.147 GB, free: 8.578 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002147/0.4566, allocations: 1.359 MB / 1.148 GB, free: 7.148 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4566, allocations: 64 / 1.148 GB, free: 7.148 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/0.457, allocations: 83.89 kB / 1.149 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.457, allocations: 11.86 kB / 1.149 GB, free: 7.055 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.457, allocations: 8 kB / 1.149 GB, free: 7.047 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.457, allocations: 4 kB / 1.149 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.457, allocations: 0 / 1.149 GB, free: 7.043 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.4583, allocations: 0.7635 MB / 1.149 GB, free: 6.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.4587, allocations: 235.6 kB / 1.15 GB, free: 6 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.4588, allocations: 8 kB / 1.15 GB, free: 5.992 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005113/0.4593, allocations: 35.95 kB / 1.15 GB, free: 5.957 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/0.4594, allocations: 23.97 kB / 1.15 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/0.4594, allocations: 19.98 kB / 1.15 GB, free: 5.914 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0008934/0.4603, allocations: 0.655 MB / 1.15 GB, free: 5.25 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4604, allocations: 4 kB / 1.15 GB, free: 5.246 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001008/0.4614, allocations: 335.4 kB / 1.151 GB, free: 4.918 MB / 0.9044 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.0007337/0.4621, allocations: 413.6 kB / 1.151 GB, free: 4.516 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009766/0.4631, allocations: 455.4 kB / 1.151 GB, free: 4.07 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4631, allocations: 0 / 1.151 GB, free: 4.07 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.4635, allocations: 186 kB / 1.152 GB, free: 3.891 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.4662, allocations: 0.6154 MB / 1.152 GB, free: 3.305 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/0.4686, allocations: 1.618 MB / 1.154 GB, free: 1.641 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006181/0.4693, allocations: 1.044 MB / 1.155 GB, free: 0.5664 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0007163/0.47, allocations: 199.8 kB / 1.155 GB, free: 380 kB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.4702, allocations: 83.42 kB / 1.155 GB, free: 296 kB / 0.9044 GB Notification: Performance of SimCode: time 3.91e-07/0.4702, allocations: 0 / 1.155 GB, free: 296 kB / 0.9044 GB Notification: Performance of Templates: time 0.03513/0.5053, allocations: 21.23 MB / 1.176 GB, free: 11.33 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches