Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.007725/0.007725, allocations: 103 kB / 15.73 MB, free: 6.051 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.001858/0.001858, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.445/2.445, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 63.66 kB / 0.9508 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2745, allocations: 140.4 MB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.07298/0.3475, allocations: 77.17 MB / 1.163 GB, free: 4.008 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02709/0.3747, allocations: 18.88 MB / 1.182 GB, free: 1.082 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005029/0.3797, allocations: 111.4 kB / 1.182 GB, free: 0.9727 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004221/0.384, allocations: 1.285 MB / 1.183 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01157/0.3956, allocations: 3.816 MB / 1.187 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.006112/0.4018, allocations: 2.094 MB / 1.189 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01217/0.414, allocations: 6.691 MB / 1.195 GB, free: 3.062 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003776/0.4178, allocations: 2.098 MB / 1.197 GB, free: 0.9141 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005928/0.4237, allocations: 2.383 MB / 1.2 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003757/0.4275, allocations: 1.75 MB / 1.201 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0007518/0.4283, allocations: 200 kB / 1.202 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005157/0.4334, allocations: 1.626 MB / 1.203 GB, free: 10.96 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.4346, allocations: 0.5294 MB / 1.204 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.00303/0.4377, allocations: 1.252 MB / 1.205 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.007494/0.4452, allocations: 3.727 MB / 1.209 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4452, allocations: 4 kB / 1.209 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4452, allocations: 0 / 1.209 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001226/0.4454, allocations: 0 / 1.209 GB, free: 5.426 MB / 0.9669 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.00521/0.4506, allocations: 2.715 MB / 1.211 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4506, allocations: 12.03 kB / 1.211 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006975/0.4513, allocations: 262 kB / 1.212 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00314/0.4545, allocations: 2.035 MB / 1.214 GB, free: 296 kB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.543e-05/0.4546, allocations: 106.7 kB / 1.214 GB, free: 188 kB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.4548, allocations: 140 kB / 1.214 GB, free: 48 kB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002571/0.4574, allocations: 1.524 MB / 1.215 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.4574, allocations: 0 / 1.215 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/0.4575, allocations: 60 kB / 1.215 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.053e-05/0.4576, allocations: 36 kB / 1.215 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002164/0.4598, allocations: 1.126 MB / 1.216 GB, free: 13.22 MB / 0.9825 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.008258/0.468, allocations: 7.599 MB / 1.224 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009515/0.469, allocations: 468.6 kB / 1.224 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005932/0.4696, allocations: 334.3 kB / 1.225 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008424/0.4705, allocations: 1.148 MB / 1.226 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.4705, allocations: 51.16 kB / 1.226 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=59): time 2.204e-06/0.4705, allocations: 0 / 1.226 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of matching and sorting (n=59): time 0.00216/0.4727, allocations: 0.9612 MB / 1.227 GB, free: 1.812 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.4727, allocations: 55.97 kB / 1.227 GB, free: 1.746 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002299/0.475, allocations: 1.787 MB / 1.229 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.704e-05/0.4751, allocations: 45.7 kB / 1.229 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007198/0.4758, allocations: 0.9278 MB / 1.229 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000217/0.4761, allocations: 216.9 kB / 1.23 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/0.4764, allocations: 234.6 kB / 1.23 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.4765, allocations: 349.9 kB / 1.23 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006568/0.4771, allocations: 330.4 kB / 1.231 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.4782, allocations: 0.6899 MB / 1.231 GB, free: 12.97 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.4798, allocations: 1.008 MB / 1.232 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.4798, allocations: 4 kB / 1.232 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002451/0.4823, allocations: 1.222 MB / 1.233 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.4823, allocations: 8 kB / 1.233 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.459e-05/0.4823, allocations: 16 kB / 1.233 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.526e-05/0.4824, allocations: 19.94 kB / 1.233 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.4834, allocations: 283.6 kB / 1.234 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-05/0.4834, allocations: 28.08 kB / 1.234 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.4847, allocations: 154.5 kB / 1.234 GB, free: 10.09 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.802e-05/0.4848, allocations: 55.98 kB / 1.234 GB, free: 10.03 MB / 0.9981 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.0007526/0.4855, allocations: 441.3 kB / 1.234 GB, free: 9.59 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002833/0.4858, allocations: 189.7 kB / 1.235 GB, free: 9.402 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/0.4875, allocations: 0.8707 MB / 1.235 GB, free: 8.527 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.4875, allocations: 4 kB / 1.235 GB, free: 8.523 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4875, allocations: 4 kB / 1.235 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001222/0.4888, allocations: 0.7957 MB / 1.236 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003778/0.4926, allocations: 2.455 MB / 1.239 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.4926, allocations: 7.938 kB / 1.239 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000743/0.4933, allocations: 176 kB / 1.239 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.4933, allocations: 4 kB / 1.239 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.172e-05/0.4934, allocations: 19.98 kB / 1.239 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.742e-06/0.4934, allocations: 7.938 kB / 1.239 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4934, allocations: 4 kB / 1.239 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002227/0.4956, allocations: 1.332 MB / 1.24 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000608/0.4963, allocations: 370.3 kB / 1.24 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.4965, allocations: 16 kB / 1.24 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008928/0.4974, allocations: 67.86 kB / 1.241 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.4975, allocations: 48.5 kB / 1.241 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.914e-05/0.4976, allocations: 35.97 kB / 1.241 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001705/0.4993, allocations: 1.239 MB / 1.242 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4993, allocations: 0 / 1.242 GB, free: 1.734 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001897/0.5012, allocations: 0.659 MB / 1.242 GB, free: 1.074 MB / 0.9981 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.001185/0.5024, allocations: 0.6087 MB / 1.243 GB, free: 484 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001652/0.504, allocations: 0.8152 MB / 1.244 GB, free: 15.66 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5041, allocations: 5.375 kB / 1.244 GB, free: 15.65 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0006891/0.5048, allocations: 363.4 kB / 1.244 GB, free: 15.3 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004389/0.5092, allocations: 1.192 MB / 1.245 GB, free: 14.13 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004576/0.5137, allocations: 3.054 MB / 1.248 GB, free: 11.02 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009196/0.5147, allocations: 1.405 MB / 1.25 GB, free: 9.574 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001298/0.516, allocations: 377.5 kB / 1.25 GB, free: 9.207 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.5163, allocations: 147.4 kB / 1.25 GB, free: 9.062 MB / 1.014 GB Notification: Performance of SimCode: time 1.012e-06/0.5163, allocations: 0 / 1.25 GB, free: 9.062 MB / 1.014 GB Notification: Performance of Templates: time 0.6964/1.213, allocations: 41.95 MB / 1.291 GB, free: 153.9 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches