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.255/2.255, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001213/0.001213, allocations: 187.9 kB / 0.4902 GB, free: 2.234 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.592/1.592, allocations: 223.2 MB / 0.7992 GB, free: 15.71 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.001007/0.001007, allocations: 98.52 kB / 0.9396 GB, free: 2.863 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004063/0.0004063, allocations: 11.3 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3617, allocations: 143 MB / 1.229 GB, free: 85.51 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.284/5.646, allocations: 2.217 GB / 3.446 GB, free: 152.6 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003806/5.646, allocations: 98.08 kB / 3.446 GB, free: 152.6 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 9.858/15.5, allocations: 2.467 GB / 5.913 GB, free: 166.1 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.735e-06/15.5, allocations: 1.781 kB / 5.913 GB, free: 166.1 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001299/15.51, allocations: 151.8 kB / 5.913 GB, free: 166.1 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.03102/15.54, allocations: 6.961 MB / 5.92 GB, free: 164 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/15.54, allocations: 13.31 kB / 5.92 GB, free: 164 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01208/15.55, allocations: 1.402 MB / 5.921 GB, free: 163.6 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02352/15.57, allocations: 7.211 MB / 5.928 GB, free: 162.9 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004562/15.57, allocations: 351.8 kB / 5.928 GB, free: 162.9 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002441/15.58, allocations: 467 kB / 5.929 GB, free: 162.9 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01782/15.59, allocations: 6.454 MB / 5.935 GB, free: 162.5 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001762/15.59, allocations: 11.47 kB / 5.935 GB, free: 162.5 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008945/15.59, allocations: 192.4 kB / 5.935 GB, free: 162.5 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000306/15.6, allocations: 211.2 kB / 5.935 GB, free: 162.5 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/15.61, allocations: 5.686 MB / 5.941 GB, free: 162.4 MB / 1.214 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.06383/15.67, allocations: 26.74 MB / 5.967 GB, free: 152.9 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008/15.68, allocations: 4.055 MB / 5.971 GB, free: 152.5 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001454/15.68, allocations: 1.009 MB / 5.972 GB, free: 151.4 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004917/15.69, allocations: 2.209 MB / 5.974 GB, free: 151.3 MB / 1.214 GB Notification: Performance of pre-optimization done (n=313): time 6.532e-06/15.69, allocations: 2.75 kB / 5.974 GB, free: 151.3 MB / 1.214 GB Notification: Performance of matching and sorting (n=317): time 0.03456/15.72, allocations: 11.6 MB / 5.986 GB, free: 149.2 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/15.72, allocations: 138.6 kB / 5.986 GB, free: 149.1 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/15.73, allocations: 4.296 MB / 5.99 GB, free: 148.8 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001078/15.74, allocations: 86.86 kB / 5.99 GB, free: 148.8 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.003544/15.74, allocations: 2.485 MB / 5.992 GB, free: 148 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.001983/15.74, allocations: 1.081 MB / 5.993 GB, free: 147.3 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/15.74, allocations: 62.28 kB / 5.994 GB, free: 147.3 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.000226/15.74, allocations: 435.9 kB / 5.994 GB, free: 147 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00288/15.74, allocations: 1.756 MB / 5.996 GB, free: 146.9 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003069/15.75, allocations: 2.48 MB / 5.998 GB, free: 146.3 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003081/15.75, allocations: 2.271 MB / 6 GB, free: 146.2 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/15.75, allocations: 6.812 kB / 6 GB, free: 146.2 MB / 1.214 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.008815/15.76, allocations: 4.983 MB / 6.005 GB, free: 145.7 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001467/15.76, allocations: 5.687 MB / 6.011 GB, free: 139.8 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.869e-05/15.76, allocations: 14.25 kB / 6.011 GB, free: 139.8 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004747/15.76, allocations: 130.8 kB / 6.011 GB, free: 139.8 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003202/15.76, allocations: 0.713 MB / 6.012 GB, free: 139.8 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/15.77, allocations: 2.792 MB / 6.014 GB, free: 137.9 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007766/15.78, allocations: 0.5595 MB / 6.015 GB, free: 137.8 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006843/15.78, allocations: 124 kB / 6.015 GB, free: 137.8 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/15.78, allocations: 7.219 kB / 6.015 GB, free: 137.8 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008165/15.78, allocations: 4.613 MB / 6.019 GB, free: 137.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.088e-05/15.78, allocations: 10.84 kB / 6.019 GB, free: 137.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004467/15.78, allocations: 127.2 kB / 6.02 GB, free: 137.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002947/15.79, allocations: 0.71 MB / 6.02 GB, free: 137.6 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/15.79, allocations: 2.186 MB / 6.022 GB, free: 136.3 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007265/15.8, allocations: 0.5446 MB / 6.023 GB, free: 136.3 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004526/15.8, allocations: 129 kB / 6.023 GB, free: 136.3 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 () * Number of clocked 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.005439/15.8, allocations: 2.402 MB / 6.025 GB, free: 136 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001811/15.8, allocations: 467.8 kB / 6.026 GB, free: 135.8 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008669/15.81, allocations: 4.834 MB / 6.031 GB, free: 135.5 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.101e-05/15.81, allocations: 33.5 kB / 6.031 GB, free: 135.5 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/15.81, allocations: 3.875 kB / 6.031 GB, free: 135.5 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00552/15.82, allocations: 4.075 MB / 6.035 GB, free: 135.2 MB / 1.214 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.0246/15.84, allocations: 12.01 MB / 6.046 GB, free: 134 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/15.84, allocations: 2.719 kB / 6.046 GB, free: 134 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003285/15.85, allocations: 0.7074 MB / 6.047 GB, free: 134 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003955/15.85, allocations: 110.9 kB / 6.047 GB, free: 134 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002626/15.85, allocations: 91.58 kB / 6.047 GB, free: 134 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002347/15.85, allocations: 2.765 MB / 6.05 GB, free: 132.1 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/15.85, allocations: 7.625 kB / 6.05 GB, free: 132.1 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/15.86, allocations: 7.67 MB / 6.057 GB, free: 130.7 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00482/15.87, allocations: 1.183 MB / 6.059 GB, free: 130.4 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001653/15.87, allocations: 78.52 kB / 6.059 GB, free: 130.4 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005646/15.87, allocations: 494.1 kB / 6.059 GB, free: 130.3 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004222/15.87, allocations: 191.5 kB / 6.059 GB, free: 130.3 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003268/15.87, allocations: 120.7 kB / 6.059 GB, free: 130.3 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.005754/15.88, allocations: 3.391 MB / 6.063 GB, free: 130.1 MB / 1.214 GB Notification: Performance of sort global known variables: time 4.81e-07/15.88, allocations: 0 / 6.063 GB, free: 130.1 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01223/15.89, allocations: 2.94 MB / 6.066 GB, free: 130.1 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) * Number of clocked states: 0 () * 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.005625/15.9, allocations: 2.869 MB / 6.068 GB, free: 129.1 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01135/15.91, allocations: 7.108 MB / 6.075 GB, free: 128.5 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.427e-05/15.91, allocations: 2.719 kB / 6.075 GB, free: 128.5 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.003449/15.91, allocations: 2.379 MB / 6.078 GB, free: 128.2 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0153/15.93, allocations: 2.901 MB / 6.081 GB, free: 128.2 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03481/15.96, allocations: 15.08 MB / 6.095 GB, free: 123.1 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005154/15.97, allocations: 4.49 MB / 6.1 GB, free: 122.2 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.009514/15.98, allocations: 2.651 MB / 6.102 GB, free: 122.2 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/15.98, allocations: 361.8 kB / 6.103 GB, free: 122.2 MB / 1.214 GB Notification: Performance of SimCode: time 1.613e-06/15.98, allocations: 0 / 6.103 GB, free: 122.2 MB / 1.214 GB Notification: Performance of Templates: time 0.2085/16.19, allocations: 129.4 MB / 6.229 GB, free: 77.05 MB / 1.214 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