Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001182/0.001182, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.334/1.334, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.393/2.393, allocations: 390.2 MB / 0.6642 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.89 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7246/0.7258, allocations: 140.4 MB / 0.9489 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1633/0.8892, allocations: 146.7 MB / 1.092 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001598/0.8908, allocations: 1.137 MB / 1.093 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.371e-05/0.8909, allocations: 7.938 kB / 1.093 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.8913, allocations: 51.72 kB / 1.093 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006462/0.892, allocations: 282.9 kB / 1.094 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.8923, allocations: 143.5 kB / 1.094 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000454/0.8928, allocations: 235.3 kB / 1.094 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.8929, allocations: 59.06 kB / 1.094 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.919e-05/0.893, allocations: 43.84 kB / 1.094 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.133e-05/0.8931, allocations: 59.64 kB / 1.094 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.8931, allocations: 8 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006794/0.8938, allocations: 415.1 kB / 1.095 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.507e-05/0.8939, allocations: 19.91 kB / 1.095 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.13e-05/0.8939, allocations: 55.67 kB / 1.095 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.8944, allocations: 303.1 kB / 1.095 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.8944, allocations: 0 / 1.095 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.02e-07/0.8944, allocations: 11.94 kB / 1.095 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.8944, allocations: 0 / 1.095 GB, free: 12.04 MB / 0.8575 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.0006824/0.8951, allocations: 466.8 kB / 1.095 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.8952, allocations: 12.03 kB / 1.095 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/0.8955, allocations: 28.81 kB / 1.095 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.8957, allocations: 215.4 kB / 1.096 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.8957, allocations: 12 kB / 1.096 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.828e-05/0.8958, allocations: 4 kB / 1.096 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.896, allocations: 119.6 kB / 1.096 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.8961, allocations: 0 / 1.096 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.8961, allocations: 4 kB / 1.096 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.8961, allocations: 4 kB / 1.096 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/0.8964, allocations: 91.88 kB / 1.096 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007485/0.8971, allocations: 460.1 kB / 1.096 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.8974, allocations: 102.4 kB / 1.096 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.8975, allocations: 40.94 kB / 1.096 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.8975, allocations: 4 kB / 1.096 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.8976, allocations: 34.56 kB / 1.096 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.8976, allocations: 0 / 1.096 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004528/0.898, allocations: 149.4 kB / 1.097 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.8981, allocations: 59.39 kB / 1.097 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.8982, allocations: 170.9 kB / 1.097 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.8983, allocations: 25.7 kB / 1.097 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.8983, allocations: 116 kB / 1.097 GB, free: 9.762 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.8984, allocations: 23.7 kB / 1.097 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.8984, allocations: 21.62 kB / 1.097 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.8985, allocations: 330.8 kB / 1.097 GB, free: 9.379 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.8987, allocations: 39.91 kB / 1.097 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.8988, allocations: 27.98 kB / 1.097 GB, free: 9.312 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.899, allocations: 72.81 kB / 1.097 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.899, allocations: 0 / 1.097 GB, free: 9.238 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000267/0.8993, allocations: 121.5 kB / 1.098 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.8993, allocations: 12 kB / 1.098 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.8993, allocations: 0 / 1.098 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.8993, allocations: 0 / 1.098 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.8995, allocations: 15.98 kB / 1.098 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.8995, allocations: 4.547 kB / 1.098 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.936e-05/0.8996, allocations: 19.83 kB / 1.098 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.8996, allocations: 3.938 kB / 1.098 GB, free: 9.059 MB / 0.8575 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 8.784e-05/0.8997, allocations: 121.8 kB / 1.098 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.8997, allocations: 11.91 kB / 1.098 GB, free: 8.918 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003259/0.9001, allocations: 131 kB / 1.098 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.9001, allocations: 0 / 1.098 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.9001, allocations: 0 / 1.098 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.9001, allocations: 4 kB / 1.098 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002547/0.9004, allocations: 221.4 kB / 1.098 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.9004, allocations: 0 / 1.098 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.9005, allocations: 15.98 kB / 1.098 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.9005, allocations: 4 kB / 1.098 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.9005, allocations: 3.984 kB / 1.098 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.9005, allocations: 4 kB / 1.098 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.9005, allocations: 0 / 1.098 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003623/0.9009, allocations: 211.3 kB / 1.098 GB, free: 8.266 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.658e-05/0.901, allocations: 92.86 kB / 1.098 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.901, allocations: 3.984 kB / 1.098 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.9011, allocations: 12 kB / 1.098 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/0.9012, allocations: 11.92 kB / 1.098 GB, free: 8.129 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.9012, allocations: 4 kB / 1.098 GB, free: 8.125 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001098/0.9013, allocations: 133.2 kB / 1.099 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9013, allocations: 0 / 1.099 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002429/0.9016, allocations: 24 kB / 1.099 GB, free: 7.973 MB / 0.8575 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.0001798/0.9017, allocations: 109.1 kB / 1.099 GB, free: 7.859 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002801/0.902, allocations: 83.83 kB / 1.099 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.902, allocations: 0 / 1.099 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.9022, allocations: 39.97 kB / 1.099 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.9026, allocations: 27.98 kB / 1.099 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006181/0.9032, allocations: 298.5 kB / 1.099 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.9035, allocations: 0.7082 MB / 1.1 GB, free: 6.656 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.414e-05/0.9036, allocations: 12.88 kB / 1.1 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.9037, allocations: 15.44 kB / 1.1 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.9037, allocations: 0 / 1.1 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of Templates: time 0.00413/0.9078, allocations: 1.462 MB / 1.101 GB, free: 5.188 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches