Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_10_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.001329/0.001329, 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.001419/0.001419, 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.485/2.485, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 68.14 kB / 0.8694 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5393/0.5406, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1428/0.6835, allocations: 149 MB / 1.163 GB, free: 12.92 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001576/0.6851, allocations: 1.125 MB / 1.164 GB, free: 11.79 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.6853, allocations: 4 kB / 1.164 GB, free: 11.79 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003361/0.6857, allocations: 59.61 kB / 1.164 GB, free: 11.73 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0007951/0.6865, allocations: 302.6 kB / 1.164 GB, free: 11.43 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.6869, allocations: 171.3 kB / 1.165 GB, free: 11.26 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000434/0.6873, allocations: 227.3 kB / 1.165 GB, free: 11.04 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.6875, allocations: 55.36 kB / 1.165 GB, free: 10.99 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.802e-05/0.6876, allocations: 47.84 kB / 1.165 GB, free: 10.94 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.822e-05/0.6877, allocations: 63.69 kB / 1.165 GB, free: 10.88 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.6877, allocations: 12 kB / 1.165 GB, free: 10.87 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006173/0.6883, allocations: 363.2 kB / 1.165 GB, free: 10.51 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.364e-05/0.6884, allocations: 35.84 kB / 1.165 GB, free: 10.48 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.562e-05/0.6885, allocations: 63.67 kB / 1.165 GB, free: 10.41 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.689, allocations: 291.2 kB / 1.166 GB, free: 10.13 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.689, allocations: 0 / 1.166 GB, free: 10.13 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.684e-06/0.689, allocations: 4 kB / 1.166 GB, free: 10.12 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.689, allocations: 0 / 1.166 GB, free: 10.12 MB / 0.92 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.0007521/0.6898, allocations: 466.9 kB / 1.166 GB, free: 9.621 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.6898, allocations: 8.031 kB / 1.166 GB, free: 9.613 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.85e-05/0.6899, allocations: 42.75 kB / 1.166 GB, free: 9.562 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003001/0.6902, allocations: 36.72 kB / 1.166 GB, free: 9.527 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.6904, allocations: 211.9 kB / 1.166 GB, free: 9.281 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.6905, allocations: 4 kB / 1.166 GB, free: 9.277 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.6905, allocations: 12 kB / 1.166 GB, free: 9.266 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003/0.6908, allocations: 118.2 kB / 1.166 GB, free: 9.145 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.6908, allocations: 0 / 1.166 GB, free: 9.145 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.6908, allocations: 8 kB / 1.166 GB, free: 9.137 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.6908, allocations: 3.984 kB / 1.167 GB, free: 9.133 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.6911, allocations: 93.69 kB / 1.167 GB, free: 9.043 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.6919, allocations: 464 kB / 1.167 GB, free: 8.539 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.6921, allocations: 90.48 kB / 1.167 GB, free: 8.441 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.6923, allocations: 40.94 kB / 1.167 GB, free: 8.398 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.6923, allocations: 0 / 1.167 GB, free: 8.398 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.6923, allocations: 38.56 kB / 1.167 GB, free: 8.352 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.6923, allocations: 0 / 1.167 GB, free: 8.352 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004766/0.6928, allocations: 137.5 kB / 1.167 GB, free: 8.211 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.6929, allocations: 55.39 kB / 1.167 GB, free: 8.145 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.693, allocations: 184.5 kB / 1.168 GB, free: 7.957 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.6931, allocations: 25.7 kB / 1.168 GB, free: 7.926 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.942e-05/0.6931, allocations: 119.9 kB / 1.168 GB, free: 7.805 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.6932, allocations: 27.64 kB / 1.168 GB, free: 7.777 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/0.6932, allocations: 17.72 kB / 1.168 GB, free: 7.754 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.6934, allocations: 330.8 kB / 1.168 GB, free: 7.422 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.6935, allocations: 35.97 kB / 1.168 GB, free: 7.387 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.6936, allocations: 35.92 kB / 1.168 GB, free: 7.352 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/0.6939, allocations: 72.81 kB / 1.168 GB, free: 7.277 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.6939, allocations: 0 / 1.168 GB, free: 7.277 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002824/0.6942, allocations: 117.5 kB / 1.168 GB, free: 7.156 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.6942, allocations: 4 kB / 1.168 GB, free: 7.152 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.6942, allocations: 0 / 1.168 GB, free: 7.152 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.6942, allocations: 4 kB / 1.168 GB, free: 7.148 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.6944, allocations: 19.98 kB / 1.168 GB, free: 7.129 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.6944, allocations: 0 / 1.168 GB, free: 7.129 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.6945, allocations: 19.83 kB / 1.168 GB, free: 7.109 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.6945, allocations: 4 kB / 1.168 GB, free: 7.105 MB / 0.92 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 0.0001004/0.6946, allocations: 125.8 kB / 1.168 GB, free: 6.973 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.847e-05/0.6947, allocations: 11.91 kB / 1.168 GB, free: 6.961 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003524/0.695, allocations: 131 kB / 1.169 GB, free: 6.828 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.695, allocations: 0 / 1.169 GB, free: 6.828 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.695, allocations: 0 / 1.169 GB, free: 6.828 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.695, allocations: 0 / 1.169 GB, free: 6.828 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.6953, allocations: 221.4 kB / 1.169 GB, free: 6.562 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.6953, allocations: 4 kB / 1.169 GB, free: 6.559 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.6954, allocations: 19.98 kB / 1.169 GB, free: 6.539 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.6954, allocations: 0 / 1.169 GB, free: 6.539 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.6954, allocations: 0 / 1.169 GB, free: 6.539 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.6954, allocations: 3.984 kB / 1.169 GB, free: 6.535 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.6954, allocations: 0 / 1.169 GB, free: 6.535 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000334/0.6958, allocations: 215.9 kB / 1.169 GB, free: 6.309 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.119e-05/0.6959, allocations: 92.86 kB / 1.169 GB, free: 6.199 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.6959, allocations: 7.984 kB / 1.169 GB, free: 6.191 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.696, allocations: 4 kB / 1.169 GB, free: 6.188 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.311e-05/0.6961, allocations: 11.98 kB / 1.169 GB, free: 6.176 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.6961, allocations: 0 / 1.169 GB, free: 6.176 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001114/0.6962, allocations: 135.5 kB / 1.169 GB, free: 6.043 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6962, allocations: 3.938 kB / 1.169 GB, free: 6.039 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002573/0.6965, allocations: 20 kB / 1.169 GB, free: 6.02 MB / 0.92 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.0007007/0.6972, allocations: 0.7553 MB / 1.17 GB, free: 5.238 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002785/0.6975, allocations: 75.94 kB / 1.17 GB, free: 5.164 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.6975, allocations: 4 kB / 1.17 GB, free: 5.16 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.6976, allocations: 35.92 kB / 1.17 GB, free: 5.125 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.6981, allocations: 45.52 kB / 1.17 GB, free: 5.082 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.7003, allocations: 1.749 MB / 1.172 GB, free: 3.254 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.7007, allocations: 0.7118 MB / 1.173 GB, free: 2.516 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 8.125e-05/0.7007, allocations: 12.89 kB / 1.173 GB, free: 2.504 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/0.7008, allocations: 35.42 kB / 1.173 GB, free: 2.469 MB / 0.92 GB Notification: Performance of SimCode: time 2.41e-07/0.7008, allocations: 0 / 1.173 GB, free: 2.469 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.7195, allocations: 3.163 MB / 1.176 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.101/7.821, allocations: 3.938 kB / 1.176 GB, free: 15.42 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches