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.0008976/0.0008975, allocations: 97.78 kB / 16.02 MB, free: 76 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.001119/0.001119, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.397/1.397, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.819/2.819, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003939, allocations: 18.38 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3377, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1665/0.5042, allocations: 144.8 MB / 1.201 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001785/0.5061, allocations: 1.129 MB / 1.202 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001745/0.5063, allocations: 0 / 1.202 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003707/0.5067, allocations: 55.78 kB / 1.202 GB, free: 2.383 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001009/0.5077, allocations: 282.9 kB / 1.202 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.5082, allocations: 151.5 kB / 1.202 GB, free: 1.957 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000561/0.5087, allocations: 231.3 kB / 1.203 GB, free: 1.73 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.5089, allocations: 49.39 kB / 1.203 GB, free: 1.684 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.52e-05/0.509, allocations: 35.8 kB / 1.203 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.5091, allocations: 51.75 kB / 1.203 GB, free: 1.598 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.5092, allocations: 7.938 kB / 1.203 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006628/0.5098, allocations: 403.2 kB / 1.203 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.521e-05/0.5099, allocations: 27.83 kB / 1.203 GB, free: 1.168 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.754e-05/0.51, allocations: 73.39 kB / 1.203 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.5104, allocations: 195.6 kB / 1.203 GB, free: 0.8984 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.5104, allocations: 3.984 kB / 1.203 GB, free: 0.8945 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.405e-06/0.5104, allocations: 4 kB / 1.203 GB, free: 0.8906 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.5104, allocations: 0 / 1.203 GB, free: 0.8906 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.0007257/0.5111, allocations: 451 kB / 1.204 GB, free: 412 kB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.5112, allocations: 11.97 kB / 1.204 GB, free: 400 kB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003409/0.5115, allocations: 40.72 kB / 1.204 GB, free: 360 kB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002677/0.5118, allocations: 208.1 kB / 1.204 GB, free: 112 kB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.5118, allocations: 11.92 kB / 1.204 GB, free: 100 kB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.5119, allocations: 12 kB / 1.204 GB, free: 88 kB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000324/0.5122, allocations: 123.2 kB / 1.204 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.5122, allocations: 0 / 1.204 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.5122, allocations: 4 kB / 1.204 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.5123, allocations: 11.94 kB / 1.204 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002808/0.5125, allocations: 95.94 kB / 1.204 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007646/0.5133, allocations: 468 kB / 1.205 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002255/0.5136, allocations: 94.48 kB / 1.205 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.5137, allocations: 44.94 kB / 1.205 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.5137, allocations: 8 kB / 1.205 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.5138, allocations: 34.5 kB / 1.205 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.5138, allocations: 0 / 1.205 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004879/0.5143, allocations: 157.5 kB / 1.205 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.5143, allocations: 51.41 kB / 1.205 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.5145, allocations: 179.9 kB / 1.205 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.5145, allocations: 25.7 kB / 1.205 GB, free: 14.71 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.456e-05/0.5146, allocations: 123.9 kB / 1.205 GB, free: 14.58 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.5146, allocations: 23.66 kB / 1.205 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.5147, allocations: 17.72 kB / 1.205 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.5148, allocations: 322.8 kB / 1.206 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.5149, allocations: 39.97 kB / 1.206 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.515, allocations: 43.91 kB / 1.206 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002406/0.5153, allocations: 84.83 kB / 1.206 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.5153, allocations: 0 / 1.206 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002942/0.5156, allocations: 125.6 kB / 1.206 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.5156, allocations: 4 kB / 1.206 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5156, allocations: 0 / 1.206 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.5157, allocations: 0 / 1.206 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.5158, allocations: 19.98 kB / 1.206 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.495e-06/0.5158, allocations: 3.938 kB / 1.206 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.5159, allocations: 19.89 kB / 1.206 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.516, allocations: 4 kB / 1.206 GB, free: 13.86 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.000101/0.5161, allocations: 125.7 kB / 1.206 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.5161, allocations: 19.8 kB / 1.206 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003536/0.5165, allocations: 135 kB / 1.206 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.5165, allocations: 0 / 1.206 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.5165, allocations: 0 / 1.206 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.5165, allocations: 0 / 1.206 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002498/0.5167, allocations: 221.5 kB / 1.207 GB, free: 13.31 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5168, allocations: 3.984 kB / 1.207 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.5169, allocations: 19.94 kB / 1.207 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.5169, allocations: 3.984 kB / 1.207 GB, free: 13.28 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.5169, allocations: 11.94 kB / 1.207 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.5169, allocations: 0 / 1.207 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.5169, allocations: 4 kB / 1.207 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003391/0.5173, allocations: 220 kB / 1.207 GB, free: 13.04 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.436e-05/0.5173, allocations: 96.89 kB / 1.207 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.5174, allocations: 4 kB / 1.207 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.5175, allocations: 11.94 kB / 1.207 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.5175, allocations: 7.984 kB / 1.207 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.5176, allocations: 0 / 1.207 GB, free: 12.9 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001168/0.5177, allocations: 140.2 kB / 1.207 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5177, allocations: 3.938 kB / 1.207 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002487/0.5179, allocations: 20 kB / 1.207 GB, free: 12.74 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.0001804/0.5181, allocations: 111.2 kB / 1.207 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002948/0.5184, allocations: 91.95 kB / 1.207 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5184, allocations: 0 / 1.207 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.5186, allocations: 47.91 kB / 1.207 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.519, allocations: 27.44 kB / 1.207 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006031/0.5196, allocations: 343.1 kB / 1.208 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.5199, allocations: 0.7043 MB / 1.208 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.299e-05/0.52, allocations: 11.44 kB / 1.208 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of SimCode: time 3.81e-07/0.52, allocations: 0 / 1.208 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of Templates: time 0.003929/0.5239, allocations: 1.637 MB / 1.21 GB, free: 9.715 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