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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009014/0.0009013, allocations: 91.53 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.38/1.38, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.634/2.634, allocations: 437.8 MB / 0.7128 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004199/0.00042, allocations: 12 kB / 0.8735 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7166/0.717, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1621/0.8792, allocations: 144.8 MB / 1.165 GB, free: 14.48 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001534/0.8807, allocations: 1.125 MB / 1.166 GB, free: 13.35 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.64e-05/0.8809, allocations: 4 kB / 1.166 GB, free: 13.35 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003084/0.8812, allocations: 47.73 kB / 1.166 GB, free: 13.3 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0007963/0.882, allocations: 278.9 kB / 1.167 GB, free: 13.03 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.8823, allocations: 151.5 kB / 1.167 GB, free: 12.88 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004419/0.8828, allocations: 223.3 kB / 1.167 GB, free: 12.66 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.8829, allocations: 67.03 kB / 1.167 GB, free: 12.6 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.362e-05/0.883, allocations: 35.8 kB / 1.167 GB, free: 12.56 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.489e-05/0.8831, allocations: 43.72 kB / 1.167 GB, free: 12.52 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.8831, allocations: 4 kB / 1.167 GB, free: 12.52 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006265/0.8838, allocations: 419.1 kB / 1.167 GB, free: 12.11 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.248e-05/0.8839, allocations: 19.92 kB / 1.167 GB, free: 12.09 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.946e-05/0.8839, allocations: 81.31 kB / 1.168 GB, free: 12 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.8842, allocations: 191.6 kB / 1.168 GB, free: 11.81 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.8843, allocations: 0 / 1.168 GB, free: 11.81 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.863e-06/0.8843, allocations: 0 / 1.168 GB, free: 11.81 MB / 0.92 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.8843, allocations: 0 / 1.168 GB, free: 11.81 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.0006575/0.8849, allocations: 458.9 kB / 1.168 GB, free: 11.32 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.885, allocations: 8.031 kB / 1.168 GB, free: 11.31 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.8853, allocations: 40.72 kB / 1.168 GB, free: 11.27 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.8856, allocations: 208.1 kB / 1.168 GB, free: 11.03 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.8856, allocations: 7.938 kB / 1.168 GB, free: 11.02 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.8856, allocations: 12 kB / 1.168 GB, free: 11.01 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.8859, allocations: 123.1 kB / 1.169 GB, free: 10.88 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.8859, allocations: 3.938 kB / 1.169 GB, free: 10.88 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.8859, allocations: 8 kB / 1.169 GB, free: 10.87 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.886, allocations: 4 kB / 1.169 GB, free: 10.87 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.8862, allocations: 107.9 kB / 1.169 GB, free: 10.76 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007584/0.887, allocations: 452.1 kB / 1.169 GB, free: 10.27 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002315/0.8873, allocations: 102.5 kB / 1.169 GB, free: 10.16 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.8874, allocations: 40.95 kB / 1.169 GB, free: 10.12 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.8874, allocations: 3.984 kB / 1.169 GB, free: 10.11 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.8875, allocations: 42.5 kB / 1.169 GB, free: 10.06 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/0.8875, allocations: 4 kB / 1.169 GB, free: 10.06 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004926/0.888, allocations: 153.5 kB / 1.169 GB, free: 9.902 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.888, allocations: 55.41 kB / 1.169 GB, free: 9.836 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.8882, allocations: 182.2 kB / 1.17 GB, free: 9.648 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.8882, allocations: 25.7 kB / 1.17 GB, free: 9.617 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.381e-05/0.8883, allocations: 119.9 kB / 1.17 GB, free: 9.496 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.8884, allocations: 19.72 kB / 1.17 GB, free: 9.477 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/0.8884, allocations: 17.7 kB / 1.17 GB, free: 9.453 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.8885, allocations: 326.8 kB / 1.17 GB, free: 9.125 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.8887, allocations: 35.98 kB / 1.17 GB, free: 9.09 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.8888, allocations: 39.97 kB / 1.17 GB, free: 9.051 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.889, allocations: 88.81 kB / 1.17 GB, free: 8.961 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.889, allocations: 0 / 1.17 GB, free: 8.961 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003364/0.8894, allocations: 130 kB / 1.17 GB, free: 8.828 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.8894, allocations: 4 kB / 1.17 GB, free: 8.824 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.8894, allocations: 4 kB / 1.17 GB, free: 8.82 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.8894, allocations: 4 kB / 1.17 GB, free: 8.816 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.8896, allocations: 19.98 kB / 1.17 GB, free: 8.797 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.495e-06/0.8896, allocations: 4.062 kB / 1.17 GB, free: 8.793 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.857e-05/0.8897, allocations: 15.84 kB / 1.17 GB, free: 8.777 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.8897, allocations: 3.984 kB / 1.17 GB, free: 8.773 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 9.687e-05/0.8898, allocations: 126.3 kB / 1.171 GB, free: 8.641 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.8899, allocations: 11.91 kB / 1.171 GB, free: 8.629 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003599/0.8902, allocations: 142.9 kB / 1.171 GB, free: 8.484 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.8902, allocations: 4 kB / 1.171 GB, free: 8.48 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.8902, allocations: 0 / 1.171 GB, free: 8.48 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.8902, allocations: 4 kB / 1.171 GB, free: 8.477 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.8905, allocations: 221.5 kB / 1.171 GB, free: 8.211 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.8905, allocations: 0 / 1.171 GB, free: 8.211 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.8906, allocations: 19.98 kB / 1.171 GB, free: 8.191 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.8906, allocations: 0 / 1.171 GB, free: 8.191 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.8906, allocations: 4 kB / 1.171 GB, free: 8.188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.8906, allocations: 0 / 1.171 GB, free: 8.188 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.8907, allocations: 7.938 kB / 1.171 GB, free: 8.18 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.891, allocations: 223.2 kB / 1.171 GB, free: 7.945 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.8911, allocations: 96.84 kB / 1.171 GB, free: 7.832 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.8911, allocations: 4 kB / 1.171 GB, free: 7.828 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.8912, allocations: 7.984 kB / 1.171 GB, free: 7.82 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.8913, allocations: 8 kB / 1.171 GB, free: 7.812 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.8913, allocations: 0 / 1.171 GB, free: 7.812 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001253/0.8914, allocations: 141.7 kB / 1.171 GB, free: 7.676 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8914, allocations: 0 / 1.171 GB, free: 7.676 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002494/0.8917, allocations: 20 kB / 1.171 GB, free: 7.656 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.0001756/0.8919, allocations: 103.2 kB / 1.172 GB, free: 7.547 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003084/0.8922, allocations: 95.81 kB / 1.172 GB, free: 7.453 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.8922, allocations: 0 / 1.172 GB, free: 7.453 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.8923, allocations: 47.97 kB / 1.172 GB, free: 7.406 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.8928, allocations: 34.16 kB / 1.172 GB, free: 7.375 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006109/0.8934, allocations: 339.1 kB / 1.172 GB, free: 7.008 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.8937, allocations: 0.7082 MB / 1.173 GB, free: 6.273 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.288e-05/0.8938, allocations: 19.44 kB / 1.173 GB, free: 6.254 MB / 0.92 GB Notification: Performance of SimCode: time 4.71e-07/0.8938, allocations: 0 / 1.173 GB, free: 6.254 MB / 0.92 GB Notification: Performance of Templates: time 0.003474/0.8973, allocations: 1.632 MB / 1.174 GB, free: 4.629 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