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.538/1.538, allocations: 249.5 MB / 257 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.001199/0.0012, allocations: 176.6 kB / 316.3 MB, free: 3.281 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.725/1.725, allocations: 205.3 MB / 0.5671 GB, free: 15.93 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.000958/0.000958, allocations: 82.48 kB / 0.6714 GB, free: 5.047 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.541e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2487, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.058/7.307, allocations: 2.512 GB / 3.397 GB, free: 238.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/7.308, allocations: 91.95 kB / 3.397 GB, free: 238.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 10.24/17.54, allocations: 2.583 GB / 5.98 GB, free: 85.8 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.435e-06/17.54, allocations: 0 / 5.98 GB, free: 85.8 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.001749/17.55, allocations: 167.3 kB / 5.98 GB, free: 85.65 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.02849/17.57, allocations: 6.201 MB / 5.986 GB, free: 79.43 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/17.57, allocations: 8.031 kB / 5.986 GB, free: 79.42 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01104/17.59, allocations: 1.496 MB / 5.988 GB, free: 77.91 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02096/17.61, allocations: 7.447 MB / 5.995 GB, free: 70.52 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000351/17.61, allocations: 152 kB / 5.995 GB, free: 70.38 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002905/17.61, allocations: 296 kB / 5.996 GB, free: 70.09 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01843/17.63, allocations: 5.353 MB / 6.001 GB, free: 64.73 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01942/17.65, allocations: 5.916 MB / 6.007 GB, free: 58.67 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/17.65, allocations: 7.906 kB / 6.007 GB, free: 58.66 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001066/17.65, allocations: 12 kB / 6.007 GB, free: 58.65 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002387/17.65, allocations: 225 kB / 6.007 GB, free: 58.43 MB / 0.948 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.04846/17.7, allocations: 27.24 MB / 6.033 GB, free: 29.97 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005736/17.7, allocations: 5.125 MB / 6.038 GB, free: 24.59 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002871/17.71, allocations: 2.357 MB / 6.041 GB, free: 22.23 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009729/17.71, allocations: 0.9208 MB / 6.042 GB, free: 21.13 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003144/17.71, allocations: 2.187 MB / 6.044 GB, free: 18.9 MB / 0.948 GB Notification: Performance of pre-optimization done (n=324): time 5.521e-06/17.71, allocations: 0 / 6.044 GB, free: 18.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=328): time 0.03055/17.74, allocations: 10.89 MB / 6.054 GB, free: 7.84 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/17.74, allocations: 299.6 kB / 6.055 GB, free: 7.484 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01054/17.75, allocations: 4.165 MB / 6.059 GB, free: 3.328 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.00118/17.75, allocations: 33.7 kB / 6.059 GB, free: 3.289 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004091/17.76, allocations: 2.718 MB / 6.061 GB, free: 0.5352 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.8451/18.6, allocations: 1.091 MB / 6.063 GB, free: 116 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/18.6, allocations: 0.5312 kB / 6.063 GB, free: 116 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0003932/18.6, allocations: 441.4 kB / 6.063 GB, free: 115.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003242/18.61, allocations: 1.653 MB / 6.065 GB, free: 115.7 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004302/18.61, allocations: 2.546 MB / 6.067 GB, free: 114.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004976/18.62, allocations: 2.211 MB / 6.069 GB, free: 114.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.747e-05/18.62, allocations: 4.844 kB / 6.069 GB, free: 114.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01112/18.63, allocations: 4.79 MB / 6.074 GB, free: 114.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001459/18.63, allocations: 6.372 MB / 6.08 GB, free: 107.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.486e-05/18.63, allocations: 14.97 kB / 6.08 GB, free: 107.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006292/18.63, allocations: 199.9 kB / 6.08 GB, free: 107.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003644/18.63, allocations: 0.7587 MB / 6.081 GB, free: 107.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/18.64, allocations: 3.381 MB / 6.084 GB, free: 105.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007652/18.64, allocations: 0.5207 MB / 6.085 GB, free: 105.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008755/18.64, allocations: 135 kB / 6.085 GB, free: 105.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/18.64, allocations: 3.75 kB / 6.085 GB, free: 105.4 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0103/18.66, allocations: 4.249 MB / 6.089 GB, free: 105.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.284e-05/18.66, allocations: 16.7 kB / 6.089 GB, free: 105.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008224/18.66, allocations: 206.1 kB / 6.089 GB, free: 105.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003714/18.66, allocations: 0.7531 MB / 6.09 GB, free: 105.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004973/18.66, allocations: 3.921 MB / 6.094 GB, free: 102.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008591/18.67, allocations: 0.5138 MB / 6.094 GB, free: 102.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001331/18.67, allocations: 135.4 kB / 6.095 GB, free: 102.7 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (399): * Single equations (assignments): 393 * 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.002416/18.68, allocations: 210 kB / 6.095 GB, free: 102.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003004/18.68, allocations: 0.4921 MB / 6.095 GB, free: 102.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01648/18.7, allocations: 4.493 MB / 6.1 GB, free: 102.3 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-05/18.7, allocations: 35.62 kB / 6.1 GB, free: 102.3 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.595e-05/18.7, allocations: 6.875 kB / 6.1 GB, free: 102.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009553/18.71, allocations: 3.772 MB / 6.103 GB, free: 102 MB / 0.948 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.03831/18.74, allocations: 11.14 MB / 6.114 GB, free: 101 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-05/18.75, allocations: 3.562 kB / 6.114 GB, free: 101 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003924/18.75, allocations: 0.7433 MB / 6.115 GB, free: 101 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005678/18.75, allocations: 154.1 kB / 6.115 GB, free: 101 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007005/18.75, allocations: 56.75 kB / 6.115 GB, free: 101 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002778/18.75, allocations: 3.256 MB / 6.118 GB, free: 98.61 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/18.75, allocations: 10.84 kB / 6.118 GB, free: 98.61 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/18.77, allocations: 7.568 MB / 6.126 GB, free: 97.28 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005063/18.77, allocations: 1.225 MB / 6.127 GB, free: 96.94 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0032/18.78, allocations: 26.05 kB / 6.127 GB, free: 96.94 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007447/18.78, allocations: 459 kB / 6.127 GB, free: 96.93 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006145/18.78, allocations: 207.6 kB / 6.128 GB, free: 96.92 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005471/18.78, allocations: 116.4 kB / 6.128 GB, free: 96.92 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.009353/18.79, allocations: 3.225 MB / 6.131 GB, free: 96.74 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.212e-06/18.79, allocations: 0 / 6.131 GB, free: 96.74 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.02011/18.81, allocations: 2.955 MB / 6.134 GB, free: 96.74 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) * 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.007635/18.82, allocations: 3.429 MB / 6.137 GB, free: 95.61 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01557/18.84, allocations: 6.965 MB / 6.144 GB, free: 95 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.946e-05/18.84, allocations: 4.375 kB / 6.144 GB, free: 95 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.004621/18.84, allocations: 2.18 MB / 6.146 GB, free: 94.82 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01849/18.86, allocations: 2.931 MB / 6.149 GB, free: 94.78 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03554/18.9, allocations: 11.41 MB / 6.16 GB, free: 92.58 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009359/18.91, allocations: 4.703 MB / 6.165 GB, free: 91.73 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01879/18.92, allocations: 4.399 MB / 6.169 GB, free: 91.67 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002178/18.93, allocations: 295.1 kB / 6.169 GB, free: 91.66 MB / 0.948 GB Notification: Performance of SimCode: time 1.012e-06/18.93, allocations: 0 / 6.169 GB, free: 91.66 MB / 0.948 GB Notification: Performance of Templates: time 0.2252/19.15, allocations: 121.5 MB / 6.288 GB, free: 84.87 MB / 0.948 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