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: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 100 kB / 15.05 MB, free: 1.105 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.001092/0.001092, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.2 MB / 239.9 MB, free: 5.414 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.384/2.384, allocations: 390.3 MB / 0.6653 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003417, allocations: 8 kB / 0.8145 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6711/0.6714, allocations: 142.3 MB / 0.9535 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1495/0.821, allocations: 125.9 MB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.8227, allocations: 0.8575 MB / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.8228, allocations: 0 / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.8232, allocations: 35.81 kB / 1.077 GB, free: 1.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005354/0.8237, allocations: 147.5 kB / 1.077 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.824, allocations: 91.81 kB / 1.078 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007481/0.8248, allocations: 231.4 kB / 1.078 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.825, allocations: 49.27 kB / 1.078 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.007e-05/0.825, allocations: 35.84 kB / 1.078 GB, free: 488 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.339e-05/0.8251, allocations: 35.78 kB / 1.078 GB, free: 452 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.8252, allocations: 4 kB / 1.078 GB, free: 448 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00041/0.8256, allocations: 207.7 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.487e-05/0.8256, allocations: 19.91 kB / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.037e-05/0.8257, allocations: 45.64 kB / 1.078 GB, free: 168 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002488/0.8259, allocations: 165.6 kB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.826, allocations: 0 / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.244e-06/0.826, allocations: 3.938 kB / 1.078 GB, free: 0 / 0.8262 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.826, allocations: 0 / 1.078 GB, free: 0 / 0.8262 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.0006575/0.8266, allocations: 438.7 kB / 1.079 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.8267, allocations: 11.97 kB / 1.079 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.827, allocations: 39.88 kB / 1.079 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.8272, allocations: 197.1 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.8273, allocations: 8 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.8273, allocations: 12 kB / 1.079 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.8275, allocations: 125.5 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.8276, allocations: 0 / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.8276, allocations: 4 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.8276, allocations: 4 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002569/0.8279, allocations: 107.9 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.8285, allocations: 452.1 kB / 1.08 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002275/0.8288, allocations: 106.5 kB / 1.08 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.8288, allocations: 0 / 1.08 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.8288, allocations: 34.56 kB / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.8288, allocations: 0 / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004375/0.8293, allocations: 161.8 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.8293, allocations: 55.39 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.8295, allocations: 170.4 kB / 1.08 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.8295, allocations: 33.7 kB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.8296, allocations: 119.9 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.8296, allocations: 23.7 kB / 1.08 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.8296, allocations: 0 / 1.08 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8298, allocations: 322.8 kB / 1.081 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.8299, allocations: 35.92 kB / 1.081 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.83, allocations: 43.97 kB / 1.081 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.8301, allocations: 35.98 kB / 1.081 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.8301, allocations: 3.938 kB / 1.081 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002613/0.8304, allocations: 134 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.8304, allocations: 4 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.8304, allocations: 4.016 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.8304, allocations: 7.938 kB / 1.081 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.8306, allocations: 19.98 kB / 1.081 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.8306, allocations: 3.984 kB / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.438e-05/0.8307, allocations: 19.84 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.8307, allocations: 11.94 kB / 1.081 GB, free: 13.09 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.806e-05/0.8308, allocations: 121.8 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.8308, allocations: 11.91 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003216/0.8312, allocations: 135 kB / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.8312, allocations: 0 / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.8312, allocations: 3.953 kB / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.8312, allocations: 3.984 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.8314, allocations: 217.6 kB / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.8314, allocations: 0 / 1.081 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.8315, allocations: 23.92 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.8316, allocations: 0 / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-06/0.8316, allocations: 0 / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.8316, allocations: 0 / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.8316, allocations: 4 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.8319, allocations: 219.4 kB / 1.082 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-05/0.832, allocations: 96.84 kB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.832, allocations: 4 kB / 1.082 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.8321, allocations: 8 kB / 1.082 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.8322, allocations: 11.98 kB / 1.082 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.8322, allocations: 0 / 1.082 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001094/0.8323, allocations: 141.2 kB / 1.082 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8323, allocations: 0 / 1.082 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002465/0.8325, allocations: 24 kB / 1.082 GB, free: 11.99 MB / 0.8419 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002066/0.8328, allocations: 111 kB / 1.082 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002822/0.833, allocations: 79.95 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.8331, allocations: 0 / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.8332, allocations: 55.91 kB / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.8335, allocations: 31.91 kB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005205/0.8341, allocations: 301.5 kB / 1.082 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.8343, allocations: 0.72 MB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.86e-05/0.8344, allocations: 4.891 kB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.8345, allocations: 23.42 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of SimCode: time 3.9e-07/0.8345, allocations: 0 / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of Templates: time 0.004107/0.8386, allocations: 1.423 MB / 1.085 GB, free: 9.215 MB / 0.8419 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile (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 & ./Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","../files/Buildings_9_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches