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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006883/0.006883, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001642/0.001642, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.215/2.215, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 64.69 kB / 0.9504 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2572, allocations: 140.4 MB / 1.088 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1462/0.4034, allocations: 149 MB / 1.233 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.4049, allocations: 1.133 MB / 1.234 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.4051, allocations: 0 / 1.234 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.4055, allocations: 59.66 kB / 1.234 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008385/0.4064, allocations: 318.6 kB / 1.234 GB, free: 10.87 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.4068, allocations: 163.3 kB / 1.235 GB, free: 10.71 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004782/0.4073, allocations: 219.3 kB / 1.235 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.4075, allocations: 61.31 kB / 1.235 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.359e-05/0.4076, allocations: 55.78 kB / 1.235 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.274e-05/0.4077, allocations: 51.77 kB / 1.235 GB, free: 10.33 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.4077, allocations: 12 kB / 1.235 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005897/0.4083, allocations: 371.2 kB / 1.235 GB, free: 9.957 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 6.223e-05/0.4084, allocations: 35.84 kB / 1.235 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.469e-05/0.4085, allocations: 59.67 kB / 1.235 GB, free: 9.863 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004831/0.4089, allocations: 299 kB / 1.236 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.409, allocations: 0 / 1.236 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.493e-06/0.409, allocations: 0 / 1.236 GB, free: 9.57 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.409, allocations: 4 kB / 1.236 GB, free: 9.566 MB / 0.9981 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.0006904/0.4097, allocations: 474.4 kB / 1.236 GB, free: 9.055 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.4097, allocations: 8.031 kB / 1.236 GB, free: 9.047 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.437e-05/0.4098, allocations: 46.73 kB / 1.236 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002905/0.4101, allocations: 40.75 kB / 1.236 GB, free: 8.953 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.4104, allocations: 213.1 kB / 1.236 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.4104, allocations: 8 kB / 1.236 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.4104, allocations: 8 kB / 1.236 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.4107, allocations: 125.5 kB / 1.237 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.4107, allocations: 0 / 1.237 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.4107, allocations: 4 kB / 1.237 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.4107, allocations: 4 kB / 1.237 GB, free: 8.555 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.411, allocations: 91.94 kB / 1.237 GB, free: 8.465 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.4117, allocations: 456.3 kB / 1.237 GB, free: 7.969 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.4119, allocations: 86.55 kB / 1.237 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.4121, allocations: 48.88 kB / 1.237 GB, free: 7.824 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.4121, allocations: 4 kB / 1.237 GB, free: 7.82 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.4121, allocations: 34.55 kB / 1.237 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.4121, allocations: 0 / 1.237 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004306/0.4126, allocations: 149.5 kB / 1.237 GB, free: 7.625 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.4126, allocations: 55.41 kB / 1.238 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.4128, allocations: 191.3 kB / 1.238 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.4128, allocations: 25.7 kB / 1.238 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.71e-05/0.4129, allocations: 120 kB / 1.238 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.29e-05/0.4129, allocations: 23.75 kB / 1.238 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/0.4129, allocations: 21.7 kB / 1.238 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.175e-05/0.413, allocations: 326.8 kB / 1.238 GB, free: 6.832 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.4131, allocations: 31.92 kB / 1.238 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.585e-05/0.4132, allocations: 35.97 kB / 1.238 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.4135, allocations: 72.81 kB / 1.238 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4135, allocations: 0 / 1.238 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002594/0.4137, allocations: 121.5 kB / 1.238 GB, free: 6.566 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.4138, allocations: 8 kB / 1.238 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.4138, allocations: 0 / 1.238 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.4138, allocations: 0 / 1.238 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.4139, allocations: 23.92 kB / 1.238 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.4139, allocations: 4 kB / 1.238 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.176e-05/0.414, allocations: 11.89 kB / 1.238 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.414, allocations: 0 / 1.238 GB, free: 6.52 MB / 0.9981 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.793e-05/0.4141, allocations: 125.8 kB / 1.239 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.515e-05/0.4142, allocations: 11.91 kB / 1.239 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003066/0.4145, allocations: 123 kB / 1.239 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.4145, allocations: 0 / 1.239 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4145, allocations: 0 / 1.239 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4145, allocations: 15.86 kB / 1.239 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002066/0.4147, allocations: 221.5 kB / 1.239 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4147, allocations: 0 / 1.239 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.4148, allocations: 15.98 kB / 1.239 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.4149, allocations: 0 / 1.239 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.4149, allocations: 0 / 1.239 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.4149, allocations: 4 kB / 1.239 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4149, allocations: 4 kB / 1.239 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.4152, allocations: 207.4 kB / 1.239 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.822e-05/0.4152, allocations: 93.05 kB / 1.239 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.4153, allocations: 0 / 1.239 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.4154, allocations: 8 kB / 1.239 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.4154, allocations: 15.86 kB / 1.239 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.4154, allocations: 8 kB / 1.239 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001014/0.4155, allocations: 135.2 kB / 1.239 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.71e-07/0.4155, allocations: 0 / 1.239 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002484/0.4158, allocations: 23.95 kB / 1.239 GB, free: 5.434 MB / 0.9981 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.0005741/0.4164, allocations: 0.7521 MB / 1.24 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002611/0.4167, allocations: 79.95 kB / 1.24 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4167, allocations: 0 / 1.24 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.4168, allocations: 39.98 kB / 1.24 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003634/0.4171, allocations: 35.84 kB / 1.24 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.4191, allocations: 1.756 MB / 1.242 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.4194, allocations: 0.708 MB / 1.243 GB, free: 1.93 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.064e-05/0.4194, allocations: 16.88 kB / 1.243 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.925e-05/0.4195, allocations: 39.38 kB / 1.243 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.4195, allocations: 0 / 1.243 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.4388, allocations: 3.198 MB / 1.246 GB, free: 14.81 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.125/7.564, allocations: 3.984 kB / 1.246 GB, free: 14.81 MB / 1.014 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/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