/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7590
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2325.4-4800_daily_bin1897
RA = 351.35, Dec = -48.0022
tmin = 731030401, tmax = 731289601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='44584489', job_status='RUN', time_executed='2024-04-20 21:00:33.623599', time_epoch_executed='1713672033.62' WHERE source_name='4FGL J2325.4-4800' and cadence='daily' and bin_id='1897'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/44584489

Creating custom pfile directory:
/lscratch/kocevski/44584489/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=731030401.0 && nMetStart<731289601.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=731030401.0 && nMetStart<731289601.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/44584489/ft1_4FGL_J2325.4-4800_daily_bin1897.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=731030401.0 && nMetStart<731289601.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/44584489/ft1_4FGL_J2325.4-4800_daily_bin1897.fits outfile=/lscratch/kocevski/44584489/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1897.fits ra=351.35 dec=-48.0022 rad=12.0 tmin=731030401.0 tmax=731289601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.91
user 1.70
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/44584489/ft1_filteredMKT_4FGL_J2325.4-4800_daily_bin1897.fits evtable="EVENTS" outfile="/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.34
user 0.16
sys 0.14

Number of photons that the gtmktime cut: 262

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits" evtable="EVENTS" scfile=/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits sctable="SC_DATA" outfile=/lscratch/kocevski/44584489/ltcube_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits
.....................!
real 7.15
user 6.86
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits evtable="EVENTS" scfile=/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits sctable="SC_DATA" expcube=/lscratch/kocevski/44584489/ltcube_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits outfile=/lscratch/kocevski/44584489/expmap_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/44584489/ltcube_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits
.....................!
real 59.12
user 55.49
sys 3.27

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.4-4800 @ 351.35 -48.0022

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits scfile=/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits outfile=/lscratch/kocevski/44584489/cmap_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=351.35 yref=-48.0022 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.36
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits scfile=/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits outfile=/lscratch/kocevski/44584489/cmap_HighResolution_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=351.35 yref=-48.0022 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.35
user 0.18
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits evtable="EVENTS" scfile=/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/44584489/Model_4FGL_J2325.4-4800_daily_bin1897.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits.....................!
real 10.36
user 9.52
sys 0.63

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits', '/lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits', expMap='/lscratch/kocevski/44584489/expmap_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits', expCube='/lscratch/kocevski/44584489/ltcube_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/44584489/Model_4FGL_J2325.4-4800_daily_bin1897.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.4-4800'

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  3.164e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/44584489/ft1_filtered_4FGL_J2325.4-4800_daily_bin1897.fits
Spacecraft file(s): /lscratch/kocevski/44584489/ft2_4FGL_J2325.4-4800_daily_bin1897.fits
Exposure map: /lscratch/kocevski/44584489/expmap_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits
Exposure cube: /lscratch/kocevski/44584489/ltcube_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/44584489/Model_4FGL_J2325.4-4800_daily_bin1897.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2874.76527359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2874.71299125

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.767       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18192E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .24332E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .68396E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.5180       1.0000          .0000       .10000E+07
     6 'Prefactor '    .16195E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .14871E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .32650E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .51648E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .78741E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22546E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .37194E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.9371       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12958E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .14172E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .66979E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .24795E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .17800E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .30886E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .10989E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .26055E-03   1.0000          .0000       .10000E+07
    22 'norm      '    1.5750       1.0000          .0000       .10000E+07
    23 'norm      '    .49447E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    29.361       1.0000          .0000       .10000E+07
    25 'Prefactor '    4.6350       1.0000          .0000       .10000E+07
    26 'Prefactor '    31.597       1.0000          .0000       .10000E+07
    27 'norm      '    .11800E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    .16703E-01   1.0000          .0000       .10000E+07
    29 'Prefactor '    16.396       1.0000          .0000       .10000E+07
    30 'Normalizat'    .88032       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2874.712     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2920 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.478        88.146        .50231E-05   -.55699E-02
   2  Prefactor     .14599E-07    5.4986        .16427E-05** at limit **
   3  Prefactor     .48289E-06    12.558       -.11088E-05** at limit **
   4  Prefactor     .38469E-07    4.2859       -.16789E-05** at limit **
   5  Prefactor     8.5492        10.127        .20518E-06    .78292E-03
   6  Prefactor      .0000        4.7029        .20333E-07** at limit **
   7  norm          .81063E-06    14.041       -.34185E-05** at limit **
   8  Prefactor      .0000        3.9980        .28620E-08** at limit **
   9  Prefactor     .51459E-07    10.502        .28443E-05** at limit **
  10  Prefactor     .33307E-08    7.0085        .13286E-05** at limit **
  11  Prefactor     .34800E-06    6.8253        .22241E-05** at limit **
  12  Prefactor     .27756E-09    6.2759       -.25321E-06** at limit **
  13  Prefactor     7.6513        31.105       -.54078E-05    .99397E-02
  14  Prefactor     .93181E-06    9.0981       -.22000E-05** at limit **
  15  norm          .35971E-07    8.6343        .32728E-05** at limit **
  16  norm          .85487E-08    3.6619       -.43989E-06** at limit **
  17  norm           .0000        3.3035       -.61769E-07** at limit **
  18  Prefactor      .0000        3.3430       -.64037E-07** at limit **
  19  Prefactor     .23959E-06    9.9867        .29725E-05** at limit **
  20  norm           .0000        2.3682       -.75564E-08** at limit **
  21  Prefactor     .10372E-05    15.995       -.27762E-05** at limit **
  22  norm          1.5784        1.4238       -.21914E-07    .54848E-04
  23  norm          .56954E-07    3.9047       -.96979E-06** at limit **
  24  Prefactor     29.426        2.4233        .22844E-06   -.53974E-02
  25  Prefactor     4.6572        4.6342       -.16842E-06    .64067E-04
  26  Prefactor     31.130        16.779        .14082E-05    .37999E-02
  27  norm          .85321E-07    9.7824       -.31346E-05** at limit **
  28  Prefactor     .37192E-07    1.0261       -.62480E-07** at limit **
  29  Prefactor     16.405        8.0292       -.58725E-07    .17558E-04
  30  Normalizat    .88047        .28607       -.31810E-05    .56684E-05
  31  Prefactor     .86213        .30516        .66727E-06    .49220E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.4776
  Prefactor  = 1.45994e-08
  Prefactor  = 4.82892e-07
  Prefactor  = 3.84692e-08
  Prefactor  = 8.5492
  Prefactor  = 0
  norm       = 8.10629e-07
  Prefactor  = 0
  Prefactor  = 5.14588e-08
  Prefactor  = 3.33067e-09
  Prefactor  = 3.47999e-07
  Prefactor  = 2.77556e-10
  Prefactor  = 7.65128
  Prefactor  = 9.3181e-07
  norm       = 3.59712e-08
  norm       = 8.54872e-09
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.39586e-07
  norm       = 0
  Prefactor  = 1.03717e-06
  norm       = 1.57841
  norm       = 5.69544e-08
  Prefactor  = 29.4258
  Prefactor  = 4.65717
  Prefactor  = 31.1302
  norm       = 8.53206e-08
  Prefactor  = 3.71925e-08
  Prefactor  = 16.4049
  Normalizat = 0.880471
  Prefactor  = 0.862131
 **********
 **   18 **HESSE 
 **********

 FCN=   2874.712     FROM HESSE     STATUS=OK           678 CALLS     3598 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.478        88.821        .13046E-03   -1.5554    
   2  Prefactor     .14599E-07    13.611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .48289E-06    29.147        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38469E-07    7.6472        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5492        10.147        .34323E-03   -1.5649    
   6  Prefactor      .0000        4.7000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .81063E-06    20.054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.9841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .51459E-07    23.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33307E-08    7.0124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .34800E-06    13.159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27756E-09    6.2735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6513        44.169        .38067E-03   -1.5653    
  14  Prefactor     .93181E-06    14.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .35971E-07    8.9815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .85487E-08    7.8574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        3.3031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.3416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .23959E-06    24.128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        2.3678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10372E-05    31.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5784        1.4413        .84638E-03   -1.5683    
  23  norm          .56954E-07    32.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.426        22.559        .18458E-03   -1.5599    
  25  Prefactor     4.6572        4.9546        .46725E-03   -1.5665    
  26  Prefactor     31.130        34.000        .17793E-03   -1.5596    
  27  norm          .85321E-07    10.316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .37192E-07    3.7297        .10736E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.405        8.0261        .24708E-03   -1.5627    
  30  Normalizat    .88047        .24288        .44650E-01   -.97150    
  31  Prefactor     .86213        .25503        .44530E-01   -.97477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34224e-07
Minuit parameter uncertainties:
  1  88.823
  2  0.000891365
  3  0.00750322
  4  0.00108484
  5  10.1471
  6  9.82261e-06
  7  0.00806398
  8  5.62027e-06
  9  0.00220048
  10  0.00030672
  11  0.00427981
  12  8.19897e-05
  13  36.7672
  14  0.0074612
  15  0.0011366
  16  0.000517831
  17  4.22526e-06
  18  4.39481e-06
  19  0.00480875
  20  2.02174e-06
  21  0.0114387
  22  1.44135
  23  0.00272418
  24  22.5594
  25  4.95457
  26  34.0004
  27  0.00187627
  28  0.000744897
  29  8.02614
  30  0.24318
  31  0.255387
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 2874.71162785

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  0.000e+00  4.395e-06  0.000e+00  1.000e+06 ( 1.000e-13)
440        Index:  2.106e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.621e-01  2.554e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  8.805e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 351.350 -48.002
Photon Flux Upper Limit: 7.12112753408e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00538664889781 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/44584489/likelihoodResults_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2874.72165235
delta logL = -0.0100244982864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2874.71162785
delta logL = -3.52429196937e-10

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     2 'Index     '    2.6295       1.0000          .0000       10.000    
     3 'Normalizat'    .88047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2874.712     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .25E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.7790        .42118E-03** at limit **
   2  Index         .66804        .57176       -.41009E-05     .0000    
   3  Normalizat    .88047        1.2167       -.18159E-07    .32354E-05
   4  Prefactor     .86213        1.2087        .64971E-05    .29035E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.668044
  Normalizat = 0.880471
  Prefactor  = 0.862131
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2874.712     FROM HESSE     STATUS=FAILED         9 CALLS      246 TOTAL
                     EDM=   .25E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.7790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .41388E-03    .78274       -.41009E-05   -1.0479    
   3  Normalizat    .88047        1.2167       -.18159E-07   -.97150    
   4  Prefactor     .86213        1.2087        .64971E-05   -.97477    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.51058e-13
Minuit parameter uncertainties:
  1  2.16856e-06
  2  0.57688
  3  1.25806
  4  1.24959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 2874.71162785
delta logL = 0.0

Extracting fit parameters...

4FGL J2325.4-4800
   Spectrum: PowerLaw
439    Prefactor:  0.000e+00  2.169e-06  0.000e+00  1.000e+06 ( 1.000e-13)
440        Index:  6.680e-01  5.769e-01  0.000e+00  1.000e+01 (-1.000e+00)
441        Scale:  1.869e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  8.621e-01  1.250e+00  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
567   Normalization:  8.805e-01  1.258e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 351.350 -48.002

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/44584489/cmap_HighResolution_731030401_731289601_4FGL_J2325.4-4800_daily_bin1897.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2024-04-20 21:04:03.513837', job_id='44584489', GAL2='0.86', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1713672243.51', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1897' AND source_name='4FGL J2325.4-4800' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 20 21:04:03 PDT 2024

