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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.133/2.133, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001888/0.001888, allocations: 185.2 kB / 487 MB, free: 5.328 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.517/1.517, allocations: 221.3 MB / 0.7819 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009187/0.0009183, allocations: 99.56 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.314e-06/7.343e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2817, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.775/5.056, allocations: 2.221 GB / 3.426 GB, free: 53.69 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/5.057, allocations: 90.67 kB / 3.426 GB, free: 53.65 MB / 1.151 GB Notification: Performance of FrontEnd: time 9.231/14.29, allocations: 2.72 GB / 6.146 GB, free: 36.23 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001566/14.29, allocations: 167.1 kB / 6.146 GB, free: 36.07 MB / 1.214 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.03071/14.32, allocations: 6.146 MB / 6.152 GB, free: 29.85 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 6.116e-05/14.32, allocations: 11.48 kB / 6.152 GB, free: 29.84 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01274/14.33, allocations: 1.537 MB / 6.154 GB, free: 28.3 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02456/14.36, allocations: 7.614 MB / 6.161 GB, free: 20.61 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003496/14.36, allocations: 152 kB / 6.161 GB, free: 20.46 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00268/14.36, allocations: 291.9 kB / 6.162 GB, free: 20.18 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01555/14.38, allocations: 5.54 MB / 6.167 GB, free: 14.63 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02194/14.4, allocations: 6.04 MB / 6.173 GB, free: 8.457 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002391/14.4, allocations: 15.34 kB / 6.173 GB, free: 8.445 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001402/14.4, allocations: 11.98 kB / 6.173 GB, free: 8.434 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002101/14.4, allocations: 233.4 kB / 6.173 GB, free: 8.203 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7595/15.16, allocations: 29.15 MB / 6.202 GB, free: 253.8 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003863/15.16, allocations: 2.595 MB / 6.204 GB, free: 253.8 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003231/15.17, allocations: 2.536 MB / 6.207 GB, free: 253.7 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/15.17, allocations: 1.093 MB / 6.208 GB, free: 252.6 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00321/15.17, allocations: 2.359 MB / 6.21 GB, free: 252.4 MB / 1.214 GB Notification: Performance of pre-optimization done (n=327): time 4.799e-06/15.17, allocations: 0 / 6.21 GB, free: 252.4 MB / 1.214 GB Notification: Performance of matching and sorting (n=331): time 0.02661/15.2, allocations: 11.5 MB / 6.221 GB, free: 249.7 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/15.2, allocations: 217.9 kB / 6.222 GB, free: 249.4 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006882/15.2, allocations: 4.265 MB / 6.226 GB, free: 249.2 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.000939/15.21, allocations: 29.61 kB / 6.226 GB, free: 249.1 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.002232/15.21, allocations: 1.777 MB / 6.228 GB, free: 248.5 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.002484/15.21, allocations: 1.101 MB / 6.229 GB, free: 247.9 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000195/15.21, allocations: 0 / 6.229 GB, free: 247.9 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0001909/15.21, allocations: 448.7 kB / 6.229 GB, free: 247.6 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/15.21, allocations: 1.79 MB / 6.231 GB, free: 247.6 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002828/15.22, allocations: 2.591 MB / 6.233 GB, free: 246.8 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003522/15.22, allocations: 2.371 MB / 6.236 GB, free: 246.7 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/15.22, allocations: 3.875 kB / 6.236 GB, free: 246.7 MB / 1.214 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.008897/15.23, allocations: 5.062 MB / 6.241 GB, free: 246.4 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001302/15.23, allocations: 6.315 MB / 6.247 GB, free: 239.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/15.23, allocations: 12.62 kB / 6.247 GB, free: 239.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006584/15.23, allocations: 230 kB / 6.247 GB, free: 239.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003441/15.23, allocations: 0.7436 MB / 6.248 GB, free: 239.6 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/15.24, allocations: 3.362 MB / 6.251 GB, free: 237.2 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007659/15.24, allocations: 0.4961 MB / 6.251 GB, free: 237.2 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000933/15.25, allocations: 134 kB / 6.252 GB, free: 237.2 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/15.25, allocations: 3.781 kB / 6.252 GB, free: 237.2 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007899/15.25, allocations: 4.491 MB / 6.256 GB, free: 237.1 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/15.25, allocations: 12.25 kB / 6.256 GB, free: 237.1 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006678/15.25, allocations: 225 kB / 6.256 GB, free: 237.1 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003264/15.26, allocations: 0.7321 MB / 6.257 GB, free: 237.1 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003941/15.26, allocations: 3.925 MB / 6.261 GB, free: 234.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006994/15.27, allocations: 494.1 kB / 6.261 GB, free: 234.5 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006832/15.27, allocations: 133.2 kB / 6.261 GB, free: 234.5 MB / 1.214 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 (398): * Single equations (assignments): 394 * 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 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.001136/15.27, allocations: 224.7 kB / 6.262 GB, free: 234.3 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001686/15.27, allocations: 0.491 MB / 6.262 GB, free: 234.1 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008792/15.28, allocations: 4.833 MB / 6.267 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/15.28, allocations: 35.09 kB / 6.267 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/15.28, allocations: 3.938 kB / 6.267 GB, free: 233.9 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005951/15.29, allocations: 4.046 MB / 6.271 GB, free: 233.6 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03103/15.32, allocations: 11.6 MB / 6.282 GB, free: 232.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/15.32, allocations: 7.438 kB / 6.282 GB, free: 232.7 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003806/15.32, allocations: 0.6998 MB / 6.283 GB, free: 232.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000616/15.32, allocations: 179 kB / 6.283 GB, free: 232.7 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004954/15.32, allocations: 50.27 kB / 6.283 GB, free: 232.7 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002678/15.33, allocations: 3.249 MB / 6.286 GB, free: 230.3 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/15.33, allocations: 12.75 kB / 6.286 GB, free: 230.3 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01301/15.34, allocations: 7.862 MB / 6.294 GB, free: 228.9 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005126/15.34, allocations: 1.225 MB / 6.295 GB, free: 228.6 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00204/15.35, allocations: 34.39 kB / 6.295 GB, free: 228.6 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005965/15.35, allocations: 415.1 kB / 6.295 GB, free: 228.6 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000427/15.35, allocations: 172 kB / 6.296 GB, free: 228.6 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000361/15.35, allocations: 128.2 kB / 6.296 GB, free: 228.6 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.006506/15.36, allocations: 3.3 MB / 6.299 GB, free: 228.4 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.01799/15.38, allocations: 2.862 MB / 6.302 GB, free: 228.4 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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) * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006368/15.38, allocations: 3.393 MB / 6.305 GB, free: 227.2 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01334/15.4, allocations: 7.236 MB / 6.312 GB, free: 226.8 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 2.036e-05/15.4, allocations: 4.219 kB / 6.312 GB, free: 226.8 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.003788/15.4, allocations: 2.312 MB / 6.314 GB, free: 226.6 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01686/15.42, allocations: 2.797 MB / 6.317 GB, free: 226.6 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03465/15.45, allocations: 11.82 MB / 6.329 GB, free: 224.5 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009144/15.46, allocations: 5.108 MB / 6.334 GB, free: 223.7 MB / 1.214 GB Notification: Performance of SimCode: time 1.512e-06/15.46, allocations: 2.188 kB / 6.334 GB, free: 223.7 MB / 1.214 GB Notification: Performance of Templates: time 0.2585/15.72, allocations: 143.6 MB / 6.474 GB, free: 218 MB / 1.214 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