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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001216/0.001216, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001282/0.001282, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.25/1.25, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.519/2.519, allocations: 461.8 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.7 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2938, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1497/0.4436, allocations: 146.7 MB / 1.196 GB, free: 4.922 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.4449, allocations: 1.149 MB / 1.197 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.874e-05/0.445, allocations: 4 kB / 1.197 GB, free: 3.766 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002796/0.4453, allocations: 51.72 kB / 1.197 GB, free: 3.715 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0005826/0.4459, allocations: 278.9 kB / 1.197 GB, free: 3.441 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.4462, allocations: 143.5 kB / 1.197 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.4466, allocations: 231.3 kB / 1.197 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.4467, allocations: 69.28 kB / 1.197 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 6.381e-05/0.4468, allocations: 39.8 kB / 1.197 GB, free: 2.969 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.935e-05/0.4469, allocations: 63.69 kB / 1.197 GB, free: 2.906 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.4469, allocations: 8 kB / 1.197 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005231/0.4474, allocations: 407.2 kB / 1.198 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.512e-05/0.4475, allocations: 27.84 kB / 1.198 GB, free: 2.473 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.249e-05/0.4475, allocations: 59.67 kB / 1.198 GB, free: 2.414 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.4479, allocations: 295.2 kB / 1.198 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.4479, allocations: 0 / 1.198 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.22e-07/0.4479, allocations: 0 / 1.198 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.838e-06/0.4479, allocations: 0 / 1.198 GB, free: 2.125 MB / 0.9512 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.0005555/0.4485, allocations: 466.9 kB / 1.199 GB, free: 1.621 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.4485, allocations: 15.95 kB / 1.199 GB, free: 1.605 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.858e-05/0.4486, allocations: 38.75 kB / 1.199 GB, free: 1.559 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.4488, allocations: 44.72 kB / 1.199 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.449, allocations: 213 kB / 1.199 GB, free: 1.27 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.4491, allocations: 8 kB / 1.199 GB, free: 1.262 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.4491, allocations: 12 kB / 1.199 GB, free: 1.25 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.4493, allocations: 119.5 kB / 1.199 GB, free: 1.129 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.4493, allocations: 4 kB / 1.199 GB, free: 1.125 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.4494, allocations: 4 kB / 1.199 GB, free: 1.121 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.4494, allocations: 4 kB / 1.199 GB, free: 1.117 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002475/0.4496, allocations: 91.94 kB / 1.199 GB, free: 1.027 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005948/0.4502, allocations: 460 kB / 1.2 GB, free: 0.5273 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.4504, allocations: 86.55 kB / 1.2 GB, free: 444 kB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.4506, allocations: 32.95 kB / 1.2 GB, free: 408 kB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.4506, allocations: 7.922 kB / 1.2 GB, free: 400 kB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.4506, allocations: 42.55 kB / 1.2 GB, free: 348 kB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.4506, allocations: 4 kB / 1.2 GB, free: 344 kB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0004178/0.451, allocations: 137.5 kB / 1.2 GB, free: 200 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.4511, allocations: 55.34 kB / 1.2 GB, free: 132 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.4513, allocations: 183.9 kB / 1.2 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.4513, allocations: 25.7 kB / 1.2 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.031e-05/0.4513, allocations: 115.9 kB / 1.2 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.4514, allocations: 31.64 kB / 1.2 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.995e-05/0.4514, allocations: 21.72 kB / 1.2 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.695e-05/0.4515, allocations: 322.8 kB / 1.201 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.4516, allocations: 35.97 kB / 1.201 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.06e-05/0.4517, allocations: 27.98 kB / 1.201 GB, free: 15.35 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001939/0.4519, allocations: 80.8 kB / 1.201 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4519, allocations: 4 kB / 1.201 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002484/0.4522, allocations: 113.5 kB / 1.201 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.4522, allocations: 4 kB / 1.201 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.4522, allocations: 0 / 1.201 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.4522, allocations: 4 kB / 1.201 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.4524, allocations: 15.98 kB / 1.201 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.4524, allocations: 0 / 1.201 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.963e-05/0.4525, allocations: 23.83 kB / 1.201 GB, free: 15.1 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-06/0.4525, allocations: 4 kB / 1.201 GB, free: 15.09 MB / 0.9669 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 8.403e-05/0.4526, allocations: 117.8 kB / 1.201 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.4526, allocations: 19.81 kB / 1.201 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.4529, allocations: 123.5 kB / 1.201 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.4529, allocations: 0 / 1.201 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.453, allocations: 0 / 1.201 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.453, allocations: 3.984 kB / 1.201 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.4532, allocations: 233.5 kB / 1.201 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4532, allocations: 0 / 1.201 GB, free: 14.54 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.4533, allocations: 15.98 kB / 1.201 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.4533, allocations: 0 / 1.201 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.4533, allocations: 0 / 1.201 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4533, allocations: 0 / 1.201 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4533, allocations: 0 / 1.201 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.4536, allocations: 219.3 kB / 1.202 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.61e-05/0.4537, allocations: 92.92 kB / 1.202 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.4537, allocations: 0 / 1.202 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.4538, allocations: 11.92 kB / 1.202 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.4539, allocations: 7.984 kB / 1.202 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-06/0.4539, allocations: 0 / 1.202 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000101/0.454, allocations: 144.2 kB / 1.202 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.454, allocations: 0 / 1.202 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002322/0.4542, allocations: 24 kB / 1.202 GB, free: 14 MB / 0.9669 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.000569/0.4548, allocations: 0.7551 MB / 1.203 GB, free: 13.22 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002408/0.455, allocations: 79.95 kB / 1.203 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4551, allocations: 0 / 1.203 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.4552, allocations: 39.91 kB / 1.203 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.4556, allocations: 31.97 kB / 1.203 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.4575, allocations: 1.776 MB / 1.205 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.4577, allocations: 0.7043 MB / 1.205 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.584e-05/0.4578, allocations: 16.81 kB / 1.205 GB, free: 10.47 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.968e-05/0.4579, allocations: 39.42 kB / 1.205 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.4579, allocations: 0 / 1.205 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3119/0.7698, allocations: 2.946 MB / 1.208 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002828/0.7701, allocations: 221.3 kB / 1.208 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.625, allocations: 0 / 1.208 GB, free: 7.391 MB / 0.9669 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