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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001717/0.001718, allocations: 108 kB / 15.61 MB, free: 152 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.002002/0.002002, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.454/1.454, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.732/2.732, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 67.2 kB / 0.9083 GB, free: 34.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2551, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1399/0.395, allocations: 149 MB / 1.209 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.3966, allocations: 1.133 MB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.956e-05/0.3967, allocations: 8 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.3971, allocations: 51.67 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000682/0.3978, allocations: 306.6 kB / 1.211 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003338/0.3982, allocations: 171.3 kB / 1.211 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004106/0.3986, allocations: 215.3 kB / 1.211 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.3987, allocations: 57.33 kB / 1.211 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.456e-05/0.3988, allocations: 63.7 kB / 1.211 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.284e-05/0.3989, allocations: 51.77 kB / 1.211 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.3989, allocations: 12 kB / 1.211 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005478/0.3995, allocations: 371.2 kB / 1.212 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.278e-05/0.3995, allocations: 35.84 kB / 1.212 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.687e-05/0.3996, allocations: 59.67 kB / 1.212 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003965/0.4, allocations: 283.3 kB / 1.212 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4, allocations: 0 / 1.212 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4, allocations: 3.938 kB / 1.212 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.882e-06/0.4, allocations: 3.984 kB / 1.212 GB, free: 6.156 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.0005944/0.4006, allocations: 466.8 kB / 1.212 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.4007, allocations: 8.031 kB / 1.212 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.204e-05/0.4007, allocations: 46.73 kB / 1.212 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002851/0.401, allocations: 40.72 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.4012, allocations: 215.8 kB / 1.213 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.4013, allocations: 8 kB / 1.213 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.4013, allocations: 11.94 kB / 1.213 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.4015, allocations: 109.6 kB / 1.213 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.4016, allocations: 0 / 1.213 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.4016, allocations: 8 kB / 1.213 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4016, allocations: 0 / 1.213 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002578/0.4018, allocations: 95.94 kB / 1.213 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006254/0.4025, allocations: 456.2 kB / 1.213 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.4027, allocations: 90.48 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.4028, allocations: 40.94 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.4029, allocations: 3.984 kB / 1.213 GB, free: 4.426 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.4029, allocations: 34.56 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.555e-06/0.4029, allocations: 0 / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004322/0.4033, allocations: 145.5 kB / 1.214 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.4034, allocations: 55.34 kB / 1.214 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.4035, allocations: 183.5 kB / 1.214 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.4036, allocations: 25.7 kB / 1.214 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.893e-05/0.4036, allocations: 120 kB / 1.214 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.4037, allocations: 19.66 kB / 1.214 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.4037, allocations: 25.72 kB / 1.214 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4038, allocations: 326.8 kB / 1.214 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.4039, allocations: 35.97 kB / 1.214 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.404, allocations: 31.97 kB / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.4043, allocations: 73.28 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4043, allocations: 4 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002749/0.4046, allocations: 125.5 kB / 1.215 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.4046, allocations: 7.938 kB / 1.215 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4046, allocations: 7.938 kB / 1.215 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.4046, allocations: 0 / 1.215 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.4047, allocations: 15.98 kB / 1.215 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.4048, allocations: 3.984 kB / 1.215 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.57e-05/0.4049, allocations: 11.94 kB / 1.215 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.4049, allocations: 4 kB / 1.215 GB, free: 3.125 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 8.389e-05/0.405, allocations: 121.8 kB / 1.215 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.405, allocations: 19.8 kB / 1.215 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003186/0.4053, allocations: 123 kB / 1.215 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.4054, allocations: 0 / 1.215 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.4054, allocations: 0 / 1.215 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.4054, allocations: 0 / 1.215 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.4056, allocations: 233.5 kB / 1.215 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4056, allocations: 0 / 1.215 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.4057, allocations: 12 kB / 1.215 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.4057, allocations: 3.984 kB / 1.215 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.4058, allocations: 0 / 1.215 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4058, allocations: 0 / 1.215 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.4058, allocations: 0 / 1.215 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.4061, allocations: 219.2 kB / 1.215 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.045e-05/0.4061, allocations: 89 kB / 1.215 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.4062, allocations: 3.938 kB / 1.215 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.4063, allocations: 8 kB / 1.215 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.4063, allocations: 7.984 kB / 1.215 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.4063, allocations: 0 / 1.215 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001096/0.4065, allocations: 135.2 kB / 1.216 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4065, allocations: 0 / 1.216 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002496/0.4067, allocations: 20 kB / 1.216 GB, free: 2.051 MB / 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.0006281/0.4074, allocations: 0.7595 MB / 1.216 GB, free: 1.262 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002748/0.4076, allocations: 83.94 kB / 1.216 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4077, allocations: 4 kB / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.4078, allocations: 35.92 kB / 1.216 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004174/0.4082, allocations: 39.89 kB / 1.216 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.4103, allocations: 1.739 MB / 1.218 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.4106, allocations: 0.708 MB / 1.219 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.825e-05/0.4107, allocations: 12.89 kB / 1.219 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.508e-05/0.4108, allocations: 41.55 kB / 1.219 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of SimCode: time 3.21e-07/0.4108, allocations: 0 / 1.219 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.4307, allocations: 3.155 MB / 1.222 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.246/7.677, allocations: 10.78 kB / 1.222 GB, free: 11.47 MB / 0.9825 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