Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.WetCoilCounterFlowPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.Q1_flow|hex.Q2_flow|hex.QLat2_flow|hex.m1_flow|hex.m2_flow|con.u_s|con.u_m",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") translateModel(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.Q1_flow|hex.Q2_flow|hex.QLat2_flow|hex.m1_flow|hex.m2_flow|con.u_s|con.u_m",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.365/1.365, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 185.5 kB / 326.5 MB, free: 2.227 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.596/1.596, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0009226/0.0009227, allocations: 86.38 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003572/0.0003573, allocations: 12.62 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2256, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.503/5.729, allocations: 2.511 GB / 3.412 GB, free: 41.21 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/5.729, allocations: 104.5 kB / 3.412 GB, free: 41.11 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 9.091/14.82, allocations: 2.61 GB / 6.022 GB, free: 75.89 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.664e-06/14.82, allocations: 0 / 6.022 GB, free: 75.89 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.001143/14.82, allocations: 164.9 kB / 6.022 GB, free: 75.87 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1252 * Number of variables: 1252 Notification: Performance of Generate backend data structure: time 0.02725/14.85, allocations: 7.505 MB / 6.029 GB, free: 73.22 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/14.85, allocations: 7.125 kB / 6.029 GB, free: 73.22 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/14.86, allocations: 1.501 MB / 6.031 GB, free: 72.84 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0196/14.88, allocations: 7.499 MB / 6.038 GB, free: 71.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003735/14.88, allocations: 377.2 kB / 6.038 GB, free: 71.89 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001933/14.88, allocations: 0.4971 MB / 6.039 GB, free: 71.89 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/14.9, allocations: 6.742 MB / 6.045 GB, free: 71.41 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001389/14.9, allocations: 11.34 kB / 6.045 GB, free: 71.41 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000774/14.9, allocations: 203.7 kB / 6.046 GB, free: 71.41 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001834/14.9, allocations: 225.9 kB / 6.046 GB, free: 71.39 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/14.91, allocations: 5.914 MB / 6.052 GB, free: 71.35 MB / 0.948 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.05262/14.96, allocations: 28.14 MB / 6.079 GB, free: 60.95 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006956/14.97, allocations: 4.328 MB / 6.083 GB, free: 60.31 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001145/14.97, allocations: 0.9236 MB / 6.084 GB, free: 59.37 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004306/14.98, allocations: 2.21 MB / 6.086 GB, free: 59.23 MB / 0.948 GB Notification: Performance of pre-optimization done (n=324): time 5.18e-06/14.98, allocations: 3.594 kB / 6.086 GB, free: 59.23 MB / 0.948 GB Notification: Performance of matching and sorting (n=328): time 0.02683/15, allocations: 11.72 MB / 6.098 GB, free: 57.26 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.784e-05/15, allocations: 248.1 kB / 6.098 GB, free: 57.01 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009916/15.01, allocations: 4.593 MB / 6.103 GB, free: 56.71 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009533/15.01, allocations: 103 kB / 6.103 GB, free: 56.68 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003471/15.02, allocations: 2.728 MB / 6.105 GB, free: 55.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001731/15.02, allocations: 1.133 MB / 6.106 GB, free: 55.07 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005874/15.02, allocations: 71.36 kB / 6.107 GB, free: 55.07 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.000342/15.02, allocations: 443.8 kB / 6.107 GB, free: 54.76 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003394/15.02, allocations: 1.789 MB / 6.109 GB, free: 54.75 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004206/15.03, allocations: 2.707 MB / 6.111 GB, free: 53.88 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004424/15.03, allocations: 2.314 MB / 6.114 GB, free: 53.79 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.357e-05/15.03, allocations: 3.469 kB / 6.114 GB, free: 53.79 MB / 0.948 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.01009/15.04, allocations: 5.169 MB / 6.119 GB, free: 53.36 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001105/15.04, allocations: 6.216 MB / 6.125 GB, free: 46.77 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.274e-05/15.04, allocations: 13.69 kB / 6.125 GB, free: 46.77 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006057/15.04, allocations: 224.3 kB / 6.125 GB, free: 46.75 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003223/15.05, allocations: 0.7544 MB / 6.126 GB, free: 46.75 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002507/15.05, allocations: 3.449 MB / 6.129 GB, free: 44.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006362/15.06, allocations: 0.5931 MB / 6.13 GB, free: 44.27 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004405/15.06, allocations: 139 kB / 6.13 GB, free: 44.27 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/15.06, allocations: 7.312 kB / 6.13 GB, free: 44.27 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007106/15.06, allocations: 4.725 MB / 6.134 GB, free: 44.12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-05/15.06, allocations: 19.14 kB / 6.134 GB, free: 44.12 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005272/15.06, allocations: 204.6 kB / 6.135 GB, free: 44.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/15.07, allocations: 0.7478 MB / 6.135 GB, free: 44.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003616/15.07, allocations: 4.109 MB / 6.139 GB, free: 41.36 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006289/15.08, allocations: 0.5825 MB / 6.14 GB, free: 41.33 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005709/15.08, allocations: 132 kB / 6.14 GB, free: 41.33 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (398): * Single equations (assignments): 392 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.004918/15.08, allocations: 2.431 MB / 6.142 GB, free: 41.09 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001665/15.08, allocations: 0.4989 MB / 6.143 GB, free: 40.84 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009223/15.09, allocations: 4.935 MB / 6.148 GB, free: 40.56 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/15.09, allocations: 35.78 kB / 6.148 GB, free: 40.56 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/15.09, allocations: 3.719 kB / 6.148 GB, free: 40.56 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005835/15.1, allocations: 4.105 MB / 6.152 GB, free: 40.26 MB / 0.948 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.02417/15.12, allocations: 11.99 MB / 6.163 GB, free: 38.82 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/15.12, allocations: 2.75 kB / 6.163 GB, free: 38.82 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003416/15.13, allocations: 0.7464 MB / 6.164 GB, free: 38.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004931/15.13, allocations: 164.8 kB / 6.164 GB, free: 38.75 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004196/15.13, allocations: 92.22 kB / 6.164 GB, free: 38.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002262/15.13, allocations: 3.352 MB / 6.168 GB, free: 35.81 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/15.13, allocations: 20.16 kB / 6.168 GB, free: 35.8 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/15.14, allocations: 8.064 MB / 6.176 GB, free: 32 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004601/15.15, allocations: 1.245 MB / 6.177 GB, free: 31.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001715/15.15, allocations: 81.02 kB / 6.177 GB, free: 31.25 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005584/15.15, allocations: 0.513 MB / 6.177 GB, free: 31.17 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000497/15.15, allocations: 194.4 kB / 6.178 GB, free: 31.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004344/15.15, allocations: 119.4 kB / 6.178 GB, free: 31.12 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.007743/15.16, allocations: 3.627 MB / 6.181 GB, free: 29.87 MB / 0.948 GB Notification: Performance of sort global known variables: time 4.11e-07/15.16, allocations: 0 / 6.181 GB, free: 29.87 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.018/15.18, allocations: 3.186 MB / 6.184 GB, free: 29.48 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 21 (temSen.T,val.filter.x[1],val.filter.x[2],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,con.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.006326/15.19, allocations: 3.224 MB / 6.187 GB, free: 28.15 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01312/15.2, allocations: 7.332 MB / 6.195 GB, free: 25.43 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.722e-05/15.2, allocations: 4.625 kB / 6.195 GB, free: 25.42 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.003976/15.2, allocations: 2.345 MB / 6.197 GB, free: 24.55 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01594/15.22, allocations: 3.071 MB / 6.2 GB, free: 24.06 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02897/15.25, allocations: 15.75 MB / 6.215 GB, free: 16.54 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006327/15.26, allocations: 4.688 MB / 6.22 GB, free: 13.33 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01037/15.27, allocations: 2.68 MB / 6.223 GB, free: 11.59 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/15.27, allocations: 384.1 kB / 6.223 GB, free: 11.23 MB / 0.948 GB Notification: Performance of SimCode: time 1.203e-06/15.27, allocations: 0 / 6.223 GB, free: 11.23 MB / 0.948 GB Notification: Performance of Templates: time 0.7495/16.02, allocations: 138.9 MB / 6.359 GB, free: 97.36 MB / 0.9636 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches