Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.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.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.164/1.164, allocations: 249.4 MB / 256.7 MB, free: 15.85 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.001005/0.001005, allocations: 184.2 kB / 316 MB, free: 7.238 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.25/1.25, allocations: 205.1 MB / 0.5667 GB, free: 23.7 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.000897/0.000897, allocations: 84.52 kB / 0.671 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 7.665e-06/7.695e-06, allocations: 4 kB / 0.7807 GB, free: 0.5039 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3524, allocations: 106.3 MB / 0.8846 GB, free: 76.34 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.462/3.814, allocations: 2.484 GB / 3.368 GB, free: 64.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/3.815, allocations: 87.95 kB / 3.368 GB, free: 64.32 MB / 0.8855 GB Notification: Performance of FrontEnd: time 5.208/9.023, allocations: 2.004 GB / 5.373 GB, free: 99 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0005511/9.024, allocations: 142.6 kB / 5.373 GB, free: 98.98 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1029 * Number of variables: 1029 Notification: Performance of Generate backend data structure: time 0.01289/9.036, allocations: 5.157 MB / 5.378 GB, free: 96.75 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/9.036, allocations: 7.562 kB / 5.378 GB, free: 96.75 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007514/9.044, allocations: 1.285 MB / 5.379 GB, free: 96.44 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/9.057, allocations: 6.834 MB / 5.386 GB, free: 94.33 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/9.057, allocations: 128.6 kB / 5.386 GB, free: 94.33 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006489/9.058, allocations: 252.1 kB / 5.386 GB, free: 94.32 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006955/9.065, allocations: 4.676 MB / 5.391 GB, free: 92.62 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007364/9.072, allocations: 5.099 MB / 5.396 GB, free: 90.71 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.389e-05/9.072, allocations: 7.219 kB / 5.396 GB, free: 90.71 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/9.073, allocations: 8.219 kB / 5.396 GB, free: 90.71 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/9.073, allocations: 194.3 kB / 5.396 GB, free: 90.69 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03382/9.107, allocations: 24.58 MB / 5.42 GB, free: 73.57 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004206/9.111, allocations: 3.504 MB / 5.423 GB, free: 70.08 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/9.113, allocations: 2.102 MB / 5.425 GB, free: 67.97 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009654/9.114, allocations: 1.092 MB / 5.426 GB, free: 66.67 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002288/9.116, allocations: 2.004 MB / 5.428 GB, free: 64.61 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=273): time 4.288e-06/9.116, allocations: 0 / 5.428 GB, free: 64.61 MB / 0.9167 GB Notification: Performance of matching and sorting (n=277): time 0.01952/9.136, allocations: 9.725 MB / 5.438 GB, free: 54.71 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/9.136, allocations: 188.3 kB / 5.438 GB, free: 54.49 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004431/9.14, allocations: 3.7 MB / 5.442 GB, free: 50.77 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003022/9.141, allocations: 33.7 kB / 5.442 GB, free: 50.73 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001325/9.142, allocations: 1.487 MB / 5.443 GB, free: 49.23 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.001388/9.143, allocations: 0.9197 MB / 5.444 GB, free: 48.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/9.144, allocations: 4 kB / 5.444 GB, free: 48.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001622/9.144, allocations: 415.7 kB / 5.444 GB, free: 47.89 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/9.145, allocations: 1.472 MB / 5.446 GB, free: 46.41 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002001/9.147, allocations: 2.219 MB / 5.448 GB, free: 43.92 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002897/9.15, allocations: 2.051 MB / 5.45 GB, free: 41.85 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/9.15, allocations: 4 kB / 5.45 GB, free: 41.85 MB / 0.9167 GB Notification: Performance of matching and sorting (n=354) (initialization): time 0.00617/9.157, allocations: 4.195 MB / 5.454 GB, free: 37.61 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007283/9.157, allocations: 5.292 MB / 5.459 GB, free: 31.98 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/9.157, allocations: 12 kB / 5.459 GB, free: 31.97 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003687/9.158, allocations: 120.8 kB / 5.459 GB, free: 31.85 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002671/9.16, allocations: 0.624 MB / 5.46 GB, free: 31.22 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/9.162, allocations: 2.618 MB / 5.463 GB, free: 28.47 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005001/9.167, allocations: 414.7 kB / 5.463 GB, free: 28.07 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000268/9.168, allocations: 108 kB / 5.463 GB, free: 27.97 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 7.804e-06/9.168, allocations: 7.125 kB / 5.463 GB, free: 27.96 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005324/9.173, allocations: 3.741 MB / 5.467 GB, free: 24.19 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/9.173, allocations: 12 kB / 5.467 GB, free: 24.18 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003055/9.173, allocations: 125.2 kB / 5.467 GB, free: 24.05 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002439/9.176, allocations: 0.6194 MB / 5.467 GB, free: 23.44 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/9.177, allocations: 1.985 MB / 5.469 GB, free: 21.34 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004962/9.182, allocations: 395 kB / 5.47 GB, free: 20.96 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002328/9.183, allocations: 123.9 kB / 5.47 GB, free: 20.84 MB / 0.9167 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.0006307/9.183, allocations: 240 kB / 5.47 GB, free: 20.58 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006773/9.184, allocations: 418.9 kB / 5.471 GB, free: 20.17 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00616/9.19, allocations: 4.009 MB / 5.474 GB, free: 16.11 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/9.19, allocations: 28 kB / 5.474 GB, free: 16.09 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/9.19, allocations: 4 kB / 5.474 GB, free: 16.08 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004315/9.194, allocations: 3.365 MB / 5.478 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01566/9.21, allocations: 9.921 MB / 5.487 GB, free: 2.602 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/9.21, allocations: 7.984 kB / 5.487 GB, free: 2.594 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002703/9.213, allocations: 0.5896 MB / 5.488 GB, free: 2.004 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002837/9.213, allocations: 112.7 kB / 5.488 GB, free: 1.891 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001863/9.213, allocations: 47.97 kB / 5.488 GB, free: 1.844 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/9.215, allocations: 2.588 MB / 5.491 GB, free: 15.13 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/9.215, allocations: 7.938 kB / 5.491 GB, free: 15.12 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009904/9.225, allocations: 6.797 MB / 5.497 GB, free: 8.055 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003657/9.229, allocations: 1.086 MB / 5.498 GB, free: 6.945 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/9.23, allocations: 31.98 kB / 5.498 GB, free: 6.914 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004406/9.234, allocations: 363.2 kB / 5.499 GB, free: 6.559 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/9.235, allocations: 149.7 kB / 5.499 GB, free: 6.41 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003014/9.235, allocations: 111.9 kB / 5.499 GB, free: 6.301 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.005095/9.24, allocations: 2.883 MB / 5.502 GB, free: 3.406 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.008796/9.249, allocations: 2.537 MB / 5.504 GB, free: 0.8711 MB / 0.9323 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.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,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.3186/9.568, allocations: 3.004 MB / 5.507 GB, free: 177.9 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.007288/9.575, allocations: 5.953 MB / 5.513 GB, free: 177.5 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/9.575, allocations: 3.844 kB / 5.513 GB, free: 177.5 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.002008/9.577, allocations: 1.966 MB / 5.515 GB, free: 177.3 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/9.588, allocations: 2.539 MB / 5.517 GB, free: 177.3 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/9.605, allocations: 10.2 MB / 5.527 GB, free: 175.6 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004196/9.609, allocations: 4.425 MB / 5.532 GB, free: 174.8 MB / 0.9323 GB Notification: Performance of SimCode: time 6.91e-07/9.609, allocations: 0 / 5.532 GB, free: 174.8 MB / 0.9323 GB Notification: Performance of Templates: time 0.1606/9.77, allocations: 125.1 MB / 5.654 GB, free: 169.6 MB / 0.9323 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches