Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.214/1.214, allocations: 249.4 MB / 256.7 MB, free: 7.051 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001019, allocations: 192.5 kB / 316 MB, free: 3.539 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.191/1.191, allocations: 205.1 MB / 0.5667 GB, free: 15.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008695/0.0008695, allocations: 78.97 kB / 0.671 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.956e-06/8.987e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.1868, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.589/3.776, allocations: 2.213 GB / 3.098 GB, free: 190.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/3.777, allocations: 91.95 kB / 3.098 GB, free: 190.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 7.45/11.23, allocations: 2.726 GB / 5.824 GB, free: 88.19 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.0001808/11.23, allocations: 66.55 kB / 5.824 GB, free: 88.18 MB / 0.9792 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 544 * Number of variables: 544 Notification: Performance of Generate backend data structure: time 0.009897/11.24, allocations: 3.54 MB / 5.828 GB, free: 86.79 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/11.24, allocations: 10.38 kB / 5.828 GB, free: 86.79 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01146/11.25, allocations: 1.548 MB / 5.829 GB, free: 86.63 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007331/11.26, allocations: 2.604 MB / 5.832 GB, free: 86.23 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001199/11.26, allocations: 379.7 kB / 5.832 GB, free: 86.22 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006169/11.26, allocations: 135.7 kB / 5.832 GB, free: 86.22 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004277/11.26, allocations: 2.544 MB / 5.835 GB, free: 86.21 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003637/11.27, allocations: 2.429 MB / 5.837 GB, free: 85.8 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.596e-05/11.27, allocations: 4.469 kB / 5.837 GB, free: 85.8 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002215/11.27, allocations: 8.094 kB / 5.837 GB, free: 85.8 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-05/11.27, allocations: 94.16 kB / 5.837 GB, free: 85.8 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02134/11.29, allocations: 13.82 MB / 5.851 GB, free: 78.4 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/11.29, allocations: 1.405 MB / 5.852 GB, free: 78.18 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007721/11.29, allocations: 0.6356 MB / 5.853 GB, free: 78.17 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006463/11.29, allocations: 0.6403 MB / 5.853 GB, free: 77.51 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/11.29, allocations: 53.83 kB / 5.853 GB, free: 77.47 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=110): time 3.627e-06/11.29, allocations: 3.125 kB / 5.853 GB, free: 77.47 MB / 0.9792 GB Notification: Performance of matching and sorting (n=110): time 0.003336/11.29, allocations: 1.637 MB / 5.855 GB, free: 77.31 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/11.29, allocations: 65.31 kB / 5.855 GB, free: 77.25 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001994/11.3, allocations: 1.535 MB / 5.856 GB, free: 77.02 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0002031/11.3, allocations: 37.36 kB / 5.856 GB, free: 76.99 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004576/11.3, allocations: 0.9464 MB / 5.857 GB, free: 76.43 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002604/11.3, allocations: 372.3 kB / 5.858 GB, free: 76.19 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/11.3, allocations: 0 / 5.858 GB, free: 76.19 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 8.967e-05/11.3, allocations: 372.9 kB / 5.858 GB, free: 75.89 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/11.3, allocations: 0.6837 MB / 5.859 GB, free: 75.88 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/11.3, allocations: 1.274 MB / 5.86 GB, free: 75.17 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/11.3, allocations: 1.22 MB / 5.861 GB, free: 75.16 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/11.3, allocations: 5.469 kB / 5.861 GB, free: 75.16 MB / 0.9792 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004432/11.31, allocations: 2.432 MB / 5.864 GB, free: 74.99 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.00114/11.31, allocations: 5.882 MB / 5.869 GB, free: 68.83 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.629e-05/11.31, allocations: 17.97 kB / 5.869 GB, free: 68.83 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.992e-05/11.31, allocations: 29.45 kB / 5.869 GB, free: 68.83 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003005/11.31, allocations: 0.5908 MB / 5.87 GB, free: 68.83 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/11.31, allocations: 2.416 MB / 5.872 GB, free: 66.49 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003944/11.32, allocations: 0.4985 MB / 5.873 GB, free: 66.4 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/11.32, allocations: 97.47 kB / 5.873 GB, free: 66.4 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/11.32, allocations: 4.906 kB / 5.873 GB, free: 66.4 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004084/11.32, allocations: 2.18 MB / 5.875 GB, free: 66.37 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.315e-05/11.32, allocations: 15.66 kB / 5.875 GB, free: 66.37 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.202e-05/11.32, allocations: 27.75 kB / 5.875 GB, free: 66.36 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002511/11.32, allocations: 0.5534 MB / 5.876 GB, free: 66.36 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.844e-05/11.32, allocations: 33.58 kB / 5.876 GB, free: 66.36 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003299/11.33, allocations: 402.5 kB / 5.876 GB, free: 66.3 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002744/11.33, allocations: 91.77 kB / 5.876 GB, free: 66.3 MB / 0.9792 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005999/11.33, allocations: 158.6 kB / 5.876 GB, free: 66.19 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007377/11.33, allocations: 222 kB / 5.876 GB, free: 66.07 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/11.33, allocations: 1.686 MB / 5.878 GB, free: 65.98 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/11.33, allocations: 11.03 kB / 5.878 GB, free: 65.98 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/11.33, allocations: 3.062 kB / 5.878 GB, free: 65.98 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/11.33, allocations: 14.08 kB / 5.878 GB, free: 65.98 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00807/11.34, allocations: 4.05 MB / 5.882 GB, free: 65.44 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/11.34, allocations: 6.375 kB / 5.882 GB, free: 65.44 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/11.34, allocations: 325.5 kB / 5.882 GB, free: 65.44 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-05/11.34, allocations: 13.69 kB / 5.882 GB, free: 65.44 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/11.34, allocations: 18.8 kB / 5.882 GB, free: 65.44 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007967/11.34, allocations: 2.38 MB / 5.885 GB, free: 63.1 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/11.34, allocations: 8.156 kB / 5.885 GB, free: 63.1 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00298/11.35, allocations: 2.231 MB / 5.887 GB, free: 62.04 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/11.35, allocations: 0.5196 MB / 5.887 GB, free: 61.82 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007636/11.35, allocations: 8.703 kB / 5.887 GB, free: 61.82 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002988/11.35, allocations: 269.9 kB / 5.888 GB, free: 61.8 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/11.35, allocations: 75.72 kB / 5.888 GB, free: 61.8 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/11.35, allocations: 66 kB / 5.888 GB, free: 61.8 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.002283/11.35, allocations: 1.133 MB / 5.889 GB, free: 61.65 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.006802/11.36, allocations: 1.755 MB / 5.891 GB, free: 61.48 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01071/11.37, allocations: 8.287 MB / 5.899 GB, free: 57.23 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.006245/11.38, allocations: 2.806 MB / 5.901 GB, free: 57.09 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/11.38, allocations: 7.703 kB / 5.901 GB, free: 57.09 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001313/11.38, allocations: 0.6567 MB / 5.902 GB, free: 57.09 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004325/11.38, allocations: 0.7056 MB / 5.903 GB, free: 57.05 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008593/11.39, allocations: 3.161 MB / 5.906 GB, free: 56.09 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/11.39, allocations: 1.953 MB / 5.908 GB, free: 55.35 MB / 0.9792 GB Notification: Performance of SimCode: time 1.473e-06/11.39, allocations: 0 / 5.908 GB, free: 55.35 MB / 0.9792 GB Notification: Performance of Templates: time 0.1244/11.52, allocations: 80.94 MB / 5.987 GB, free: 49.24 MB / 0.9792 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches