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.007768/0.007768, allocations: 100.8 kB / 15.73 MB, free: 6.477 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.001843/0.001843, allocations: 191.5 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.294/1.294, 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.0.1-master/package.mo): time 2.585/2.585, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 67.89 kB / 1.054 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3041, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.8034/1.108, allocations: 149 MB / 1.353 GB, free: 14.34 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00157/1.109, allocations: 1.14 MB / 1.354 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/1.109, allocations: 1.406 kB / 1.354 GB, free: 13.54 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0003706/1.11, allocations: 56.36 kB / 1.354 GB, free: 13.5 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000849/1.111, allocations: 305.6 kB / 1.354 GB, free: 13.35 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004231/1.111, allocations: 167.9 kB / 1.354 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004759/1.112, allocations: 217.8 kB / 1.355 GB, free: 13.17 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/1.112, allocations: 62.59 kB / 1.355 GB, free: 13.14 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.949e-05/1.112, allocations: 43.73 kB / 1.355 GB, free: 13.12 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/1.112, allocations: 69.12 kB / 1.355 GB, free: 13.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/1.112, allocations: 11.16 kB / 1.355 GB, free: 13.09 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006141/1.113, allocations: 365.5 kB / 1.355 GB, free: 12.96 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.179e-05/1.113, allocations: 36.86 kB / 1.355 GB, free: 12.94 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.225e-05/1.113, allocations: 69.59 kB / 1.355 GB, free: 12.89 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004783/1.113, allocations: 289 kB / 1.356 GB, free: 12.79 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/1.113, allocations: 1.25 kB / 1.356 GB, free: 12.79 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.293e-06/1.113, allocations: 0 / 1.356 GB, free: 12.79 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.387e-06/1.113, allocations: 0 / 1.356 GB, free: 12.79 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.0006498/1.114, allocations: 466.2 kB / 1.356 GB, free: 12.36 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/1.114, allocations: 14.77 kB / 1.356 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.093e-05/1.114, allocations: 47.56 kB / 1.356 GB, free: 12.3 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/1.114, allocations: 36.72 kB / 1.356 GB, free: 12.3 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/1.115, allocations: 214.5 kB / 1.356 GB, free: 12.07 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/1.115, allocations: 7.375 kB / 1.356 GB, free: 12.07 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/1.115, allocations: 11.34 kB / 1.356 GB, free: 12.06 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/1.115, allocations: 112.8 kB / 1.356 GB, free: 12 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/1.115, allocations: 4.703 kB / 1.356 GB, free: 12 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/1.115, allocations: 5.375 kB / 1.356 GB, free: 12 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/1.115, allocations: 6.797 kB / 1.356 GB, free: 11.99 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/1.115, allocations: 87.66 kB / 1.356 GB, free: 11.97 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006985/1.116, allocations: 463.6 kB / 1.357 GB, free: 11.6 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002052/1.116, allocations: 91.52 kB / 1.357 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/1.116, allocations: 40.8 kB / 1.357 GB, free: 11.53 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/1.116, allocations: 5.688 kB / 1.357 GB, free: 11.52 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/1.116, allocations: 32.31 kB / 1.357 GB, free: 11.48 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/1.116, allocations: 0 / 1.357 GB, free: 11.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004327/1.117, allocations: 145 kB / 1.357 GB, free: 11.41 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/1.117, allocations: 56.66 kB / 1.357 GB, free: 11.35 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/1.117, allocations: 180.3 kB / 1.357 GB, free: 11.22 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/1.117, allocations: 27.23 kB / 1.357 GB, free: 11.19 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.917e-05/1.117, allocations: 115.5 kB / 1.358 GB, free: 11.09 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/1.117, allocations: 21.11 kB / 1.358 GB, free: 11.07 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/1.117, allocations: 27.02 kB / 1.358 GB, free: 11.04 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001059/1.117, allocations: 332.1 kB / 1.358 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/1.117, allocations: 29.36 kB / 1.358 GB, free: 10.71 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.114e-05/1.118, allocations: 32.36 kB / 1.358 GB, free: 10.7 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/1.118, allocations: 71.25 kB / 1.358 GB, free: 10.68 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.118, allocations: 0 / 1.358 GB, free: 10.68 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002635/1.118, allocations: 124.3 kB / 1.358 GB, free: 10.61 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/1.118, allocations: 5.531 kB / 1.358 GB, free: 10.61 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/1.118, allocations: 0.5156 kB / 1.358 GB, free: 10.61 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/1.118, allocations: 1.469 kB / 1.358 GB, free: 10.61 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/1.118, allocations: 20.81 kB / 1.358 GB, free: 10.61 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/1.118, allocations: 4.719 kB / 1.358 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.684e-05/1.118, allocations: 11.64 kB / 1.358 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/1.118, allocations: 3.5 kB / 1.358 GB, free: 10.6 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 9.176e-05/1.118, allocations: 127.9 kB / 1.358 GB, free: 10.47 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/1.118, allocations: 14.41 kB / 1.358 GB, free: 10.46 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000331/1.119, allocations: 128.2 kB / 1.359 GB, free: 10.39 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/1.119, allocations: 1.375 kB / 1.359 GB, free: 10.39 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/1.119, allocations: 0 / 1.359 GB, free: 10.39 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/1.119, allocations: 2.219 kB / 1.359 GB, free: 10.39 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/1.119, allocations: 222.1 kB / 1.359 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/1.119, allocations: 5.188 kB / 1.359 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/1.119, allocations: 14.36 kB / 1.359 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/1.119, allocations: 1.344 kB / 1.359 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/1.119, allocations: 0 / 1.359 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/1.119, allocations: 1.312 kB / 1.359 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/1.119, allocations: 0 / 1.359 GB, free: 10.18 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000285/1.119, allocations: 221.3 kB / 1.359 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/1.12, allocations: 90.92 kB / 1.359 GB, free: 9.902 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/1.12, allocations: 1.719 kB / 1.359 GB, free: 9.902 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/1.12, allocations: 11.36 kB / 1.359 GB, free: 9.898 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/1.12, allocations: 5.75 kB / 1.359 GB, free: 9.898 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/1.12, allocations: 0 / 1.359 GB, free: 9.898 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001126/1.12, allocations: 134.3 kB / 1.359 GB, free: 9.805 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.21e-07/1.12, allocations: 0 / 1.359 GB, free: 9.805 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002419/1.12, allocations: 26.47 kB / 1.359 GB, free: 9.797 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.0005929/1.121, allocations: 0.754 MB / 1.36 GB, free: 9.098 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002575/1.121, allocations: 77.08 kB / 1.36 GB, free: 9.078 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.121, allocations: 1.25 kB / 1.36 GB, free: 9.078 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/1.121, allocations: 39.53 kB / 1.36 GB, free: 9.066 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/1.121, allocations: 36.77 kB / 1.36 GB, free: 9.055 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002066/1.124, allocations: 1.752 MB / 1.362 GB, free: 7.68 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/1.124, allocations: 0.7092 MB / 1.362 GB, free: 6.98 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.945e-05/1.124, allocations: 12.73 kB / 1.363 GB, free: 6.977 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.811e-05/1.124, allocations: 40.42 kB / 1.363 GB, free: 6.945 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/1.124, allocations: 0 / 1.363 GB, free: 6.945 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02058/1.145, allocations: 3.255 MB / 1.366 GB, free: 6.469 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.027/8.172, allocations: 13.75 kB / 1.366 GB, free: 6.461 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