Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 111 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002291/0.002291, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.77/2.77, allocations: 476.7 MB / 0.7672 GB, free: 5.223 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 67.91 kB / 1.112 GB, free: 1.496 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7766/0.7786, allocations: 169.9 MB / 1.278 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1915/0.9701, allocations: 152.3 MB / 1.427 GB, free: 4.66 MB / 1.123 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.9719, allocations: 1.158 MB / 1.428 GB, free: 3.5 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.972, allocations: 0 / 1.428 GB, free: 3.5 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.9724, allocations: 67.59 kB / 1.428 GB, free: 3.434 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.0008717/0.9733, allocations: 306.7 kB / 1.429 GB, free: 3.133 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.9737, allocations: 175.2 kB / 1.429 GB, free: 2.961 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.0004867/0.9742, allocations: 215.3 kB / 1.429 GB, free: 2.75 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.9743, allocations: 49.08 kB / 1.429 GB, free: 2.703 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 9.861e-05/0.9744, allocations: 55.73 kB / 1.429 GB, free: 2.648 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.9745, allocations: 55.75 kB / 1.429 GB, free: 2.594 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.9745, allocations: 12 kB / 1.429 GB, free: 2.582 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006403/0.9752, allocations: 391.1 kB / 1.429 GB, free: 2.199 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 6.723e-05/0.9752, allocations: 31.89 kB / 1.429 GB, free: 2.168 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 7.469e-05/0.9753, allocations: 67.67 kB / 1.43 GB, free: 2.102 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.0005231/0.9758, allocations: 295 kB / 1.43 GB, free: 1.812 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.9758, allocations: 4 kB / 1.43 GB, free: 1.809 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.624e-06/0.9758, allocations: 0 / 1.43 GB, free: 1.809 MB / 1.123 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.9758, allocations: 0 / 1.43 GB, free: 1.809 MB / 1.123 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.0007699/0.9766, allocations: 482.4 kB / 1.43 GB, free: 1.289 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.9767, allocations: 8.031 kB / 1.43 GB, free: 1.281 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.924e-05/0.9767, allocations: 42.75 kB / 1.43 GB, free: 1.23 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005019/0.9772, allocations: 48.73 kB / 1.43 GB, free: 1.184 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.9775, allocations: 226.1 kB / 1.431 GB, free: 0.9258 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.9775, allocations: 8 kB / 1.431 GB, free: 0.918 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.9775, allocations: 8 kB / 1.431 GB, free: 0.9102 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.9778, allocations: 121.5 kB / 1.431 GB, free: 0.7852 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.9778, allocations: 0 / 1.431 GB, free: 0.7852 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.9779, allocations: 4 kB / 1.431 GB, free: 0.7812 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.9779, allocations: 4 kB / 1.431 GB, free: 0.7773 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002787/0.9781, allocations: 93.69 kB / 1.431 GB, free: 0.6875 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007518/0.9789, allocations: 448.3 kB / 1.431 GB, free: 204 kB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.9791, allocations: 86.53 kB / 1.431 GB, free: 108 kB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.9793, allocations: 48.88 kB / 1.431 GB, free: 56 kB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.9793, allocations: 0 / 1.431 GB, free: 56 kB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.9793, allocations: 34.56 kB / 1.431 GB, free: 12 kB / 1.123 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.9793, allocations: 0 / 1.431 GB, free: 12 kB / 1.123 GB Notification: Performance of matching and sorting (n=7): time 0.0005127/0.9798, allocations: 133.6 kB / 1.432 GB, free: 15.87 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.9799, allocations: 63.33 kB / 1.432 GB, free: 15.8 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.9801, allocations: 187.6 kB / 1.432 GB, free: 15.61 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.9801, allocations: 25.7 kB / 1.432 GB, free: 15.57 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 8.642e-05/0.9802, allocations: 116 kB / 1.432 GB, free: 15.46 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 2.649e-05/0.9802, allocations: 27.78 kB / 1.432 GB, free: 15.43 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-05/0.9803, allocations: 21.72 kB / 1.432 GB, free: 15.4 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.9805, allocations: 326.8 kB / 1.432 GB, free: 15.07 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.9806, allocations: 39.91 kB / 1.432 GB, free: 15.04 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.9807, allocations: 31.98 kB / 1.432 GB, free: 15 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.9809, allocations: 80.66 kB / 1.432 GB, free: 14.93 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9809, allocations: 0 / 1.432 GB, free: 14.93 MB / 1.139 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002957/0.9812, allocations: 113.6 kB / 1.432 GB, free: 14.81 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.9813, allocations: 4 kB / 1.432 GB, free: 14.8 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.9813, allocations: 4.547 kB / 1.433 GB, free: 14.8 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.9813, allocations: 4 kB / 1.433 GB, free: 14.8 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.9814, allocations: 27.92 kB / 1.433 GB, free: 14.77 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.9814, allocations: 0 / 1.433 GB, free: 14.77 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.9815, allocations: 15.92 kB / 1.433 GB, free: 14.75 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.9815, allocations: 0 / 1.433 GB, free: 14.75 MB / 1.139 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.0001231/0.9817, allocations: 121.8 kB / 1.433 GB, free: 14.62 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.9817, allocations: 15.91 kB / 1.433 GB, free: 14.61 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003579/0.9821, allocations: 135 kB / 1.433 GB, free: 14.46 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.9821, allocations: 0 / 1.433 GB, free: 14.46 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.9821, allocations: 0 / 1.433 GB, free: 14.46 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.9821, allocations: 3.938 kB / 1.433 GB, free: 14.46 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.9823, allocations: 225.5 kB / 1.433 GB, free: 14.19 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.9823, allocations: 0 / 1.433 GB, free: 14.19 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.9825, allocations: 15.98 kB / 1.433 GB, free: 14.18 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.9825, allocations: 0 / 1.433 GB, free: 14.18 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.198e-06/0.9825, allocations: 0 / 1.433 GB, free: 14.18 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.9825, allocations: 3.984 kB / 1.433 GB, free: 14.17 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.9825, allocations: 0 / 1.433 GB, free: 14.17 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003423/0.9828, allocations: 215.4 kB / 1.433 GB, free: 13.95 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 6.801e-05/0.9829, allocations: 89.02 kB / 1.433 GB, free: 13.84 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.9829, allocations: 3.984 kB / 1.433 GB, free: 13.84 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.983, allocations: 11.94 kB / 1.433 GB, free: 13.82 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.9831, allocations: 11.92 kB / 1.433 GB, free: 13.81 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.9831, allocations: 4 kB / 1.433 GB, free: 13.81 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.000139/0.9832, allocations: 131.2 kB / 1.433 GB, free: 13.68 MB / 1.139 GB Notification: Performance of sort global known variables: time 7e-08/0.9832, allocations: 0 / 1.433 GB, free: 13.68 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.0002553/0.9835, allocations: 24 kB / 1.434 GB, free: 13.66 MB / 1.139 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.0007582/0.9842, allocations: 0.7587 MB / 1.434 GB, free: 12.87 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.0003109/0.9845, allocations: 71.89 kB / 1.434 GB, free: 12.8 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.9845, allocations: 0 / 1.434 GB, free: 12.8 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.9847, allocations: 39.97 kB / 1.434 GB, free: 12.76 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.985, allocations: 43.89 kB / 1.434 GB, free: 12.72 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.9876, allocations: 1.753 MB / 1.436 GB, free: 10.89 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.988, allocations: 0.708 MB / 1.437 GB, free: 10.16 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 7.806e-05/0.9881, allocations: 12.89 kB / 1.437 GB, free: 10.15 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.797e-05/0.9882, allocations: 39.36 kB / 1.437 GB, free: 10.11 MB / 1.139 GB Notification: Performance of SimCode: time 5.81e-07/0.9882, allocations: 4 kB / 1.437 GB, free: 10.11 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/1.015, allocations: 3.204 MB / 1.44 GB, free: 7.035 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.359/9.374, allocations: 5.656 kB / 1.44 GB, free: 7.031 MB / 1.139 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable masExc.TSur in file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv. Warning: Get data of variable masExc.TSur from file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv failed! Error: Could not read variable masExc.mWat_flow in file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv. Warning: Get data of variable masExc.mWat_flow from file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv failed! Error: Could not read variable masExc.Gc in file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv. Warning: Get data of variable masExc.Gc from file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv failed! Error: Could not read variable masExc.XInf in file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv. Warning: Get data of variable masExc.XInf from file Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.47597725992091]