Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_11_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.00836/0.008368, allocations: 95.48 kB / 15.73 MB, free: 6.484 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.002073/0.002073, allocations: 191.3 kB / 16.67 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.782/2.782, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002951/0.002952, allocations: 67.91 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3092, allocations: 159.1 MB / 1.22 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.7147/1.024, allocations: 149 MB / 1.366 GB, free: 15.92 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001559/1.026, allocations: 1.131 MB / 1.367 GB, free: 15.12 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.711e-05/1.026, allocations: 2.719 kB / 1.367 GB, free: 15.12 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0003377/1.026, allocations: 64.25 kB / 1.367 GB, free: 15.08 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0007622/1.027, allocations: 299.7 kB / 1.367 GB, free: 14.93 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/1.027, allocations: 170.6 kB / 1.367 GB, free: 14.84 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0004411/1.028, allocations: 219.6 kB / 1.368 GB, free: 14.75 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/1.028, allocations: 60.11 kB / 1.368 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.612e-05/1.028, allocations: 49.16 kB / 1.368 GB, free: 14.7 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 9.807e-05/1.028, allocations: 63.53 kB / 1.368 GB, free: 14.66 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/1.028, allocations: 11.94 kB / 1.368 GB, free: 14.66 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000568/1.029, allocations: 365.7 kB / 1.368 GB, free: 14.54 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.764e-05/1.029, allocations: 37.22 kB / 1.368 GB, free: 14.51 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 6.961e-05/1.029, allocations: 63.83 kB / 1.368 GB, free: 14.47 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0004705/1.029, allocations: 298.7 kB / 1.368 GB, free: 14.36 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/1.029, allocations: 0 / 1.368 GB, free: 14.36 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.463e-06/1.029, allocations: 1.094 kB / 1.368 GB, free: 14.36 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.821e-06/1.029, allocations: 0 / 1.368 GB, free: 14.36 MB / 1.076 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.000685/1.03, allocations: 473 kB / 1.369 GB, free: 13.92 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/1.03, allocations: 13.25 kB / 1.369 GB, free: 13.92 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.106e-05/1.03, allocations: 47.28 kB / 1.369 GB, free: 13.87 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002618/1.03, allocations: 35.22 kB / 1.369 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/1.031, allocations: 206.2 kB / 1.369 GB, free: 13.64 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/1.031, allocations: 11.53 kB / 1.369 GB, free: 13.64 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.014e-05/1.031, allocations: 11.66 kB / 1.369 GB, free: 13.63 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/1.031, allocations: 118.2 kB / 1.369 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/1.031, allocations: 6.016 kB / 1.369 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/1.031, allocations: 6.25 kB / 1.369 GB, free: 13.56 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/1.031, allocations: 2.781 kB / 1.369 GB, free: 13.56 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/1.031, allocations: 87.8 kB / 1.369 GB, free: 13.54 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007405/1.032, allocations: 459.2 kB / 1.37 GB, free: 13.17 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/1.032, allocations: 98.69 kB / 1.37 GB, free: 13.12 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/1.032, allocations: 38.22 kB / 1.37 GB, free: 13.1 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/1.032, allocations: 5.219 kB / 1.37 GB, free: 13.1 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/1.033, allocations: 31.69 kB / 1.37 GB, free: 13.06 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/1.033, allocations: 0 / 1.37 GB, free: 13.06 MB / 1.076 GB Notification: Performance of matching and sorting (n=7): time 0.0005095/1.033, allocations: 140.4 kB / 1.37 GB, free: 12.99 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/1.033, allocations: 52.84 kB / 1.37 GB, free: 12.93 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/1.033, allocations: 191.6 kB / 1.37 GB, free: 12.79 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/1.033, allocations: 25.7 kB / 1.37 GB, free: 12.76 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 9.081e-05/1.033, allocations: 119.5 kB / 1.37 GB, free: 12.65 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/1.033, allocations: 22.34 kB / 1.371 GB, free: 12.64 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/1.034, allocations: 23.09 kB / 1.371 GB, free: 12.61 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001568/1.034, allocations: 329.8 kB / 1.371 GB, free: 12.29 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/1.034, allocations: 33.73 kB / 1.371 GB, free: 12.28 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/1.034, allocations: 31.31 kB / 1.371 GB, free: 12.27 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002245/1.034, allocations: 71.84 kB / 1.371 GB, free: 12.25 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.034, allocations: 3.938 kB / 1.371 GB, free: 12.24 MB / 1.076 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000291/1.034, allocations: 123.1 kB / 1.371 GB, free: 12.18 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.034, allocations: 5.25 kB / 1.371 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/1.034, allocations: 1.188 kB / 1.371 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/1.035, allocations: 0 / 1.371 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/1.035, allocations: 23.25 kB / 1.371 GB, free: 12.17 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/1.035, allocations: 3.938 kB / 1.371 GB, free: 12.17 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.647e-05/1.035, allocations: 16.45 kB / 1.371 GB, free: 12.16 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/1.035, allocations: 2.469 kB / 1.371 GB, free: 12.16 MB / 1.076 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.0001085/1.035, allocations: 130.3 kB / 1.371 GB, free: 12.03 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/1.035, allocations: 10.17 kB / 1.371 GB, free: 12.03 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003307/1.035, allocations: 131.6 kB / 1.371 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/1.035, allocations: 3.766 kB / 1.371 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/1.035, allocations: 1.188 kB / 1.371 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/1.035, allocations: 3.984 kB / 1.371 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/1.036, allocations: 221.2 kB / 1.372 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.036, allocations: 4 kB / 1.372 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.871e-05/1.036, allocations: 14.77 kB / 1.372 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/1.036, allocations: 0 / 1.372 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/1.036, allocations: 1.125 kB / 1.372 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/1.036, allocations: 1.156 kB / 1.372 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.036, allocations: 5.188 kB / 1.372 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/1.036, allocations: 218.8 kB / 1.372 GB, free: 11.55 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 6.169e-05/1.036, allocations: 92.77 kB / 1.372 GB, free: 11.45 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.134e-05/1.036, allocations: 1.188 kB / 1.372 GB, free: 11.45 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/1.036, allocations: 11.31 kB / 1.372 GB, free: 11.45 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/1.036, allocations: 5.016 kB / 1.372 GB, free: 11.45 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/1.036, allocations: 1.812 kB / 1.372 GB, free: 11.45 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000115/1.036, allocations: 132.3 kB / 1.372 GB, free: 11.36 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.5e-07/1.036, allocations: 0 / 1.372 GB, free: 11.36 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002419/1.037, allocations: 22.09 kB / 1.372 GB, free: 11.35 MB / 1.076 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.0006761/1.037, allocations: 0.7558 MB / 1.373 GB, free: 10.65 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002675/1.038, allocations: 78.08 kB / 1.373 GB, free: 10.63 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.038, allocations: 1.438 kB / 1.373 GB, free: 10.63 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/1.038, allocations: 39.62 kB / 1.373 GB, free: 10.62 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/1.038, allocations: 38.19 kB / 1.373 GB, free: 10.6 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/1.04, allocations: 1.754 MB / 1.375 GB, free: 9.219 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/1.041, allocations: 0.7093 MB / 1.375 GB, free: 8.52 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.586e-05/1.041, allocations: 13.66 kB / 1.375 GB, free: 8.516 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.508e-05/1.041, allocations: 35.73 kB / 1.375 GB, free: 8.488 MB / 1.076 GB Notification: Performance of SimCode: time 4.01e-07/1.041, allocations: 1.281 kB / 1.375 GB, free: 8.488 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/1.064, allocations: 3.201 MB / 1.379 GB, free: 7.559 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.741/8.805, allocations: 12.17 kB / 1.379 GB, free: 7.551 MB / 1.076 GB (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches