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.007743/0.007743, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001627/0.001628, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.146/2.146, allocations: 390.3 MB / 0.6648 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 59.91 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7959/0.7973, allocations: 140.4 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.173/0.9703, allocations: 149 MB / 1.233 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.9719, allocations: 1.137 MB / 1.234 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.9721, allocations: 2.781 kB / 1.234 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003812/0.9725, allocations: 51.45 kB / 1.234 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.9736, allocations: 314.6 kB / 1.234 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004751/0.9741, allocations: 162.9 kB / 1.235 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0005222/0.9746, allocations: 217.7 kB / 1.235 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.9748, allocations: 62.27 kB / 1.235 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.733e-05/0.9749, allocations: 55.69 kB / 1.235 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.385e-05/0.975, allocations: 56.55 kB / 1.235 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.975, allocations: 15.47 kB / 1.235 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006186/0.9756, allocations: 370.3 kB / 1.235 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.098e-05/0.9757, allocations: 29.33 kB / 1.235 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.052e-05/0.9758, allocations: 68.58 kB / 1.235 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0005128/0.9763, allocations: 292.1 kB / 1.236 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.9763, allocations: 1.5 kB / 1.236 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.152e-06/0.9763, allocations: 0 / 1.236 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.9763, allocations: 0 / 1.236 GB, free: 3.551 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.0007253/0.9771, allocations: 469.5 kB / 1.236 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.9771, allocations: 9.156 kB / 1.236 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.062e-05/0.9772, allocations: 46.02 kB / 1.236 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.9775, allocations: 40.41 kB / 1.236 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.9778, allocations: 209.9 kB / 1.236 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.9778, allocations: 9.094 kB / 1.236 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.9779, allocations: 6.75 kB / 1.236 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002585/0.9781, allocations: 124.7 kB / 1.237 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.9782, allocations: 0 / 1.237 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.9782, allocations: 5.062 kB / 1.237 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.9782, allocations: 3.406 kB / 1.237 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.9785, allocations: 91.92 kB / 1.237 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006836/0.9792, allocations: 458.8 kB / 1.237 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.9794, allocations: 90.94 kB / 1.237 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.9795, allocations: 42.83 kB / 1.237 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.9796, allocations: 1.094 kB / 1.237 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.9796, allocations: 35.88 kB / 1.237 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.512e-06/0.9796, allocations: 3.938 kB / 1.237 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004421/0.98, allocations: 146.7 kB / 1.237 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.9801, allocations: 52.56 kB / 1.237 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.9803, allocations: 189.5 kB / 1.238 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.9803, allocations: 26.8 kB / 1.238 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.829e-05/0.9804, allocations: 117.5 kB / 1.238 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.9804, allocations: 22.66 kB / 1.238 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-05/0.9804, allocations: 23.14 kB / 1.238 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.733e-05/0.9805, allocations: 326.3 kB / 1.238 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.9807, allocations: 32.42 kB / 1.238 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.9808, allocations: 33.84 kB / 1.238 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.981, allocations: 76.22 kB / 1.238 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.981, allocations: 1.188 kB / 1.238 GB, free: 1.215 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002754/0.9813, allocations: 117.8 kB / 1.238 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.9813, allocations: 4.625 kB / 1.238 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.9813, allocations: 1.25 kB / 1.238 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.9813, allocations: 0 / 1.238 GB, free: 1.141 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.9815, allocations: 21.73 kB / 1.238 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.9815, allocations: 1.312 kB / 1.238 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.9816, allocations: 28.17 kB / 1.238 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.9816, allocations: 2.281 kB / 1.238 GB, free: 1.109 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.74e-05/0.9817, allocations: 119 kB / 1.239 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.9817, allocations: 14.34 kB / 1.239 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003239/0.9821, allocations: 121.8 kB / 1.239 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.9821, allocations: 1.094 kB / 1.239 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.9821, allocations: 0 / 1.239 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.9821, allocations: 9.094 kB / 1.239 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.9823, allocations: 222.4 kB / 1.239 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.9824, allocations: 5.062 kB / 1.239 GB, free: 0.6445 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.9825, allocations: 15.73 kB / 1.239 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.9825, allocations: 1.219 kB / 1.239 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.9825, allocations: 0 / 1.239 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.9825, allocations: 1.406 kB / 1.239 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.9825, allocations: 0 / 1.239 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.9828, allocations: 219 kB / 1.239 GB, free: 468 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.9829, allocations: 92.42 kB / 1.239 GB, free: 360 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.9829, allocations: 1.156 kB / 1.239 GB, free: 360 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.983, allocations: 11.52 kB / 1.239 GB, free: 352 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.9831, allocations: 10.25 kB / 1.239 GB, free: 344 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.9831, allocations: 1.219 kB / 1.239 GB, free: 344 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001148/0.9832, allocations: 138.2 kB / 1.239 GB, free: 236 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9832, allocations: 0 / 1.239 GB, free: 236 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002508/0.9835, allocations: 23.03 kB / 1.239 GB, free: 232 kB / 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.0006124/0.9841, allocations: 0.7532 MB / 1.24 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002696/0.9844, allocations: 74.52 kB / 1.24 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9844, allocations: 0 / 1.24 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.9845, allocations: 43.34 kB / 1.24 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/0.9849, allocations: 33.61 kB / 1.24 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.987, allocations: 1.753 MB / 1.242 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002428/0.9873, allocations: 0.7063 MB / 1.243 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.403e-05/0.9873, allocations: 15.11 kB / 1.243 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.309e-05/0.9874, allocations: 37.48 kB / 1.243 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of SimCode: time 3.4e-07/0.9874, allocations: 3.938 kB / 1.243 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/1.013, allocations: 3.193 MB / 1.246 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.364/8.377, allocations: 11.8 kB / 1.246 GB, free: 11.35 MB / 0.9825 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