Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.979/1.979, allocations: 390.4 MB / 397.7 MB, free: 10.55 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 175.6 kB / 490.8 MB, free: 11.1 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 221.4 MB / 0.7863 GB, free: 13.55 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000981/0.0009811, allocations: 103.9 kB / 0.9264 GB, free: 4.551 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 7.624e-06/7.654e-06, allocations: 0 / 1.072 GB, free: 15.59 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7507/0.7507, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.857/4.608, allocations: 1.901 GB / 3.113 GB, free: 243.2 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/4.608, allocations: 89.52 kB / 3.113 GB, free: 243.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 9.563/14.17, allocations: 2.839 GB / 5.952 GB, free: 101.7 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.0004242/14.17, allocations: 69.5 kB / 5.952 GB, free: 101.7 MB / 1.245 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.0133/14.18, allocations: 3.562 MB / 5.955 GB, free: 99.2 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/14.19, allocations: 6.75 kB / 5.955 GB, free: 99.2 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01866/14.2, allocations: 1.546 MB / 5.957 GB, free: 98.65 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01167/14.22, allocations: 2.621 MB / 5.959 GB, free: 96.9 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00209/14.22, allocations: 379.9 kB / 5.96 GB, free: 96.83 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001134/14.22, allocations: 134.7 kB / 5.96 GB, free: 96.83 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007976/14.23, allocations: 2.551 MB / 5.962 GB, free: 95.34 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00606/14.23, allocations: 2.415 MB / 5.965 GB, free: 92.78 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.665e-05/14.23, allocations: 4.625 kB / 5.965 GB, free: 92.78 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003663/14.23, allocations: 4 kB / 5.965 GB, free: 92.77 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/14.23, allocations: 91.94 kB / 5.965 GB, free: 92.68 MB / 1.245 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03179/14.27, allocations: 13.85 MB / 5.978 GB, free: 78.1 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002931/14.27, allocations: 1.404 MB / 5.98 GB, free: 76.66 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/14.27, allocations: 0.6343 MB / 5.98 GB, free: 76.03 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009274/14.27, allocations: 0.6462 MB / 5.981 GB, free: 75.27 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/14.27, allocations: 55.45 kB / 5.981 GB, free: 75.2 MB / 1.245 GB Notification: Performance of pre-optimization done (n=110): time 4.839e-06/14.27, allocations: 3.031 kB / 5.981 GB, free: 75.2 MB / 1.245 GB Notification: Performance of matching and sorting (n=110): time 0.005581/14.28, allocations: 1.648 MB / 5.983 GB, free: 73.55 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/14.28, allocations: 64.41 kB / 5.983 GB, free: 73.48 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00339/14.28, allocations: 1.557 MB / 5.984 GB, free: 71.89 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.000319/14.28, allocations: 37.7 kB / 5.984 GB, free: 71.85 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006395/14.28, allocations: 0.9506 MB / 5.985 GB, free: 70.88 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003583/14.28, allocations: 378.5 kB / 5.986 GB, free: 70.51 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/14.28, allocations: 0 / 5.986 GB, free: 70.51 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.0001236/14.28, allocations: 372.2 kB / 5.986 GB, free: 70.14 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/14.28, allocations: 0.6912 MB / 5.987 GB, free: 69.45 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/14.28, allocations: 1.335 MB / 5.988 GB, free: 67.84 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/14.29, allocations: 1.235 MB / 5.989 GB, free: 66.63 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.385e-06/14.29, allocations: 4 kB / 5.989 GB, free: 66.62 MB / 1.245 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004244/14.29, allocations: 2.438 MB / 5.992 GB, free: 64.2 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009552/14.29, allocations: 5.562 MB / 5.997 GB, free: 58.22 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.2e-05/14.29, allocations: 16 kB / 5.997 GB, free: 58.21 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.262e-05/14.29, allocations: 24 kB / 5.997 GB, free: 58.18 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002938/14.29, allocations: 0.588 MB / 5.998 GB, free: 57.6 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/14.3, allocations: 2.41 MB / 6 GB, free: 55.09 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003893/14.3, allocations: 0.5018 MB / 6 GB, free: 54.59 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002448/14.3, allocations: 95.95 kB / 6 GB, free: 54.49 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/14.3, allocations: 6.297 kB / 6 GB, free: 54.49 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003725/14.3, allocations: 2.175 MB / 6.003 GB, free: 52.31 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/14.3, allocations: 12 kB / 6.003 GB, free: 52.3 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/14.3, allocations: 28.89 kB / 6.003 GB, free: 52.27 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/14.31, allocations: 0.5577 MB / 6.003 GB, free: 51.71 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/14.31, allocations: 27.92 kB / 6.003 GB, free: 51.69 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003277/14.31, allocations: 394.5 kB / 6.004 GB, free: 51.3 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/14.31, allocations: 91.95 kB / 6.004 GB, free: 51.21 MB / 1.245 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.0005205/14.31, allocations: 164.4 kB / 6.004 GB, free: 51.04 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004881/14.31, allocations: 225.3 kB / 6.004 GB, free: 50.82 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003168/14.31, allocations: 1.692 MB / 6.006 GB, free: 49.12 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/14.31, allocations: 12 kB / 6.006 GB, free: 49.11 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/14.31, allocations: 0 / 6.006 GB, free: 49.11 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/14.31, allocations: 15.58 kB / 6.006 GB, free: 49.09 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006315/14.32, allocations: 4.047 MB / 6.01 GB, free: 44.96 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/14.32, allocations: 4 kB / 6.01 GB, free: 44.95 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/14.32, allocations: 327.5 kB / 6.01 GB, free: 44.64 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.337e-05/14.32, allocations: 12 kB / 6.01 GB, free: 44.62 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.59e-05/14.32, allocations: 19.97 kB / 6.01 GB, free: 44.61 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006588/14.32, allocations: 2.383 MB / 6.012 GB, free: 42.13 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/14.32, allocations: 7.938 kB / 6.012 GB, free: 42.12 MB / 1.245 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0024/14.33, allocations: 2.237 MB / 6.015 GB, free: 39.62 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009614/14.33, allocations: 0.5096 MB / 6.015 GB, free: 39.09 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003377/14.33, allocations: 15.89 kB / 6.015 GB, free: 39.07 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00227/14.33, allocations: 261.6 kB / 6.015 GB, free: 38.82 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/14.33, allocations: 72.55 kB / 6.015 GB, free: 38.74 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/14.33, allocations: 59.95 kB / 6.015 GB, free: 38.68 MB / 1.245 GB Notification: Performance of sort global known variables: time 0.001394/14.33, allocations: 1.157 MB / 6.017 GB, free: 37.51 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.00481/14.34, allocations: 1.747 MB / 6.018 GB, free: 35.76 MB / 1.245 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.00928/14.34, allocations: 8.281 MB / 6.026 GB, free: 27.68 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.004807/14.35, allocations: 2.818 MB / 6.029 GB, free: 24.86 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/14.35, allocations: 4 kB / 6.029 GB, free: 24.85 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.0009851/14.35, allocations: 0.6541 MB / 6.03 GB, free: 24.2 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003459/14.35, allocations: 0.7197 MB / 6.03 GB, free: 23.5 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006211/14.36, allocations: 3.252 MB / 6.034 GB, free: 20.12 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001696/14.36, allocations: 1.978 MB / 6.036 GB, free: 18.11 MB / 1.245 GB Notification: Performance of SimCode: time 8.51e-07/14.36, allocations: 0 / 6.036 GB, free: 18.11 MB / 1.245 GB Notification: Performance of Templates: time 0.6506/15.01, allocations: 81.62 MB / 6.115 GB, free: 233.3 MB / 1.276 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches