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 221 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7446
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1665
RA = 351.436, Dec = 18.3654
tmin = 670896001, tmax = 671155201
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='358167', job_status='RUN', time_executed='2022-04-09 00:44:06.880234', time_epoch_executed='1649490246.88' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358167/ft1_4FGL_J2325.7+1821_daily_bin1665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358167/ft1_4FGL_J2325.7+1821_daily_bin1665.fits outfile=/scratch/kocevski/358167/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1665.fits ra=351.436 dec=18.3654 rad=12.0 tmin=670896001.0 tmax=671155201.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 5.35
user 5.10
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.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/358167/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1665.fits evtable="EVENTS" outfile="/scratch/kocevski/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 666

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits" evtable="EVENTS" scfile=/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits sctable="SC_DATA" outfile=/scratch/kocevski/358167/ltcube_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.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/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits
.....................!
real 11.57
user 11.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/358167/ltcube_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.fits outfile=/scratch/kocevski/358167/expmap_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.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/358167/ltcube_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.fits
.....................!
real 191.23
user 186.59
sys 4.28

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/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits scfile=/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits outfile=/scratch/kocevski/358167/cmap_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits scfile=/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits outfile=/scratch/kocevski/358167/cmap_HighResolution_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358167/Model_4FGL_J2325.7+1821_daily_bin1665.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/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits.....................!
real 85.00
user 83.66
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits', '/scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits', expMap='/scratch/kocevski/358167/expmap_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.fits', expCube='/scratch/kocevski/358167/ltcube_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358167/Model_4FGL_J2325.7+1821_daily_bin1665.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  1.000e-04  1.000e+04 ( 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/358167/ft1_filtered_4FGL_J2325.7+1821_daily_bin1665.fits
Spacecraft file(s): /scratch/kocevski/358167/ft2_4FGL_J2325.7+1821_daily_bin1665.fits
Exposure map: /scratch/kocevski/358167/expmap_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.fits
Exposure cube: /scratch/kocevski/358167/ltcube_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358167/Model_4FGL_J2325.7+1821_daily_bin1665.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) = 7568.42849589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5600       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8169       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44965       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2795       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0100       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7568.427     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2510 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.2485        .27026E-06** at limit **
   2  Prefactor     .10000E-03    12.352       -.11578E-05** at limit **
   3  Prefactor     3.5464        14.911       -.16479E-04   -.83760E-04
   4  norm          2.3754        1.5924       -.10507E-06    .21114E-03
   5  Prefactor     69.557        40.946        .20814E-04    .14265E-04
   6  Prefactor     8.8162        9.9532       -.10212E-05    .53089E-04
   7  Prefactor     10.262        19.314       -.59001E-05   -.28334E-05
   8  Prefactor     .44958        .18708       -.34614E-06    .76162E-03
   9  Prefactor     .10000E-03    5.9665       -.18891E-05** at limit **
  10  Prefactor     .10000E-03    3.7107       -.14956E-05** at limit **
  11  Prefactor     .10000E-03    6.0539       -.79065E-06** at limit **
  12  Prefactor     22.526        19.751        .90978E-07    .10407E-03
  13  Prefactor     19.948        35.065       -.74892E-04    .34724E-04
  14  Prefactor     .15459        6.2554       -.19450E-05   -.86937E-04
  15  Prefactor     .10000E-03    1.9994        .84942E-07** at limit **
  16  Prefactor     .10000E-03    7.6081        .12090E-05** at limit **
  17  norm          .10000E-03    3.7912        .48853E-06** at limit **
  18  Prefactor     .10000E-03    1.8754       -.42769E-07** at limit **
  19  Prefactor     .10000E-03    7.1581        .45388E-05** at limit **
  20  norm          .10000E-03    7.9518       -.38319E-05** at limit **
  21  Prefactor     .10000E-03    4.0720        .74085E-06** at limit **
  22  Normalizat    1.2799        .22431        .13023E-05    .53328E-03
  23  Prefactor     1.0100        .12734        .50297E-05    .21892E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.54637
  norm       = 2.37537
  Prefactor  = 69.5571
  Prefactor  = 8.81625
  Prefactor  = 10.2618
  Prefactor  = 0.449578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5257
  Prefactor  = 19.9484
  Prefactor  = 0.154591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27994
  Prefactor  = 1.00998
 **********
 **   18 **HESSE 
 **********

 FCN=   7568.427     FROM HESSE     STATUS=OK           370 CALLS     2880 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3507        .30554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5464        14.954        .21421E-03   -1.5331    
   4  norm          2.3754        1.5969        .86992E-04   -1.5400    
   5  Prefactor     69.557        40.948        .24070E-03   -1.4038    
   6  Prefactor     8.8162        9.9440        .13499E-03   -1.5114    
   7  Prefactor     10.262        19.300        .12513E-03   -1.5067    
   8  Prefactor     .44958        .18559        .22032E-04   -1.5574    
   9  Prefactor     .10000E-03    5.9894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7431        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.0745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.526        19.759        .84392E-04   -1.4758    
  13  Prefactor     19.948        35.128        .89573E-04   -1.4814    
  14  Prefactor     .15459        8.2898        .58351E-01   -1.5629    
  15  Prefactor     .10000E-03    2.0004        .12014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.8671        .16539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8786        .11634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.0098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0923        .17141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2799        .26526        .32719E-03   -.84167    
  23  Prefactor     1.0100        .15038        .20811E-03   -.92398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34649e-09
Minuit parameter uncertainties:
  1  1.47747e-05
  2  0.000127123
  3  14.5705
  4  1.59693
  5  40.9648
  6  9.94589
  7  19.3118
  8  0.185592
  9  1.03554e-05
  10  1.94688e-05
  11  2.94974e-05
  12  19.7645
  13  35.1646
  14  2.2637
  15  4.19087e-06
  16  8.98681e-06
  17  3.23689e-05
  18  9.30607e-06
  19  1.82754e-05
  20  2.90587e-05
  21  1.89405e-05
  22  0.265541
  23  0.150438
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  8.987e-06  1.000e-04  1.000e+04 ( 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:  1.010e+00  1.504e-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.280e+00  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/358167/likelihoodResults_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.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) = 7568.42767985
delta logL = -0.000625281505563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7568.42705465
delta logL = -7.54498614697e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4297       1.0000          .0000       10.000    
     3 'Normalizat'    1.2799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0100       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7568.427     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    10.827        .18142E-02** at limit **
   2  Index         2.2322        7.2708        .20000        .18179E-06
   3  Normalizat    1.2799        .25707        .32720E-03    .32314E-05
   4  Prefactor     1.0100        .14831        .20811E-03    .98331E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100073
  Index      = 2.23219
  Normalizat = 1.27993
  Prefactor  = 1.00998
 **********
 **   18 **HESSE 
 **********

 FCN=   7568.427     FROM HESSE     STATUS=OK            27 CALLS      270 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    7.8159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2322        5.7959        .80000E-01   -.58664    
   3  Normalizat    1.2799        .25733        .13088E-04   -.84167    
   4  Prefactor     1.0100        .14846        .83244E-05   -.92397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66553e-09
Minuit parameter uncertainties:
  1  0.00151252
  2  555.661
  3  0.257589
  4  0.148519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358167': 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) = 7568.42705451
delta logL = 5.79912011744e-08

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.001e-04  1.513e-03  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.232e+00  5.557e+02  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:  1.010e+00  1.485e-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.280e+00  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 351.436 18.365

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/358167/cmap_HighResolution_670896001_671155201_4FGL_J2325.7+1821_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2022-04-09 00:56:07.389753', job_id='358167', GAL2='1.01', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1649490967.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1665' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:56:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 358167: <4FGL_J2325.7+1821_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:40:15 2022
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr  9 00:40:17 2022
Terminated at Sat Apr  9 00:56:08 2022
Results reported at Sat Apr  9 00:56:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1665 351.436 18.3654 670896001 671155201 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 :                                   722.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

