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") [: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 7.0.3-maint.7.0.x/package.mo): time 1.152/1.152, allocations: 249.4 MB / 256.7 MB, free: 15.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001/0.0009999, allocations: 182.5 kB / 316 MB, free: 7.223 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.257/1.257, allocations: 205.1 MB / 0.5667 GB, free: 24.03 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.0008188/0.000819, allocations: 94.27 kB / 0.671 GB, free: 1.312 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 8.736e-06/8.776e-06, allocations: 4 kB / 0.7807 GB, free: 0.8359 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3844, allocations: 106.3 MB / 0.8845 GB, free: 76.36 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.793/4.177, allocations: 2.511 GB / 3.395 GB, free: 314.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/4.178, allocations: 93.16 kB / 3.395 GB, free: 314.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 6.833/11.01, allocations: 2.608 GB / 6.003 GB, free: 113.8 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0006755/11.01, allocations: 167.3 kB / 6.003 GB, free: 113.8 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.01625/11.03, allocations: 6.153 MB / 6.009 GB, free: 111.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/11.03, allocations: 13.66 kB / 6.01 GB, free: 111.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009261/11.04, allocations: 1.538 MB / 6.011 GB, free: 110.8 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01511/11.05, allocations: 7.588 MB / 6.018 GB, free: 109.7 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/11.05, allocations: 156.7 kB / 6.019 GB, free: 109.7 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/11.05, allocations: 306.7 kB / 6.019 GB, free: 109.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01014/11.06, allocations: 5.57 MB / 6.024 GB, free: 108.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008814/11.07, allocations: 6.077 MB / 6.03 GB, free: 106.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/11.07, allocations: 7.812 kB / 6.03 GB, free: 106.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004399/11.07, allocations: 11.67 kB / 6.03 GB, free: 106.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/11.07, allocations: 229.9 kB / 6.03 GB, free: 106.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03702/11.11, allocations: 28.58 MB / 6.058 GB, free: 88.67 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003972/11.11, allocations: 2.589 MB / 6.061 GB, free: 87.77 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003306/11.12, allocations: 2.524 MB / 6.063 GB, free: 86.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001026/11.12, allocations: 1.09 MB / 6.064 GB, free: 85.24 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003077/11.12, allocations: 2.351 MB / 6.067 GB, free: 83.29 MB / 0.948 GB Notification: Performance of pre-optimization done (n=326): time 5.24e-06/11.12, allocations: 0 / 6.067 GB, free: 83.29 MB / 0.948 GB Notification: Performance of matching and sorting (n=330): time 0.0224/11.14, allocations: 11.46 MB / 6.078 GB, free: 72.47 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/11.14, allocations: 291.6 kB / 6.078 GB, free: 72.12 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005199/11.15, allocations: 4.274 MB / 6.082 GB, free: 67.86 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003622/11.15, allocations: 33.64 kB / 6.082 GB, free: 67.82 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001635/11.15, allocations: 1.793 MB / 6.084 GB, free: 66 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001639/11.15, allocations: 1.097 MB / 6.085 GB, free: 64.88 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/11.15, allocations: 0 / 6.085 GB, free: 64.88 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001477/11.15, allocations: 445 kB / 6.086 GB, free: 64.44 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002026/11.15, allocations: 1.785 MB / 6.087 GB, free: 62.66 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002386/11.16, allocations: 2.68 MB / 6.09 GB, free: 59.66 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002969/11.16, allocations: 2.375 MB / 6.092 GB, free: 57.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/11.16, allocations: 7.906 kB / 6.092 GB, free: 57.29 MB / 0.948 GB Notification: Performance of matching and sorting (n=424) (initialization): time 0.007056/11.17, allocations: 5.059 MB / 6.097 GB, free: 52.21 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009503/11.17, allocations: 6.323 MB / 6.103 GB, free: 45.29 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/11.17, allocations: 12 kB / 6.103 GB, free: 45.28 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005493/11.17, allocations: 228.8 kB / 6.104 GB, free: 45.05 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00301/11.17, allocations: 0.7386 MB / 6.104 GB, free: 44.32 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/11.17, allocations: 3.362 MB / 6.108 GB, free: 40.82 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005817/11.18, allocations: 485.4 kB / 6.108 GB, free: 40.38 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002905/11.18, allocations: 136 kB / 6.108 GB, free: 40.25 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/11.18, allocations: 6.062 kB / 6.108 GB, free: 40.24 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005974/11.19, allocations: 4.486 MB / 6.113 GB, free: 35.74 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/11.19, allocations: 16 kB / 6.113 GB, free: 35.73 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005315/11.19, allocations: 217.8 kB / 6.113 GB, free: 35.51 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/11.19, allocations: 0.728 MB / 6.114 GB, free: 34.79 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003419/11.19, allocations: 3.938 MB / 6.117 GB, free: 30.66 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005669/11.2, allocations: 476.9 kB / 6.118 GB, free: 30.22 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002765/11.2, allocations: 136 kB / 6.118 GB, free: 30.09 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 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007706/11.2, allocations: 222.6 kB / 6.118 GB, free: 29.86 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007879/11.2, allocations: 494 kB / 6.119 GB, free: 29.38 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007187/11.21, allocations: 4.807 MB / 6.123 GB, free: 24.54 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.528e-05/11.21, allocations: 32 kB / 6.123 GB, free: 24.51 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/11.21, allocations: 3.312 kB / 6.123 GB, free: 24.51 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004869/11.21, allocations: 4.02 MB / 6.127 GB, free: 20.44 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01687/11.23, allocations: 11.54 MB / 6.139 GB, free: 8.828 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/11.23, allocations: 4 kB / 6.139 GB, free: 8.824 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003171/11.23, allocations: 0.709 MB / 6.139 GB, free: 8.117 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004355/11.23, allocations: 185 kB / 6.14 GB, free: 7.938 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/11.23, allocations: 51.95 kB / 6.14 GB, free: 7.887 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002154/11.24, allocations: 3.247 MB / 6.143 GB, free: 4.496 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/11.24, allocations: 8 kB / 6.143 GB, free: 4.488 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.3683/11.6, allocations: 8.171 MB / 6.151 GB, free: 160.5 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004025/11.61, allocations: 1.24 MB / 6.152 GB, free: 160.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001522/11.61, allocations: 34.72 kB / 6.152 GB, free: 160.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005033/11.61, allocations: 418.4 kB / 6.152 GB, free: 160.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/11.62, allocations: 175 kB / 6.153 GB, free: 160.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002935/11.62, allocations: 123 kB / 6.153 GB, free: 160.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.004863/11.62, allocations: 3.312 MB / 6.156 GB, free: 160.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01156/11.63, allocations: 2.923 MB / 6.159 GB, free: 160.3 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004353/11.64, allocations: 3.451 MB / 6.162 GB, free: 159.1 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.009051/11.65, allocations: 7.278 MB / 6.169 GB, free: 158.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.876e-06/11.65, allocations: 4.562 kB / 6.169 GB, free: 158.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.002629/11.65, allocations: 2.304 MB / 6.171 GB, free: 158.5 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01279/11.66, allocations: 2.812 MB / 6.174 GB, free: 158.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02057/11.68, allocations: 11.83 MB / 6.186 GB, free: 156.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005385/11.69, allocations: 5.126 MB / 6.191 GB, free: 155.5 MB / 0.948 GB Notification: Performance of SimCode: time 1.233e-06/11.69, allocations: 0 / 6.191 GB, free: 155.5 MB / 0.948 GB Notification: Performance of Templates: time 0.195/11.88, allocations: 145.3 MB / 6.333 GB, free: 149.3 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