Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.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.DryCoilCounterFlowMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.sta_a1.T|hex.sta_b1.T|hex.Q2_flow|hex.port_a2.m_flow|hex.port_b2.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow") translateModel(Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.sta_a1.T|hex.sta_b1.T|hex.Q2_flow|hex.port_a2.m_flow|hex.port_b2.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow") [: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.139/2.139, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001161/0.001161, allocations: 181.3 kB / 487 MB, free: 5.375 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.577/1.577, allocations: 221.3 MB / 0.7819 GB, free: 1.344 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.001169/0.001169, allocations: 97.62 kB / 0.9213 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.614e-06/7.644e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3071, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.884/5.191, allocations: 2.208 GB / 3.413 GB, free: 92.45 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/5.191, allocations: 87.95 kB / 3.413 GB, free: 92.36 MB / 1.151 GB Notification: Performance of FrontEnd: time 7.93/13.12, allocations: 2.091 GB / 5.504 GB, free: 177.7 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001652/13.12, allocations: 137.2 kB / 5.504 GB, free: 177.6 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1021 * Number of variables: 1021 Notification: Performance of Generate backend data structure: time 0.02578/13.15, allocations: 5.185 MB / 5.509 GB, free: 175.5 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/13.15, allocations: 11.81 kB / 5.509 GB, free: 175.5 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01169/13.16, allocations: 1.284 MB / 5.51 GB, free: 175.2 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02493/13.19, allocations: 6.908 MB / 5.517 GB, free: 174.3 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004312/13.19, allocations: 123.8 kB / 5.517 GB, free: 174.3 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002236/13.19, allocations: 242 kB / 5.518 GB, free: 174.3 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01408/13.2, allocations: 4.647 MB / 5.522 GB, free: 174.2 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0173/13.22, allocations: 5.104 MB / 5.527 GB, free: 172.9 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003315/13.22, allocations: 4.188 kB / 5.527 GB, free: 172.9 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001861/13.22, allocations: 5.156 kB / 5.527 GB, free: 172.9 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003142/13.22, allocations: 202.1 kB / 5.527 GB, free: 172.9 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05436/13.28, allocations: 25.17 MB / 5.552 GB, free: 156.9 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005267/13.28, allocations: 2.066 MB / 5.554 GB, free: 156.1 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005103/13.29, allocations: 2.118 MB / 5.556 GB, free: 155.4 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001565/13.29, allocations: 1.088 MB / 5.557 GB, free: 154.2 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005367/13.29, allocations: 2.003 MB / 5.559 GB, free: 153.5 MB / 1.182 GB Notification: Performance of pre-optimization done (n=273): time 1.935e-05/13.29, allocations: 3.5 kB / 5.559 GB, free: 153.5 MB / 1.182 GB Notification: Performance of matching and sorting (n=277): time 0.03843/13.33, allocations: 9.798 MB / 5.569 GB, free: 145.5 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/13.33, allocations: 193.6 kB / 5.569 GB, free: 145.3 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009618/13.34, allocations: 3.701 MB / 5.572 GB, free: 141.7 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0009617/13.34, allocations: 36.73 kB / 5.572 GB, free: 141.6 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.002594/13.35, allocations: 1.482 MB / 5.574 GB, free: 140.1 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.002665/13.35, allocations: 0.9162 MB / 5.575 GB, free: 139.2 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/13.35, allocations: 0 / 5.575 GB, free: 139.2 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0002506/13.35, allocations: 419.6 kB / 5.575 GB, free: 138.8 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/13.35, allocations: 1.497 MB / 5.577 GB, free: 137.3 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00261/13.35, allocations: 2.141 MB / 5.579 GB, free: 134.9 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003886/13.36, allocations: 2.06 MB / 5.581 GB, free: 132.9 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.354e-05/13.36, allocations: 0 / 5.581 GB, free: 132.9 MB / 1.182 GB Notification: Performance of matching and sorting (n=354) (initialization): time 0.008321/13.37, allocations: 4.239 MB / 5.585 GB, free: 128.6 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001378/13.37, allocations: 5.294 MB / 5.59 GB, free: 123 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.811e-05/13.37, allocations: 15.98 kB / 5.59 GB, free: 123 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004987/13.37, allocations: 124.5 kB / 5.59 GB, free: 122.9 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002915/13.37, allocations: 0.6116 MB / 5.591 GB, free: 122.3 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/13.37, allocations: 2.617 MB / 5.593 GB, free: 119.5 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007103/13.38, allocations: 421.6 kB / 5.594 GB, free: 119.1 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007913/13.38, allocations: 116 kB / 5.594 GB, free: 119 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/13.38, allocations: 4 kB / 5.594 GB, free: 119 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008398/13.39, allocations: 3.783 MB / 5.597 GB, free: 115.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.916e-05/13.39, allocations: 15.06 kB / 5.597 GB, free: 115.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003595/13.39, allocations: 125.8 kB / 5.598 GB, free: 115.1 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002712/13.39, allocations: 0.6001 MB / 5.598 GB, free: 114.5 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001828/13.4, allocations: 1.993 MB / 5.6 GB, free: 112.4 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005931/13.4, allocations: 413.8 kB / 5.601 GB, free: 112 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006297/13.4, allocations: 116 kB / 5.601 GB, free: 111.9 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,$PRE.mWatGai.nextEvent,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,$PRE.mAirGai.nextEvent,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (337): * Single equations (assignments): 333 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001194/13.4, allocations: 241.7 kB / 5.601 GB, free: 111.7 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/13.41, allocations: 418.9 kB / 5.601 GB, free: 111.2 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009031/13.41, allocations: 4.048 MB / 5.605 GB, free: 107.2 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.229e-05/13.41, allocations: 31.98 kB / 5.605 GB, free: 107.1 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/13.41, allocations: 0 / 5.605 GB, free: 107.1 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005466/13.42, allocations: 3.409 MB / 5.609 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02359/13.44, allocations: 10 MB / 5.618 GB, free: 93.53 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/13.44, allocations: 7.906 kB / 5.618 GB, free: 93.52 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003152/13.45, allocations: 0.5888 MB / 5.619 GB, free: 92.94 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004018/13.45, allocations: 109.4 kB / 5.619 GB, free: 92.83 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005092/13.45, allocations: 51.95 kB / 5.619 GB, free: 92.78 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/13.45, allocations: 2.592 MB / 5.622 GB, free: 90.07 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/13.45, allocations: 4 kB / 5.622 GB, free: 90.06 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009914/13.46, allocations: 6.508 MB / 5.628 GB, free: 83.3 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003795/13.46, allocations: 1.073 MB / 5.629 GB, free: 82.2 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001796/13.47, allocations: 35.83 kB / 5.629 GB, free: 82.17 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005227/13.47, allocations: 372.5 kB / 5.629 GB, free: 81.83 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003798/13.47, allocations: 144.9 kB / 5.63 GB, free: 81.69 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00038/13.47, allocations: 111.9 kB / 5.63 GB, free: 81.58 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.005455/13.48, allocations: 2.891 MB / 5.632 GB, free: 78.68 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.01265/13.49, allocations: 2.519 MB / 5.635 GB, free: 76.16 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 18 (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,senRelHum.phi) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,mWatGai.a,mWatGai.b,mWatGai.last,mWatGai.nextEvent,mWatGai.nextEventScaled,mAirGai.a,mAirGai.b,mAirGai.last,mAirGai.nextEvent,mAirGai.nextEventScaled) * Number of discrete states: 12 (mAirGai.nextEvent,mAirGai.last,mAirGai.nextEventScaled,mAirGai.b,mAirGai.a,$whenCondition2,mWatGai.nextEvent,mWatGai.last,mWatGai.nextEventScaled,mWatGai.b,mWatGai.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004923/13.49, allocations: 3.026 MB / 5.638 GB, free: 73.59 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.009515/13.5, allocations: 6.008 MB / 5.644 GB, free: 67.53 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/13.5, allocations: 4 kB / 5.644 GB, free: 67.52 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.002821/13.51, allocations: 1.988 MB / 5.646 GB, free: 65.52 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01441/13.52, allocations: 2.517 MB / 5.648 GB, free: 63.18 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02234/13.54, allocations: 10.24 MB / 5.658 GB, free: 52.89 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00459/13.55, allocations: 4.427 MB / 5.663 GB, free: 48.42 MB / 1.182 GB Notification: Performance of SimCode: time 7.72e-07/13.55, allocations: 0 / 5.663 GB, free: 48.42 MB / 1.182 GB Notification: Performance of Templates: time 0.7684/14.32, allocations: 124.6 MB / 5.784 GB, free: 289.9 MB / 1.198 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches