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.001445/0.001445, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.396/1.396, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.341/2.341, allocations: 390.3 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 67.89 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6283/0.6298, allocations: 140.4 MB / 0.9497 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.148/0.7779, allocations: 149 MB / 1.095 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001543/0.7795, allocations: 1.129 MB / 1.096 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.7797, allocations: 4 kB / 1.096 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003146/0.78, allocations: 47.62 kB / 1.096 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000782/0.7808, allocations: 306.7 kB / 1.097 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/0.7812, allocations: 171.3 kB / 1.097 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004739/0.7817, allocations: 223.3 kB / 1.097 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.7819, allocations: 67.25 kB / 1.097 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.132e-05/0.782, allocations: 43.86 kB / 1.097 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.7821, allocations: 67.64 kB / 1.097 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.7821, allocations: 11.98 kB / 1.097 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006036/0.7827, allocations: 363.3 kB / 1.098 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.498e-05/0.7828, allocations: 31.89 kB / 1.098 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.65e-05/0.7829, allocations: 63.67 kB / 1.098 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004497/0.7833, allocations: 287.2 kB / 1.098 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.7833, allocations: 4 kB / 1.098 GB, free: 9.453 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.223e-06/0.7833, allocations: 4 kB / 1.098 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.7833, allocations: 0 / 1.098 GB, free: 9.449 MB / 0.8575 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.0006396/0.784, allocations: 474.7 kB / 1.098 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.784, allocations: 8.031 kB / 1.098 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.85e-05/0.7841, allocations: 42.73 kB / 1.098 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002924/0.7844, allocations: 40.81 kB / 1.098 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.7846, allocations: 215.2 kB / 1.099 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.7846, allocations: 8 kB / 1.099 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.7847, allocations: 12 kB / 1.099 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.7849, allocations: 115.6 kB / 1.099 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.7849, allocations: 0 / 1.099 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.785, allocations: 4 kB / 1.099 GB, free: 8.449 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.785, allocations: 4 kB / 1.099 GB, free: 8.445 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002634/0.7852, allocations: 99.81 kB / 1.099 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006414/0.7859, allocations: 456 kB / 1.099 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002095/0.7861, allocations: 90.55 kB / 1.099 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.7862, allocations: 36.95 kB / 1.099 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.7863, allocations: 3.984 kB / 1.099 GB, free: 7.711 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.7863, allocations: 34.55 kB / 1.1 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.7863, allocations: 0 / 1.1 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004351/0.7867, allocations: 145.5 kB / 1.1 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.7868, allocations: 51.41 kB / 1.1 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.7869, allocations: 180.6 kB / 1.1 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.787, allocations: 29.7 kB / 1.1 GB, free: 7.238 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.827e-05/0.787, allocations: 112 kB / 1.1 GB, free: 7.125 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.7871, allocations: 27.61 kB / 1.1 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.224e-05/0.7871, allocations: 17.72 kB / 1.1 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.279e-05/0.7872, allocations: 330.8 kB / 1.1 GB, free: 6.742 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.7873, allocations: 31.97 kB / 1.1 GB, free: 6.711 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.7874, allocations: 32.3 kB / 1.1 GB, free: 6.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.7877, allocations: 88.88 kB / 1.101 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.7877, allocations: 0 / 1.101 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002744/0.788, allocations: 113.6 kB / 1.101 GB, free: 6.473 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.788, allocations: 7.938 kB / 1.101 GB, free: 6.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.788, allocations: 3.938 kB / 1.101 GB, free: 6.461 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.788, allocations: 0 / 1.101 GB, free: 6.461 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.7882, allocations: 19.98 kB / 1.101 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.7882, allocations: 0 / 1.101 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.7883, allocations: 23.77 kB / 1.101 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.7883, allocations: 4 kB / 1.101 GB, free: 6.414 MB / 0.8575 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.809e-05/0.7884, allocations: 125.8 kB / 1.101 GB, free: 6.281 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.7884, allocations: 11.91 kB / 1.101 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/0.7888, allocations: 119 kB / 1.101 GB, free: 6.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.7888, allocations: 4 kB / 1.101 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.7888, allocations: 0 / 1.101 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.7888, allocations: 3.938 kB / 1.101 GB, free: 6.141 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.789, allocations: 225.5 kB / 1.101 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.789, allocations: 0 / 1.101 GB, free: 5.871 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.7891, allocations: 19.98 kB / 1.101 GB, free: 5.852 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.7892, allocations: 4 kB / 1.101 GB, free: 5.848 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.7892, allocations: 3.938 kB / 1.101 GB, free: 5.844 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.7892, allocations: 4 kB / 1.101 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7892, allocations: 0 / 1.101 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002999/0.7895, allocations: 207.3 kB / 1.101 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/0.7896, allocations: 96.86 kB / 1.101 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.7896, allocations: 4 kB / 1.101 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.7897, allocations: 7.984 kB / 1.101 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.075e-05/0.7898, allocations: 0 / 1.101 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.7898, allocations: 11.94 kB / 1.101 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001051/0.7899, allocations: 135.5 kB / 1.102 GB, free: 5.352 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7899, allocations: 4 kB / 1.102 GB, free: 5.348 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002573/0.7902, allocations: 20 kB / 1.102 GB, free: 5.328 MB / 0.8575 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.0006346/0.7908, allocations: 0.7475 MB / 1.102 GB, free: 4.555 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002823/0.7911, allocations: 75.89 kB / 1.102 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7911, allocations: 4 kB / 1.102 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.7912, allocations: 40.44 kB / 1.102 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004522/0.7917, allocations: 45.91 kB / 1.103 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.7937, allocations: 1.757 MB / 1.104 GB, free: 2.555 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.794, allocations: 0.7041 MB / 1.105 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.674e-05/0.7941, allocations: 12.88 kB / 1.105 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.534e-05/0.7941, allocations: 39.42 kB / 1.105 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of SimCode: time 2.71e-07/0.7942, allocations: 3.938 kB / 1.105 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.8138, allocations: 3.139 MB / 1.108 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.344/8.158, allocations: 13.33 kB / 1.108 GB, free: 14.73 MB / 0.8731 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