Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.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.HeatExchangers.Examples.WetCoilCounterFlowMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.Q2_flow|hex.QLat2_flow|hex.port_a2.m_flow|hex.port_b2.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow") translateModel(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.Q2_flow|hex.QLat2_flow|hex.port_a2.m_flow|hex.port_b2.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow") [: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.194/1.194, allocations: 249.4 MB / 256.7 MB, free: 6.98 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.001/0.001, allocations: 181.3 kB / 316 MB, free: 3.543 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.072/1.072, allocations: 205.2 MB / 0.5667 GB, free: 15.69 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.0008285/0.0008285, allocations: 91.55 kB / 0.671 GB, free: 4.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.122e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1518, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.864/4.016, allocations: 2.492 GB / 3.377 GB, free: 242.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/4.016, allocations: 87.95 kB / 3.377 GB, free: 242.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 6.341/10.36, allocations: 2.359 GB / 5.736 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0007571/10.36, allocations: 155.3 kB / 5.736 GB, free: 109.2 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1197 * Number of variables: 1197 Notification: Performance of Generate backend data structure: time 0.01615/10.37, allocations: 5.672 MB / 5.741 GB, free: 107.2 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/10.37, allocations: 10.38 kB / 5.741 GB, free: 107.2 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009833/10.38, allocations: 1.45 MB / 5.743 GB, free: 106.9 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01775/10.4, allocations: 7.222 MB / 5.75 GB, free: 106 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/10.4, allocations: 148 kB / 5.75 GB, free: 106 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001423/10.4, allocations: 279.9 kB / 5.75 GB, free: 106 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009325/10.41, allocations: 5.424 MB / 5.756 GB, free: 106 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009573/10.42, allocations: 5.861 MB / 5.761 GB, free: 105.6 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/10.42, allocations: 7.688 kB / 5.761 GB, free: 105.6 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004518/10.42, allocations: 6.688 kB / 5.761 GB, free: 105.6 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/10.42, allocations: 220.9 kB / 5.762 GB, free: 105.6 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03684/10.46, allocations: 27.09 MB / 5.788 GB, free: 95.66 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003083/10.46, allocations: 2.504 MB / 5.79 GB, free: 95.64 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00259/10.47, allocations: 2.411 MB / 5.793 GB, free: 95.61 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001028/10.47, allocations: 1.094 MB / 5.794 GB, free: 94.48 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002693/10.47, allocations: 2.313 MB / 5.796 GB, free: 94.29 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=313): time 4.628e-06/10.47, allocations: 7.25 kB / 5.796 GB, free: 94.29 MB / 0.9323 GB Notification: Performance of matching and sorting (n=317): time 0.02772/10.5, allocations: 11.14 MB / 5.807 GB, free: 91.54 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.631e-05/10.5, allocations: 193.8 kB / 5.807 GB, free: 91.34 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006231/10.5, allocations: 3.972 MB / 5.811 GB, free: 91.06 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0008671/10.5, allocations: 33.23 kB / 5.811 GB, free: 91.03 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.001761/10.51, allocations: 1.682 MB / 5.813 GB, free: 90.16 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.002081/10.51, allocations: 1.044 MB / 5.814 GB, free: 89.47 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/10.51, allocations: 0 / 5.814 GB, free: 89.47 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001533/10.51, allocations: 437.4 kB / 5.814 GB, free: 89.16 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002088/10.51, allocations: 1.724 MB / 5.816 GB, free: 89.15 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/10.51, allocations: 2.507 MB / 5.818 GB, free: 88.39 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003341/10.52, allocations: 2.358 MB / 5.821 GB, free: 88.34 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/10.52, allocations: 3.625 kB / 5.821 GB, free: 88.34 MB / 0.9323 GB Notification: Performance of matching and sorting (n=398) (initialization): time 0.007173/10.52, allocations: 4.798 MB / 5.825 GB, free: 88 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008526/10.53, allocations: 5.764 MB / 5.831 GB, free: 82.13 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/10.53, allocations: 12.73 kB / 5.831 GB, free: 82.13 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003774/10.53, allocations: 127.7 kB / 5.831 GB, free: 82.12 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/10.53, allocations: 0.6895 MB / 5.832 GB, free: 82.12 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002029/10.53, allocations: 2.621 MB / 5.834 GB, free: 80.26 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005707/10.54, allocations: 439.2 kB / 5.835 GB, free: 80.22 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003751/10.54, allocations: 125 kB / 5.835 GB, free: 80.22 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/10.54, allocations: 6.062 kB / 5.835 GB, free: 80.22 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006444/10.54, allocations: 4.319 MB / 5.839 GB, free: 80.13 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.385e-05/10.54, allocations: 17.25 kB / 5.839 GB, free: 80.13 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/10.54, allocations: 125.7 kB / 5.839 GB, free: 80.12 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002733/10.55, allocations: 0.6814 MB / 5.84 GB, free: 80.12 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/10.55, allocations: 1.994 MB / 5.842 GB, free: 78.84 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005594/10.55, allocations: 420.2 kB / 5.842 GB, free: 78.82 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003585/10.55, allocations: 128.4 kB / 5.842 GB, free: 78.82 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,$PRE.mWatGai.nextEvent,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,$PRE.mAirGai.nextEvent,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (381): * Single equations (assignments): 377 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008524/10.55, allocations: 249.3 kB / 5.843 GB, free: 78.64 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/10.56, allocations: 451.5 kB / 5.843 GB, free: 78.41 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007491/10.56, allocations: 4.658 MB / 5.848 GB, free: 78.22 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/10.56, allocations: 35.75 kB / 5.848 GB, free: 78.21 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/10.56, allocations: 3.844 kB / 5.848 GB, free: 78.21 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00516/10.57, allocations: 3.925 MB / 5.851 GB, free: 77.96 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/10.59, allocations: 11.28 MB / 5.862 GB, free: 76.94 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/10.59, allocations: 4.156 kB / 5.862 GB, free: 76.94 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003132/10.59, allocations: 0.6752 MB / 5.863 GB, free: 76.94 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003268/10.59, allocations: 109.1 kB / 5.863 GB, free: 76.93 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002275/10.59, allocations: 56.17 kB / 5.863 GB, free: 76.93 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001889/10.59, allocations: 2.585 MB / 5.866 GB, free: 75.07 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/10.59, allocations: 7.812 kB / 5.866 GB, free: 75.07 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009633/10.6, allocations: 7.863 MB / 5.874 GB, free: 73.78 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003559/10.61, allocations: 1.194 MB / 5.875 GB, free: 73.46 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001264/10.61, allocations: 30.31 kB / 5.875 GB, free: 73.46 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00436/10.61, allocations: 401.1 kB / 5.875 GB, free: 73.44 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003029/10.61, allocations: 164.5 kB / 5.875 GB, free: 73.43 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003091/10.61, allocations: 126.5 kB / 5.875 GB, free: 73.43 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.00447/10.62, allocations: 3.092 MB / 5.878 GB, free: 73.25 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.0105/10.63, allocations: 2.707 MB / 5.881 GB, free: 73.19 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 18 (hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.U,hex.ele[1].vol2.dynBal.mXi[1],hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.U,hex.ele[2].vol2.dynBal.mXi[1],hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.U,hex.ele[3].vol2.dynBal.mXi[1],hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].vol2.dynBal.mXi[1],hex.ele[4].mas.T,senRelHum.phi) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 12 (mAirGai.nextEvent,mAirGai.last,mAirGai.nextEventScaled,mAirGai.b,mAirGai.a,$whenCondition2,mWatGai.nextEvent,mWatGai.last,mWatGai.nextEventScaled,mWatGai.b,mWatGai.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 298 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003926/10.63, allocations: 3.085 MB / 5.884 GB, free: 72.15 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.008668/10.64, allocations: 6.876 MB / 5.891 GB, free: 71.73 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/10.64, allocations: 2.969 kB / 5.891 GB, free: 71.73 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.002686/10.64, allocations: 2.278 MB / 5.893 GB, free: 71.56 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01312/10.66, allocations: 2.638 MB / 5.896 GB, free: 71.5 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02453/10.68, allocations: 11.37 MB / 5.907 GB, free: 69.58 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006987/10.69, allocations: 4.912 MB / 5.911 GB, free: 68.73 MB / 0.9323 GB Notification: Performance of SimCode: time 2.104e-06/10.69, allocations: 0 / 5.911 GB, free: 68.73 MB / 0.9323 GB Notification: Performance of Templates: time 0.5293/11.22, allocations: 135.4 MB / 6.044 GB, free: 168.9 MB / 0.9323 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches