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 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.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.001529/0.001529, allocations: 108 kB / 15.61 MB, free: 128 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.00178/0.00178, allocations: 195.5 kB / 16.53 MB, free: 6.668 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.868/2.868, allocations: 472.6 MB / 0.7452 GB, free: 4.555 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 65.42 kB / 0.9121 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3295, allocations: 159.9 MB / 1.068 GB, free: 10.35 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1687/0.4983, allocations: 149 MB / 1.214 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001514/0.4999, allocations: 1.141 MB / 1.215 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.842e-05/0.5, allocations: 4 kB / 1.215 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003558/0.5004, allocations: 47.69 kB / 1.215 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00072/0.5011, allocations: 306.6 kB / 1.215 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.5015, allocations: 167.3 kB / 1.215 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004121/0.5019, allocations: 219.4 kB / 1.216 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.502, allocations: 57.3 kB / 1.216 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.527e-05/0.5021, allocations: 51.8 kB / 1.216 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.997e-05/0.5022, allocations: 59.77 kB / 1.216 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.5022, allocations: 11.98 kB / 1.216 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000521/0.5028, allocations: 367.2 kB / 1.216 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.855e-05/0.5028, allocations: 39.84 kB / 1.216 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.151e-05/0.5029, allocations: 59.67 kB / 1.216 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004154/0.5034, allocations: 283.3 kB / 1.216 GB, free: 2 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.5034, allocations: 3.984 kB / 1.216 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5034, allocations: 0 / 1.216 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.5034, allocations: 0 / 1.216 GB, free: 1.996 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006688/0.5041, allocations: 466.8 kB / 1.217 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.5041, allocations: 11.97 kB / 1.217 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003017/0.5044, allocations: 44.72 kB / 1.217 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.5047, allocations: 214.1 kB / 1.217 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.5047, allocations: 7.938 kB / 1.217 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.5047, allocations: 12 kB / 1.217 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.505, allocations: 119.3 kB / 1.217 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.505, allocations: 0 / 1.217 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.505, allocations: 4 kB / 1.217 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.505, allocations: 8 kB / 1.217 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.5053, allocations: 87.94 kB / 1.217 GB, free: 0.9531 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007182/0.506, allocations: 452.2 kB / 1.218 GB, free: 472 kB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.5062, allocations: 94.47 kB / 1.218 GB, free: 368 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.5063, allocations: 36.95 kB / 1.218 GB, free: 328 kB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.5064, allocations: 3.984 kB / 1.218 GB, free: 324 kB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.5064, allocations: 34.56 kB / 1.218 GB, free: 280 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.5064, allocations: 4 kB / 1.218 GB, free: 276 kB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004364/0.5068, allocations: 141.4 kB / 1.218 GB, free: 128 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.5069, allocations: 51.41 kB / 1.218 GB, free: 64 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.5071, allocations: 191.3 kB / 1.218 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.5071, allocations: 25.7 kB / 1.218 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/0.5072, allocations: 112 kB / 1.218 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.5072, allocations: 31.59 kB / 1.218 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.304e-05/0.5073, allocations: 21.7 kB / 1.219 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.5074, allocations: 330.7 kB / 1.219 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.5075, allocations: 27.98 kB / 1.219 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.5076, allocations: 39.97 kB / 1.219 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.5078, allocations: 73.28 kB / 1.219 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5078, allocations: 4 kB / 1.219 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002589/0.5081, allocations: 121.4 kB / 1.219 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.5081, allocations: 5.719 kB / 1.219 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.5081, allocations: 0 / 1.219 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.5082, allocations: 0 / 1.219 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.5083, allocations: 23.92 kB / 1.219 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.5083, allocations: 0 / 1.219 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.357e-05/0.5084, allocations: 19.92 kB / 1.219 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.5084, allocations: 8 kB / 1.219 GB, free: 15.01 MB / 0.9825 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 9.67e-05/0.5085, allocations: 121.8 kB / 1.219 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.5086, allocations: 15.81 kB / 1.219 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003136/0.5089, allocations: 115 kB / 1.219 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.5089, allocations: 4 kB / 1.219 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.5089, allocations: 3.938 kB / 1.219 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.5089, allocations: 4 kB / 1.219 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.5092, allocations: 225.5 kB / 1.22 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.5092, allocations: 0 / 1.22 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.5093, allocations: 19.98 kB / 1.22 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.5093, allocations: 0 / 1.22 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.5093, allocations: 0 / 1.22 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.5093, allocations: 0 / 1.22 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5093, allocations: 0 / 1.22 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000292/0.5096, allocations: 215.2 kB / 1.22 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.976e-05/0.5097, allocations: 89.02 kB / 1.22 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.5097, allocations: 0 / 1.22 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.5098, allocations: 7.984 kB / 1.22 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.5099, allocations: 19.86 kB / 1.22 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.5099, allocations: 0 / 1.22 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001041/0.51, allocations: 135.2 kB / 1.22 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.51, allocations: 0 / 1.22 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002397/0.5102, allocations: 24 kB / 1.22 GB, free: 13.93 MB / 0.9825 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.0001707/0.5104, allocations: 103.8 kB / 1.22 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002805/0.5107, allocations: 87.8 kB / 1.22 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5107, allocations: 0 / 1.22 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.5108, allocations: 39.98 kB / 1.22 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.5113, allocations: 32.47 kB / 1.22 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000569/0.5119, allocations: 256.8 kB / 1.221 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.5122, allocations: 0.7156 MB / 1.221 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.264e-05/0.5122, allocations: 12.88 kB / 1.221 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.5123, allocations: 15.44 kB / 1.221 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.5123, allocations: 0 / 1.221 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of Templates: time 0.004521/0.5168, allocations: 1.591 MB / 1.223 GB, free: 11.04 MB / 0.9825 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/jenkins/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