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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001009/0.001008, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.00804/0.00804, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.455/1.455, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.714/2.714, allocations: 462.7 MB / 0.7364 GB, free: 304 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003609, allocations: 15.22 kB / 0.9028 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3605, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1479/0.5084, allocations: 144.8 MB / 1.2 GB, free: 4.059 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001326/0.5098, allocations: 1.129 MB / 1.201 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.353e-05/0.5099, allocations: 0 / 1.201 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.5102, allocations: 51.78 kB / 1.201 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00064/0.5108, allocations: 274.9 kB / 1.202 GB, free: 2.609 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000277/0.5111, allocations: 159.5 kB / 1.202 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.5115, allocations: 231.3 kB / 1.202 GB, free: 2.227 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.5117, allocations: 53.36 kB / 1.202 GB, free: 2.176 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 6.226e-05/0.5117, allocations: 35.8 kB / 1.202 GB, free: 2.141 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.677e-05/0.5118, allocations: 47.77 kB / 1.202 GB, free: 2.094 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.5118, allocations: 4 kB / 1.202 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005203/0.5124, allocations: 411.1 kB / 1.202 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.719e-05/0.5124, allocations: 27.84 kB / 1.202 GB, free: 1.66 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.18e-05/0.5125, allocations: 73.39 kB / 1.203 GB, free: 1.582 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003714/0.5129, allocations: 299.1 kB / 1.203 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.5129, allocations: 0 / 1.203 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5129, allocations: 0 / 1.203 GB, free: 1.289 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.5129, allocations: 0 / 1.203 GB, free: 1.289 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.0005671/0.5135, allocations: 447 kB / 1.203 GB, free: 0.8047 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.5135, allocations: 8.031 kB / 1.203 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002765/0.5138, allocations: 40.72 kB / 1.203 GB, free: 0.7578 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.514, allocations: 217.3 kB / 1.203 GB, free: 0.5078 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.514, allocations: 11.94 kB / 1.204 GB, free: 0.4961 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.5141, allocations: 8 kB / 1.204 GB, free: 500 kB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.5143, allocations: 131 kB / 1.204 GB, free: 364 kB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.5144, allocations: 0 / 1.204 GB, free: 364 kB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.5144, allocations: 4 kB / 1.204 GB, free: 360 kB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.5144, allocations: 4 kB / 1.204 GB, free: 356 kB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.5147, allocations: 103.9 kB / 1.204 GB, free: 252 kB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006511/0.5153, allocations: 452.1 kB / 1.204 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.5155, allocations: 98.53 kB / 1.204 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.5157, allocations: 44.89 kB / 1.204 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.5157, allocations: 3.984 kB / 1.204 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.5157, allocations: 38.56 kB / 1.204 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.5157, allocations: 0 / 1.204 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004453/0.5162, allocations: 149.5 kB / 1.204 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.363e-05/0.5162, allocations: 55.41 kB / 1.205 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.5164, allocations: 186.9 kB / 1.205 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.5164, allocations: 25.7 kB / 1.205 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/0.5165, allocations: 123.8 kB / 1.205 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.5165, allocations: 19.66 kB / 1.205 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.82e-05/0.5166, allocations: 17.7 kB / 1.205 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5167, allocations: 330.8 kB / 1.205 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.5168, allocations: 39.92 kB / 1.205 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.5169, allocations: 39.97 kB / 1.205 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.5171, allocations: 84.81 kB / 1.205 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5172, allocations: 0 / 1.205 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002818/0.5174, allocations: 130 kB / 1.206 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.5175, allocations: 4 kB / 1.206 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.5175, allocations: 0 / 1.206 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.5175, allocations: 4 kB / 1.206 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.5176, allocations: 23.92 kB / 1.206 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.5176, allocations: 0 / 1.206 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.336e-05/0.5177, allocations: 11.91 kB / 1.206 GB, free: 14.27 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.5178, allocations: 8.062 kB / 1.206 GB, free: 14.26 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 8.902e-05/0.5178, allocations: 125.7 kB / 1.206 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.5179, allocations: 19.75 kB / 1.206 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003291/0.5182, allocations: 139 kB / 1.206 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.5182, allocations: 0 / 1.206 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.5182, allocations: 0 / 1.206 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.5183, allocations: 4 kB / 1.206 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.5185, allocations: 225.5 kB / 1.206 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.5185, allocations: 4 kB / 1.206 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.5186, allocations: 19.98 kB / 1.206 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.5186, allocations: 0 / 1.206 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.5186, allocations: 3.984 kB / 1.206 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.5186, allocations: 0 / 1.206 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5186, allocations: 0 / 1.206 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/0.5189, allocations: 219.4 kB / 1.206 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.946e-05/0.519, allocations: 92.91 kB / 1.206 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.519, allocations: 4 kB / 1.206 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/0.5192, allocations: 15.98 kB / 1.206 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.5192, allocations: 11.94 kB / 1.206 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.5192, allocations: 0 / 1.206 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001144/0.5193, allocations: 143.2 kB / 1.207 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5193, allocations: 0 / 1.207 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002385/0.5196, allocations: 20 kB / 1.207 GB, free: 13.14 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.0001428/0.5197, allocations: 103 kB / 1.207 GB, free: 13.03 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002831/0.52, allocations: 95.88 kB / 1.207 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.52, allocations: 0 / 1.207 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.5202, allocations: 47.91 kB / 1.207 GB, free: 12.89 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.5206, allocations: 35.97 kB / 1.207 GB, free: 12.85 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004864/0.5211, allocations: 305.4 kB / 1.207 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.5213, allocations: 0.7043 MB / 1.208 GB, free: 11.8 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.476e-05/0.5214, allocations: 12.88 kB / 1.208 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.406e-05/0.5215, allocations: 15.44 kB / 1.208 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of SimCode: time 5.91e-07/0.5215, allocations: 0 / 1.208 GB, free: 11.77 MB / 0.9669 GB Notification: Performance of Templates: time 0.003947/0.5254, allocations: 1.463 MB / 1.209 GB, free: 10.32 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/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