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.001144/0.001144, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 196.3 kB / 16.53 MB, free: 6.664 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.23/1.23, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.421/2.421, allocations: 437.1 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 63.91 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5642/0.5656, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1391/0.7047, allocations: 149 MB / 1.163 GB, free: 12.91 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001442/0.7061, allocations: 1.133 MB / 1.164 GB, free: 11.78 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.7063, allocations: 4 kB / 1.164 GB, free: 11.77 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003037/0.7066, allocations: 47.67 kB / 1.164 GB, free: 11.73 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000746/0.7074, allocations: 314.6 kB / 1.164 GB, free: 11.42 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.7078, allocations: 159.3 kB / 1.165 GB, free: 11.26 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004161/0.7082, allocations: 231.4 kB / 1.165 GB, free: 11.04 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.7083, allocations: 55.28 kB / 1.165 GB, free: 10.98 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.787e-05/0.7084, allocations: 55.78 kB / 1.165 GB, free: 10.93 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.693e-05/0.7085, allocations: 63.75 kB / 1.165 GB, free: 10.87 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.7086, allocations: 12 kB / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005576/0.7091, allocations: 371.2 kB / 1.165 GB, free: 10.49 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 5.259e-05/0.7092, allocations: 27.92 kB / 1.165 GB, free: 10.46 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.791e-05/0.7092, allocations: 63.67 kB / 1.165 GB, free: 10.4 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004244/0.7097, allocations: 287.3 kB / 1.166 GB, free: 10.12 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.7097, allocations: 0 / 1.166 GB, free: 10.12 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7097, allocations: 0 / 1.166 GB, free: 10.12 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.7097, allocations: 0 / 1.166 GB, free: 10.12 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.0006294/0.7103, allocations: 470.9 kB / 1.166 GB, free: 9.613 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.7104, allocations: 11.97 kB / 1.166 GB, free: 9.602 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.7104, allocations: 42.75 kB / 1.166 GB, free: 9.551 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002797/0.7107, allocations: 36.72 kB / 1.166 GB, free: 9.516 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.7109, allocations: 204 kB / 1.166 GB, free: 9.277 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.711, allocations: 8 kB / 1.166 GB, free: 9.27 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.711, allocations: 12 kB / 1.166 GB, free: 9.258 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.7112, allocations: 123 kB / 1.166 GB, free: 9.133 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.7113, allocations: 0 / 1.166 GB, free: 9.133 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.7113, allocations: 4 kB / 1.166 GB, free: 9.129 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.7113, allocations: 4 kB / 1.166 GB, free: 9.125 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002547/0.7115, allocations: 87.94 kB / 1.167 GB, free: 9.039 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000639/0.7122, allocations: 464 kB / 1.167 GB, free: 8.535 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.7124, allocations: 94.42 kB / 1.167 GB, free: 8.434 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.7125, allocations: 44.94 kB / 1.167 GB, free: 8.387 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.7126, allocations: 0 / 1.167 GB, free: 8.387 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.7126, allocations: 34.56 kB / 1.167 GB, free: 8.344 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.7126, allocations: 0 / 1.167 GB, free: 8.344 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004327/0.713, allocations: 141.5 kB / 1.167 GB, free: 8.199 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.7131, allocations: 55.41 kB / 1.167 GB, free: 8.133 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.7133, allocations: 180.5 kB / 1.168 GB, free: 7.949 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.7133, allocations: 33.64 kB / 1.168 GB, free: 7.91 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.311e-05/0.7133, allocations: 115.9 kB / 1.168 GB, free: 7.793 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.7134, allocations: 27.64 kB / 1.168 GB, free: 7.766 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.066e-05/0.7134, allocations: 17.72 kB / 1.168 GB, free: 7.742 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.897e-05/0.7135, allocations: 326.8 kB / 1.168 GB, free: 7.414 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.7136, allocations: 39.97 kB / 1.168 GB, free: 7.375 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.723e-05/0.7137, allocations: 31.98 kB / 1.168 GB, free: 7.344 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.714, allocations: 77.27 kB / 1.168 GB, free: 7.266 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.714, allocations: 0 / 1.168 GB, free: 7.266 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002667/0.7142, allocations: 113.5 kB / 1.168 GB, free: 7.148 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.7143, allocations: 6.031 kB / 1.168 GB, free: 7.145 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.7143, allocations: 4 kB / 1.168 GB, free: 7.141 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.7143, allocations: 0 / 1.168 GB, free: 7.141 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.7144, allocations: 23.92 kB / 1.168 GB, free: 7.117 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.7144, allocations: 0 / 1.168 GB, free: 7.117 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.905e-05/0.7145, allocations: 23.83 kB / 1.168 GB, free: 7.094 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.7146, allocations: 4 kB / 1.168 GB, free: 7.09 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 8.445e-05/0.7146, allocations: 121.8 kB / 1.168 GB, free: 6.961 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.7147, allocations: 11.91 kB / 1.168 GB, free: 6.949 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003111/0.715, allocations: 131 kB / 1.169 GB, free: 6.816 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.715, allocations: 4 kB / 1.169 GB, free: 6.812 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.715, allocations: 0 / 1.169 GB, free: 6.812 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.715, allocations: 0 / 1.169 GB, free: 6.812 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.7152, allocations: 221.4 kB / 1.169 GB, free: 6.547 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.7153, allocations: 0 / 1.169 GB, free: 6.547 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.7154, allocations: 15.98 kB / 1.169 GB, free: 6.531 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.7154, allocations: 4 kB / 1.169 GB, free: 6.527 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.7154, allocations: 11.92 kB / 1.169 GB, free: 6.516 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.7154, allocations: 0 / 1.169 GB, free: 6.516 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.7154, allocations: 0 / 1.169 GB, free: 6.516 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.7157, allocations: 215.3 kB / 1.169 GB, free: 6.289 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.012e-05/0.7158, allocations: 92.86 kB / 1.169 GB, free: 6.18 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.7158, allocations: 3.984 kB / 1.169 GB, free: 6.176 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.7159, allocations: 8 kB / 1.169 GB, free: 6.168 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.716, allocations: 7.984 kB / 1.169 GB, free: 6.16 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-06/0.716, allocations: 4 kB / 1.169 GB, free: 6.156 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001048/0.7161, allocations: 131.5 kB / 1.169 GB, free: 6.027 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7161, allocations: 4 kB / 1.169 GB, free: 6.023 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002431/0.7163, allocations: 20 kB / 1.169 GB, free: 6.004 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.0005733/0.7169, allocations: 0.7475 MB / 1.17 GB, free: 5.23 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.00026/0.7172, allocations: 79.86 kB / 1.17 GB, free: 5.152 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7172, allocations: 4 kB / 1.17 GB, free: 5.148 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.7173, allocations: 43.86 kB / 1.17 GB, free: 5.105 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.7177, allocations: 38.05 kB / 1.17 GB, free: 5.07 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.7197, allocations: 1.743 MB / 1.172 GB, free: 3.246 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.72, allocations: 0.7157 MB / 1.173 GB, free: 2.504 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 7.004e-05/0.7201, allocations: 4.891 kB / 1.173 GB, free: 2.5 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.267e-05/0.7201, allocations: 43.42 kB / 1.173 GB, free: 2.457 MB / 0.92 GB Notification: Performance of SimCode: time 2.8e-07/0.7201, allocations: 0 / 1.173 GB, free: 2.457 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.325/2.045, allocations: 3.149 MB / 1.176 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.218/10.26, allocations: 14.47 kB / 1.176 GB, free: 15.41 MB / 0.9356 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