Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,fileNamePrefix="Buildings_9_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.00151/0.001509, 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.001585/0.001585, allocations: 194 kB / 16.14 MB, free: 6.648 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.239/2.239, allocations: 390.2 MB / 0.6643 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001372, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6064/0.6078, allocations: 140.4 MB / 0.9491 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1437/0.7516, allocations: 146.7 MB / 1.092 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.753, allocations: 1.149 MB / 1.093 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.7532, allocations: 0 / 1.093 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000314/0.7536, allocations: 47.73 kB / 1.094 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008583/0.7544, allocations: 278.9 kB / 1.094 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004906/0.7549, allocations: 155.5 kB / 1.094 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005322/0.7555, allocations: 231.3 kB / 1.094 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.7556, allocations: 55.33 kB / 1.094 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.693e-05/0.7557, allocations: 47.8 kB / 1.094 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.7558, allocations: 59.69 kB / 1.094 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.7559, allocations: 8 kB / 1.094 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006588/0.7565, allocations: 415.1 kB / 1.095 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.677e-05/0.7566, allocations: 23.91 kB / 1.095 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.018e-05/0.7567, allocations: 59.67 kB / 1.095 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004572/0.7572, allocations: 295.2 kB / 1.095 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.7572, allocations: 0 / 1.095 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7572, allocations: 0 / 1.095 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.7572, allocations: 0 / 1.095 GB, free: 12.08 MB / 0.8575 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.0007065/0.7579, allocations: 474.8 kB / 1.096 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.7579, allocations: 11.97 kB / 1.096 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.297e-05/0.758, allocations: 46.73 kB / 1.096 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000298/0.7583, allocations: 32.81 kB / 1.096 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.7585, allocations: 216.4 kB / 1.096 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.7586, allocations: 4 kB / 1.096 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.7586, allocations: 19.94 kB / 1.096 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.7588, allocations: 111.6 kB / 1.096 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.7589, allocations: 0 / 1.096 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.7589, allocations: 4 kB / 1.096 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.7589, allocations: 4 kB / 1.096 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.7591, allocations: 99.8 kB / 1.096 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006445/0.7598, allocations: 456.1 kB / 1.096 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.76, allocations: 94.52 kB / 1.097 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.7601, allocations: 40.95 kB / 1.097 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.7602, allocations: 7.984 kB / 1.097 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.7602, allocations: 34.56 kB / 1.097 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 3.587e-06/0.7602, allocations: 0 / 1.097 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004144/0.7606, allocations: 137.5 kB / 1.097 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.7606, allocations: 55.41 kB / 1.097 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.7608, allocations: 182.9 kB / 1.097 GB, free: 9.891 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.7608, allocations: 25.7 kB / 1.097 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.268e-05/0.7609, allocations: 116 kB / 1.097 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.7609, allocations: 23.62 kB / 1.097 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/0.761, allocations: 21.7 kB / 1.097 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.449e-05/0.7611, allocations: 330.8 kB / 1.097 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.7612, allocations: 31.98 kB / 1.098 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.44e-05/0.7613, allocations: 35.97 kB / 1.098 GB, free: 9.293 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.7615, allocations: 85.19 kB / 1.098 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.7615, allocations: 0 / 1.098 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002586/0.7618, allocations: 113.6 kB / 1.098 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.7618, allocations: 4 kB / 1.098 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.7618, allocations: 0 / 1.098 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.7618, allocations: 4 kB / 1.098 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.762, allocations: 23.98 kB / 1.098 GB, free: 9.059 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.762, allocations: 3.938 kB / 1.098 GB, free: 9.055 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.7621, allocations: 19.77 kB / 1.098 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.7621, allocations: 0 / 1.098 GB, free: 9.035 MB / 0.8575 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.906e-05/0.7622, allocations: 125.8 kB / 1.098 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.371e-05/0.7622, allocations: 7.906 kB / 1.098 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003027/0.7625, allocations: 127 kB / 1.098 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.7626, allocations: 0 / 1.098 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.7626, allocations: 4 kB / 1.098 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.7626, allocations: 3.938 kB / 1.098 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.7628, allocations: 221.5 kB / 1.098 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.7628, allocations: 0 / 1.098 GB, free: 8.492 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.7629, allocations: 15.98 kB / 1.098 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.7629, allocations: 3.938 kB / 1.098 GB, free: 8.473 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.7629, allocations: 7.938 kB / 1.098 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.7629, allocations: 4 kB / 1.098 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.7629, allocations: 0 / 1.098 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/0.7632, allocations: 211.3 kB / 1.099 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.7633, allocations: 88.86 kB / 1.099 GB, free: 8.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.7633, allocations: 4 kB / 1.099 GB, free: 8.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.7634, allocations: 11.98 kB / 1.099 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.7635, allocations: 4 kB / 1.099 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.7635, allocations: 7.938 kB / 1.099 GB, free: 8.105 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001022/0.7636, allocations: 137.2 kB / 1.099 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7636, allocations: 0 / 1.099 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000241/0.7638, allocations: 24 kB / 1.099 GB, free: 7.949 MB / 0.8575 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.0005679/0.7644, allocations: 0.7475 MB / 1.1 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002527/0.7647, allocations: 71.95 kB / 1.1 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7647, allocations: 0 / 1.1 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.7648, allocations: 47.91 kB / 1.1 GB, free: 7.059 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.7652, allocations: 31.92 kB / 1.1 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.7672, allocations: 1.782 MB / 1.101 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.7674, allocations: 0.7043 MB / 1.102 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.012e-05/0.7675, allocations: 16.86 kB / 1.102 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.823e-05/0.7676, allocations: 35.42 kB / 1.102 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.7676, allocations: 4 kB / 1.102 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5032/1.271, allocations: 2.941 MB / 1.105 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/1.271, allocations: 216.2 kB / 1.105 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.109/3.38, allocations: 0 / 1.105 GB, free: 1.324 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches