Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001166/0.001166, allocations: 109.5 kB / 15.99 MB, free: 6.348 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.001091/0.001091, allocations: 192.2 kB / 16.91 MB, free: 6.184 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.341/1.341, allocations: 222.9 MB / 240.6 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.56/2.56, allocations: 437 MB / 0.7107 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001294, allocations: 59.91 kB / 0.8694 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6693/0.6706, allocations: 151.6 MB / 1.017 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1653/0.836, allocations: 146.9 MB / 1.161 GB, free: 15.28 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.8376, allocations: 1.133 MB / 1.162 GB, free: 14.14 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.8378, allocations: 0 / 1.162 GB, free: 14.14 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003822/0.8383, allocations: 51.73 kB / 1.162 GB, free: 14.09 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0008861/0.8392, allocations: 274.9 kB / 1.162 GB, free: 13.82 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000415/0.8396, allocations: 159.5 kB / 1.162 GB, free: 13.67 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.8401, allocations: 211.4 kB / 1.163 GB, free: 13.46 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.8403, allocations: 63.05 kB / 1.163 GB, free: 13.4 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.768e-05/0.8404, allocations: 47.8 kB / 1.163 GB, free: 13.36 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.8405, allocations: 63.69 kB / 1.163 GB, free: 13.29 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.8405, allocations: 12 kB / 1.163 GB, free: 13.28 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005994/0.8411, allocations: 387.2 kB / 1.163 GB, free: 12.9 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.332e-05/0.8412, allocations: 35.84 kB / 1.163 GB, free: 12.87 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.915e-05/0.8413, allocations: 67.67 kB / 1.163 GB, free: 12.8 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003837/0.8417, allocations: 199.6 kB / 1.164 GB, free: 12.61 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.8417, allocations: 0 / 1.164 GB, free: 12.61 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8417, allocations: 0 / 1.164 GB, free: 12.61 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.913e-06/0.8417, allocations: 0 / 1.164 GB, free: 12.61 MB / 0.92 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.000757/0.8425, allocations: 470.8 kB / 1.164 GB, free: 12.1 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.8425, allocations: 8.031 kB / 1.164 GB, free: 12.09 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003307/0.8429, allocations: 36.81 kB / 1.164 GB, free: 12.05 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.8431, allocations: 214.1 kB / 1.164 GB, free: 11.81 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.8431, allocations: 11.94 kB / 1.164 GB, free: 11.8 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.8432, allocations: 12 kB / 1.164 GB, free: 11.79 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.8435, allocations: 119.1 kB / 1.164 GB, free: 11.66 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.8435, allocations: 0 / 1.164 GB, free: 11.66 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.8435, allocations: 4 kB / 1.164 GB, free: 11.66 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.8435, allocations: 8 kB / 1.164 GB, free: 11.65 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/0.8438, allocations: 91.94 kB / 1.164 GB, free: 11.56 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007294/0.8445, allocations: 464 kB / 1.165 GB, free: 11.06 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.8448, allocations: 90.53 kB / 1.165 GB, free: 10.96 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.8449, allocations: 44.89 kB / 1.165 GB, free: 10.91 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.8449, allocations: 3.938 kB / 1.165 GB, free: 10.91 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.8449, allocations: 34.55 kB / 1.165 GB, free: 10.87 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.8449, allocations: 4 kB / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004481/0.8454, allocations: 141.5 kB / 1.165 GB, free: 10.72 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.8454, allocations: 51.41 kB / 1.165 GB, free: 10.66 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.8456, allocations: 179 kB / 1.165 GB, free: 10.47 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.8457, allocations: 29.7 kB / 1.165 GB, free: 10.44 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.674e-05/0.8457, allocations: 119.9 kB / 1.166 GB, free: 10.32 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.8458, allocations: 23.69 kB / 1.166 GB, free: 10.29 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-05/0.8458, allocations: 25.72 kB / 1.166 GB, free: 10.26 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001184/0.846, allocations: 326.8 kB / 1.166 GB, free: 9.934 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.8461, allocations: 31.97 kB / 1.166 GB, free: 9.902 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.616e-05/0.8462, allocations: 31.98 kB / 1.166 GB, free: 9.871 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002074/0.8464, allocations: 76.81 kB / 1.166 GB, free: 9.793 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.8464, allocations: 4 kB / 1.166 GB, free: 9.789 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002669/0.8467, allocations: 113.5 kB / 1.166 GB, free: 9.672 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.8467, allocations: 4 kB / 1.166 GB, free: 9.668 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.8467, allocations: 0 / 1.166 GB, free: 9.668 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.8467, allocations: 0 / 1.166 GB, free: 9.668 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.8469, allocations: 19.98 kB / 1.166 GB, free: 9.648 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.8469, allocations: 0 / 1.166 GB, free: 9.648 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.847, allocations: 15.83 kB / 1.166 GB, free: 9.633 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.847, allocations: 8 kB / 1.166 GB, free: 9.625 MB / 0.92 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.0001105/0.8471, allocations: 122.3 kB / 1.166 GB, free: 9.496 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/0.8472, allocations: 11.91 kB / 1.166 GB, free: 9.484 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003315/0.8475, allocations: 127 kB / 1.166 GB, free: 9.355 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.8475, allocations: 4 kB / 1.166 GB, free: 9.352 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.8475, allocations: 0 / 1.166 GB, free: 9.352 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.8475, allocations: 4 kB / 1.166 GB, free: 9.348 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.8478, allocations: 225.4 kB / 1.167 GB, free: 9.078 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.8478, allocations: 0 / 1.167 GB, free: 9.078 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.8479, allocations: 15.98 kB / 1.167 GB, free: 9.062 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.8479, allocations: 4 kB / 1.167 GB, free: 9.059 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.8479, allocations: 4 kB / 1.167 GB, free: 9.055 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.8479, allocations: 0 / 1.167 GB, free: 9.055 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.8479, allocations: 3.938 kB / 1.167 GB, free: 9.051 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.8483, allocations: 215.9 kB / 1.167 GB, free: 8.824 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.388e-05/0.8483, allocations: 92.86 kB / 1.167 GB, free: 8.715 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.8484, allocations: 4 kB / 1.167 GB, free: 8.711 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.8485, allocations: 7.984 kB / 1.167 GB, free: 8.703 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.8485, allocations: 7.984 kB / 1.167 GB, free: 8.695 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.8485, allocations: 3.938 kB / 1.167 GB, free: 8.691 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000124/0.8487, allocations: 144.7 kB / 1.167 GB, free: 8.551 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8487, allocations: 0 / 1.167 GB, free: 8.551 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000324/0.849, allocations: 20 kB / 1.167 GB, free: 8.531 MB / 0.92 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.0001875/0.8492, allocations: 115.2 kB / 1.167 GB, free: 8.41 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002844/0.8495, allocations: 83.88 kB / 1.167 GB, free: 8.328 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.8495, allocations: 4 kB / 1.167 GB, free: 8.324 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.8496, allocations: 35.98 kB / 1.167 GB, free: 8.289 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004645/0.8501, allocations: 34 kB / 1.167 GB, free: 8.258 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000614/0.8507, allocations: 318.5 kB / 1.168 GB, free: 7.914 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.851, allocations: 0.7196 MB / 1.168 GB, free: 7.168 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.122e-05/0.8511, allocations: 15.44 kB / 1.168 GB, free: 7.152 MB / 0.92 GB Notification: Performance of SimCode: time 2.31e-07/0.8511, allocations: 0 / 1.168 GB, free: 7.152 MB / 0.92 GB Notification: Performance of Templates: time 0.003903/0.855, allocations: 1.657 MB / 1.17 GB, free: 5.504 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches