Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 108 kB / 15.61 MB, free: 152 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.001383/0.001383, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.891/2.891, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 66.58 kB / 0.912 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3118, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.07068/0.3826, allocations: 77.17 MB / 1.144 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02589/0.4085, allocations: 18.9 MB / 1.162 GB, free: 10.01 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004121/0.4127, allocations: 115.2 kB / 1.162 GB, free: 9.895 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.003782/0.4165, allocations: 1.246 MB / 1.163 GB, free: 8.641 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01072/0.4273, allocations: 3.626 MB / 1.167 GB, free: 5 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.005472/0.4327, allocations: 2.067 MB / 1.169 GB, free: 2.949 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.008318/0.4411, allocations: 6.676 MB / 1.175 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003162/0.4443, allocations: 2.094 MB / 1.177 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005105/0.4494, allocations: 2.303 MB / 1.18 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003046/0.4524, allocations: 1.754 MB / 1.181 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0006195/0.4531, allocations: 200 kB / 1.182 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004313/0.4574, allocations: 1.61 MB / 1.183 GB, free: 4.246 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0007393/0.4581, allocations: 0.537 MB / 1.184 GB, free: 3.707 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001998/0.4602, allocations: 1.244 MB / 1.185 GB, free: 2.457 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.006755/0.4669, allocations: 3.692 MB / 1.189 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 1.113e-05/0.467, allocations: 8 kB / 1.189 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.355e-06/0.467, allocations: 0 / 1.189 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0001466/0.4671, allocations: 0 / 1.189 GB, free: 14.75 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.006831/0.474, allocations: 2.711 MB / 1.191 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.474, allocations: 12.03 kB / 1.191 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.4751, allocations: 265.9 kB / 1.191 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003768/0.4789, allocations: 1.902 MB / 1.193 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.479, allocations: 106.7 kB / 1.193 GB, free: 9.637 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002643/0.4793, allocations: 144 kB / 1.194 GB, free: 9.496 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00297/0.4823, allocations: 1.52 MB / 1.195 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.4823, allocations: 4 kB / 1.195 GB, free: 7.895 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.4825, allocations: 60 kB / 1.195 GB, free: 7.836 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-05/0.4825, allocations: 39.94 kB / 1.195 GB, free: 7.797 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003195/0.4857, allocations: 1.122 MB / 1.196 GB, free: 6.668 MB / 0.9512 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.01373/0.4995, allocations: 7.661 MB / 1.204 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.5006, allocations: 494 kB / 1.204 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007732/0.5014, allocations: 326.3 kB / 1.204 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001044/0.5025, allocations: 1.152 MB / 1.206 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/0.5026, allocations: 43.12 kB / 1.206 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=59): time 2.304e-06/0.5026, allocations: 0 / 1.206 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of matching and sorting (n=59): time 0.002803/0.5054, allocations: 0.9651 MB / 1.207 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.5054, allocations: 63.91 kB / 1.207 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/0.5086, allocations: 1.783 MB / 1.208 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.5088, allocations: 41.7 kB / 1.208 GB, free: 9.242 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001005/0.5098, allocations: 0.9278 MB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002763/0.5101, allocations: 216.9 kB / 1.21 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.5104, allocations: 230.7 kB / 1.21 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5106, allocations: 349.9 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007934/0.5114, allocations: 326.4 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.5125, allocations: 0.6938 MB / 1.211 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.5143, allocations: 1.008 MB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.5143, allocations: 4 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002843/0.5172, allocations: 1.218 MB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.5172, allocations: 12 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.5172, allocations: 11.94 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.54e-05/0.5173, allocations: 19.98 kB / 1.213 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.5183, allocations: 287.9 kB / 1.214 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.49e-05/0.5184, allocations: 19.94 kB / 1.214 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.5199, allocations: 167.4 kB / 1.214 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.462e-05/0.52, allocations: 51.98 kB / 1.214 GB, free: 3.406 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.0008017/0.5208, allocations: 449.3 kB / 1.214 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005111/0.5214, allocations: 193.7 kB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.5234, allocations: 0.8563 MB / 1.215 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/0.5234, allocations: 12 kB / 1.215 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.5234, allocations: 0 / 1.215 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00143/0.5249, allocations: 0.8034 MB / 1.216 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005249/0.5301, allocations: 2.447 MB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.5301, allocations: 3.938 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.531, allocations: 179.7 kB / 1.219 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/0.531, allocations: 4 kB / 1.219 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.973e-05/0.5311, allocations: 16 kB / 1.219 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.5311, allocations: 8.062 kB / 1.219 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.5311, allocations: 7.984 kB / 1.219 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.5339, allocations: 1.332 MB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000811/0.5347, allocations: 362.5 kB / 1.22 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003976/0.5351, allocations: 23.98 kB / 1.22 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.5363, allocations: 71.7 kB / 1.22 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.5364, allocations: 52.44 kB / 1.22 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.749e-05/0.5365, allocations: 31.97 kB / 1.22 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002149/0.5387, allocations: 1.239 MB / 1.222 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5387, allocations: 0 / 1.222 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002187/0.5409, allocations: 0.6513 MB / 1.222 GB, free: 10.45 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001407/0.5423, allocations: 0.6068 MB / 1.223 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002346/0.5447, allocations: 0.8901 MB / 1.224 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.5447, allocations: 0 / 1.224 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0008009/0.5455, allocations: 356.1 kB / 1.224 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006214/0.5517, allocations: 1.209 MB / 1.225 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0055/0.5572, allocations: 3.101 MB / 1.228 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001292/0.5586, allocations: 1.413 MB / 1.23 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.00187/0.5604, allocations: 380.1 kB / 1.23 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004716/0.5609, allocations: 147.4 kB / 1.23 GB, free: 2.324 MB / 0.9825 GB Notification: Performance of SimCode: time 8.81e-07/0.5609, allocations: 4 kB / 1.23 GB, free: 2.32 MB / 0.9825 GB Notification: Performance of Templates: time 0.6037/1.165, allocations: 41.77 MB / 1.271 GB, free: 168.4 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches