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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001505/0.001505, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001989/0.001989, allocations: 189.7 kB / 16.25 MB, free: 6.633 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.55/1.55, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.842/2.842, allocations: 472.6 MB / 0.7448 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 68.27 kB / 0.9116 GB, free: 33.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3584, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1605/0.5189, allocations: 146.9 MB / 1.211 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.5206, allocations: 1.133 MB / 1.212 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.5208, allocations: 4 kB / 1.212 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003634/0.5212, allocations: 43.73 kB / 1.212 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0008306/0.522, allocations: 286.9 kB / 1.213 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004068/0.5224, allocations: 151.5 kB / 1.213 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000478/0.5229, allocations: 207.4 kB / 1.213 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.5231, allocations: 65.34 kB / 1.213 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.033e-05/0.5232, allocations: 51.73 kB / 1.213 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.464e-05/0.5233, allocations: 63.75 kB / 1.213 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.5233, allocations: 12 kB / 1.213 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006009/0.5239, allocations: 387.2 kB / 1.213 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.531e-05/0.524, allocations: 39.73 kB / 1.214 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.578e-05/0.5241, allocations: 63.67 kB / 1.214 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005371/0.5246, allocations: 299.2 kB / 1.214 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.5247, allocations: 4 kB / 1.214 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5247, allocations: 0 / 1.214 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.812e-06/0.5247, allocations: 0 / 1.214 GB, free: 4.531 MB / 0.9669 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.0007201/0.5254, allocations: 466.9 kB / 1.214 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.5254, allocations: 12.03 kB / 1.214 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003139/0.5258, allocations: 36.72 kB / 1.214 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.526, allocations: 216 kB / 1.215 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.526, allocations: 11.94 kB / 1.215 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.5261, allocations: 8 kB / 1.215 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002901/0.5264, allocations: 109.6 kB / 1.215 GB, free: 3.598 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5264, allocations: 4 kB / 1.215 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.5264, allocations: 4 kB / 1.215 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.5264, allocations: 4 kB / 1.215 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.5267, allocations: 89.25 kB / 1.215 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007539/0.5275, allocations: 464.1 kB / 1.215 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.5277, allocations: 94.52 kB / 1.215 GB, free: 2.895 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.5278, allocations: 40.95 kB / 1.215 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.5279, allocations: 0 / 1.215 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.5279, allocations: 34.56 kB / 1.215 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.5279, allocations: 0 / 1.215 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004709/0.5284, allocations: 145.4 kB / 1.216 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.5284, allocations: 55.41 kB / 1.216 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.5286, allocations: 180.3 kB / 1.216 GB, free: 2.41 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.5287, allocations: 25.7 kB / 1.216 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.614e-05/0.5287, allocations: 124 kB / 1.216 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.5288, allocations: 19.66 kB / 1.216 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/0.5288, allocations: 21.7 kB / 1.216 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.529, allocations: 330.8 kB / 1.216 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.5291, allocations: 31.97 kB / 1.216 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.5292, allocations: 31.97 kB / 1.216 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.5294, allocations: 76.83 kB / 1.216 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5294, allocations: 0 / 1.216 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002835/0.5297, allocations: 129.4 kB / 1.217 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.5298, allocations: 4 kB / 1.217 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.5298, allocations: 0 / 1.217 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.5298, allocations: 0 / 1.217 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.5299, allocations: 19.98 kB / 1.217 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.5299, allocations: 0 / 1.217 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.5301, allocations: 8 kB / 1.217 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.5301, allocations: 7.922 kB / 1.217 GB, free: 1.562 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.0001153/0.5302, allocations: 129.7 kB / 1.217 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.5302, allocations: 15.75 kB / 1.217 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003433/0.5306, allocations: 131 kB / 1.217 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.5306, allocations: 0 / 1.217 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5306, allocations: 8 kB / 1.217 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.5306, allocations: 0 / 1.217 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.5309, allocations: 217.5 kB / 1.217 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.5309, allocations: 0 / 1.217 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.531, allocations: 15.98 kB / 1.217 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.531, allocations: 0 / 1.217 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.531, allocations: 4 kB / 1.217 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.5311, allocations: 0 / 1.217 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5311, allocations: 0 / 1.217 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003277/0.5314, allocations: 223.8 kB / 1.217 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.235e-05/0.5315, allocations: 81.02 kB / 1.217 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.5315, allocations: 8 kB / 1.217 GB, free: 0.6445 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.5317, allocations: 7.984 kB / 1.217 GB, free: 0.6367 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.5317, allocations: 3.938 kB / 1.217 GB, free: 0.6328 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.5317, allocations: 4 kB / 1.217 GB, free: 0.6289 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001289/0.5319, allocations: 144.7 kB / 1.218 GB, free: 500 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5319, allocations: 0 / 1.218 GB, free: 500 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002617/0.5321, allocations: 20 kB / 1.218 GB, free: 480 kB / 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.0001843/0.5323, allocations: 99.25 kB / 1.218 GB, free: 368 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003041/0.5326, allocations: 91.89 kB / 1.218 GB, free: 276 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5327, allocations: 4 kB / 1.218 GB, free: 272 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.5328, allocations: 48.05 kB / 1.218 GB, free: 224 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.5333, allocations: 39.81 kB / 1.218 GB, free: 184 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006112/0.5339, allocations: 284.9 kB / 1.218 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.5342, allocations: 0.7156 MB / 1.219 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.823e-05/0.5343, allocations: 8.875 kB / 1.219 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.5344, allocations: 15.44 kB / 1.219 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.5344, allocations: 0 / 1.219 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of Templates: time 0.004501/0.5389, allocations: 1.534 MB / 1.22 GB, free: 13.59 MB / 0.9825 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