Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007352/0.007352, allocations: 101.8 kB / 15.88 MB, free: 5.867 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.001604/0.001604, allocations: 192.9 kB / 16.79 MB, free: 5.809 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.372/1.372, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.75/2.75, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 64.23 kB / 0.899 GB, free: 37.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3247, allocations: 157.4 MB / 1.053 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1621/0.4869, allocations: 146.7 MB / 1.196 GB, free: 4.988 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.4887, allocations: 1.149 MB / 1.197 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.4889, allocations: 3.938 kB / 1.197 GB, free: 3.832 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004037/0.4893, allocations: 51.8 kB / 1.197 GB, free: 3.781 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0009302/0.4903, allocations: 274.9 kB / 1.197 GB, free: 3.512 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.4907, allocations: 155.5 kB / 1.198 GB, free: 3.359 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005267/0.4913, allocations: 231.3 kB / 1.198 GB, free: 3.133 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.4914, allocations: 49.39 kB / 1.198 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.522e-05/0.4915, allocations: 47.78 kB / 1.198 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.4916, allocations: 63.69 kB / 1.198 GB, free: 2.977 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.4917, allocations: 4 kB / 1.198 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006945/0.4924, allocations: 411.1 kB / 1.198 GB, free: 2.57 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.596e-05/0.4925, allocations: 31.89 kB / 1.198 GB, free: 2.539 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.271e-05/0.4925, allocations: 55.67 kB / 1.198 GB, free: 2.484 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003629/0.4929, allocations: 195.6 kB / 1.199 GB, free: 2.293 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4929, allocations: 4 kB / 1.199 GB, free: 2.289 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.012e-06/0.4929, allocations: 4 kB / 1.199 GB, free: 2.285 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.493, allocations: 0 / 1.199 GB, free: 2.285 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008277/0.4938, allocations: 468.4 kB / 1.199 GB, free: 1.781 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4938, allocations: 12.03 kB / 1.199 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003678/0.4942, allocations: 32.72 kB / 1.199 GB, free: 1.738 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.4945, allocations: 216.1 kB / 1.199 GB, free: 1.488 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.4945, allocations: 15.88 kB / 1.199 GB, free: 1.473 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.4945, allocations: 8 kB / 1.199 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.4949, allocations: 119.5 kB / 1.2 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.4949, allocations: 0 / 1.2 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.4949, allocations: 4 kB / 1.2 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.4949, allocations: 4 kB / 1.2 GB, free: 1.336 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.4952, allocations: 99.88 kB / 1.2 GB, free: 1.238 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007336/0.4959, allocations: 452.1 kB / 1.2 GB, free: 0.7461 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002203/0.4962, allocations: 98.53 kB / 1.2 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.4963, allocations: 36.95 kB / 1.2 GB, free: 0.6016 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.4963, allocations: 4 kB / 1.2 GB, free: 0.5977 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.4964, allocations: 34.55 kB / 1.2 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.442e-06/0.4964, allocations: 0 / 1.2 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004587/0.4968, allocations: 149.5 kB / 1.2 GB, free: 412 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.4969, allocations: 55.41 kB / 1.2 GB, free: 344 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.4971, allocations: 175.9 kB / 1.201 GB, free: 160 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.4971, allocations: 25.7 kB / 1.201 GB, free: 128 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.4972, allocations: 123.9 kB / 1.201 GB, free: 0 / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.827e-05/0.4972, allocations: 23.81 kB / 1.201 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/0.4973, allocations: 21.72 kB / 1.201 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4974, allocations: 330.8 kB / 1.201 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.4975, allocations: 31.97 kB / 1.201 GB, free: 15.58 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.865e-05/0.4977, allocations: 27.98 kB / 1.201 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.4979, allocations: 76.75 kB / 1.201 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4979, allocations: 0 / 1.201 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002837/0.4982, allocations: 121.5 kB / 1.201 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.4982, allocations: 8.938 kB / 1.201 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.4982, allocations: 0 / 1.201 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.4982, allocations: 0 / 1.201 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.4984, allocations: 15.98 kB / 1.201 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.4984, allocations: 4 kB / 1.201 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.4985, allocations: 11.89 kB / 1.201 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.4985, allocations: 0 / 1.201 GB, free: 15.31 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 8 * 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.000109/0.4986, allocations: 137.7 kB / 1.201 GB, free: 15.17 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.613e-05/0.4987, allocations: 11.84 kB / 1.201 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000336/0.499, allocations: 126.9 kB / 1.202 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.499, allocations: 0 / 1.202 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.499, allocations: 0 / 1.202 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.499, allocations: 7.938 kB / 1.202 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.4993, allocations: 217.5 kB / 1.202 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4993, allocations: 0 / 1.202 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.4994, allocations: 19.98 kB / 1.202 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.4994, allocations: 0 / 1.202 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.4994, allocations: 4 kB / 1.202 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.4994, allocations: 7.938 kB / 1.202 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4995, allocations: 0 / 1.202 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.4998, allocations: 208 kB / 1.202 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.889e-05/0.4998, allocations: 88.92 kB / 1.202 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.4999, allocations: 12 kB / 1.202 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.5, allocations: 7.984 kB / 1.202 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.841e-05/0.5, allocations: 0 / 1.202 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.5001, allocations: 11.98 kB / 1.202 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001205/0.5002, allocations: 136.2 kB / 1.202 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5002, allocations: 0 / 1.202 GB, free: 14.24 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002477/0.5005, allocations: 20 kB / 1.202 GB, free: 14.22 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * 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 Backend phase and start with SimCode phase: time 0.000179/0.5006, allocations: 107.2 kB / 1.202 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002734/0.5009, allocations: 83.88 kB / 1.203 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5009, allocations: 0 / 1.203 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.5011, allocations: 36.22 kB / 1.203 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.5015, allocations: 36.06 kB / 1.203 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005986/0.5021, allocations: 332 kB / 1.203 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.5025, allocations: 0.7043 MB / 1.204 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.611e-05/0.5025, allocations: 11.44 kB / 1.204 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.5025, allocations: 0 / 1.204 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of Templates: time 0.003723/0.5062, allocations: 1.653 MB / 1.205 GB, free: 11.2 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches