Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.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_9_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_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.152/2.152, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001076/0.001076, allocations: 177.1 kB / 498.1 MB, free: 5.672 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.542/1.542, allocations: 223.2 MB / 0.7948 GB, free: 17.84 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.0009681/0.000968, allocations: 102.8 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0006415/0.0006412, allocations: 9.562 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3937, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.767/6.161, allocations: 2.222 GB / 3.445 GB, free: 262.9 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/6.161, allocations: 99.94 kB / 3.445 GB, free: 262.8 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 10.22/16.38, allocations: 2.722 GB / 6.167 GB, free: 170.8 MB / 1.229 GB Notification: Performance of FrontEnd: time 3.757e-06/16.38, allocations: 0 / 6.167 GB, free: 170.8 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.001383/16.38, allocations: 169 kB / 6.167 GB, free: 170.8 MB / 1.229 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1243 * Number of variables: 1243 Notification: Performance of Generate backend data structure: time 0.02755/16.41, allocations: 7.488 MB / 6.174 GB, free: 167.9 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/16.41, allocations: 9.688 kB / 6.174 GB, free: 167.9 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/16.42, allocations: 1.504 MB / 6.175 GB, free: 167.5 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01858/16.44, allocations: 7.512 MB / 6.183 GB, free: 166.6 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003312/16.44, allocations: 370.2 kB / 6.183 GB, free: 166.6 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001497/16.44, allocations: 0.4939 MB / 6.184 GB, free: 166.6 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01398/16.45, allocations: 6.708 MB / 6.19 GB, free: 166.1 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001444/16.45, allocations: 6.562 kB / 6.19 GB, free: 166.1 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006791/16.45, allocations: 203.1 kB / 6.19 GB, free: 166.1 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002059/16.45, allocations: 228.8 kB / 6.191 GB, free: 166.1 MB / 1.229 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01166/16.47, allocations: 5.87 MB / 6.196 GB, free: 166.1 MB / 1.229 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.04429/16.51, allocations: 28.23 MB / 6.224 GB, free: 155.7 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005855/16.52, allocations: 4.521 MB / 6.228 GB, free: 154.8 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009912/16.52, allocations: 0.9196 MB / 6.229 GB, free: 153.9 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003407/16.52, allocations: 2.242 MB / 6.231 GB, free: 153.8 MB / 1.229 GB Notification: Performance of pre-optimization done (n=325): time 5.631e-06/16.52, allocations: 3.719 kB / 6.231 GB, free: 153.8 MB / 1.229 GB Notification: Performance of matching and sorting (n=329): time 0.02278/16.54, allocations: 11.91 MB / 6.243 GB, free: 151.4 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/16.54, allocations: 165.7 kB / 6.243 GB, free: 151.2 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007892/16.55, allocations: 4.583 MB / 6.248 GB, free: 149.7 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.0008746/16.55, allocations: 102.5 kB / 6.248 GB, free: 149.6 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.002657/16.55, allocations: 2.72 MB / 6.25 GB, free: 147.5 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.001522/16.56, allocations: 1.141 MB / 6.252 GB, free: 146.6 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002566/16.56, allocations: 65.44 kB / 6.252 GB, free: 146.6 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0001939/16.56, allocations: 444.9 kB / 6.252 GB, free: 146.2 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002649/16.56, allocations: 1.822 MB / 6.254 GB, free: 145.6 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003033/16.56, allocations: 2.639 MB / 6.256 GB, free: 144.1 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003122/16.57, allocations: 2.335 MB / 6.259 GB, free: 143.1 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/16.57, allocations: 0 / 6.259 GB, free: 143.1 MB / 1.229 GB Notification: Performance of matching and sorting (n=418) (initialization): time 0.008756/16.57, allocations: 5.217 MB / 6.264 GB, free: 141.2 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001071/16.58, allocations: 6.201 MB / 6.27 GB, free: 134.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/16.58, allocations: 15.41 kB / 6.27 GB, free: 134.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005868/16.58, allocations: 213.5 kB / 6.27 GB, free: 134.4 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003343/16.58, allocations: 0.7693 MB / 6.271 GB, free: 134.4 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00254/16.58, allocations: 3.453 MB / 6.274 GB, free: 131.5 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006661/16.59, allocations: 0.6168 MB / 6.275 GB, free: 131.4 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004839/16.59, allocations: 135.8 kB / 6.275 GB, free: 131.4 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/16.59, allocations: 3.188 kB / 6.275 GB, free: 131.4 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007313/16.6, allocations: 4.768 MB / 6.28 GB, free: 129.6 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.519e-05/16.6, allocations: 15.44 kB / 6.28 GB, free: 129.6 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005545/16.6, allocations: 211.7 kB / 6.28 GB, free: 129.6 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003198/16.6, allocations: 0.7552 MB / 6.281 GB, free: 129.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003583/16.6, allocations: 4.115 MB / 6.285 GB, free: 126.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006685/16.61, allocations: 0.5975 MB / 6.285 GB, free: 126 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006824/16.61, allocations: 126.6 kB / 6.285 GB, free: 126 MB / 1.229 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 (397): * Single equations (assignments): 393 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.004869/16.62, allocations: 2.416 MB / 6.288 GB, free: 124.9 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/16.62, allocations: 0.503 MB / 6.288 GB, free: 124.6 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008759/16.63, allocations: 5.027 MB / 6.293 GB, free: 122.6 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/16.63, allocations: 33.66 kB / 6.293 GB, free: 122.6 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/16.63, allocations: 5.625 kB / 6.293 GB, free: 122.6 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005927/16.63, allocations: 4.196 MB / 6.297 GB, free: 120.9 MB / 1.229 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.02414/16.66, allocations: 12.28 MB / 6.309 GB, free: 113.6 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/16.66, allocations: 7 kB / 6.309 GB, free: 113.6 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003423/16.66, allocations: 0.7312 MB / 6.31 GB, free: 113 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004974/16.66, allocations: 173.2 kB / 6.31 GB, free: 112.9 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003934/16.66, allocations: 106.4 kB / 6.31 GB, free: 112.8 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/16.66, allocations: 3.364 MB / 6.313 GB, free: 109.4 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/16.66, allocations: 4 kB / 6.313 GB, free: 109.4 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/16.67, allocations: 7.906 MB / 6.321 GB, free: 102.3 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004135/16.68, allocations: 1.246 MB / 6.322 GB, free: 101.2 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001582/16.68, allocations: 75.84 kB / 6.322 GB, free: 101.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005673/16.69, allocations: 0.4997 MB / 6.323 GB, free: 100.8 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004774/16.69, allocations: 201 kB / 6.323 GB, free: 100.6 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004166/16.69, allocations: 125.2 kB / 6.323 GB, free: 100.5 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.007909/16.69, allocations: 3.611 MB / 6.327 GB, free: 97.59 MB / 1.229 GB Notification: Performance of sort global known variables: time 8.41e-07/16.69, allocations: 4 kB / 6.327 GB, free: 97.59 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.01689/16.71, allocations: 3.131 MB / 6.33 GB, free: 94.48 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 21 (temSen.T,val.filter.s[1],val.filter.s[2],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,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 (319): * Single equations (assignments): 311 * 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.005479/16.72, allocations: 3.169 MB / 6.333 GB, free: 92.05 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01279/16.73, allocations: 7.364 MB / 6.34 GB, free: 85.62 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/16.73, allocations: 5 kB / 6.34 GB, free: 85.61 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.003898/16.73, allocations: 2.381 MB / 6.342 GB, free: 83.52 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01721/16.75, allocations: 3.038 MB / 6.345 GB, free: 81.5 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03007/16.78, allocations: 15.73 MB / 6.361 GB, free: 67.51 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00797/16.79, allocations: 4.674 MB / 6.365 GB, free: 63.1 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.01338/16.8, allocations: 2.704 MB / 6.368 GB, free: 60.49 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002707/16.81, allocations: 383.3 kB / 6.368 GB, free: 60.11 MB / 1.229 GB Notification: Performance of SimCode: time 1.644e-06/16.81, allocations: 0 / 6.368 GB, free: 60.11 MB / 1.229 GB Notification: Performance of Templates: time 0.9595/17.76, allocations: 137.2 MB / 6.502 GB, free: 157.9 MB / 1.229 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches