Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.482/1.482, allocations: 249.3 MB / 261.8 MB, free: 5.934 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001192/0.001191, allocations: 176.9 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.792/1.792, allocations: 205.2 MB / 0.572 GB, free: 10.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008196/0.0008194, allocations: 82.53 kB / 0.6764 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.989e-05/3.994e-05, allocations: 8 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2374, allocations: 106.3 MB / 0.8918 GB, free: 6.652 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.232/6.47, allocations: 2.175 GB / 3.067 GB, free: 195.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/6.47, allocations: 87.94 kB / 3.067 GB, free: 195.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0806/6.551, allocations: 40.58 MB / 3.106 GB, free: 154 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.803e-06/6.551, allocations: 0 / 3.106 GB, free: 154 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.856e-05/6.551, allocations: 0 / 3.106 GB, free: 154 MB / 0.8698 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.0006405/6.551, allocations: 454.2 kB / 3.107 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/6.551, allocations: 8.031 kB / 3.107 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/6.552, allocations: 43.73 kB / 3.107 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/6.552, allocations: 198.9 kB / 3.107 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/6.552, allocations: 8 kB / 3.107 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/6.552, allocations: 15.94 kB / 3.107 GB, free: 153.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/6.552, allocations: 102.9 kB / 3.107 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/6.552, allocations: 0 / 3.107 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/6.552, allocations: 7.953 kB / 3.107 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/6.552, allocations: 4 kB / 3.107 GB, free: 153.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/6.552, allocations: 67.98 kB / 3.107 GB, free: 153 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008355/6.553, allocations: 456.2 kB / 3.108 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/6.553, allocations: 90.48 kB / 3.108 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.178e-05/6.554, allocations: 24.92 kB / 3.108 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/6.554, allocations: 0 / 3.108 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/6.554, allocations: 34.55 kB / 3.108 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/6.554, allocations: 3.938 kB / 3.108 GB, free: 152.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0002511/6.554, allocations: 85.64 kB / 3.108 GB, free: 152.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/6.554, allocations: 67.3 kB / 3.108 GB, free: 152.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/6.554, allocations: 159 kB / 3.108 GB, free: 152 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/6.554, allocations: 25.7 kB / 3.108 GB, free: 152 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.044e-05/6.554, allocations: 119.9 kB / 3.108 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/6.554, allocations: 23.66 kB / 3.108 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/6.554, allocations: 4 kB / 3.108 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.698e-05/6.554, allocations: 322.8 kB / 3.108 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.631e-05/6.554, allocations: 20 kB / 3.108 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.596e-05/6.554, allocations: 20 kB / 3.109 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.018e-05/6.554, allocations: 32.12 kB / 3.109 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/6.555, allocations: 0 / 3.109 GB, free: 151.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001556/6.555, allocations: 89.59 kB / 3.109 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/6.555, allocations: 4 kB / 3.109 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/6.555, allocations: 0 / 3.109 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/6.555, allocations: 0 / 3.109 GB, free: 151.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/6.555, allocations: 23.92 kB / 3.109 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/6.555, allocations: 0 / 3.109 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/6.555, allocations: 23.84 kB / 3.109 GB, free: 151.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/6.555, allocations: 4 kB / 3.109 GB, free: 151.3 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.549e-05/6.555, allocations: 105 kB / 3.109 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/6.555, allocations: 15.81 kB / 3.109 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001967/6.555, allocations: 99.14 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/6.555, allocations: 3.938 kB / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/6.555, allocations: 0 / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/6.555, allocations: 0 / 3.109 GB, free: 151.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/6.556, allocations: 233.5 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/6.556, allocations: 4 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/6.556, allocations: 19.98 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/6.556, allocations: 0 / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/6.556, allocations: 8 kB / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/6.556, allocations: 0 / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/6.556, allocations: 0 / 3.109 GB, free: 150.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/6.556, allocations: 187.8 kB / 3.109 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/6.556, allocations: 92.86 kB / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/6.556, allocations: 4 kB / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/6.556, allocations: 7.984 kB / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/6.556, allocations: 7.984 kB / 3.109 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/6.556, allocations: 4 kB / 3.109 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 9.414e-05/6.556, allocations: 136.3 kB / 3.11 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/6.556, allocations: 0 / 3.11 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003825/6.557, allocations: 55.92 kB / 3.11 GB, free: 150.3 MB / 0.8698 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009036/6.558, allocations: 0.556 MB / 3.11 GB, free: 149.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001667/6.558, allocations: 51.98 kB / 3.11 GB, free: 149.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/6.558, allocations: 0 / 3.11 GB, free: 149.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.32e-05/6.558, allocations: 31.94 kB / 3.11 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/6.558, allocations: 34.17 kB / 3.11 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004398/6.559, allocations: 165.8 kB / 3.11 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/6.559, allocations: 0.7082 MB / 3.111 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 8.619e-05/6.559, allocations: 16.88 kB / 3.111 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/6.559, allocations: 11.44 kB / 3.111 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.052e-06/6.559, allocations: 0 / 3.111 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.01412/6.573, allocations: 10.19 MB / 3.121 GB, free: 138.4 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches