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.001344/0.001344, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00166/0.00166, allocations: 194.9 kB / 16.25 MB, free: 6.637 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.411/1.411, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.569/2.569, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.89 kB / 0.8689 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7857/0.787, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1574/0.9444, allocations: 146.9 MB / 1.16 GB, free: 15.26 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001557/0.946, allocations: 1.133 MB / 1.161 GB, free: 14.12 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.9462, allocations: 0 / 1.161 GB, free: 14.12 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003989/0.9467, allocations: 47.8 kB / 1.162 GB, free: 14.08 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0009158/0.9476, allocations: 286.9 kB / 1.162 GB, free: 13.8 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004356/0.948, allocations: 147.5 kB / 1.162 GB, free: 13.65 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005068/0.9486, allocations: 227.3 kB / 1.162 GB, free: 13.43 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.9487, allocations: 59.34 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.9488, allocations: 51.78 kB / 1.162 GB, free: 13.32 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.824e-05/0.9489, allocations: 55.77 kB / 1.162 GB, free: 13.27 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.949, allocations: 12 kB / 1.162 GB, free: 13.26 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005963/0.9496, allocations: 395.1 kB / 1.163 GB, free: 12.87 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.418e-05/0.9496, allocations: 35.84 kB / 1.163 GB, free: 12.84 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.96e-05/0.9497, allocations: 59.67 kB / 1.163 GB, free: 12.78 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005355/0.9503, allocations: 303.2 kB / 1.163 GB, free: 12.48 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.9503, allocations: 0 / 1.163 GB, free: 12.48 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9503, allocations: 0 / 1.163 GB, free: 12.48 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.912e-06/0.9503, allocations: 0 / 1.163 GB, free: 12.48 MB / 0.92 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.000741/0.951, allocations: 462.9 kB / 1.164 GB, free: 11.98 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.9511, allocations: 16.02 kB / 1.164 GB, free: 11.96 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.586e-05/0.9512, allocations: 42.69 kB / 1.164 GB, free: 11.91 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003113/0.9515, allocations: 40.72 kB / 1.164 GB, free: 11.88 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.9517, allocations: 201.8 kB / 1.164 GB, free: 11.64 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.9517, allocations: 8 kB / 1.164 GB, free: 11.63 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.9518, allocations: 12 kB / 1.164 GB, free: 11.62 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.952, allocations: 123 kB / 1.164 GB, free: 11.5 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.9521, allocations: 8 kB / 1.164 GB, free: 11.49 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.9521, allocations: 4 kB / 1.164 GB, free: 11.48 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.9521, allocations: 4 kB / 1.164 GB, free: 11.48 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.9524, allocations: 87.94 kB / 1.164 GB, free: 11.39 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.9531, allocations: 464 kB / 1.164 GB, free: 10.89 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.9533, allocations: 90.48 kB / 1.165 GB, free: 10.79 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.9534, allocations: 36.94 kB / 1.165 GB, free: 10.75 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.9535, allocations: 3.984 kB / 1.165 GB, free: 10.75 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.9535, allocations: 42.5 kB / 1.165 GB, free: 10.7 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.9535, allocations: 0 / 1.165 GB, free: 10.7 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004456/0.9539, allocations: 137.5 kB / 1.165 GB, free: 10.56 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.954, allocations: 51.41 kB / 1.165 GB, free: 10.5 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.9542, allocations: 186.7 kB / 1.165 GB, free: 10.3 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.9542, allocations: 25.7 kB / 1.165 GB, free: 10.27 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.246e-05/0.9543, allocations: 127.8 kB / 1.165 GB, free: 10.14 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.9543, allocations: 23.64 kB / 1.165 GB, free: 10.12 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.656e-05/0.9544, allocations: 21.72 kB / 1.165 GB, free: 10.09 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.9545, allocations: 322.8 kB / 1.166 GB, free: 9.77 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.9546, allocations: 35.97 kB / 1.166 GB, free: 9.734 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.327e-05/0.9547, allocations: 27.98 kB / 1.166 GB, free: 9.707 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.9549, allocations: 80.81 kB / 1.166 GB, free: 9.625 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.9549, allocations: 0 / 1.166 GB, free: 9.625 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002612/0.9552, allocations: 113.5 kB / 1.166 GB, free: 9.508 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.9552, allocations: 4 kB / 1.166 GB, free: 9.504 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.9552, allocations: 4 kB / 1.166 GB, free: 9.5 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.9552, allocations: 0 / 1.166 GB, free: 9.5 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.9554, allocations: 19.92 kB / 1.166 GB, free: 9.48 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.9554, allocations: 8.547 kB / 1.166 GB, free: 9.473 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.9555, allocations: 23.83 kB / 1.166 GB, free: 9.449 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.757e-06/0.9555, allocations: 0 / 1.166 GB, free: 9.449 MB / 0.92 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.0001032/0.9556, allocations: 126.3 kB / 1.166 GB, free: 9.316 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.531e-05/0.9557, allocations: 7.906 kB / 1.166 GB, free: 9.309 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.956, allocations: 127 kB / 1.166 GB, free: 9.18 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.956, allocations: 4 kB / 1.166 GB, free: 9.176 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.956, allocations: 0 / 1.166 GB, free: 9.176 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.956, allocations: 0 / 1.166 GB, free: 9.176 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.9563, allocations: 233.4 kB / 1.166 GB, free: 8.898 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.9563, allocations: 0 / 1.166 GB, free: 8.898 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.9564, allocations: 15.98 kB / 1.166 GB, free: 8.883 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.9564, allocations: 0 / 1.166 GB, free: 8.883 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.9564, allocations: 0 / 1.166 GB, free: 8.883 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.9564, allocations: 0 / 1.166 GB, free: 8.883 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.9564, allocations: 0 / 1.166 GB, free: 8.883 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002856/0.9567, allocations: 211.3 kB / 1.167 GB, free: 8.66 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.9568, allocations: 96.86 kB / 1.167 GB, free: 8.547 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.9568, allocations: 3.938 kB / 1.167 GB, free: 8.543 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.9569, allocations: 7.984 kB / 1.167 GB, free: 8.535 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.957, allocations: 4 kB / 1.167 GB, free: 8.531 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.957, allocations: 7.984 kB / 1.167 GB, free: 8.523 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000109/0.9571, allocations: 141.2 kB / 1.167 GB, free: 8.387 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9571, allocations: 3.938 kB / 1.167 GB, free: 8.383 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002513/0.9574, allocations: 24 kB / 1.167 GB, free: 8.359 MB / 0.92 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.0006282/0.958, allocations: 0.7435 MB / 1.168 GB, free: 7.59 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.9583, allocations: 83.88 kB / 1.168 GB, free: 7.508 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.9583, allocations: 0 / 1.168 GB, free: 7.508 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.9584, allocations: 43.91 kB / 1.168 GB, free: 7.465 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004807/0.9589, allocations: 35.91 kB / 1.168 GB, free: 7.43 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.9609, allocations: 1.776 MB / 1.169 GB, free: 5.574 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.9612, allocations: 0.7079 MB / 1.17 GB, free: 4.84 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 7.942e-05/0.9613, allocations: 20.86 kB / 1.17 GB, free: 4.82 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.132e-05/0.9614, allocations: 35.42 kB / 1.17 GB, free: 4.785 MB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.9614, allocations: 0 / 1.17 GB, free: 4.785 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/0.9755, allocations: 3.022 MB / 1.173 GB, free: 1.922 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/0.9757, allocations: 216.9 kB / 1.173 GB, free: 1.668 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.902, allocations: 0 / 1.173 GB, free: 1.668 MB / 0.92 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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