Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.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.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_latest_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_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.299/2.299, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001254/0.001254, allocations: 191.9 kB / 0.4902 GB, free: 2.152 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.598/1.598, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.0008718/0.0008717, allocations: 101.9 kB / 0.9396 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003804/0.0003807, allocations: 12.45 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2715, allocations: 143 MB / 1.229 GB, free: 85.54 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.881/5.152, allocations: 2.223 GB / 3.452 GB, free: 146.9 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/5.153, allocations: 102.5 kB / 3.452 GB, free: 146.8 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 10.56/15.71, allocations: 2.722 GB / 6.174 GB, free: 166.8 MB / 1.229 GB Notification: Performance of FrontEnd: time 2.014e-06/15.71, allocations: 0 / 6.174 GB, free: 166.8 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.001339/15.71, allocations: 167.1 kB / 6.174 GB, free: 166.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.03138/15.74, allocations: 7.494 MB / 6.181 GB, free: 163.7 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/15.74, allocations: 14.45 kB / 6.181 GB, free: 163.7 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01105/15.75, allocations: 1.493 MB / 6.183 GB, free: 163.3 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/15.77, allocations: 7.51 MB / 6.19 GB, free: 162.3 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004743/15.77, allocations: 377.3 kB / 6.19 GB, free: 162.2 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002574/15.77, allocations: 0.495 MB / 6.191 GB, free: 162.1 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0192/15.79, allocations: 6.702 MB / 6.197 GB, free: 159.4 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002792/15.79, allocations: 7.906 kB / 6.197 GB, free: 159.4 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001695/15.8, allocations: 195.9 kB / 6.198 GB, free: 159.2 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002176/15.8, allocations: 228.7 kB / 6.198 GB, free: 159.2 MB / 1.229 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01217/15.81, allocations: 5.868 MB / 6.204 GB, free: 157.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.06078/15.87, allocations: 28.22 MB / 6.231 GB, free: 129.1 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006971/15.88, allocations: 4.53 MB / 6.235 GB, free: 124.4 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/15.88, allocations: 0.9214 MB / 6.236 GB, free: 123.3 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004628/15.88, allocations: 2.239 MB / 6.239 GB, free: 121.1 MB / 1.229 GB Notification: Performance of pre-optimization done (n=325): time 6.672e-06/15.88, allocations: 4 kB / 6.239 GB, free: 121.1 MB / 1.229 GB Notification: Performance of matching and sorting (n=329): time 0.02822/15.91, allocations: 11.91 MB / 6.25 GB, free: 109 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/15.91, allocations: 175 kB / 6.25 GB, free: 108.8 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0097/15.92, allocations: 4.584 MB / 6.255 GB, free: 104.2 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001005/15.92, allocations: 93.7 kB / 6.255 GB, free: 104.1 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.002858/15.92, allocations: 2.722 MB / 6.258 GB, free: 101.3 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.001624/15.93, allocations: 1.141 MB / 6.259 GB, free: 100.2 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/15.93, allocations: 64 kB / 6.259 GB, free: 100.1 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.000175/15.93, allocations: 436.9 kB / 6.259 GB, free: 99.7 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/15.93, allocations: 1.822 MB / 6.261 GB, free: 97.88 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002909/15.93, allocations: 2.635 MB / 6.264 GB, free: 94.95 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/15.93, allocations: 2.334 MB / 6.266 GB, free: 92.6 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/15.93, allocations: 4 kB / 6.266 GB, free: 92.59 MB / 1.229 GB Notification: Performance of matching and sorting (n=418) (initialization): time 0.008001/15.94, allocations: 5.229 MB / 6.271 GB, free: 87.32 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001088/15.94, allocations: 6.196 MB / 6.277 GB, free: 80.55 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/15.94, allocations: 18.3 kB / 6.277 GB, free: 80.54 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005804/15.94, allocations: 213.5 kB / 6.277 GB, free: 80.32 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003104/15.95, allocations: 0.7762 MB / 6.278 GB, free: 79.54 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/15.95, allocations: 3.448 MB / 6.281 GB, free: 75.92 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006807/15.96, allocations: 0.612 MB / 6.282 GB, free: 75.3 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004709/15.96, allocations: 136 kB / 6.282 GB, free: 75.17 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/15.96, allocations: 4 kB / 6.282 GB, free: 75.17 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007057/15.96, allocations: 4.766 MB / 6.287 GB, free: 70.36 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/15.96, allocations: 12 kB / 6.287 GB, free: 70.35 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005496/15.96, allocations: 216.1 kB / 6.287 GB, free: 70.14 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003026/15.97, allocations: 0.7567 MB / 6.288 GB, free: 69.38 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003607/15.97, allocations: 4.118 MB / 6.292 GB, free: 64.99 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007266/15.98, allocations: 0.6003 MB / 6.292 GB, free: 64.39 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000922/15.98, allocations: 128 kB / 6.292 GB, free: 64.27 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.005823/15.99, allocations: 2.407 MB / 6.295 GB, free: 61.84 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001693/15.99, allocations: 0.4974 MB / 6.295 GB, free: 61.34 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008475/16, allocations: 5.033 MB / 6.3 GB, free: 56.26 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/16, allocations: 28 kB / 6.3 GB, free: 56.23 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/16, allocations: 4 kB / 6.3 GB, free: 56.23 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005476/16, allocations: 4.195 MB / 6.304 GB, free: 51.96 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.02089/16.02, allocations: 12.29 MB / 6.316 GB, free: 39.52 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/16.02, allocations: 4 kB / 6.316 GB, free: 39.52 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003175/16.03, allocations: 0.7449 MB / 6.317 GB, free: 38.78 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004399/16.03, allocations: 161.6 kB / 6.317 GB, free: 38.61 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002398/16.03, allocations: 99.95 kB / 6.317 GB, free: 38.52 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/16.03, allocations: 3.354 MB / 6.321 GB, free: 34.99 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/16.03, allocations: 4 kB / 6.321 GB, free: 34.99 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/16.04, allocations: 7.926 MB / 6.328 GB, free: 26.81 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004345/16.04, allocations: 1.239 MB / 6.329 GB, free: 25.55 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001639/16.04, allocations: 79.98 kB / 6.33 GB, free: 25.47 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005504/16.05, allocations: 0.4951 MB / 6.33 GB, free: 24.97 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004066/16.05, allocations: 206.1 kB / 6.33 GB, free: 24.77 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003196/16.05, allocations: 127.9 kB / 6.33 GB, free: 24.64 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.006323/16.06, allocations: 3.613 MB / 6.334 GB, free: 21.04 MB / 1.229 GB Notification: Performance of sort global known variables: time 3.2e-07/16.06, allocations: 0 / 6.334 GB, free: 21.04 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.01437/16.07, allocations: 3.125 MB / 6.337 GB, free: 17.92 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.004881/16.08, allocations: 3.169 MB / 6.34 GB, free: 14.97 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01178/16.09, allocations: 7.355 MB / 6.347 GB, free: 7.535 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.245e-05/16.09, allocations: 9.062 kB / 6.347 GB, free: 7.527 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.003165/16.09, allocations: 2.39 MB / 6.35 GB, free: 5.109 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01414/16.11, allocations: 3.037 MB / 6.353 GB, free: 2.227 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6989/16.8, allocations: 15.72 MB / 6.368 GB, free: 165.8 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008543/16.81, allocations: 4.664 MB / 6.372 GB, free: 165 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.0113/16.82, allocations: 2.702 MB / 6.375 GB, free: 164.9 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002303/16.83, allocations: 385.4 kB / 6.375 GB, free: 164.9 MB / 1.229 GB Notification: Performance of SimCode: time 8.62e-07/16.83, allocations: 0 / 6.375 GB, free: 164.9 MB / 1.229 GB Notification: Performance of Templates: time 0.2027/17.03, allocations: 137.2 MB / 6.509 GB, free: 159.6 MB / 1.229 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches