Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.219/2.219, allocations: 387.2 MB / 394.5 MB, free: 4.367 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002443/0.002442, allocations: 189.2 kB / 487 MB, free: 10.93 MB / 402.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.587/1.587, allocations: 221.3 MB / 0.7819 GB, free: 3.891 MB / 0.5496 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 100.6 kB / 0.9213 GB, free: 4.98 MB / 0.6902 GB Notification: Performance of FrontEnd - loaded program: time 8.867e-06/9.127e-06, allocations: 4 kB / 1.066 GB, free: 141 MB / 0.7214 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3168, allocations: 142.3 MB / 1.205 GB, free: 14.71 MB / 0.7371 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.156/4.472, allocations: 1.9 GB / 3.106 GB, free: 289.2 MB / 1.143 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/4.473, allocations: 89.5 kB / 3.106 GB, free: 289.2 MB / 1.143 GB Notification: Performance of FrontEnd: time 10.34/14.81, allocations: 2.839 GB / 5.945 GB, free: 107 MB / 1.268 GB Notification: Performance of Transformations before backend: time 0.0001954/14.81, allocations: 76.34 kB / 5.945 GB, free: 107 MB / 1.268 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01168/14.82, allocations: 3.547 MB / 5.948 GB, free: 105.5 MB / 1.268 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/14.82, allocations: 14.06 kB / 5.948 GB, free: 105.5 MB / 1.268 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/14.84, allocations: 1.554 MB / 5.95 GB, free: 105.3 MB / 1.268 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/14.85, allocations: 2.609 MB / 5.952 GB, free: 104.8 MB / 1.268 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001295/14.85, allocations: 380.8 kB / 5.953 GB, free: 104.8 MB / 1.268 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006673/14.85, allocations: 134.8 kB / 5.953 GB, free: 104.8 MB / 1.268 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005329/14.85, allocations: 2.551 MB / 5.955 GB, free: 104.7 MB / 1.268 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005409/14.86, allocations: 2.416 MB / 5.958 GB, free: 104.3 MB / 1.268 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.218e-05/14.86, allocations: 3.938 kB / 5.958 GB, free: 104.3 MB / 1.268 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004133/14.86, allocations: 3.906 kB / 5.958 GB, free: 104.3 MB / 1.268 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.552e-05/14.86, allocations: 92.66 kB / 5.958 GB, free: 104.3 MB / 1.268 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02503/14.88, allocations: 13.84 MB / 5.971 GB, free: 96.81 MB / 1.268 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/14.89, allocations: 1.407 MB / 5.973 GB, free: 96.59 MB / 1.268 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000815/14.89, allocations: 0.6334 MB / 5.973 GB, free: 96.57 MB / 1.268 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007089/14.89, allocations: 0.6442 MB / 5.974 GB, free: 95.91 MB / 1.268 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/14.89, allocations: 51.75 kB / 5.974 GB, free: 95.88 MB / 1.268 GB Notification: Performance of pre-optimization done (n=110): time 2.976e-06/14.89, allocations: 6.125 kB / 5.974 GB, free: 95.87 MB / 1.268 GB Notification: Performance of matching and sorting (n=110): time 0.00365/14.89, allocations: 1.646 MB / 5.976 GB, free: 95.71 MB / 1.268 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/14.89, allocations: 59.91 kB / 5.976 GB, free: 95.64 MB / 1.268 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002242/14.89, allocations: 1.574 MB / 5.977 GB, free: 95.41 MB / 1.268 GB Notification: Performance of collectPreVariables (initialization): time 0.0002434/14.89, allocations: 34.42 kB / 5.977 GB, free: 95.38 MB / 1.268 GB Notification: Performance of collectInitialEqns (initialization): time 0.000501/14.89, allocations: 0.9402 MB / 5.978 GB, free: 94.82 MB / 1.268 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002911/14.89, allocations: 370.7 kB / 5.978 GB, free: 94.59 MB / 1.268 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/14.89, allocations: 2.969 kB / 5.978 GB, free: 94.59 MB / 1.268 GB Notification: Performance of setup shared object (initialization): time 0.000129/14.9, allocations: 379.5 kB / 5.979 GB, free: 94.28 MB / 1.268 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009774/14.9, allocations: 0.6888 MB / 5.979 GB, free: 94.27 MB / 1.268 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/14.9, allocations: 1.342 MB / 5.981 GB, free: 93.5 MB / 1.268 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002215/14.9, allocations: 1.226 MB / 5.982 GB, free: 93.47 MB / 1.268 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/14.9, allocations: 3.5 kB / 5.982 GB, free: 93.47 MB / 1.268 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004518/14.9, allocations: 2.446 MB / 5.984 GB, free: 93.24 MB / 1.268 GB Notification: Performance of prepare postOptimizeDAE: time 0.001293/14.91, allocations: 5.561 MB / 5.99 GB, free: 87.43 MB / 1.268 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-05/14.91, allocations: 15.5 kB / 5.99 GB, free: 87.43 MB / 1.268 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.258e-05/14.91, allocations: 21.78 kB / 5.99 GB, free: 87.43 MB / 1.268 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003129/14.91, allocations: 0.5855 MB / 5.99 GB, free: 87.41 MB / 1.268 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/14.91, allocations: 2.417 MB / 5.993 GB, free: 85.05 MB / 1.268 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004662/14.91, allocations: 0.4941 MB / 5.993 GB, free: 84.96 MB / 1.268 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005016/14.91, allocations: 95.52 kB / 5.993 GB, free: 84.96 MB / 1.268 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/14.92, allocations: 8.406 kB / 5.993 GB, free: 84.96 MB / 1.268 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005001/14.92, allocations: 2.181 MB / 5.995 GB, free: 84.87 MB / 1.268 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.545e-05/14.92, allocations: 14.47 kB / 5.996 GB, free: 84.87 MB / 1.268 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.924e-05/14.92, allocations: 25.16 kB / 5.996 GB, free: 84.87 MB / 1.268 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/14.92, allocations: 0.5536 MB / 5.996 GB, free: 84.84 MB / 1.268 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-05/14.92, allocations: 33.58 kB / 5.996 GB, free: 84.84 MB / 1.268 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003812/14.93, allocations: 402.9 kB / 5.996 GB, free: 84.77 MB / 1.268 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003229/14.93, allocations: 95.14 kB / 5.997 GB, free: 84.77 MB / 1.268 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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.0006791/14.93, allocations: 158.5 kB / 5.997 GB, free: 84.63 MB / 1.268 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008388/14.93, allocations: 217.8 kB / 5.997 GB, free: 84.52 MB / 1.268 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003538/14.93, allocations: 1.696 MB / 5.999 GB, free: 84.42 MB / 1.268 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/14.93, allocations: 10.41 kB / 5.999 GB, free: 84.42 MB / 1.268 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/14.93, allocations: 5.969 kB / 5.999 GB, free: 84.42 MB / 1.268 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/14.93, allocations: 10.69 kB / 5.999 GB, free: 84.41 MB / 1.268 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/14.94, allocations: 4.036 MB / 6.003 GB, free: 83.83 MB / 1.268 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/14.94, allocations: 6.031 kB / 6.003 GB, free: 83.83 MB / 1.268 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001878/14.94, allocations: 324.2 kB / 6.003 GB, free: 83.82 MB / 1.268 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.98e-05/14.94, allocations: 9.281 kB / 6.003 GB, free: 83.82 MB / 1.268 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/14.94, allocations: 16.58 kB / 6.003 GB, free: 83.82 MB / 1.268 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/14.95, allocations: 2.382 MB / 6.005 GB, free: 81.48 MB / 1.268 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.186e-05/14.95, allocations: 9.781 kB / 6.005 GB, free: 81.47 MB / 1.268 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004161/14.95, allocations: 2.243 MB / 6.007 GB, free: 80.4 MB / 1.268 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002389/14.95, allocations: 0.509 MB / 6.008 GB, free: 80.18 MB / 1.268 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001056/14.95, allocations: 11.02 kB / 6.008 GB, free: 80.18 MB / 1.268 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003175/14.96, allocations: 263.5 kB / 6.008 GB, free: 80.16 MB / 1.268 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/14.96, allocations: 71.55 kB / 6.008 GB, free: 80.16 MB / 1.268 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/14.96, allocations: 65.94 kB / 6.008 GB, free: 80.16 MB / 1.268 GB Notification: Performance of sort global known variables: time 0.002745/14.96, allocations: 1.158 MB / 6.009 GB, free: 80.01 MB / 1.268 GB Notification: Performance of remove unused functions: time 0.007552/14.97, allocations: 1.751 MB / 6.011 GB, free: 79.83 MB / 1.268 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.01179/14.98, allocations: 8.277 MB / 6.019 GB, free: 75.55 MB / 1.268 GB Notification: Performance of simCode: created initialization part: time 0.007982/14.99, allocations: 2.822 MB / 6.022 GB, free: 75.3 MB / 1.268 GB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/14.99, allocations: 6.375 kB / 6.022 GB, free: 75.3 MB / 1.268 GB Notification: Performance of simCode: created simulation system equations: time 0.001709/14.99, allocations: 0.6564 MB / 6.023 GB, free: 75.27 MB / 1.268 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004953/14.99, allocations: 0.713 MB / 6.023 GB, free: 75.23 MB / 1.268 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/15.01, allocations: 3.246 MB / 6.027 GB, free: 74.24 MB / 1.268 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004284/15.01, allocations: 1.969 MB / 6.028 GB, free: 73.48 MB / 1.268 GB Notification: Performance of SimCode: time 1.753e-06/15.01, allocations: 0 / 6.028 GB, free: 73.48 MB / 1.268 GB Notification: Performance of Templates: time 0.1533/15.16, allocations: 81.66 MB / 6.108 GB, free: 25.12 MB / 1.268 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches