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.007857/0.007857, allocations: 103.6 kB / 15.74 MB, free: 6.039 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.001932/0.001932, allocations: 201.1 kB / 16.68 MB, free: 5.965 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.262/1.262, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.425/2.425, allocations: 437 MB / 0.7105 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 63.89 kB / 1.018 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.269, allocations: 151.6 MB / 1.166 GB, free: 7.383 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.7391/1.008, allocations: 149 MB / 1.312 GB, free: 12.44 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001777/1.01, allocations: 1.129 MB / 1.313 GB, free: 12.34 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/1.01, allocations: 7.438 kB / 1.313 GB, free: 12.34 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000376/1.011, allocations: 58.64 kB / 1.313 GB, free: 12.32 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0009511/1.012, allocations: 316 kB / 1.313 GB, free: 12.25 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004948/1.012, allocations: 161.1 kB / 1.313 GB, free: 12.21 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0005372/1.013, allocations: 228 kB / 1.314 GB, free: 12.17 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/1.013, allocations: 59.78 kB / 1.314 GB, free: 12.17 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/1.013, allocations: 59.08 kB / 1.314 GB, free: 12.15 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/1.013, allocations: 61.2 kB / 1.314 GB, free: 12.14 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/1.013, allocations: 11.81 kB / 1.314 GB, free: 12.14 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008642/1.014, allocations: 361 kB / 1.314 GB, free: 12.12 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.256e-05/1.014, allocations: 32.31 kB / 1.314 GB, free: 12.11 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.337e-05/1.014, allocations: 65.92 kB / 1.314 GB, free: 12.09 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0006603/1.015, allocations: 292.7 kB / 1.314 GB, free: 12.05 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/1.015, allocations: 0 / 1.314 GB, free: 12.05 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.224e-06/1.015, allocations: 1.188 kB / 1.314 GB, free: 12.05 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.165e-05/1.015, allocations: 2.062 kB / 1.314 GB, free: 12.05 MB / 1.014 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.0007593/1.016, allocations: 476.8 kB / 1.315 GB, free: 11.64 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/1.016, allocations: 8.969 kB / 1.315 GB, free: 11.64 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.044e-05/1.016, allocations: 48.06 kB / 1.315 GB, free: 11.59 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/1.016, allocations: 37.27 kB / 1.315 GB, free: 11.59 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/1.016, allocations: 213.1 kB / 1.315 GB, free: 11.38 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/1.016, allocations: 14.97 kB / 1.315 GB, free: 11.37 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/1.016, allocations: 11.53 kB / 1.315 GB, free: 11.37 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/1.017, allocations: 117.2 kB / 1.315 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/1.017, allocations: 1.094 kB / 1.315 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/1.017, allocations: 5.359 kB / 1.315 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/1.017, allocations: 2.188 kB / 1.315 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002548/1.017, allocations: 87.94 kB / 1.315 GB, free: 11.33 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007476/1.018, allocations: 466.2 kB / 1.316 GB, free: 11.03 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/1.018, allocations: 87.86 kB / 1.316 GB, free: 11 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/1.018, allocations: 36.31 kB / 1.316 GB, free: 11 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/1.018, allocations: 11.33 kB / 1.316 GB, free: 10.99 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/1.018, allocations: 32.27 kB / 1.316 GB, free: 10.95 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 2.014e-06/1.018, allocations: 0 / 1.316 GB, free: 10.95 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0004533/1.019, allocations: 140.4 kB / 1.316 GB, free: 10.91 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/1.019, allocations: 53.03 kB / 1.316 GB, free: 10.85 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/1.019, allocations: 183.9 kB / 1.316 GB, free: 10.75 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/1.019, allocations: 33.64 kB / 1.316 GB, free: 10.71 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/1.019, allocations: 117.4 kB / 1.317 GB, free: 10.62 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/1.019, allocations: 19.31 kB / 1.317 GB, free: 10.61 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/1.019, allocations: 20.17 kB / 1.317 GB, free: 10.59 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.762e-05/1.019, allocations: 328.9 kB / 1.317 GB, free: 10.27 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/1.019, allocations: 36.44 kB / 1.317 GB, free: 10.27 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.653e-05/1.019, allocations: 33.8 kB / 1.317 GB, free: 10.27 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/1.02, allocations: 75.55 kB / 1.317 GB, free: 10.26 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.02, allocations: 0.75 kB / 1.317 GB, free: 10.26 MB / 1.014 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002749/1.02, allocations: 118.6 kB / 1.317 GB, free: 10.22 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/1.02, allocations: 5.531 kB / 1.317 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/1.02, allocations: 0.6094 kB / 1.317 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/1.02, allocations: 1.125 kB / 1.317 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/1.02, allocations: 24.8 kB / 1.317 GB, free: 10.21 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/1.02, allocations: 1.688 kB / 1.317 GB, free: 10.21 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.802e-05/1.02, allocations: 19.36 kB / 1.317 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/1.02, allocations: 2.062 kB / 1.317 GB, free: 10.2 MB / 1.014 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 9.884e-05/1.02, allocations: 123 kB / 1.317 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.66e-05/1.02, allocations: 9.547 kB / 1.317 GB, free: 10.08 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003363/1.021, allocations: 136.8 kB / 1.317 GB, free: 10.04 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/1.021, allocations: 5.094 kB / 1.317 GB, free: 10.03 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/1.021, allocations: 0 / 1.317 GB, free: 10.03 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/1.021, allocations: 1.578 kB / 1.317 GB, free: 10.03 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/1.021, allocations: 221.5 kB / 1.318 GB, free: 9.84 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/1.021, allocations: 0.6875 kB / 1.318 GB, free: 9.84 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/1.021, allocations: 20.06 kB / 1.318 GB, free: 9.84 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/1.021, allocations: 0 / 1.318 GB, free: 9.84 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/1.021, allocations: 0.9375 kB / 1.318 GB, free: 9.84 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/1.021, allocations: 1.609 kB / 1.318 GB, free: 9.84 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/1.021, allocations: 0 / 1.318 GB, free: 9.84 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/1.021, allocations: 215.5 kB / 1.318 GB, free: 9.695 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.622e-05/1.022, allocations: 97.27 kB / 1.318 GB, free: 9.59 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/1.022, allocations: 0.75 kB / 1.318 GB, free: 9.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/1.022, allocations: 6.5 kB / 1.318 GB, free: 9.59 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/1.022, allocations: 8.203 kB / 1.318 GB, free: 9.59 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/1.022, allocations: 2.906 kB / 1.318 GB, free: 9.59 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000115/1.022, allocations: 136.8 kB / 1.318 GB, free: 9.512 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.21e-07/1.022, allocations: 0 / 1.318 GB, free: 9.512 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002515/1.022, allocations: 18.94 kB / 1.318 GB, free: 9.512 MB / 1.014 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.0006094/1.023, allocations: 0.7554 MB / 1.319 GB, free: 8.836 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002734/1.023, allocations: 79.66 kB / 1.319 GB, free: 8.832 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.023, allocations: 0.8125 kB / 1.319 GB, free: 8.832 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/1.023, allocations: 42.8 kB / 1.319 GB, free: 8.828 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/1.024, allocations: 37.11 kB / 1.319 GB, free: 8.824 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/1.026, allocations: 1.753 MB / 1.321 GB, free: 7.598 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/1.026, allocations: 0.7126 MB / 1.321 GB, free: 6.895 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.493e-05/1.026, allocations: 10.28 kB / 1.321 GB, free: 6.895 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.38e-05/1.026, allocations: 41.73 kB / 1.321 GB, free: 6.883 MB / 1.014 GB Notification: Performance of SimCode: time 3.41e-07/1.026, allocations: 3.938 kB / 1.321 GB, free: 6.879 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/1.047, allocations: 3.201 MB / 1.325 GB, free: 6.398 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.219/8.266, allocations: 8.844 kB / 1.325 GB, free: 6.395 MB / 1.014 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