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.001236/0.001236, allocations: 102.7 kB / 16.4 MB, free: 5.977 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.001223/0.001223, allocations: 190.8 kB / 17.34 MB, free: 5.586 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.59/2.59, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 67.89 kB / 1.055 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8929/0.8942, allocations: 157.4 MB / 1.208 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1583/1.053, allocations: 149 MB / 1.354 GB, free: 7.98 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001496/1.054, allocations: 1.125 MB / 1.355 GB, free: 6.852 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/1.054, allocations: 4 kB / 1.355 GB, free: 6.848 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0003644/1.055, allocations: 59.61 kB / 1.355 GB, free: 6.789 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0007808/1.055, allocations: 302.7 kB / 1.355 GB, free: 6.492 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/1.056, allocations: 167.3 kB / 1.356 GB, free: 6.328 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0004466/1.056, allocations: 223.2 kB / 1.356 GB, free: 6.109 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/1.056, allocations: 53.09 kB / 1.356 GB, free: 6.059 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 8.157e-05/1.057, allocations: 51.84 kB / 1.356 GB, free: 6.008 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 9.145e-05/1.057, allocations: 59.7 kB / 1.356 GB, free: 5.949 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/1.057, allocations: 15.94 kB / 1.356 GB, free: 5.934 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000574/1.057, allocations: 371.3 kB / 1.356 GB, free: 5.57 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.308e-05/1.057, allocations: 27.91 kB / 1.356 GB, free: 5.543 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 5.912e-05/1.057, allocations: 63.66 kB / 1.356 GB, free: 5.48 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0004517/1.058, allocations: 296.8 kB / 1.357 GB, free: 5.195 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/1.058, allocations: 0 / 1.357 GB, free: 5.195 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.014e-06/1.058, allocations: 0 / 1.357 GB, free: 5.195 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.275e-06/1.058, allocations: 0 / 1.357 GB, free: 5.195 MB / 1.076 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.0006746/1.059, allocations: 478.8 kB / 1.357 GB, free: 4.68 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/1.059, allocations: 8.031 kB / 1.357 GB, free: 4.672 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002908/1.059, allocations: 36.72 kB / 1.357 GB, free: 4.637 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/1.059, allocations: 204.1 kB / 1.357 GB, free: 4.398 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/1.059, allocations: 7.938 kB / 1.357 GB, free: 4.391 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/1.059, allocations: 12 kB / 1.357 GB, free: 4.379 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/1.06, allocations: 113.6 kB / 1.357 GB, free: 4.262 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/1.06, allocations: 7.984 kB / 1.357 GB, free: 4.254 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/1.06, allocations: 8 kB / 1.358 GB, free: 4.246 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/1.06, allocations: 3.938 kB / 1.358 GB, free: 4.242 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/1.06, allocations: 87.94 kB / 1.358 GB, free: 4.156 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006775/1.061, allocations: 460.1 kB / 1.358 GB, free: 3.656 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/1.061, allocations: 94.48 kB / 1.358 GB, free: 3.555 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/1.061, allocations: 40.94 kB / 1.358 GB, free: 3.512 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/1.061, allocations: 0 / 1.358 GB, free: 3.512 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/1.061, allocations: 34.56 kB / 1.358 GB, free: 3.469 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/1.061, allocations: 0 / 1.358 GB, free: 3.469 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.0004433/1.061, allocations: 149.4 kB / 1.358 GB, free: 3.316 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/1.061, allocations: 51.41 kB / 1.358 GB, free: 3.254 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/1.062, allocations: 184.1 kB / 1.359 GB, free: 3.066 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/1.062, allocations: 25.7 kB / 1.359 GB, free: 3.035 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 8.166e-05/1.062, allocations: 120 kB / 1.359 GB, free: 2.914 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/1.062, allocations: 19.72 kB / 1.359 GB, free: 2.895 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.722e-05/1.062, allocations: 25.66 kB / 1.359 GB, free: 2.863 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001079/1.062, allocations: 330.7 kB / 1.359 GB, free: 2.531 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/1.062, allocations: 35.97 kB / 1.359 GB, free: 2.496 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.912e-05/1.062, allocations: 31.97 kB / 1.359 GB, free: 2.465 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/1.062, allocations: 68.83 kB / 1.359 GB, free: 2.395 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/1.062, allocations: 0 / 1.359 GB, free: 2.395 MB / 1.076 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002661/1.063, allocations: 125.5 kB / 1.359 GB, free: 2.266 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/1.063, allocations: 4 kB / 1.359 GB, free: 2.262 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/1.063, allocations: 3.984 kB / 1.359 GB, free: 2.258 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/1.063, allocations: 0 / 1.359 GB, free: 2.258 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/1.063, allocations: 23.92 kB / 1.359 GB, free: 2.234 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/1.063, allocations: 0.5469 kB / 1.359 GB, free: 2.234 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.446e-05/1.063, allocations: 11.94 kB / 1.359 GB, free: 2.223 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/1.063, allocations: 4 kB / 1.359 GB, free: 2.219 MB / 1.076 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.0001016/1.063, allocations: 130.6 kB / 1.359 GB, free: 2.082 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.489e-05/1.063, allocations: 11.81 kB / 1.359 GB, free: 2.07 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003173/1.063, allocations: 123 kB / 1.36 GB, free: 1.945 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/1.063, allocations: 7.938 kB / 1.36 GB, free: 1.938 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/1.063, allocations: 0 / 1.36 GB, free: 1.938 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/1.063, allocations: 0 / 1.36 GB, free: 1.938 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/1.064, allocations: 233.4 kB / 1.36 GB, free: 1.66 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.064, allocations: 4 kB / 1.36 GB, free: 1.656 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/1.064, allocations: 15.98 kB / 1.36 GB, free: 1.641 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/1.064, allocations: 0 / 1.36 GB, free: 1.641 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-06/1.064, allocations: 4 kB / 1.36 GB, free: 1.637 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/1.064, allocations: 0 / 1.36 GB, free: 1.637 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.064, allocations: 0 / 1.36 GB, free: 1.637 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/1.064, allocations: 211.3 kB / 1.36 GB, free: 1.414 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 5.056e-05/1.064, allocations: 92.94 kB / 1.36 GB, free: 1.305 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/1.064, allocations: 4 kB / 1.36 GB, free: 1.301 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/1.064, allocations: 7.938 kB / 1.36 GB, free: 1.293 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.719e-05/1.064, allocations: 7.984 kB / 1.36 GB, free: 1.285 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/1.064, allocations: 4 kB / 1.36 GB, free: 1.281 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001047/1.065, allocations: 127.2 kB / 1.36 GB, free: 1.156 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.21e-07/1.065, allocations: 0 / 1.36 GB, free: 1.156 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002481/1.065, allocations: 24 kB / 1.36 GB, free: 1.133 MB / 1.076 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.0001897/1.065, allocations: 113.8 kB / 1.36 GB, free: 1.012 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002828/1.065, allocations: 75.89 kB / 1.361 GB, free: 0.9375 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.065, allocations: 4 kB / 1.361 GB, free: 0.9336 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/1.065, allocations: 43.91 kB / 1.361 GB, free: 0.8906 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/1.066, allocations: 29.47 kB / 1.361 GB, free: 0.8633 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005654/1.066, allocations: 290.3 kB / 1.361 GB, free: 0.5469 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/1.067, allocations: 0.7119 MB / 1.362 GB, free: 15.81 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/1.067, allocations: 11.44 kB / 1.362 GB, free: 15.8 MB / 1.092 GB Notification: Performance of SimCode: time 3.31e-07/1.067, allocations: 0 / 1.362 GB, free: 15.8 MB / 1.092 GB Notification: Performance of Templates: time 0.003217/1.07, allocations: 1.669 MB / 1.363 GB, free: 14.14 MB / 1.092 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