Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 2.016/2.016, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001117/0.001117, allocations: 173.3 kB / 490.8 MB, free: 1.957 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.424/1.424, allocations: 221.3 MB / 0.7863 GB, free: 13.71 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.0009835/0.0009835, allocations: 99.22 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.396e-06/8.406e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2908, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.573/4.864, allocations: 2.208 GB / 3.42 GB, free: 76.66 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/4.864, allocations: 91.62 kB / 3.42 GB, free: 76.61 MB / 1.151 GB Notification: Performance of FrontEnd: time 7.304/12.17, allocations: 2.091 GB / 5.511 GB, free: 183.5 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001004/12.17, allocations: 137.1 kB / 5.511 GB, free: 183.5 MB / 1.198 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.02053/12.19, allocations: 5.193 MB / 5.516 GB, free: 181.3 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/12.19, allocations: 10.78 kB / 5.516 GB, free: 181.3 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009962/12.2, allocations: 1.28 MB / 5.518 GB, free: 181 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01883/12.22, allocations: 6.911 MB / 5.524 GB, free: 180.1 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002841/12.22, allocations: 123.6 kB / 5.524 GB, free: 180.1 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001582/12.22, allocations: 243.2 kB / 5.525 GB, free: 180.1 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009571/12.23, allocations: 4.646 MB / 5.529 GB, free: 180 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/12.24, allocations: 5.097 MB / 5.534 GB, free: 178.7 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001059/12.24, allocations: 13.89 kB / 5.534 GB, free: 178.7 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004734/12.24, allocations: 10.22 kB / 5.534 GB, free: 178.7 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001588/12.24, allocations: 191 kB / 5.534 GB, free: 178.7 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03898/12.28, allocations: 25.18 MB / 5.559 GB, free: 162.6 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004612/12.28, allocations: 2.058 MB / 5.561 GB, free: 161.9 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004306/12.29, allocations: 2.118 MB / 5.563 GB, free: 161.1 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001208/12.29, allocations: 1.093 MB / 5.564 GB, free: 159.8 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003364/12.29, allocations: 2.004 MB / 5.566 GB, free: 158.1 MB / 1.198 GB Notification: Performance of pre-optimization done (n=273): time 7.363e-06/12.29, allocations: 0 / 5.566 GB, free: 158.1 MB / 1.198 GB Notification: Performance of matching and sorting (n=277): time 0.0243/12.32, allocations: 9.793 MB / 5.576 GB, free: 149.3 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/12.32, allocations: 188.2 kB / 5.576 GB, free: 149.1 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005141/12.32, allocations: 3.711 MB / 5.579 GB, free: 145.9 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.000438/12.32, allocations: 34.27 kB / 5.58 GB, free: 145.8 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.001502/12.33, allocations: 1.477 MB / 5.581 GB, free: 144.4 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0017/12.33, allocations: 0.9175 MB / 5.582 GB, free: 143.5 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/12.33, allocations: 0 / 5.582 GB, free: 143.5 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001568/12.33, allocations: 415.7 kB / 5.582 GB, free: 143.1 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/12.33, allocations: 1.492 MB / 5.584 GB, free: 141.6 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002142/12.33, allocations: 2.142 MB / 5.586 GB, free: 139.2 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003043/12.33, allocations: 2.064 MB / 5.588 GB, free: 137.2 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.445e-06/12.33, allocations: 7.938 kB / 5.588 GB, free: 137.2 MB / 1.198 GB Notification: Performance of matching and sorting (n=354) (initialization): time 0.006834/12.34, allocations: 4.23 MB / 5.592 GB, free: 132.9 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009334/12.34, allocations: 5.301 MB / 5.597 GB, free: 127.3 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/12.34, allocations: 18.06 kB / 5.597 GB, free: 127.3 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003799/12.34, allocations: 120.8 kB / 5.597 GB, free: 127.2 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/12.35, allocations: 0.6088 MB / 5.598 GB, free: 126.6 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002372/12.35, allocations: 2.608 MB / 5.6 GB, free: 123.9 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00716/12.35, allocations: 434.2 kB / 5.601 GB, free: 123.5 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005971/12.36, allocations: 116 kB / 5.601 GB, free: 123.4 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/12.36, allocations: 7.609 kB / 5.601 GB, free: 123.4 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006555/12.36, allocations: 3.79 MB / 5.605 GB, free: 119.5 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/12.36, allocations: 12 kB / 5.605 GB, free: 119.5 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003802/12.36, allocations: 117.8 kB / 5.605 GB, free: 119.4 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002617/12.36, allocations: 0.6007 MB / 5.605 GB, free: 118.8 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/12.37, allocations: 2 MB / 5.607 GB, free: 116.7 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005799/12.37, allocations: 408.4 kB / 5.608 GB, free: 116.3 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003732/12.37, allocations: 113.9 kB / 5.608 GB, free: 116.2 MB / 1.198 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.0008224/12.37, allocations: 233.3 kB / 5.608 GB, free: 116 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/12.37, allocations: 417.5 kB / 5.608 GB, free: 115.6 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00705/12.38, allocations: 4.05 MB / 5.612 GB, free: 111.5 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.427e-05/12.38, allocations: 28 kB / 5.612 GB, free: 111.5 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/12.38, allocations: 0 / 5.612 GB, free: 111.5 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004832/12.39, allocations: 3.408 MB / 5.616 GB, free: 108 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01825/12.41, allocations: 10.02 MB / 5.626 GB, free: 97.86 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/12.41, allocations: 4 kB / 5.626 GB, free: 97.86 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002781/12.41, allocations: 0.5834 MB / 5.626 GB, free: 97.28 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003153/12.41, allocations: 113.4 kB / 5.626 GB, free: 97.17 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002157/12.41, allocations: 55.95 kB / 5.626 GB, free: 97.11 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/12.41, allocations: 2.586 MB / 5.629 GB, free: 94.4 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/12.41, allocations: 7.844 kB / 5.629 GB, free: 94.39 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00825/12.42, allocations: 6.513 MB / 5.635 GB, free: 87.62 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003578/12.42, allocations: 1.069 MB / 5.636 GB, free: 86.54 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001321/12.42, allocations: 35.97 kB / 5.636 GB, free: 86.5 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004113/12.43, allocations: 368.3 kB / 5.637 GB, free: 86.17 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002581/12.43, allocations: 153.4 kB / 5.637 GB, free: 86.02 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002415/12.43, allocations: 111.9 kB / 5.637 GB, free: 85.91 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.003924/12.43, allocations: 2.887 MB / 5.64 GB, free: 83.01 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.008557/12.44, allocations: 2.522 MB / 5.642 GB, free: 80.49 MB / 1.198 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.003653/12.44, allocations: 3.007 MB / 5.645 GB, free: 77.93 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.006903/12.45, allocations: 6.013 MB / 5.651 GB, free: 71.85 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/12.45, allocations: 0 / 5.651 GB, free: 71.85 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.002015/12.45, allocations: 1.994 MB / 5.653 GB, free: 69.84 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01192/12.47, allocations: 2.522 MB / 5.655 GB, free: 67.43 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02884/12.49, allocations: 10.24 MB / 5.665 GB, free: 57.14 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007695/12.5, allocations: 4.423 MB / 5.67 GB, free: 52.69 MB / 1.198 GB Notification: Performance of SimCode: time 1.853e-06/12.5, allocations: 0 / 5.67 GB, free: 52.69 MB / 1.198 GB Notification: Performance of Templates: time 0.7605/13.26, allocations: 124.6 MB / 5.791 GB, free: 281.5 MB / 1.198 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowMassFlow.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches