aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 17 seconds before starting...
Proceeding.

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).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1763
RA = 351.436, Dec = 18.3654
tmin = 696297601, tmax = 696556801
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='297878', job_status='RUN', time_executed='2023-01-28 01:51:40.967343', time_epoch_executed='1674899500.97' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/297878

Creating custom pfile directory:
/scratch/kocevski/297878/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=696297601.0 && nMetStart<696556801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=696297601.0 && nMetStart<696556801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/297878/ft1_4FGL_J2325.7+1821_daily_bin1763.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=696297601.0 && nMetStart<696556801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/297878/ft1_4FGL_J2325.7+1821_daily_bin1763.fits outfile=/scratch/kocevski/297878/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1763.fits ra=351.436 dec=18.3654 rad=12.0 tmin=696297601.0 tmax=696556801.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 3.67
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/297878/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 690

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/297878/ltcube_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.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 /scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits
.....................!
real 15.23
user 14.67
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/297878/ltcube_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.fits outfile=/scratch/kocevski/297878/expmap_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.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 /scratch/kocevski/297878/ltcube_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.fits
.....................!
real 193.23
user 186.17
sys 5.76

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2325.7+1821 @ 351.436 18.3654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits scfile=/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits outfile=/scratch/kocevski/297878/cmap_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.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.436 yref=18.3654 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits scfile=/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits outfile=/scratch/kocevski/297878/cmap_HighResolution_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.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.436 yref=18.3654 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/297878/Model_4FGL_J2325.7+1821_daily_bin1763.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...
/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits.....................!
real 80.88
user 79.43
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits', '/scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits', expMap='/scratch/kocevski/297878/expmap_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.fits', expCube='/scratch/kocevski/297878/ltcube_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/297878/Model_4FGL_J2325.7+1821_daily_bin1763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.7+1821'

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.854e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/297878/ft1_filtered_4FGL_J2325.7+1821_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/297878/ft2_4FGL_J2325.7+1821_daily_bin1763.fits
Exposure map: /scratch/kocevski/297878/expmap_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.fits
Exposure cube: /scratch/kocevski/297878/ltcube_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/297878/Model_4FGL_J2325.7+1821_daily_bin1763.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) = 7240.61293811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48600E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.192       1.0000          .0000       .10000E+07
     3 'Prefactor '    .37592E-02   1.0000          .0000       .10000E+07
     4 'norm      '    1.6477       1.0000          .0000       .10000E+07
     5 'Prefactor '    .57543E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20689       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.620       1.0000          .0000       .10000E+07
     9 'Prefactor '    .97711E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .32290E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .44636E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .47778E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.5032       1.0000          .0000       .10000E+07
    14 'norm      '    .35466E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .73297E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .75726E-03   1.0000          .0000       .10000E+07
    17 'norm      '    11.016       1.0000          .0000       .10000E+07
    18 'Prefactor '    7.8526       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7240.512     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1209 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37970E-05    1.6172        .10516E-05** at limit **
   2  Prefactor     17.148        10.428        .34513E-06    .23202E-01
   3  Prefactor     .50676E-06    11.552        .41857E-05** at limit **
   4  norm          1.6519        1.4786       -.13822E-06   -.35528E-02
   5  Prefactor     .10653E-06    9.6161       -.20062E-05** at limit **
   6  Prefactor     .69316E-01    28.356       -.42844E-05** at limit **
   7  Prefactor     1.2497        .20882       -.30767E-06   -.72241E-04
   8  Prefactor     11.505        6.7173       -.28569E-06   -.13461E-03
   9  Prefactor     .48817E-06    3.2434        .52831E-06** at limit **
  10  Prefactor     .24036E-07    2.9924       -.53418E-06** at limit **
  11  Prefactor     .15998E-06    2.5718       -.12125E-05** at limit **
  12  Prefactor     .56621E-08    5.9217       -.13556E-05** at limit **
  13  Prefactor     7.4378        1.7117       -.26301E-06   -.24111E-02
  14  norm          .12768E-08    2.6040        .78710E-07** at limit **
  15  Prefactor     .88818E-09    2.1936       -.61941E-06** at limit **
  16  Prefactor     .37931E-06    21.948        .53300E-05** at limit **
  17  norm          11.016        1.1524       -.15656E-07   -.59874E-03
  18  Prefactor     7.8917        6.9684       -.11738E-06   -.59755E-03
  19  Normalizat    1.0121        .22943       -.22654E-05   -.15427E-03
  20  Prefactor     .92690        .13733        .62371E-05   -.25356E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79702e-06
  Prefactor  = 17.1483
  Prefactor  = 5.06761e-07
  norm       = 1.65187
  Prefactor  = 1.06526e-07
  Prefactor  = 0.0693164
  Prefactor  = 1.24967
  Prefactor  = 11.5047
  Prefactor  = 4.88165e-07
  Prefactor  = 2.40363e-08
  Prefactor  = 1.59983e-07
  Prefactor  = 5.66214e-09
  Prefactor  = 7.43776
  norm       = 1.27676e-09
  Prefactor  = 8.88178e-10
  Prefactor  = 3.79308e-07
  norm       = 11.0163
  Prefactor  = 7.89166
  Normalizat = 1.01214
  Prefactor  = 0.926897
 **********
 **   18 **HESSE 
 **********

 FCN=   7240.512     FROM HESSE     STATUS=OK           337 CALLS     1546 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37970E-05    1.9682        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.148        10.677        .24128E-03   -1.5625    
   3  Prefactor     .50676E-06    13.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6519        1.5313        .82237E-03   -1.5682    
   5  Prefactor     .10653E-06    10.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .69316E-01    8.8049        .85108E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2497        .20897        .34130E-02   -1.5484    
   8  Prefactor     11.505        6.7163        .29363E-03   -1.5640    
   9  Prefactor     .48817E-06    7.0431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24036E-07    7.5059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15998E-06    8.2477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .56621E-08    5.9895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4378        15.994        .36589E-03   -1.5653    
  14  norm          .12768E-08    2.6124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .88818E-09    2.1963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .37931E-06    22.284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.016        11.971        .30161E-03   -1.5642    
  18  Prefactor     7.8917        6.9882        .35759E-03   -1.5652    
  19  Normalizat    1.0121        .19859        .70145E-01   -.92625    
  20  Prefactor     .92690        .11628        .45347E-01   -.95207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04386e-07
Minuit parameter uncertainties:
  1  0.00546751
  2  10.6772
  3  0.00517384
  4  1.53135
  5  0.00214778
  6  1.56247
  7  0.208967
  8  6.71631
  9  0.00370847
  10  0.000849279
  11  0.00229727
  12  0.000367706
  13  15.9939
  14  0.000115876
  15  8.85664e-05
  16  0.00581456
  17  11.9713
  18  6.98818
  19  0.198737
  20  0.116315
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  7.438e+00  1.599e+01  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  9.269e-01  1.163e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.012e+00  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/297878/likelihoodResults_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.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): 0
logL (Free Index) = 7240.08099763
delta logL = 0.431255224006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7239.95912434
delta logL = 0.553128507417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.886       1.0000          .0000       .10000E+07
     2 'Index     '    1.5537       1.0000          .0000       10.000    
     3 'Normalizat'    1.0221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7239.959     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      228 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.848        32.020        .24346E-03    .40029E-02
   2  Index         1.5514        .74286        .29224       -.27751E-03
   3  Normalizat    1.0227        .19170        .69779E-01    .45793E-04
   4  Prefactor     .92051        .11639        .45269E-01    .27018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8476
  Index      = 1.55144
  Normalizat = 1.02275
  Prefactor  = 0.92051
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.959     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.848        21.756        .97385E-05   -1.5626    
   2  Index         1.5514        .65265        .10502E-01   -.76109    
   3  Normalizat    1.0227        .22475        .30872E-03   -.92272    
   4  Prefactor     .92051        .13684        .19577E-03   -.95428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59185e-09
Minuit parameter uncertainties:
  1  21.7564
  2  0.656238
  3  0.224956
  4  0.136891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/297878': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7239.95911398
delta logL = 0.553138874287

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.685e+01  2.176e+01  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  1.551e+00  6.562e-01  0.000e+00  1.000e+01 (-1.000e+00)
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  9.205e-01  1.369e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.023e+00  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 351.436 18.365
Photon Index (Free Index): 1.55 +/- 0.66
Photon Flux (Free Index): 1.14e-08 +/- 1.76e-08
Energy Flux (Free Index): 3.04e-05 +/- 5.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/297878/cmap_HighResolution_696297601_696556801_4FGL_J2325.7+1821_daily_bin1763.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/297878

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', energy_flux2='3.04e-05', dlogl='5.53e-01', photon_flux2='1.14e-08', job_status='DONE', time_completed='2023-01-28 02:01:41.568796', photon_index_error2='0.66', photon_index2='1.55', ts='0.26', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='5.08e-05', EG='1.01', time_epoch_completed='1674900101.57', return_code='0', job_id='297878', GAL2='0.92', EG2='1.02', return_code2='0', photon_flux_error2='1.76e-08', ts2='1.37', photon_index='2.43' WHERE bin_id='1763' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 02:01:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 297878: <4FGL_J2325.7+1821_daily_bin1763> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1763> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jan 28 01:50:21 2023
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 01:51:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 01:51:14 2023
Terminated at Sat Jan 28 02:01:42 2023
Results reported at Sat Jan 28 02:01:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1763 351.436 18.3654 696297601 696556801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.7+1821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            681 sec.

The output (if any) is above this job summary.

