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: 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_9_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_9_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.008088/0.008088, allocations: 105.5 kB / 15.74 MB, free: 5.594 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.00146/0.00146, allocations: 193.8 kB / 16.67 MB, free: 5.531 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.215/2.215, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.91 kB / 0.9508 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9262/0.9274, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04298/0.9704, allocations: 41.58 MB / 1.129 GB, free: 7.688 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01715/0.9876, allocations: 10.39 MB / 1.139 GB, free: 244 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002798/0.9905, allocations: 55.78 kB / 1.139 GB, free: 224 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001975/0.9925, allocations: 0.6424 MB / 1.139 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005926/0.9984, allocations: 1.881 MB / 1.141 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003449/1.002, allocations: 1.186 MB / 1.142 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005637/1.008, allocations: 3.393 MB / 1.146 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002037/1.01, allocations: 1.072 MB / 1.147 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003826/1.013, allocations: 1.265 MB / 1.148 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002136/1.016, allocations: 0.8876 MB / 1.149 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004782/1.016, allocations: 104.1 kB / 1.149 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003151/1.019, allocations: 0.859 MB / 1.15 GB, free: 10.55 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006769/1.02, allocations: 277.3 kB / 1.15 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001688/1.022, allocations: 0.6308 MB / 1.151 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.004985/1.027, allocations: 1.926 MB / 1.153 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/1.027, allocations: 0.6562 kB / 1.153 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.893e-06/1.027, allocations: 0 / 1.153 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.056e-05/1.027, allocations: 0 / 1.153 GB, free: 9.273 MB / 0.9044 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.0034/1.03, allocations: 1.509 MB / 1.154 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/1.03, allocations: 9.531 kB / 1.154 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004614/1.031, allocations: 134 kB / 1.154 GB, free: 8.188 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/1.033, allocations: 1.112 MB / 1.155 GB, free: 7.523 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/1.033, allocations: 50.59 kB / 1.155 GB, free: 7.504 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/1.033, allocations: 73.25 kB / 1.155 GB, free: 7.48 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/1.034, allocations: 0.7882 MB / 1.156 GB, free: 7.102 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/1.034, allocations: 5.828 kB / 1.156 GB, free: 7.098 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.936e-05/1.034, allocations: 34.81 kB / 1.156 GB, free: 7.07 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.946e-05/1.034, allocations: 19.77 kB / 1.156 GB, free: 7.07 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/1.036, allocations: 0.57 MB / 1.157 GB, free: 6.875 MB / 0.9044 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.004824/1.04, allocations: 3.553 MB / 1.16 GB, free: 4.281 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006177/1.041, allocations: 252.8 kB / 1.16 GB, free: 4.188 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003847/1.041, allocations: 184.7 kB / 1.161 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005778/1.042, allocations: 0.6588 MB / 1.161 GB, free: 3.359 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/1.042, allocations: 46.16 kB / 1.161 GB, free: 3.309 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=31): time 2.164e-06/1.042, allocations: 0 / 1.161 GB, free: 3.309 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31): time 0.00126/1.043, allocations: 0.5082 MB / 1.162 GB, free: 3.113 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/1.043, allocations: 56.3 kB / 1.162 GB, free: 3.051 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/1.045, allocations: 0.9436 MB / 1.163 GB, free: 2.652 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/1.045, allocations: 37.36 kB / 1.163 GB, free: 2.613 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004348/1.045, allocations: 499.7 kB / 1.163 GB, free: 2.223 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/1.045, allocations: 115.8 kB / 1.163 GB, free: 2.133 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/1.046, allocations: 119.5 kB / 1.163 GB, free: 2.066 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001395/1.046, allocations: 329.4 kB / 1.164 GB, free: 1.75 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003843/1.046, allocations: 162.3 kB / 1.164 GB, free: 1.699 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005187/1.047, allocations: 348.1 kB / 1.164 GB, free: 1.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008401/1.047, allocations: 0.519 MB / 1.165 GB, free: 1.07 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/1.047, allocations: 1.375 kB / 1.165 GB, free: 1.07 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001175/1.049, allocations: 0.6199 MB / 1.165 GB, free: 0.8086 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/1.049, allocations: 7.609 kB / 1.165 GB, free: 0.8086 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/1.049, allocations: 5.562 kB / 1.165 GB, free: 0.8086 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/1.049, allocations: 7.656 kB / 1.165 GB, free: 0.8086 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004818/1.049, allocations: 127.9 kB / 1.166 GB, free: 0.793 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.942e-05/1.049, allocations: 12.86 kB / 1.166 GB, free: 0.7891 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000757/1.05, allocations: 83.02 kB / 1.166 GB, free: 0.7422 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.774e-05/1.05, allocations: 26.77 kB / 1.166 GB, free: 0.7383 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.0004334/1.051, allocations: 280 kB / 1.166 GB, free: 0.5273 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/1.051, allocations: 99.25 kB / 1.166 GB, free: 488 kB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/1.052, allocations: 485.5 kB / 1.166 GB, free: 288 kB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/1.052, allocations: 4.719 kB / 1.166 GB, free: 288 kB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/1.052, allocations: 0 / 1.166 GB, free: 288 kB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007433/1.053, allocations: 452.8 kB / 1.167 GB, free: 28 kB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/1.055, allocations: 1.362 MB / 1.168 GB, free: 15.02 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/1.055, allocations: 6.438 kB / 1.168 GB, free: 15.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/1.055, allocations: 79.56 kB / 1.168 GB, free: 14.99 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/1.055, allocations: 6.906 kB / 1.168 GB, free: 14.99 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/1.055, allocations: 8.094 kB / 1.168 GB, free: 14.98 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/1.055, allocations: 11.25 kB / 1.168 GB, free: 14.98 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/1.055, allocations: 1.125 kB / 1.168 GB, free: 14.98 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/1.057, allocations: 0.7641 MB / 1.169 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003859/1.057, allocations: 229.8 kB / 1.169 GB, free: 14.28 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/1.057, allocations: 7.219 kB / 1.169 GB, free: 14.28 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/1.058, allocations: 34.22 kB / 1.169 GB, free: 14.26 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.119e-05/1.058, allocations: 28.09 kB / 1.169 GB, free: 14.24 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.406e-05/1.058, allocations: 20.86 kB / 1.169 GB, free: 14.23 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0009057/1.059, allocations: 0.6607 MB / 1.17 GB, free: 13.85 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.81e-07/1.059, allocations: 4 kB / 1.17 GB, free: 13.85 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001126/1.06, allocations: 332.8 kB / 1.17 GB, free: 13.77 MB / 0.92 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.0007896/1.061, allocations: 397.1 kB / 1.171 GB, free: 13.55 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009071/1.062, allocations: 417.5 kB / 1.171 GB, free: 13.37 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.062, allocations: 0 / 1.171 GB, free: 13.37 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003819/1.062, allocations: 185.7 kB / 1.171 GB, free: 13.29 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002539/1.065, allocations: 0.6086 MB / 1.172 GB, free: 12.97 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/1.068, allocations: 1.595 MB / 1.173 GB, free: 11.95 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008449/1.068, allocations: 1.04 MB / 1.175 GB, free: 11.09 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00102/1.069, allocations: 196.2 kB / 1.175 GB, free: 11 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/1.07, allocations: 80.27 kB / 1.175 GB, free: 10.98 MB / 0.92 GB Notification: Performance of SimCode: time 9.82e-07/1.07, allocations: 4 kB / 1.175 GB, free: 10.98 MB / 0.92 GB Notification: Performance of Templates: time 0.04477/1.114, allocations: 21.67 MB / 1.196 GB, free: 14.83 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (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 & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches