Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.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.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_latest_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_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.23/2.23, allocations: 390.3 MB / 402.8 MB, free: 6.629 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 176.9 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 221.3 MB / 0.7915 GB, free: 5.383 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 83.95 kB / 0.9317 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.535e-05/3.538e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3664, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.414/6.78, allocations: 2.217 GB / 3.436 GB, free: 47.68 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/6.781, allocations: 91.94 kB / 3.436 GB, free: 47.59 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 11.08/17.86, allocations: 2.463 GB / 5.899 GB, free: 167.9 MB / 1.214 GB Notification: Performance of FrontEnd: time 1.614e-06/17.86, allocations: 0 / 5.899 GB, free: 167.9 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001591/17.86, allocations: 149.8 kB / 5.899 GB, free: 167.9 MB / 1.214 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1189 * Number of variables: 1189 Notification: Performance of Generate backend data structure: time 0.02994/17.89, allocations: 5.767 MB / 5.904 GB, free: 166 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 7.094e-05/17.89, allocations: 10.09 kB / 5.904 GB, free: 166 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01292/17.91, allocations: 1.403 MB / 5.906 GB, free: 165.6 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02385/17.93, allocations: 7.159 MB / 5.913 GB, free: 164.8 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005916/17.93, allocations: 352 kB / 5.913 GB, free: 164.7 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002886/17.93, allocations: 469.5 kB / 5.914 GB, free: 164.7 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02411/17.96, allocations: 6.365 MB / 5.92 GB, free: 164.3 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004634/17.96, allocations: 16.91 kB / 5.92 GB, free: 164.3 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002491/17.96, allocations: 191.3 kB / 5.92 GB, free: 164.3 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000353/17.96, allocations: 211.5 kB / 5.92 GB, free: 164.3 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01715/17.98, allocations: 5.566 MB / 5.926 GB, free: 164.3 MB / 1.214 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06482/18.04, allocations: 26.74 MB / 5.952 GB, free: 154.8 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008966/18.05, allocations: 4.003 MB / 5.956 GB, free: 154.3 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005333/18.06, allocations: 2.453 MB / 5.958 GB, free: 154.3 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001651/18.06, allocations: 1.007 MB / 5.959 GB, free: 153.2 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005337/18.06, allocations: 2.18 MB / 5.961 GB, free: 153.1 MB / 1.214 GB Notification: Performance of pre-optimization done (n=313): time 6.652e-06/18.06, allocations: 2.875 kB / 5.961 GB, free: 153.1 MB / 1.214 GB Notification: Performance of matching and sorting (n=317): time 0.02644/18.09, allocations: 9.57 MB / 5.97 GB, free: 151.3 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.784e-05/18.09, allocations: 143 kB / 5.971 GB, free: 151.2 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00995/18.1, allocations: 4.235 MB / 5.975 GB, free: 150.9 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001253/18.1, allocations: 90.45 kB / 5.975 GB, free: 150.9 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.003374/18.1, allocations: 2.485 MB / 5.977 GB, free: 150.1 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.002145/18.11, allocations: 1.092 MB / 5.978 GB, free: 149.4 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002864/18.11, allocations: 62.69 kB / 5.978 GB, free: 149.4 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0002571/18.11, allocations: 432.8 kB / 5.979 GB, free: 149.1 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002598/18.11, allocations: 1.721 MB / 5.98 GB, free: 149 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003135/18.11, allocations: 2.442 MB / 5.983 GB, free: 148.4 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003218/18.12, allocations: 2.239 MB / 5.985 GB, free: 148.2 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/18.12, allocations: 6.281 kB / 5.985 GB, free: 148.2 MB / 1.214 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.009056/18.13, allocations: 4.909 MB / 5.99 GB, free: 147.8 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001471/18.13, allocations: 5.692 MB / 5.995 GB, free: 141.9 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/18.13, allocations: 11.78 kB / 5.995 GB, free: 141.9 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005058/18.13, allocations: 123.2 kB / 5.995 GB, free: 141.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003378/18.13, allocations: 0.7153 MB / 5.996 GB, free: 141.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/18.13, allocations: 2.753 MB / 5.999 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007433/18.14, allocations: 0.5542 MB / 5.999 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009779/18.14, allocations: 130.4 kB / 6 GB, free: 139.9 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/18.14, allocations: 5.281 kB / 6 GB, free: 139.9 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007736/18.15, allocations: 4.532 MB / 6.004 GB, free: 138.5 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-05/18.15, allocations: 14.09 kB / 6.004 GB, free: 138.5 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003923/18.15, allocations: 129 kB / 6.004 GB, free: 138.5 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002884/18.15, allocations: 0.711 MB / 6.005 GB, free: 138.4 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/18.16, allocations: 2.144 MB / 6.007 GB, free: 136.7 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007263/18.16, allocations: 0.546 MB / 6.007 GB, free: 136.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008518/18.16, allocations: 124.6 kB / 6.008 GB, free: 136.6 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (380): * Single equations (assignments): 376 * 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.001808/18.17, allocations: 369.8 kB / 6.008 GB, free: 136.3 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002405/18.17, allocations: 462.8 kB / 6.008 GB, free: 136.1 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01212/18.18, allocations: 4.773 MB / 6.013 GB, free: 134.3 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.264e-05/18.18, allocations: 28.84 kB / 6.013 GB, free: 134.3 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/18.18, allocations: 0 / 6.013 GB, free: 134.3 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007335/18.19, allocations: 4.01 MB / 6.017 GB, free: 132.7 MB / 1.214 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03567/18.22, allocations: 11.96 MB / 6.029 GB, free: 127.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.717e-05/18.22, allocations: 4.938 kB / 6.029 GB, free: 127.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003788/18.23, allocations: 0.6978 MB / 6.029 GB, free: 127.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004806/18.23, allocations: 113.8 kB / 6.029 GB, free: 127.6 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007589/18.23, allocations: 98.7 kB / 6.03 GB, free: 127.5 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/18.23, allocations: 2.722 MB / 6.032 GB, free: 125.2 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/18.23, allocations: 6.156 kB / 6.032 GB, free: 125.2 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/18.25, allocations: 7.585 MB / 6.04 GB, free: 121.6 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006482/18.25, allocations: 1.184 MB / 6.041 GB, free: 121 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003159/18.26, allocations: 82.2 kB / 6.041 GB, free: 120.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007853/18.26, allocations: 486.4 kB / 6.041 GB, free: 120.9 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00087/18.26, allocations: 195.2 kB / 6.041 GB, free: 120.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008136/18.27, allocations: 117.6 kB / 6.042 GB, free: 120.8 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.01195/18.28, allocations: 3.342 MB / 6.045 GB, free: 119.6 MB / 1.214 GB Notification: Performance of sort global known variables: time 8.61e-07/18.28, allocations: 0 / 6.045 GB, free: 119.6 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.02108/18.3, allocations: 2.94 MB / 6.048 GB, free: 119.2 MB / 1.214 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.medium.Xi[1],hex.ele[1].vol2.dynBal.U,hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.medium.Xi[1],hex.ele[2].vol2.dynBal.U,hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.medium.Xi[1],hex.ele[3].vol2.dynBal.U,hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.medium.Xi[1],hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,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.007484/18.31, allocations: 2.877 MB / 6.051 GB, free: 118.1 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01578/18.32, allocations: 7.142 MB / 6.058 GB, free: 115.4 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.765e-05/18.32, allocations: 3.906 kB / 6.058 GB, free: 115.4 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.004645/18.33, allocations: 2.351 MB / 6.06 GB, free: 114.3 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01884/18.35, allocations: 2.898 MB / 6.063 GB, free: 112.4 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03625/18.38, allocations: 11.25 MB / 6.074 GB, free: 103.1 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008065/18.39, allocations: 4.501 MB / 6.078 GB, free: 99.73 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.01633/18.41, allocations: 4.405 MB / 6.082 GB, free: 97.27 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/18.41, allocations: 286.9 kB / 6.083 GB, free: 97 MB / 1.214 GB Notification: Performance of SimCode: time 1.213e-06/18.41, allocations: 0 / 6.083 GB, free: 97 MB / 1.214 GB Notification: Performance of Templates: time 1.158/19.57, allocations: 143.6 MB / 6.223 GB, free: 191.6 MB / 1.229 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches