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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001353/0.001353, 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.001567/0.001567, allocations: 196.5 kB / 16.14 MB, free: 6.711 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.37/1.37, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.705/2.705, allocations: 461.9 MB / 0.7342 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 65.16 kB / 0.8984 GB, free: 37.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3253, allocations: 157.4 MB / 1.052 GB, free: 8.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1583/0.4836, allocations: 146.7 MB / 1.195 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.4853, allocations: 1.141 MB / 1.197 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.4855, allocations: 7.938 kB / 1.197 GB, free: 4.457 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003618/0.4859, allocations: 55.78 kB / 1.197 GB, free: 4.402 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0008448/0.4867, allocations: 270.9 kB / 1.197 GB, free: 4.137 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.4871, allocations: 155.5 kB / 1.197 GB, free: 3.984 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.4876, allocations: 231.3 kB / 1.197 GB, free: 3.758 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.4878, allocations: 61.36 kB / 1.197 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.748e-05/0.4879, allocations: 39.8 kB / 1.197 GB, free: 3.66 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.122e-05/0.488, allocations: 55.77 kB / 1.197 GB, free: 3.605 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.488, allocations: 4 kB / 1.197 GB, free: 3.602 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006233/0.4886, allocations: 423 kB / 1.198 GB, free: 3.188 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.686e-05/0.4887, allocations: 23.91 kB / 1.198 GB, free: 3.164 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.676e-05/0.4888, allocations: 55.67 kB / 1.198 GB, free: 3.109 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004713/0.4892, allocations: 295.2 kB / 1.198 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4892, allocations: 0 / 1.198 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4893, allocations: 4 kB / 1.198 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.4893, allocations: 3.938 kB / 1.198 GB, free: 2.812 MB / 0.9512 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.0007134/0.49, allocations: 468 kB / 1.199 GB, free: 2.309 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.49, allocations: 8.031 kB / 1.199 GB, free: 2.301 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003319/0.4904, allocations: 36.72 kB / 1.199 GB, free: 2.266 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.4906, allocations: 212.1 kB / 1.199 GB, free: 2.02 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.4907, allocations: 11.94 kB / 1.199 GB, free: 2.008 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.4907, allocations: 11.98 kB / 1.199 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000286/0.491, allocations: 123.1 kB / 1.199 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.491, allocations: 0 / 1.199 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.491, allocations: 4 kB / 1.199 GB, free: 1.867 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.491, allocations: 4 kB / 1.199 GB, free: 1.863 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002781/0.4913, allocations: 95.88 kB / 1.199 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007107/0.492, allocations: 456.1 kB / 1.199 GB, free: 1.273 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/0.4923, allocations: 90.55 kB / 1.2 GB, free: 1.176 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.4924, allocations: 40.88 kB / 1.2 GB, free: 1.133 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.4925, allocations: 4 kB / 1.2 GB, free: 1.129 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.4925, allocations: 38.5 kB / 1.2 GB, free: 1.082 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.4925, allocations: 0 / 1.2 GB, free: 1.082 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004989/0.493, allocations: 141.5 kB / 1.2 GB, free: 0.9375 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.493, allocations: 51.41 kB / 1.2 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.4932, allocations: 182.9 kB / 1.2 GB, free: 0.6875 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.4933, allocations: 25.7 kB / 1.2 GB, free: 0.6562 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.902e-05/0.4934, allocations: 119.9 kB / 1.2 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.4934, allocations: 23.64 kB / 1.2 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/0.4934, allocations: 21.72 kB / 1.2 GB, free: 496 kB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4936, allocations: 322.8 kB / 1.2 GB, free: 164 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.4937, allocations: 43.97 kB / 1.201 GB, free: 120 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.4938, allocations: 27.98 kB / 1.201 GB, free: 92 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.494, allocations: 76.75 kB / 1.201 GB, free: 12 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.494, allocations: 0 / 1.201 GB, free: 12 kB / 0.9512 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000301/0.4943, allocations: 117.5 kB / 1.201 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.4944, allocations: 4 kB / 1.201 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4944, allocations: 4 kB / 1.201 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.4944, allocations: 0 / 1.201 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.4946, allocations: 23.98 kB / 1.201 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.4946, allocations: 0 / 1.201 GB, free: 15.86 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001136/0.4947, allocations: 15.89 kB / 1.201 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.4947, allocations: 3.938 kB / 1.201 GB, free: 15.84 MB / 0.9669 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.0001006/0.4948, allocations: 129.7 kB / 1.201 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.676e-05/0.4949, allocations: 11.91 kB / 1.201 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003452/0.4952, allocations: 126.9 kB / 1.201 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.4952, allocations: 0 / 1.201 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4952, allocations: 3.938 kB / 1.201 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.4952, allocations: 0 / 1.201 GB, free: 15.56 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002289/0.4955, allocations: 225.5 kB / 1.201 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4955, allocations: 0 / 1.201 GB, free: 15.29 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.4956, allocations: 19.92 kB / 1.201 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4956, allocations: 4 kB / 1.201 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.4956, allocations: 3.984 kB / 1.201 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.4956, allocations: 3.938 kB / 1.201 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4957, allocations: 0 / 1.201 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.496, allocations: 208 kB / 1.202 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.133e-05/0.496, allocations: 92.91 kB / 1.202 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.4961, allocations: 7.984 kB / 1.202 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.4962, allocations: 4 kB / 1.202 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.742e-05/0.4963, allocations: 11.98 kB / 1.202 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.4963, allocations: 0 / 1.202 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001345/0.4964, allocations: 131.2 kB / 1.202 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4964, allocations: 0 / 1.202 GB, free: 14.78 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002773/0.4967, allocations: 24 kB / 1.202 GB, free: 14.75 MB / 0.9669 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.0001871/0.4969, allocations: 111.2 kB / 1.202 GB, free: 14.63 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003031/0.4972, allocations: 79.95 kB / 1.202 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4972, allocations: 4 kB / 1.202 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.4974, allocations: 43.89 kB / 1.202 GB, free: 14.51 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.4978, allocations: 29.19 kB / 1.202 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006207/0.4985, allocations: 298.4 kB / 1.202 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.4988, allocations: 0.7043 MB / 1.203 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.568e-05/0.4989, allocations: 12.89 kB / 1.203 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.4989, allocations: 11.44 kB / 1.203 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of SimCode: time 2.124e-06/0.4989, allocations: 0 / 1.203 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of Templates: time 0.004629/0.5036, allocations: 1.487 MB / 1.204 GB, free: 11.94 MB / 0.9669 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 -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/jenkins/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