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.007269/0.00727, allocations: 99.64 kB / 15.73 MB, free: 6.465 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.001707/0.001707, allocations: 190.8 kB / 16.67 MB, free: 6.379 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.298/1.298, 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 11.0.1-master/package.mo): time 2.622/2.622, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 71.89 kB / 1.054 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.313, allocations: 157.4 MB / 1.207 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.7977/1.111, allocations: 149 MB / 1.353 GB, free: 14.29 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00161/1.112, allocations: 1.138 MB / 1.354 GB, free: 13.48 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/1.113, allocations: 2.125 kB / 1.354 GB, free: 13.48 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0003501/1.113, allocations: 52.77 kB / 1.354 GB, free: 13.45 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0009204/1.114, allocations: 302.8 kB / 1.354 GB, free: 13.3 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005028/1.114, allocations: 173.3 kB / 1.354 GB, free: 13.21 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005138/1.115, allocations: 220.4 kB / 1.355 GB, free: 13.12 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/1.115, allocations: 60.78 kB / 1.355 GB, free: 13.09 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/1.115, allocations: 52.03 kB / 1.355 GB, free: 13.06 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/1.115, allocations: 57.02 kB / 1.355 GB, free: 13.04 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/1.115, allocations: 11.59 kB / 1.355 GB, free: 13.04 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000678/1.116, allocations: 369.2 kB / 1.355 GB, free: 12.91 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.83e-05/1.116, allocations: 35.62 kB / 1.355 GB, free: 12.88 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.998e-05/1.116, allocations: 61.67 kB / 1.355 GB, free: 12.84 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005601/1.117, allocations: 293.4 kB / 1.356 GB, free: 12.73 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/1.117, allocations: 0 / 1.356 GB, free: 12.73 MB / 1.061 GB Notification: Performance of FrontEnd: time 4.208e-06/1.117, allocations: 0.8906 kB / 1.356 GB, free: 12.73 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.843e-06/1.117, allocations: 5.125 kB / 1.356 GB, free: 12.73 MB / 1.061 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.0007846/1.118, allocations: 462.8 kB / 1.356 GB, free: 12.3 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/1.118, allocations: 10.25 kB / 1.356 GB, free: 12.3 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.413e-05/1.118, allocations: 44.34 kB / 1.356 GB, free: 12.26 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003111/1.118, allocations: 40.08 kB / 1.356 GB, free: 12.25 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/1.118, allocations: 215.9 kB / 1.356 GB, free: 12.02 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/1.118, allocations: 12.78 kB / 1.356 GB, free: 12.01 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/1.118, allocations: 11.06 kB / 1.356 GB, free: 12.01 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/1.119, allocations: 107.6 kB / 1.356 GB, free: 11.95 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/1.119, allocations: 7.922 kB / 1.356 GB, free: 11.95 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/1.119, allocations: 5.906 kB / 1.356 GB, free: 11.94 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/1.119, allocations: 6.5 kB / 1.356 GB, free: 11.94 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002783/1.119, allocations: 88.44 kB / 1.357 GB, free: 11.91 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007907/1.12, allocations: 459.2 kB / 1.357 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/1.12, allocations: 91.34 kB / 1.357 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/1.12, allocations: 44.34 kB / 1.357 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/1.12, allocations: 1.844 kB / 1.357 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/1.12, allocations: 32.95 kB / 1.357 GB, free: 11.43 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/1.12, allocations: 1.344 kB / 1.357 GB, free: 11.43 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.000504/1.121, allocations: 143.8 kB / 1.357 GB, free: 11.36 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/1.121, allocations: 53.53 kB / 1.357 GB, free: 11.3 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/1.121, allocations: 180.5 kB / 1.357 GB, free: 11.18 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/1.121, allocations: 25.7 kB / 1.357 GB, free: 11.14 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.087e-05/1.121, allocations: 120.4 kB / 1.358 GB, free: 11.04 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/1.121, allocations: 19.2 kB / 1.358 GB, free: 11.02 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/1.121, allocations: 20.95 kB / 1.358 GB, free: 11 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001289/1.121, allocations: 333.5 kB / 1.358 GB, free: 10.67 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/1.122, allocations: 42.05 kB / 1.358 GB, free: 10.65 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/1.122, allocations: 32.41 kB / 1.358 GB, free: 10.64 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/1.122, allocations: 70.64 kB / 1.358 GB, free: 10.62 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/1.122, allocations: 1.25 kB / 1.358 GB, free: 10.62 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003099/1.122, allocations: 122.8 kB / 1.358 GB, free: 10.55 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/1.122, allocations: 6.078 kB / 1.358 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/1.122, allocations: 0 / 1.358 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/1.122, allocations: 1.062 kB / 1.358 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/1.122, allocations: 24.06 kB / 1.358 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.78e-06/1.123, allocations: 0 / 1.358 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/1.123, allocations: 11.61 kB / 1.358 GB, free: 10.54 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/1.123, allocations: 2.938 kB / 1.358 GB, free: 10.54 MB / 1.061 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.0001069/1.123, allocations: 123.3 kB / 1.358 GB, free: 10.42 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.737e-05/1.123, allocations: 17.94 kB / 1.358 GB, free: 10.41 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00034/1.123, allocations: 125.2 kB / 1.359 GB, free: 10.34 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.123, allocations: 2.312 kB / 1.359 GB, free: 10.34 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/1.123, allocations: 0 / 1.359 GB, free: 10.34 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/1.123, allocations: 0 / 1.359 GB, free: 10.34 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/1.123, allocations: 220.6 kB / 1.359 GB, free: 10.13 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.123, allocations: 3.938 kB / 1.359 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/1.124, allocations: 17.92 kB / 1.359 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/1.124, allocations: 5.688 kB / 1.359 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/1.124, allocations: 4 kB / 1.359 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/1.124, allocations: 0.5625 kB / 1.359 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.124, allocations: 3.422 kB / 1.359 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/1.124, allocations: 206.7 kB / 1.359 GB, free: 9.957 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.844e-05/1.124, allocations: 90.38 kB / 1.359 GB, free: 9.855 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/1.124, allocations: 8.812 kB / 1.359 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/1.124, allocations: 6.844 kB / 1.359 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/1.124, allocations: 4.25 kB / 1.359 GB, free: 9.848 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/1.124, allocations: 6.094 kB / 1.359 GB, free: 9.844 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001389/1.124, allocations: 137.1 kB / 1.359 GB, free: 9.75 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/1.124, allocations: 0 / 1.359 GB, free: 9.75 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002692/1.125, allocations: 22.31 kB / 1.359 GB, free: 9.746 MB / 1.061 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.0006841/1.125, allocations: 0.7492 MB / 1.36 GB, free: 9.051 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002662/1.126, allocations: 78.09 kB / 1.36 GB, free: 9.027 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/1.126, allocations: 4 kB / 1.36 GB, free: 9.023 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/1.126, allocations: 42.17 kB / 1.36 GB, free: 9.012 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/1.126, allocations: 34.67 kB / 1.36 GB, free: 9 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/1.128, allocations: 1.757 MB / 1.362 GB, free: 7.621 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/1.129, allocations: 0.7053 MB / 1.363 GB, free: 6.926 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.018e-05/1.129, allocations: 13.81 kB / 1.363 GB, free: 6.922 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.56e-05/1.129, allocations: 38.58 kB / 1.363 GB, free: 6.895 MB / 1.061 GB Notification: Performance of SimCode: time 2.394e-06/1.129, allocations: 0 / 1.363 GB, free: 6.895 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/1.148, allocations: 3.256 MB / 1.366 GB, free: 6.414 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.262/8.41, allocations: 10.88 kB / 1.366 GB, free: 6.41 MB / 1.061 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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