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 13 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_J2304.3+0618_daily_bin1665
RA = 346.078, Dec = 6.3071
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='358122', job_status='RUN', time_executed='2022-04-09 00:40:34.814091', time_epoch_executed='1649490034.81' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358122

Creating custom pfile directory:
/scratch/kocevski/358122/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/358122/ft1_4FGL_J2304.3+0618_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/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358122/ft1_4FGL_J2304.3+0618_daily_bin1665.fits outfile=/scratch/kocevski/358122/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin1665.fits ra=346.078 dec=6.3071 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.38
user 5.11
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_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/358122/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin1665.fits evtable="EVENTS" outfile="/scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_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.15

Number of photons that the gtmktime cut: 677

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits" evtable="EVENTS" scfile=/scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits sctable="SC_DATA" outfile=/scratch/kocevski/358122/ltcube_670896001_671155201_4FGL_J2304.3+0618_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/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits
.....................!
real 12.27
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/358122/ltcube_670896001_671155201_4FGL_J2304.3+0618_daily_bin1665.fits outfile=/scratch/kocevski/358122/expmap_670896001_671155201_4FGL_J2304.3+0618_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/358122/ltcube_670896001_671155201_4FGL_J2304.3+0618_daily_bin1665.fits
.....................!
real 192.34
user 186.16
sys 5.75

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

Setting source of interest to:
4FGL J2304.3+0618 @ 346.078 6.3071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits scfile=/scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits outfile=/scratch/kocevski/358122/cmap_670896001_671155201_4FGL_J2304.3+0618_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=346.078 yref=6.3071 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits scfile=/scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits outfile=/scratch/kocevski/358122/cmap_HighResolution_670896001_671155201_4FGL_J2304.3+0618_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=346.078 yref=6.3071 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358122/Model_4FGL_J2304.3+0618_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/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits.....................!
real 77.75
user 76.32
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits', '/scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits', expMap='/scratch/kocevski/358122/expmap_670896001_671155201_4FGL_J2304.3+0618_daily_bin1665.fits', expCube='/scratch/kocevski/358122/ltcube_670896001_671155201_4FGL_J2304.3+0618_daily_bin1665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358122/Model_4FGL_J2304.3+0618_daily_bin1665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.3+0618'

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.761e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/358122/ft1_filtered_4FGL_J2304.3+0618_daily_bin1665.fits
Spacecraft file(s): /scratch/kocevski/358122/ft2_4FGL_J2304.3+0618_daily_bin1665.fits
Exposure map: /scratch/kocevski/358122/expmap_670896001_671155201_4FGL_J2304.3+0618_daily_bin1665.fits
Exposure cube: /scratch/kocevski/358122/ltcube_670896001_671155201_4FGL_J2304.3+0618_daily_bin1665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358122/Model_4FGL_J2304.3+0618_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) = 7518.90962436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62228       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5189       1.0000         .10000E-03   10000.    
     4 'Prefactor '    94.594       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54405       1.0000         .10000E-03   10000.    
     7 'norm      '    23.920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.484       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12176E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91100E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .68483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.272       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4091       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7518.855     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     3011 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.845        14.553        .85308E-06   -.27651E-04
   2  Prefactor     .62228        .21284        .71021E-07   -.91566E-03
   3  Prefactor     4.5194        4.8216        .49509E-07   -.10108E-03
   4  Prefactor     94.605        47.884        .79776E-05   -.22391E-04
   5  Prefactor     21.590        25.040        .24220E-05   -.28380E-04
   6  Prefactor     .54401        .20448       -.41060E-07   -.65734E-03
   7  norm          23.916        14.471        .20008E-05   -.79884E-04
   8  Prefactor     21.658        34.390       -.29830E-05   -.49627E-04
   9  Prefactor     .10000E-03    7.8659        .45883E-07** at limit **
  10  Prefactor     .10000E-03    11.028       -.27601E-05** at limit **
  11  Prefactor     13.482        12.731        .38339E-06   -.25351E-04
  12  norm          .10000E-03    .23345        .33015E-07** at limit **
  13  Prefactor     .10000E-03    2.2891       -.26790E-07** at limit **
  14  Prefactor     .10000E-03    29.270       -.50871E-05** at limit **
  15  norm          .10001E-03    3.4862        .15182E-05** at limit **
  16  Prefactor     .10000E-03    2.4450        .67834E-07** at limit **
  17  Prefactor     .10000E-03    59.591        .15592E-04** at limit **
  18  Prefactor     .10006E-03    5.9440       -.15685E-05** at limit **
  19  Prefactor     .10000E-03    13.977        .42057E-05** at limit **
  20  norm          .10000E-03    11.217       -.23192E-05** at limit **
  21  norm          .68761        13.263       -.31725E-05    .77745E-04
  22  Prefactor     47.292        43.907        .73893E-04    .21364E-04
  23  Prefactor     40.266        30.168       -.10589E-04   -.87617E-04
  24  Normalizat    1.4096        .20905       -.76618E-05    .27452E-03
  25  Prefactor     .70062        .11483       -.12264E-05   -.27614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8452
  Prefactor  = 0.622279
  Prefactor  = 4.51943
  Prefactor  = 94.605
  Prefactor  = 21.5902
  Prefactor  = 0.544009
  norm       = 23.9164
  Prefactor  = 21.6576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.68761
  Prefactor  = 47.2922
  Prefactor  = 40.2655
  Normalizat = 1.40959
  Prefactor  = 0.70062
 **********
 **   18 **HESSE 
 **********

 FCN=   7518.855     FROM HESSE     STATUS=OK           431 CALLS     3442 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.845        14.570        .12166E-03   -1.5049    
   2  Prefactor     .62228        .21244        .21985E-04   -1.5550    
   3  Prefactor     4.5194        4.8185        .18939E-03   -1.5283    
   4  Prefactor     94.605        47.970        .41324E-04   -1.3760    
   5  Prefactor     21.590        25.045        .86209E-04   -1.4778    
   6  Prefactor     .54401        .20395        .21596E-04   -1.5560    
   7  norm          23.916        14.519        .81903E-04   -1.4729    
   8  Prefactor     21.658        34.505        .86060E-04   -1.4777    
   9  Prefactor     .10000E-03    8.0904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.482        12.741        .10908E-03   -1.4973    
  12  norm          .10000E-03    .23905        .81765E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2907        .12812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    9.8560        .31332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4511        .13237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    59.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    34.996        .37045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .68761        77.787        .55307E-02   -1.5542    
  22  Prefactor     47.292        43.927        .58353E-04   -1.4331    
  23  Prefactor     40.266        30.238        .63164E-04   -1.4438    
  24  Normalizat    1.4096        .24462        .28485E-03   -.80352    
  25  Prefactor     .70062        .13439        .22260E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72768e-09
Minuit parameter uncertainties:
  1  14.5743
  2  0.212437
  3  4.8189
  4  47.9895
  5  25.0575
  6  0.20395
  7  14.5209
  8  34.5367
  9  9.53872e-05
  10  0.000115586
  11  12.7431
  12  1.90835e-06
  13  2.75812e-06
  14  0.000203277
  15  0.000477734
  16  1.05723e-05
  17  2.17401e-05
  18  0.00287711
  19  6.94525e-05
  20  6.33071e-05
  21  14.6454
  22  43.9571
  23  30.2491
  24  0.244826
  25  0.134453
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.166e+01  3.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.006e-01  1.345e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.410e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358122/likelihoodResults_670896001_671155201_4FGL_J2304.3+0618_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): 0
logL (Free Index) = 7518.79746095
delta logL = 0.0572139531669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7518.75911713
delta logL = 0.0955577780996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.660       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2705       1.0000          .0000       10.000    
     3 'Normalizat'    1.3836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7518.759     FROM MIGRAD    STATUS=FAILED        94 CALLS      259 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.652        113.03        .11732E-03   -.22288E-05
   2  Index         3.2713        3.6784        .92068E-02    .34816E-03
   3  Normalizat    1.3837        .25589        .28711E-03    .10818E-03
   4  Prefactor     .71099        .14309        .22113E-03   -.24421E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7518.759     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      336 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.652        113.03        .69808E-03   -1.5025    
   2  Index         3.2713        3.6784        .21100E-02   -.35303    
   3  Normalizat    1.3837        .25589        .36507E-03   -.81101    
   4  Prefactor     .71099        .14309        .25895E-03   -1.0310    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7518.759     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      365 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.652        35.256        .46928E-05   -.53781E-04
   2  Index         3.2713        1.9829        .18414E-02    .11379E-04
   3  Normalizat    1.3837        .24470        .11484E-04    .35638E-04
   4  Prefactor     .71099        .13684        .88451E-05   -.10282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6516
  Index      = 3.2713
  Normalizat = 1.38372
  Prefactor  = 0.710991
 **********
 **   18 **HESSE 
 **********

 FCN=   7518.759     FROM HESSE     STATUS=OK            23 CALLS      388 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.652        32.874        .93856E-06   -1.5025    
   2  Index         3.2713        1.8538        .73655E-04   -.35303    
   3  Normalizat    1.3837        .24416        .22968E-05   -.81101    
   4  Prefactor     .71099        .13654        .17690E-05   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28546e-10
Minuit parameter uncertainties:
  1  32.9251
  2  1.90581
  3  0.24437
  4  0.136608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358122': 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) = 7518.75911661
delta logL = 0.0955582930965

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.165e+01  3.293e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.271e+00  1.906e+00  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  7.110e-01  1.366e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.384e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 346.078 6.307

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/358122/cmap_HighResolution_670896001_671155201_4FGL_J2304.3+0618_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2022-04-09 00:53:47.784192', job_id='358122', GAL2='0.71', fit_tolerance='1e-08', EG2='1.38', EG='1.41', time_epoch_completed='1649490827.78', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='9.56e-02', ts2='0.69', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1665' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:53:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 358122: <4FGL_J2304.3+0618_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:40:11 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:40:13 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:13 2022
Terminated at Sat Apr  9 00:53:48 2022
Results reported at Sat Apr  9 00:53:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin1665 346.078 6.3071 670896001 671155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.3+0618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   794.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

