Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.009506/0.009506, allocations: 98.64 kB / 15.73 MB, free: 6.449 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.001755/0.001755, allocations: 197.3 kB / 16.68 MB, free: 6.348 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.838/2.838, allocations: 437 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 55.91 kB / 1.019 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.355, allocations: 151.6 MB / 1.167 GB, free: 6.941 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04459/0.3996, allocations: 41.6 MB / 1.207 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0152/0.4149, allocations: 10.39 MB / 1.217 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002437/0.4174, allocations: 59.62 kB / 1.217 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.4193, allocations: 0.6404 MB / 1.218 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005659/0.425, allocations: 1.881 MB / 1.22 GB, free: 180 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003003/0.428, allocations: 1.18 MB / 1.221 GB, free: 15 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004612/0.4327, allocations: 3.399 MB / 1.224 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001476/0.4341, allocations: 1.06 MB / 1.225 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002844/0.437, allocations: 1.248 MB / 1.227 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.4381, allocations: 0.8827 MB / 1.227 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001442/0.4383, allocations: 100 kB / 1.228 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.4404, allocations: 0.8578 MB / 1.228 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002843/0.4407, allocations: 283 kB / 1.229 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007565/0.4414, allocations: 0.626 MB / 1.229 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002766/0.4442, allocations: 1.931 MB / 1.231 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4442, allocations: 0 / 1.231 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.393e-06/0.4442, allocations: 0 / 1.231 GB, free: 4.59 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.55e-05/0.4442, allocations: 4 kB / 1.231 GB, free: 4.586 MB / 0.9825 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.002546/0.4468, allocations: 1.548 MB / 1.233 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4468, allocations: 11.97 kB / 1.233 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003561/0.4472, allocations: 148 kB / 1.233 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.449, allocations: 1.112 MB / 1.234 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.331e-05/0.449, allocations: 54 kB / 1.234 GB, free: 1.617 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.757e-05/0.4491, allocations: 68 kB / 1.234 GB, free: 1.551 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.4504, allocations: 0.7944 MB / 1.235 GB, free: 0.7227 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.4505, allocations: 4 kB / 1.235 GB, free: 0.7188 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.363e-05/0.4506, allocations: 28 kB / 1.235 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/0.4506, allocations: 20 kB / 1.235 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001077/0.4517, allocations: 0.5711 MB / 1.235 GB, free: 100 kB / 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.004055/0.4557, allocations: 3.56 MB / 1.239 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005765/0.4563, allocations: 259.8 kB / 1.239 GB, free: 12.05 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.4567, allocations: 180.7 kB / 1.239 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005557/0.4573, allocations: 0.6571 MB / 1.24 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.4573, allocations: 38.56 kB / 1.24 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 2.665e-06/0.4573, allocations: 0 / 1.24 GB, free: 11.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31): time 0.001204/0.4585, allocations: 0.5176 MB / 1.241 GB, free: 10.49 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.4586, allocations: 63.39 kB / 1.241 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.4597, allocations: 0.9456 MB / 1.241 GB, free: 9.453 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.4598, allocations: 33.7 kB / 1.242 GB, free: 9.414 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003978/0.4602, allocations: 0.4965 MB / 1.242 GB, free: 8.91 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.4603, allocations: 123 kB / 1.242 GB, free: 8.789 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.4604, allocations: 118.1 kB / 1.242 GB, free: 8.668 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.4606, allocations: 325.9 kB / 1.243 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.461, allocations: 173 kB / 1.243 GB, free: 8.172 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004985/0.4615, allocations: 354.9 kB / 1.243 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008598/0.4623, allocations: 0.4993 MB / 1.244 GB, free: 7.18 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.4624, allocations: 4 kB / 1.244 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001119/0.4635, allocations: 0.6218 MB / 1.244 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.4635, allocations: 8 kB / 1.244 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.4635, allocations: 8.062 kB / 1.244 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.4636, allocations: 8 kB / 1.244 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004385/0.464, allocations: 127.8 kB / 1.244 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.464, allocations: 8 kB / 1.244 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005904/0.4646, allocations: 95.56 kB / 1.244 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.4647, allocations: 27.98 kB / 1.244 GB, free: 6.27 MB / 0.9981 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.000369/0.465, allocations: 273.8 kB / 1.245 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.4652, allocations: 103.3 kB / 1.245 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009798/0.4662, allocations: 488.3 kB / 1.245 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.4662, allocations: 8 kB / 1.245 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4662, allocations: 3.938 kB / 1.245 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007376/0.467, allocations: 453.5 kB / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.469, allocations: 1.367 MB / 1.247 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.4691, allocations: 4 kB / 1.247 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.4694, allocations: 75.89 kB / 1.247 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.4694, allocations: 4.094 kB / 1.247 GB, free: 3.406 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.4694, allocations: 12 kB / 1.247 GB, free: 3.395 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.381e-06/0.4695, allocations: 7.984 kB / 1.247 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.4695, allocations: 4 kB / 1.247 GB, free: 3.383 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.4708, allocations: 0.7638 MB / 1.248 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.4711, allocations: 232.2 kB / 1.248 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.4712, allocations: 8 kB / 1.248 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000498/0.4717, allocations: 36.03 kB / 1.248 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.929e-05/0.4718, allocations: 27.95 kB / 1.248 GB, free: 2.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-05/0.4718, allocations: 15.98 kB / 1.248 GB, free: 2.254 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008694/0.4727, allocations: 0.6588 MB / 1.249 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.743e-06/0.4727, allocations: 0 / 1.249 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000977/0.4737, allocations: 351.1 kB / 1.249 GB, free: 1.242 MB / 0.9981 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.0007619/0.4745, allocations: 388.3 kB / 1.25 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008769/0.4754, allocations: 416.8 kB / 1.25 GB, free: 472 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4754, allocations: 4.062 kB / 1.25 GB, free: 468 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003869/0.4758, allocations: 188.7 kB / 1.25 GB, free: 280 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.6234/1.099, allocations: 0.6074 MB / 1.251 GB, free: 82.61 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/1.102, allocations: 1.615 MB / 1.252 GB, free: 81.91 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007387/1.103, allocations: 1.035 MB / 1.253 GB, free: 81.21 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001009/1.104, allocations: 198.8 kB / 1.253 GB, free: 81.19 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/1.104, allocations: 80.27 kB / 1.254 GB, free: 81.19 MB / 0.9981 GB Notification: Performance of SimCode: time 2.554e-06/1.104, allocations: 1.5 kB / 1.254 GB, free: 81.19 MB / 0.9981 GB Notification: Performance of Templates: time 0.04947/1.154, allocations: 21.37 MB / 1.274 GB, free: 79.07 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches