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.001428/0.001434, allocations: 110.2 kB / 16.37 MB, free: 6.012 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.001482/0.001483, allocations: 189.5 kB / 17.31 MB, free: 5.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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.589/2.589, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 68.41 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3036, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.6824/0.986, allocations: 149 MB / 1.172 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.9875, allocations: 1.137 MB / 1.173 GB, free: 10.81 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.9877, allocations: 2.188 kB / 1.173 GB, free: 10.81 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.000383/0.9881, allocations: 58.77 kB / 1.173 GB, free: 10.78 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0008633/0.989, allocations: 303.7 kB / 1.174 GB, free: 10.63 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004143/0.9894, allocations: 162.2 kB / 1.174 GB, free: 10.55 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004148/0.9899, allocations: 217 kB / 1.174 GB, free: 10.45 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.99, allocations: 58.86 kB / 1.174 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.335e-05/0.9901, allocations: 54.52 kB / 1.174 GB, free: 10.4 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.644e-05/0.9902, allocations: 63.8 kB / 1.174 GB, free: 10.36 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.9902, allocations: 11.66 kB / 1.174 GB, free: 10.36 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005879/0.9908, allocations: 369.5 kB / 1.175 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.785e-05/0.9909, allocations: 27.7 kB / 1.175 GB, free: 10.22 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.492e-05/0.9909, allocations: 65.39 kB / 1.175 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0005355/0.9915, allocations: 299 kB / 1.175 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.9915, allocations: 0 / 1.175 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.963e-06/0.9915, allocations: 0 / 1.175 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.9915, allocations: 1.25 kB / 1.175 GB, free: 10.07 MB / 0.8887 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.000811/0.9923, allocations: 467.3 kB / 1.175 GB, free: 9.637 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.418e-05/0.9924, allocations: 9.469 kB / 1.175 GB, free: 9.637 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003323/0.9928, allocations: 40.38 kB / 1.175 GB, free: 9.625 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.9931, allocations: 211.2 kB / 1.176 GB, free: 9.402 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.9931, allocations: 12 kB / 1.176 GB, free: 9.395 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.9932, allocations: 14.64 kB / 1.176 GB, free: 9.387 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.9935, allocations: 115 kB / 1.176 GB, free: 9.324 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.9935, allocations: 0 / 1.176 GB, free: 9.324 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.857e-05/0.9935, allocations: 5.281 kB / 1.176 GB, free: 9.32 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.9935, allocations: 5.25 kB / 1.176 GB, free: 9.32 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.9938, allocations: 94.11 kB / 1.176 GB, free: 9.293 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.9946, allocations: 462.6 kB / 1.176 GB, free: 8.922 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.9949, allocations: 90.5 kB / 1.176 GB, free: 8.871 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.995, allocations: 41.84 kB / 1.176 GB, free: 8.852 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.995, allocations: 1.312 kB / 1.176 GB, free: 8.852 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.9951, allocations: 31.97 kB / 1.176 GB, free: 8.812 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.9951, allocations: 0 / 1.176 GB, free: 8.812 MB / 0.8887 GB Notification: Performance of matching and sorting (n=7): time 0.0004832/0.9956, allocations: 146.3 kB / 1.177 GB, free: 8.742 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.9956, allocations: 55.34 kB / 1.177 GB, free: 8.676 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.9958, allocations: 182.2 kB / 1.177 GB, free: 8.551 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.9958, allocations: 25.7 kB / 1.177 GB, free: 8.52 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.996, allocations: 118.4 kB / 1.177 GB, free: 8.41 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.996, allocations: 25.94 kB / 1.177 GB, free: 8.391 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.9961, allocations: 18.28 kB / 1.177 GB, free: 8.371 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.9962, allocations: 330.7 kB / 1.177 GB, free: 8.047 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.9963, allocations: 35.52 kB / 1.177 GB, free: 8.035 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.9964, allocations: 32.34 kB / 1.177 GB, free: 8.027 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.9967, allocations: 71.17 kB / 1.177 GB, free: 8 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.9967, allocations: 0 / 1.177 GB, free: 8 MB / 0.8887 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002813/0.997, allocations: 120.8 kB / 1.178 GB, free: 7.938 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.997, allocations: 11.47 kB / 1.178 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.997, allocations: 0 / 1.178 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.997, allocations: 1.219 kB / 1.178 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.9972, allocations: 18 kB / 1.178 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.9972, allocations: 0 / 1.178 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.484e-05/0.9973, allocations: 16.05 kB / 1.178 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.9973, allocations: 6.359 kB / 1.178 GB, free: 7.926 MB / 0.8887 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.0001045/0.9974, allocations: 125.1 kB / 1.178 GB, free: 7.801 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/0.9974, allocations: 14.16 kB / 1.178 GB, free: 7.793 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003251/0.9978, allocations: 128.1 kB / 1.178 GB, free: 7.727 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.9978, allocations: 1.094 kB / 1.178 GB, free: 7.727 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.9978, allocations: 0 / 1.178 GB, free: 7.727 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.9978, allocations: 0 / 1.178 GB, free: 7.727 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/0.998, allocations: 224.1 kB / 1.178 GB, free: 7.508 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.998, allocations: 0 / 1.178 GB, free: 7.508 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.9982, allocations: 17.73 kB / 1.178 GB, free: 7.508 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.9982, allocations: 1.094 kB / 1.178 GB, free: 7.508 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.9982, allocations: 7.938 kB / 1.178 GB, free: 7.5 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.9982, allocations: 1.203 kB / 1.178 GB, free: 7.5 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.9982, allocations: 3.984 kB / 1.178 GB, free: 7.496 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.9985, allocations: 212.1 kB / 1.178 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 7.031e-05/0.9986, allocations: 94.33 kB / 1.178 GB, free: 7.227 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.9986, allocations: 1.031 kB / 1.178 GB, free: 7.227 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.9987, allocations: 17.92 kB / 1.178 GB, free: 7.215 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.779e-05/0.9988, allocations: 8.766 kB / 1.178 GB, free: 7.211 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.134e-06/0.9988, allocations: 3.578 kB / 1.178 GB, free: 7.211 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0001194/0.9989, allocations: 135.6 kB / 1.179 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9989, allocations: 0 / 1.179 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002454/0.9992, allocations: 18.03 kB / 1.179 GB, free: 7.117 MB / 0.8887 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.0001642/0.9993, allocations: 110.7 kB / 1.179 GB, free: 7.023 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0002712/0.9996, allocations: 80.09 kB / 1.179 GB, free: 6.992 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.9996, allocations: 0 / 1.179 GB, free: 6.992 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.9997, allocations: 38.34 kB / 1.179 GB, free: 6.977 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/1, allocations: 37.94 kB / 1.179 GB, free: 6.957 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005552/1.001, allocations: 255.6 kB / 1.179 GB, free: 6.766 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/1.001, allocations: 0.7029 MB / 1.18 GB, free: 6.059 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 6.406e-05/1.001, allocations: 15.94 kB / 1.18 GB, free: 6.051 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/1.001, allocations: 13.31 kB / 1.18 GB, free: 6.043 MB / 0.8887 GB Notification: Performance of SimCode: time 4.21e-07/1.001, allocations: 3.938 kB / 1.18 GB, free: 6.039 MB / 0.8887 GB Notification: Performance of Templates: time 0.004479/1.006, allocations: 1.593 MB / 1.181 GB, free: 5.242 MB / 0.8887 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 -s cvode -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