Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.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.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_9_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_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.206/2.206, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.001259/0.001259, allocations: 191.8 kB / 492.3 MB, free: 0.6406 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.696/1.696, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.00103/0.00103, allocations: 97.69 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.211e-05/3.214e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3403, allocations: 142.3 MB / 1.212 GB, free: 38.58 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.603/6.944, allocations: 2.216 GB / 3.428 GB, free: 62.46 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/6.944, allocations: 92.75 kB / 3.428 GB, free: 62.41 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 10.08/17.02, allocations: 2.463 GB / 5.891 GB, free: 157.7 MB / 1.198 GB Notification: Performance of FrontEnd: time 1.452e-06/17.02, allocations: 0 / 5.891 GB, free: 157.7 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001393/17.02, allocations: 157.8 kB / 5.892 GB, free: 157.7 MB / 1.198 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.02588/17.05, allocations: 5.767 MB / 5.897 GB, free: 155.7 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.876e-05/17.05, allocations: 11.19 kB / 5.897 GB, free: 155.7 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/17.06, allocations: 1.399 MB / 5.899 GB, free: 155.4 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02505/17.09, allocations: 7.162 MB / 5.906 GB, free: 154.5 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007755/17.09, allocations: 349.2 kB / 5.906 GB, free: 154.5 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003653/17.09, allocations: 473 kB / 5.906 GB, free: 154.5 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02171/17.11, allocations: 6.368 MB / 5.913 GB, free: 154.1 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/17.11, allocations: 8.562 kB / 5.913 GB, free: 154.1 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007522/17.11, allocations: 190.3 kB / 5.913 GB, free: 154.1 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002264/17.11, allocations: 216.3 kB / 5.913 GB, free: 154.1 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01341/17.13, allocations: 5.563 MB / 5.918 GB, free: 154 MB / 1.198 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.0623/17.19, allocations: 26.74 MB / 5.944 GB, free: 144.5 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007649/17.2, allocations: 3.995 MB / 5.948 GB, free: 144.1 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004638/17.2, allocations: 2.451 MB / 5.951 GB, free: 144.1 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/17.2, allocations: 1.003 MB / 5.952 GB, free: 143 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004835/17.21, allocations: 2.188 MB / 5.954 GB, free: 142.9 MB / 1.198 GB Notification: Performance of pre-optimization done (n=313): time 7.584e-06/17.21, allocations: 3.469 kB / 5.954 GB, free: 142.9 MB / 1.198 GB Notification: Performance of matching and sorting (n=317): time 0.02987/17.24, allocations: 9.58 MB / 5.963 GB, free: 141.1 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/17.24, allocations: 136 kB / 5.963 GB, free: 141 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01476/17.25, allocations: 4.24 MB / 5.968 GB, free: 140.7 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001215/17.25, allocations: 89.8 kB / 5.968 GB, free: 140.6 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.004485/17.26, allocations: 2.495 MB / 5.97 GB, free: 139.8 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.00239/17.26, allocations: 1.087 MB / 5.971 GB, free: 139.1 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008478/17.26, allocations: 61.5 kB / 5.971 GB, free: 139.1 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0004962/17.26, allocations: 432.2 kB / 5.972 GB, free: 138.8 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003983/17.27, allocations: 1.716 MB / 5.973 GB, free: 138.8 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004616/17.27, allocations: 2.443 MB / 5.976 GB, free: 138.1 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004424/17.28, allocations: 2.244 MB / 5.978 GB, free: 138 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-05/17.28, allocations: 5.75 kB / 5.978 GB, free: 138 MB / 1.198 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.01181/17.29, allocations: 4.908 MB / 5.983 GB, free: 136.6 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001679/17.29, allocations: 5.684 MB / 5.988 GB, free: 130.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.513e-05/17.29, allocations: 13.81 kB / 5.988 GB, free: 130.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005635/17.29, allocations: 127.2 kB / 5.988 GB, free: 130.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003609/17.29, allocations: 0.7129 MB / 5.989 GB, free: 130.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002613/17.3, allocations: 2.754 MB / 5.992 GB, free: 128.2 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007699/17.3, allocations: 0.5635 MB / 5.992 GB, free: 128.1 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/17.3, allocations: 125.9 kB / 5.992 GB, free: 128.1 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/17.3, allocations: 3.844 kB / 5.992 GB, free: 128.1 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01116/17.32, allocations: 4.532 MB / 5.997 GB, free: 126.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.901e-05/17.32, allocations: 18.34 kB / 5.997 GB, free: 126.5 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004561/17.32, allocations: 128.3 kB / 5.997 GB, free: 126.4 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00348/17.32, allocations: 0.702 MB / 5.998 GB, free: 126.4 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/17.32, allocations: 2.146 MB / 6 GB, free: 124.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007896/17.33, allocations: 0.5446 MB / 6 GB, free: 124.6 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001181/17.33, allocations: 127.9 kB / 6 GB, free: 124.6 MB / 1.198 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.002445/17.33, allocations: 354.3 kB / 6.001 GB, free: 124.3 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003261/17.34, allocations: 468.2 kB / 6.001 GB, free: 124.1 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01691/17.35, allocations: 4.78 MB / 6.006 GB, free: 122.2 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.275e-05/17.35, allocations: 34.34 kB / 6.006 GB, free: 122.2 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.595e-05/17.35, allocations: 3.5 kB / 6.006 GB, free: 122.2 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00968/17.36, allocations: 4.006 MB / 6.01 GB, free: 120.7 MB / 1.198 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.03487/17.4, allocations: 11.95 MB / 6.021 GB, free: 115.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.578e-05/17.4, allocations: 7.188 kB / 6.021 GB, free: 115.6 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003728/17.4, allocations: 0.7006 MB / 6.022 GB, free: 115.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004581/17.4, allocations: 119.6 kB / 6.022 GB, free: 115.6 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007798/17.4, allocations: 88.39 kB / 6.022 GB, free: 115.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002438/17.41, allocations: 2.733 MB / 6.025 GB, free: 113.2 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/17.41, allocations: 4.656 kB / 6.025 GB, free: 113.2 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0149/17.42, allocations: 7.582 MB / 6.032 GB, free: 109.6 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005842/17.43, allocations: 1.172 MB / 6.034 GB, free: 109 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002636/17.43, allocations: 83.19 kB / 6.034 GB, free: 108.9 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007131/17.44, allocations: 491.1 kB / 6.034 GB, free: 108.8 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009712/17.44, allocations: 195.3 kB / 6.034 GB, free: 108.8 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009118/17.44, allocations: 123.6 kB / 6.034 GB, free: 108.8 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.009393/17.45, allocations: 3.333 MB / 6.038 GB, free: 107.6 MB / 1.198 GB Notification: Performance of sort global known variables: time 7.92e-07/17.45, allocations: 0 / 6.038 GB, free: 107.6 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.01882/17.47, allocations: 2.946 MB / 6.041 GB, free: 107.2 MB / 1.198 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.007384/17.48, allocations: 2.886 MB / 6.043 GB, free: 106.1 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01534/17.49, allocations: 7.141 MB / 6.05 GB, free: 100.3 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/17.49, allocations: 0 / 6.05 GB, free: 100.3 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.004753/17.5, allocations: 2.35 MB / 6.053 GB, free: 98.23 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01825/17.51, allocations: 2.901 MB / 6.055 GB, free: 96.3 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03478/17.55, allocations: 11.24 MB / 6.066 GB, free: 87.09 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01002/17.56, allocations: 4.507 MB / 6.071 GB, free: 83.7 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.02156/17.58, allocations: 4.403 MB / 6.075 GB, free: 81.2 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002949/17.58, allocations: 291 kB / 6.075 GB, free: 80.93 MB / 1.198 GB Notification: Performance of SimCode: time 1.713e-06/17.58, allocations: 0 / 6.075 GB, free: 80.93 MB / 1.198 GB Notification: Performance of Templates: time 1.265/18.85, allocations: 143.6 MB / 6.216 GB, free: 181.6 MB / 1.214 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowMassFlow.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches