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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.228/2.228, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.001047/0.001047, allocations: 172.9 kB / 492.3 MB, free: 0.6172 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.61/1.61, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.001154/0.001154, allocations: 91.89 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.052e-05/4.061e-05, allocations: 6.422 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.361, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.586/6.947, allocations: 2.208 GB / 3.421 GB, free: 70.23 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/6.947, allocations: 86.27 kB / 3.421 GB, free: 70.19 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 8.735/15.68, allocations: 2.09 GB / 5.511 GB, free: 178.7 MB / 1.198 GB Notification: Performance of FrontEnd: time 4.037e-06/15.68, allocations: 0 / 5.511 GB, free: 178.7 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.001688/15.68, allocations: 138.8 kB / 5.511 GB, free: 178.6 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.02658/15.71, allocations: 5.221 MB / 5.516 GB, free: 176.5 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/15.71, allocations: 6.219 kB / 5.516 GB, free: 176.5 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01057/15.72, allocations: 1.24 MB / 5.517 GB, free: 176.2 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02251/15.74, allocations: 6.775 MB / 5.524 GB, free: 175.4 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00053/15.74, allocations: 294.8 kB / 5.524 GB, free: 175.3 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002503/15.75, allocations: 416.5 kB / 5.525 GB, free: 175.3 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02271/15.77, allocations: 5.523 MB / 5.53 GB, free: 175 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006344/15.77, allocations: 6.375 kB / 5.53 GB, free: 175 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00291/15.77, allocations: 167.6 kB / 5.53 GB, free: 175 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004753/15.77, allocations: 189.4 kB / 5.53 GB, free: 175 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/15.79, allocations: 4.812 MB / 5.535 GB, free: 174.9 MB / 1.198 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05488/15.84, allocations: 24.11 MB / 5.559 GB, free: 161.6 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006364/15.85, allocations: 3.58 MB / 5.562 GB, free: 159.9 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003844/15.85, allocations: 2.135 MB / 5.564 GB, free: 159.1 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001249/15.86, allocations: 0.9969 MB / 5.565 GB, free: 158.1 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003986/15.86, allocations: 1.886 MB / 5.567 GB, free: 157.3 MB / 1.198 GB Notification: Performance of pre-optimization done (n=273): time 6.833e-06/15.86, allocations: 0 / 5.567 GB, free: 157.3 MB / 1.198 GB Notification: Performance of matching and sorting (n=277): time 0.02402/15.88, allocations: 8.332 MB / 5.575 GB, free: 153.5 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.441e-05/15.88, allocations: 137.7 kB / 5.575 GB, free: 153.4 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/15.89, allocations: 3.9 MB / 5.579 GB, free: 151.4 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001069/15.9, allocations: 85.7 kB / 5.579 GB, free: 151.3 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.00378/15.9, allocations: 2.227 MB / 5.581 GB, free: 149.3 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.002016/15.9, allocations: 0.9548 MB / 5.582 GB, free: 148.5 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006686/15.9, allocations: 59.88 kB / 5.582 GB, free: 148.4 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0003814/15.9, allocations: 420.5 kB / 5.583 GB, free: 148 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002962/15.91, allocations: 1.472 MB / 5.584 GB, free: 146.7 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003457/15.91, allocations: 2.132 MB / 5.586 GB, free: 144.6 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003425/15.91, allocations: 1.935 MB / 5.588 GB, free: 143 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.939e-05/15.91, allocations: 4 kB / 5.588 GB, free: 143 MB / 1.198 GB Notification: Performance of matching and sorting (n=353) (initialization): time 0.009863/15.92, allocations: 4.312 MB / 5.592 GB, free: 139.1 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001415/15.92, allocations: 5.204 MB / 5.597 GB, free: 133.7 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.001e-05/15.92, allocations: 12 kB / 5.597 GB, free: 133.7 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004973/15.92, allocations: 127.3 kB / 5.598 GB, free: 133.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003042/15.93, allocations: 0.6263 MB / 5.598 GB, free: 133 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/15.93, allocations: 2.735 MB / 5.601 GB, free: 130.3 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006891/15.94, allocations: 0.5118 MB / 5.601 GB, free: 130 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009091/15.94, allocations: 117.9 kB / 5.601 GB, free: 129.9 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/15.94, allocations: 4 kB / 5.601 GB, free: 129.9 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008815/15.95, allocations: 3.965 MB / 5.605 GB, free: 126.4 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.982e-05/15.95, allocations: 15.94 kB / 5.605 GB, free: 126.3 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004071/15.95, allocations: 121.5 kB / 5.605 GB, free: 126.2 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/15.95, allocations: 0.6156 MB / 5.606 GB, free: 125.7 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/15.95, allocations: 2.133 MB / 5.608 GB, free: 123.6 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006793/15.96, allocations: 0.5071 MB / 5.609 GB, free: 123.3 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008846/15.96, allocations: 115.1 kB / 5.609 GB, free: 123.2 MB / 1.198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (336): * Single equations (assignments): 332 * 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.001662/15.96, allocations: 334.3 kB / 5.609 GB, free: 122.8 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002216/15.96, allocations: 426.8 kB / 5.609 GB, free: 122.4 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/15.97, allocations: 4.148 MB / 5.613 GB, free: 118.9 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.746e-05/15.97, allocations: 28 kB / 5.614 GB, free: 118.8 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/15.97, allocations: 3 kB / 5.614 GB, free: 118.8 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006005/15.98, allocations: 3.468 MB / 5.617 GB, free: 115.4 MB / 1.198 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03143/16.01, allocations: 10.53 MB / 5.627 GB, free: 104.7 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.898e-05/16.01, allocations: 4 kB / 5.627 GB, free: 104.7 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003088/16.01, allocations: 0.6195 MB / 5.628 GB, free: 104.1 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004235/16.02, allocations: 104.8 kB / 5.628 GB, free: 104 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005466/16.02, allocations: 89.67 kB / 5.628 GB, free: 103.9 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/16.02, allocations: 2.725 MB / 5.631 GB, free: 101 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/16.02, allocations: 7.938 kB / 5.631 GB, free: 101 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/16.03, allocations: 6.552 MB / 5.637 GB, free: 94.2 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004378/16.03, allocations: 1.074 MB / 5.638 GB, free: 93.11 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002071/16.04, allocations: 75.92 kB / 5.638 GB, free: 93.03 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005879/16.04, allocations: 447.1 kB / 5.639 GB, free: 92.59 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005588/16.04, allocations: 173.7 kB / 5.639 GB, free: 92.42 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005063/16.04, allocations: 114.1 kB / 5.639 GB, free: 92.31 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.007447/16.05, allocations: 3.075 MB / 5.642 GB, free: 89.22 MB / 1.198 GB Notification: Performance of sort global known variables: time 8.02e-07/16.05, allocations: 3.062 kB / 5.642 GB, free: 89.22 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.01864/16.07, allocations: 2.742 MB / 5.645 GB, free: 86.48 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.00715/16.08, allocations: 2.803 MB / 5.647 GB, free: 83.91 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01175/16.09, allocations: 6.265 MB / 5.653 GB, free: 77.54 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/16.09, allocations: 4 kB / 5.653 GB, free: 77.53 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.003389/16.09, allocations: 2.052 MB / 5.655 GB, free: 75.44 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01597/16.11, allocations: 2.774 MB / 5.658 GB, free: 72.79 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/16.13, allocations: 10.14 MB / 5.668 GB, free: 62.62 MB / 1.198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004542/16.14, allocations: 4.05 MB / 5.672 GB, free: 58.53 MB / 1.198 GB Notification: Performance of simCode: alias equations: time 0.01288/16.15, allocations: 3.98 MB / 5.676 GB, free: 54.62 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/16.15, allocations: 267.3 kB / 5.676 GB, free: 54.36 MB / 1.198 GB Notification: Performance of SimCode: time 1.282e-06/16.15, allocations: 0 / 5.676 GB, free: 54.36 MB / 1.198 GB Notification: Performance of Templates: time 1.153/17.31, allocations: 135.9 MB / 5.809 GB, free: 175.5 MB / 1.214 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