Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo) 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) Running command: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001657/0.001657, allocations: 170.1 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.805/1.805, allocations: 205.4 MB / 222.3 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008407/0.0008409, allocations: 82.44 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.8668/0.8668, allocations: 89.58 MB / 408.5 MB, free: 4.504 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.000398, allocations: 12 kB / 485.2 MB, free: 7.656 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3589, allocations: 66.01 MB / 0.5383 GB, free: 34.54 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.647/2.006, allocations: 0.7565 GB / 1.295 GB, free: 78.96 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/2.006, allocations: 87.95 kB / 1.295 GB, free: 78.88 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.718/3.724, allocations: 0.5054 GB / 1.8 GB, free: 32.71 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.406e-06/3.724, allocations: 0 / 1.8 GB, free: 32.71 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001198/3.725, allocations: 27.98 kB / 1.8 GB, free: 32.68 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00964/3.734, allocations: 2.738 MB / 1.803 GB, free: 29.89 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/3.734, allocations: 8.031 kB / 1.803 GB, free: 29.88 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002248/3.736, allocations: 243.5 kB / 1.803 GB, free: 29.64 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00135/3.738, allocations: 0.5926 MB / 1.804 GB, free: 29.01 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/3.738, allocations: 194.3 kB / 1.804 GB, free: 28.8 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003163/3.738, allocations: 84 kB / 1.804 GB, free: 28.71 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/3.741, allocations: 0.9913 MB / 1.805 GB, free: 27.7 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/3.741, allocations: 3.938 kB / 1.805 GB, free: 27.7 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.818e-05/3.741, allocations: 32 kB / 1.805 GB, free: 27.67 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.032e-05/3.741, allocations: 20 kB / 1.805 GB, free: 27.65 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/3.743, allocations: 0.7807 MB / 1.806 GB, free: 26.87 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004648/3.747, allocations: 3.673 MB / 1.809 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/3.749, allocations: 0.8982 MB / 1.81 GB, free: 21.99 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000749/3.75, allocations: 464.4 kB / 1.811 GB, free: 21.52 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00152/3.751, allocations: 2.116 MB / 1.813 GB, free: 19 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/3.751, allocations: 43.2 kB / 1.813 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=83): time 4.708e-06/3.751, allocations: 0 / 1.813 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of matching and sorting (n=83): time 0.005344/3.757, allocations: 2.232 MB / 1.815 GB, free: 16.65 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/3.757, allocations: 60.06 kB / 1.815 GB, free: 16.57 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006604/3.757, allocations: 479.2 kB / 1.816 GB, free: 16.1 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 7.596e-05/3.758, allocations: 41.7 kB / 1.816 GB, free: 16.05 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.000215/3.758, allocations: 388.2 kB / 1.816 GB, free: 15.66 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/3.758, allocations: 279.8 kB / 1.816 GB, free: 15.39 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/3.758, allocations: 19.94 kB / 1.816 GB, free: 15.37 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001346/3.758, allocations: 386.7 kB / 1.817 GB, free: 14.98 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000678/3.759, allocations: 353.8 kB / 1.817 GB, free: 14.64 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007041/3.76, allocations: 427.1 kB / 1.817 GB, free: 14.2 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/3.761, allocations: 0.7727 MB / 1.818 GB, free: 13.42 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/3.761, allocations: 0 / 1.818 GB, free: 13.42 MB / 0.5886 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003061/3.764, allocations: 1.354 MB / 1.819 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/3.764, allocations: 4 kB / 1.819 GB, free: 12.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/3.764, allocations: 4 kB / 1.819 GB, free: 12.04 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000783/3.765, allocations: 266.5 kB / 1.82 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007951/3.766, allocations: 207.7 kB / 1.82 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004736/3.771, allocations: 5.033 MB / 1.825 GB, free: 6.125 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007955/3.771, allocations: 95.25 kB / 1.825 GB, free: 6.031 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/3.772, allocations: 59.97 kB / 1.825 GB, free: 5.973 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,88.9%) 1,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005412/3.772, allocations: 209.9 kB / 1.825 GB, free: 5.758 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000278/3.772, allocations: 75.09 kB / 1.825 GB, free: 5.684 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00418/3.777, allocations: 1.691 MB / 1.827 GB, free: 3.973 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/3.777, allocations: 15.98 kB / 1.827 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/3.777, allocations: 0 / 1.827 GB, free: 3.957 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/3.777, allocations: 3.984 kB / 1.827 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005333/3.782, allocations: 2.542 MB / 1.829 GB, free: 1.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/3.782, allocations: 7.938 kB / 1.829 GB, free: 1.332 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008642/3.783, allocations: 199.9 kB / 1.83 GB, free: 1.137 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007949/3.784, allocations: 286.4 kB / 1.83 GB, free: 0.8477 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/3.784, allocations: 31.98 kB / 1.83 GB, free: 0.8164 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4042/4.188, allocations: 5.037 MB / 1.835 GB, free: 73.46 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/4.188, allocations: 2.469 kB / 1.835 GB, free: 73.46 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00417/4.192, allocations: 1.897 MB / 1.837 GB, free: 73.27 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002689/4.193, allocations: 153.4 kB / 1.837 GB, free: 73.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/4.193, allocations: 23.72 kB / 1.837 GB, free: 73.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00058/4.193, allocations: 66.23 kB / 1.837 GB, free: 73.18 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/4.194, allocations: 81 kB / 1.837 GB, free: 73.18 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/4.194, allocations: 57.91 kB / 1.837 GB, free: 73.18 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0005259/4.194, allocations: 337.8 kB / 1.837 GB, free: 73.09 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/4.194, allocations: 0 / 1.837 GB, free: 73.09 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003701/4.198, allocations: 0.8932 MB / 1.838 GB, free: 73.09 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (counterFlowNTU.inletB.m_flow,counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004664/4.203, allocations: 1.936 MB / 1.84 GB, free: 72.79 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003493/4.206, allocations: 1.446 MB / 1.842 GB, free: 72.38 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/4.206, allocations: 2.188 kB / 1.842 GB, free: 72.38 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002487/4.209, allocations: 1.061 MB / 1.843 GB, free: 71.97 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/4.21, allocations: 201.8 kB / 1.843 GB, free: 71.97 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005033/4.215, allocations: 2.488 MB / 1.845 GB, free: 70.99 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007599/4.216, allocations: 1.006 MB / 1.846 GB, free: 70.29 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001395/4.218, allocations: 270.1 kB / 1.846 GB, free: 70.28 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003823/4.218, allocations: 110.9 kB / 1.847 GB, free: 70.28 MB / 0.5886 GB Notification: Performance of SimCode: time 9.81e-07/4.218, allocations: 0 / 1.847 GB, free: 70.28 MB / 0.5886 GB Notification: Performance of Templates: time 0.05446/4.272, allocations: 34.13 MB / 1.88 GB, free: 69.35 MB / 0.5886 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches