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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_latest_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.008573/0.008573, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001903/0.001903, allocations: 192.6 kB / 16.67 MB, free: 5.969 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.463/2.463, allocations: 469.4 MB / 0.7421 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.91 kB / 1.064 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7239/0.7252, allocations: 159.1 MB / 1.22 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1462/0.8714, allocations: 149 MB / 1.365 GB, free: 12.85 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.8728, allocations: 1.125 MB / 1.366 GB, free: 11.72 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.992e-05/0.8729, allocations: 4 kB / 1.366 GB, free: 11.71 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.0003029/0.8732, allocations: 63.59 kB / 1.366 GB, free: 11.65 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.0006263/0.8739, allocations: 310.7 kB / 1.367 GB, free: 11.35 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.8742, allocations: 175.2 kB / 1.367 GB, free: 11.18 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.0003832/0.8746, allocations: 211.3 kB / 1.367 GB, free: 10.97 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.8747, allocations: 61.08 kB / 1.367 GB, free: 10.91 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 6.75e-05/0.8748, allocations: 47.86 kB / 1.367 GB, free: 10.86 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 8.896e-05/0.8749, allocations: 59.69 kB / 1.367 GB, free: 10.8 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.8749, allocations: 12 kB / 1.367 GB, free: 10.79 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005167/0.8754, allocations: 371.2 kB / 1.368 GB, free: 10.43 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 5.223e-05/0.8755, allocations: 31.91 kB / 1.368 GB, free: 10.4 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 6.556e-05/0.8756, allocations: 67.67 kB / 1.368 GB, free: 10.33 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0003899/0.876, allocations: 295 kB / 1.368 GB, free: 10.05 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.876, allocations: 0 / 1.368 GB, free: 10.05 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.162e-06/0.876, allocations: 0 / 1.368 GB, free: 10.05 MB / 1.092 GB Notification: Performance of Transformations before backend: time 4.728e-06/0.876, allocations: 0 / 1.368 GB, free: 10.05 MB / 1.092 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.0005833/0.8766, allocations: 473 kB / 1.368 GB, free: 9.539 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.8766, allocations: 8.625 kB / 1.368 GB, free: 9.531 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.123e-05/0.8767, allocations: 50.67 kB / 1.369 GB, free: 9.473 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002545/0.8769, allocations: 40.81 kB / 1.369 GB, free: 9.434 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002567/0.8772, allocations: 211.9 kB / 1.369 GB, free: 9.188 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.8772, allocations: 11.94 kB / 1.369 GB, free: 9.176 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.8772, allocations: 8 kB / 1.369 GB, free: 9.168 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.8775, allocations: 121 kB / 1.369 GB, free: 9.047 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.8775, allocations: 0 / 1.369 GB, free: 9.047 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.8775, allocations: 12 kB / 1.369 GB, free: 9.035 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.8775, allocations: 3.984 kB / 1.369 GB, free: 9.031 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.8778, allocations: 91.92 kB / 1.369 GB, free: 8.941 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.8784, allocations: 452.2 kB / 1.369 GB, free: 8.449 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.8786, allocations: 102.5 kB / 1.37 GB, free: 8.34 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.8787, allocations: 40.95 kB / 1.37 GB, free: 8.297 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.8787, allocations: 0 / 1.37 GB, free: 8.297 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.8788, allocations: 30.56 kB / 1.37 GB, free: 8.258 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.8788, allocations: 0 / 1.37 GB, free: 8.258 MB / 1.092 GB Notification: Performance of matching and sorting (n=7): time 0.0004345/0.8792, allocations: 149.5 kB / 1.37 GB, free: 8.105 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.8793, allocations: 51.41 kB / 1.37 GB, free: 8.043 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.8794, allocations: 182.4 kB / 1.37 GB, free: 7.855 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.8794, allocations: 25.7 kB / 1.37 GB, free: 7.824 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 7.144e-05/0.8795, allocations: 112.1 kB / 1.37 GB, free: 7.711 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.8796, allocations: 35.67 kB / 1.37 GB, free: 7.676 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.966e-05/0.8796, allocations: 17.72 kB / 1.37 GB, free: 7.652 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.8797, allocations: 334.8 kB / 1.37 GB, free: 7.316 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.8798, allocations: 27.98 kB / 1.37 GB, free: 7.289 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.682e-05/0.8799, allocations: 35.95 kB / 1.371 GB, free: 7.254 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.8801, allocations: 76.81 kB / 1.371 GB, free: 7.176 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.8801, allocations: 0 / 1.371 GB, free: 7.176 MB / 1.092 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002697/0.8804, allocations: 117.6 kB / 1.371 GB, free: 7.055 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.8804, allocations: 4 kB / 1.371 GB, free: 7.051 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.8804, allocations: 0 / 1.371 GB, free: 7.051 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.8805, allocations: 0 / 1.371 GB, free: 7.051 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.8806, allocations: 23.92 kB / 1.371 GB, free: 7.027 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.8806, allocations: 0 / 1.371 GB, free: 7.027 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.21e-05/0.8807, allocations: 15.88 kB / 1.371 GB, free: 7.012 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.8807, allocations: 4 kB / 1.371 GB, free: 7.008 MB / 1.092 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.335e-05/0.8808, allocations: 130.2 kB / 1.371 GB, free: 6.871 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.561e-05/0.8809, allocations: 19.84 kB / 1.371 GB, free: 6.852 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003106/0.8812, allocations: 123 kB / 1.371 GB, free: 6.719 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.8812, allocations: 4 kB / 1.371 GB, free: 6.715 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.8812, allocations: 4 kB / 1.371 GB, free: 6.711 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.8812, allocations: 0 / 1.371 GB, free: 6.711 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.8814, allocations: 221.5 kB / 1.371 GB, free: 6.445 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.8814, allocations: 0 / 1.371 GB, free: 6.445 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.8815, allocations: 15.98 kB / 1.371 GB, free: 6.43 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.8816, allocations: 8 kB / 1.371 GB, free: 6.422 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.8816, allocations: 0 / 1.371 GB, free: 6.422 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.8816, allocations: 0 / 1.371 GB, free: 6.422 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8816, allocations: 0 / 1.371 GB, free: 6.422 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000294/0.8819, allocations: 216 kB / 1.371 GB, free: 6.195 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.882, allocations: 89 kB / 1.372 GB, free: 6.09 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.882, allocations: 7.938 kB / 1.372 GB, free: 6.082 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.8821, allocations: 11.98 kB / 1.372 GB, free: 6.07 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.8821, allocations: 0 / 1.372 GB, free: 6.07 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.8822, allocations: 4 kB / 1.372 GB, free: 6.066 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0001038/0.8823, allocations: 136.2 kB / 1.372 GB, free: 5.934 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8823, allocations: 4 kB / 1.372 GB, free: 5.93 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0002405/0.8825, allocations: 19.95 kB / 1.372 GB, free: 5.91 MB / 1.092 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.0006075/0.8831, allocations: 0.7554 MB / 1.372 GB, free: 5.125 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0002531/0.8834, allocations: 71.89 kB / 1.373 GB, free: 5.055 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8834, allocations: 4 kB / 1.373 GB, free: 5.051 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.8835, allocations: 39.97 kB / 1.373 GB, free: 5.012 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003528/0.8839, allocations: 34.34 kB / 1.373 GB, free: 4.98 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.886, allocations: 1.769 MB / 1.374 GB, free: 3.137 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.8863, allocations: 0.7118 MB / 1.375 GB, free: 2.398 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 6.877e-05/0.8864, allocations: 12.88 kB / 1.375 GB, free: 2.387 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.414e-05/0.8865, allocations: 39.42 kB / 1.375 GB, free: 2.348 MB / 1.092 GB Notification: Performance of SimCode: time 3.61e-07/0.8865, allocations: 0 / 1.375 GB, free: 2.348 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.9037, allocations: 3.199 MB / 1.378 GB, free: 15.3 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.297/8.201, allocations: 17.28 kB / 1.378 GB, free: 15.29 MB / 1.107 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/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