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") [: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 10.0.0-master/package.mo): time 1.988/1.988, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.001256/0.001255, allocations: 186.9 kB / 490.8 MB, free: 1.902 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.347/1.347, allocations: 221.3 MB / 0.7863 GB, free: 13.62 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.0009643/0.0009643, allocations: 93.92 kB / 0.9264 GB, free: 14.14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.115e-06/8.135e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2788, allocations: 143 MB / 1.212 GB, free: 40.08 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.584/4.863, allocations: 2.222 GB / 3.433 GB, free: 86.63 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/4.863, allocations: 91.95 kB / 3.434 GB, free: 86.54 MB / 1.151 GB Notification: Performance of FrontEnd: time 9.023/13.89, allocations: 2.72 GB / 6.153 GB, free: 64.15 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.001211/13.89, allocations: 162.9 kB / 6.154 GB, free: 64 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.02506/13.91, allocations: 6.146 MB / 6.16 GB, free: 57.84 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/13.91, allocations: 8.031 kB / 6.16 GB, free: 57.83 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/13.92, allocations: 1.527 MB / 6.161 GB, free: 56.3 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02275/13.95, allocations: 7.622 MB / 6.168 GB, free: 48.72 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003418/13.95, allocations: 152 kB / 6.169 GB, free: 48.57 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002711/13.95, allocations: 288 kB / 6.169 GB, free: 48.29 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01479/13.96, allocations: 5.548 MB / 6.174 GB, free: 42.73 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01562/13.98, allocations: 6.04 MB / 6.18 GB, free: 36.56 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/13.98, allocations: 7.984 kB / 6.18 GB, free: 36.55 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006059/13.98, allocations: 8 kB / 6.18 GB, free: 36.55 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001732/13.98, allocations: 229.3 kB / 6.18 GB, free: 36.32 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05308/14.03, allocations: 29.19 MB / 6.209 GB, free: 5.727 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005235/14.04, allocations: 2.587 MB / 6.211 GB, free: 3.141 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004572/14.04, allocations: 2.543 MB / 6.214 GB, free: 0.5898 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001423/14.05, allocations: 1.089 MB / 6.215 GB, free: 15.27 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005849/14.05, allocations: 2.357 MB / 6.217 GB, free: 12.87 MB / 1.229 GB Notification: Performance of pre-optimization done (n=327): time 8.777e-06/14.05, allocations: 0 / 6.217 GB, free: 12.87 MB / 1.229 GB Notification: Performance of matching and sorting (n=331): time 0.04012/14.09, allocations: 11.5 MB / 6.229 GB, free: 1.203 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/14.09, allocations: 218.4 kB / 6.229 GB, free: 0.9453 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5835/14.68, allocations: 4.255 MB / 6.233 GB, free: 266.8 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.001156/14.68, allocations: 35.3 kB / 6.233 GB, free: 266.7 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.002637/14.68, allocations: 1.776 MB / 6.235 GB, free: 266.6 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.002832/14.68, allocations: 1.106 MB / 6.236 GB, free: 266.4 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/14.68, allocations: 0 / 6.236 GB, free: 266.4 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0002837/14.68, allocations: 450.4 kB / 6.236 GB, free: 266.1 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002826/14.69, allocations: 1.786 MB / 6.238 GB, free: 266.1 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003363/14.69, allocations: 2.594 MB / 6.24 GB, free: 265.3 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003974/14.69, allocations: 2.374 MB / 6.243 GB, free: 265.2 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/14.69, allocations: 3.969 kB / 6.243 GB, free: 265.2 MB / 1.229 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.009987/14.7, allocations: 5.059 MB / 6.248 GB, free: 264.9 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001269/14.7, allocations: 6.316 MB / 6.254 GB, free: 258.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/14.7, allocations: 16.34 kB / 6.254 GB, free: 258.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006932/14.71, allocations: 226.2 kB / 6.254 GB, free: 258.1 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003871/14.71, allocations: 0.7427 MB / 6.255 GB, free: 258.1 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/14.71, allocations: 3.363 MB / 6.258 GB, free: 255.7 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007241/14.72, allocations: 0.49 MB / 6.259 GB, free: 255.7 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008998/14.72, allocations: 132.4 kB / 6.259 GB, free: 255.7 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/14.72, allocations: 4.969 kB / 6.259 GB, free: 255.7 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008617/14.73, allocations: 4.495 MB / 6.263 GB, free: 255.6 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.614e-05/14.73, allocations: 15.94 kB / 6.263 GB, free: 255.6 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006457/14.73, allocations: 218.5 kB / 6.263 GB, free: 255.6 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003453/14.73, allocations: 0.7374 MB / 6.264 GB, free: 255.6 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004157/14.74, allocations: 3.92 MB / 6.268 GB, free: 253 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007043/14.74, allocations: 495.6 kB / 6.268 GB, free: 253 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000873/14.75, allocations: 134.8 kB / 6.269 GB, free: 253 MB / 1.229 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.00109/14.75, allocations: 212.1 kB / 6.269 GB, free: 252.9 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001577/14.75, allocations: 498.9 kB / 6.269 GB, free: 252.6 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009448/14.76, allocations: 4.843 MB / 6.274 GB, free: 252.4 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/14.76, allocations: 35.59 kB / 6.274 GB, free: 252.4 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/14.76, allocations: 3.391 kB / 6.274 GB, free: 252.4 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006628/14.76, allocations: 4.057 MB / 6.278 GB, free: 252.1 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02632/14.79, allocations: 11.59 MB / 6.289 GB, free: 251.2 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/14.79, allocations: 3.781 kB / 6.289 GB, free: 251.2 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003786/14.79, allocations: 0.7033 MB / 6.29 GB, free: 251.2 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005598/14.79, allocations: 180.5 kB / 6.29 GB, free: 251.2 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003967/14.8, allocations: 55.17 kB / 6.29 GB, free: 251.2 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002702/14.8, allocations: 3.248 MB / 6.293 GB, free: 248.8 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/14.8, allocations: 6.562 kB / 6.293 GB, free: 248.8 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0128/14.81, allocations: 7.862 MB / 6.301 GB, free: 247.4 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004491/14.82, allocations: 1.227 MB / 6.302 GB, free: 247.1 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001881/14.82, allocations: 30.59 kB / 6.302 GB, free: 247.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005891/14.82, allocations: 411.2 kB / 6.303 GB, free: 247.1 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005881/14.82, allocations: 186.8 kB / 6.303 GB, free: 247.1 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003916/14.82, allocations: 121.4 kB / 6.303 GB, free: 247.1 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.007016/14.83, allocations: 3.309 MB / 6.306 GB, free: 246.9 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.0167/14.85, allocations: 2.857 MB / 6.309 GB, free: 246.9 MB / 1.229 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.006321/14.85, allocations: 3.405 MB / 6.312 GB, free: 245.8 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01625/14.87, allocations: 7.218 MB / 6.319 GB, free: 245.3 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/14.87, allocations: 7.562 kB / 6.319 GB, free: 245.3 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.004505/14.88, allocations: 2.32 MB / 6.322 GB, free: 245.2 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01636/14.89, allocations: 2.787 MB / 6.324 GB, free: 245.1 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03713/14.93, allocations: 11.82 MB / 6.336 GB, free: 243.1 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01254/14.94, allocations: 5.107 MB / 6.341 GB, free: 242.2 MB / 1.229 GB Notification: Performance of SimCode: time 1.152e-06/14.94, allocations: 0 / 6.341 GB, free: 242.2 MB / 1.229 GB Notification: Performance of Templates: time 0.2338/15.18, allocations: 143.6 MB / 6.481 GB, free: 236.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