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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1716
RA = 346.173, Dec = 37.0826
tmin = 684115201, tmax = 684374401
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='253713', job_status='RUN', time_executed='2022-09-17 00:21:50.692020', time_epoch_executed='1663399310.69' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253713

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253713/ft1_4FGL_J2304.6+3704_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253713/ft1_4FGL_J2304.6+3704_daily_bin1716.fits outfile=/scratch/kocevski/253713/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1716.fits ra=346.173 dec=37.0826 rad=12.0 tmin=684115201.0 tmax=684374401.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 4.13
user 3.86
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.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/253713/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1716.fits evtable="EVENTS" outfile="/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.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.51
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 931

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/253713/ltcube_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.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/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits
.....................!
real 15.09
user 14.58
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/253713/ltcube_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.fits outfile=/scratch/kocevski/253713/expmap_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.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/253713/ltcube_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.fits
.....................!
real 193.05
user 186.64
sys 5.89

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits scfile=/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits outfile=/scratch/kocevski/253713/cmap_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.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.173 yref=37.0826 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.58
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits scfile=/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits outfile=/scratch/kocevski/253713/cmap_HighResolution_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.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.173 yref=37.0826 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.65
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253713/Model_4FGL_J2304.6+3704_daily_bin1716.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits.....................!
real 114.69
user 112.66
sys 1.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits', '/scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits', expMap='/scratch/kocevski/253713/expmap_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.fits', expCube='/scratch/kocevski/253713/ltcube_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253713/Model_4FGL_J2304.6+3704_daily_bin1716.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253713/ft1_filtered_4FGL_J2304.6+3704_daily_bin1716.fits
Spacecraft file(s): /scratch/kocevski/253713/ft2_4FGL_J2304.6+3704_daily_bin1716.fits
Exposure map: /scratch/kocevski/253713/expmap_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.fits
Exposure cube: /scratch/kocevski/253713/ltcube_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253713/Model_4FGL_J2304.6+3704_daily_bin1716.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) = 9888.32564289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9217       1.0000          .0000       .10000E+07
     2 'norm      '    .39724       1.0000          .0000       .10000E+07
     3 'Prefactor '    .31040E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .75457E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.748       1.0000          .0000       .10000E+07
     6 'norm      '    .72164E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .28365       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6635       1.0000          .0000       .10000E+07
     9 'Prefactor '    29.287       1.0000          .0000       .10000E+07
    10 'norm      '    .11961E-02   1.0000          .0000       .10000E+07
    11 'norm      '    4.1425       1.0000          .0000       .10000E+07
    12 'Prefactor '    44.604       1.0000          .0000       .10000E+07
    13 'norm      '    .50606       1.0000          .0000       .10000E+07
    14 'Prefactor '    55.795       1.0000          .0000       .10000E+07
    15 'Prefactor '    .27738E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11042E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .88638       1.0000          .0000       .10000E+07
    18 'Normalizat'    .81690       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0350       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9888.324     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1519 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9233        1.2319       -.85499E-07    .59189E-03
   2  norm          .41210        6.5364        .20586E-06   -.59546E-03
   3  Prefactor      .0000        10.234       -.41794E-06** at limit **
   4  Prefactor     .11047E-07    8.2416       -.15264E-05** at limit **
   5  Prefactor     13.750        1.3079       -.40378E-07   -.20872E-05
   6  norm           .0000        .44081        .22786E-06** at limit **
   7  Prefactor     .15639E-05    52.247        .14454E-05** at limit **
   8  Prefactor     1.7269        11.843       -.46594E-06   -.80971E-03
   9  Prefactor     29.246        17.252       -.99586E-06   -.12939    
  10  norm          .38858E-09    6.4377       -.13114E-05** at limit **
  11  norm          4.1087        5.7313        .19859E-06   -.71428E-04
  12  Prefactor     44.932        19.374       -.51349E-06    .72624E-01
  13  norm          .50003        2.0798       -.55620E-06   -.17219E-03
  14  Prefactor     55.955        40.930        .22323E-05   -.13479    
  15  Prefactor     .11102E-09    22.203        .41253E-05** at limit **
  16  Prefactor     .39968E-08    19.580        .18796E-05** at limit **
  17  Prefactor     .90111        7.4911       -.20878E-05   -.84674E-01
  18  Normalizat    .81593        .24652        .66845E-05   -.42166E-04
  19  Prefactor     1.0353        .93214E-01    .64362E-06   -.68494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92328
  norm       = 0.412104
  Prefactor  = 0
  Prefactor  = 1.10467e-08
  Prefactor  = 13.75
  norm       = 0
  Prefactor  = 1.56392e-06
  Prefactor  = 1.72688
  Prefactor  = 29.2461
  norm       = 3.88578e-10
  norm       = 4.10874
  Prefactor  = 44.9316
  norm       = 0.500032
  Prefactor  = 55.955
  Prefactor  = 1.11022e-10
  Prefactor  = 3.9968e-09
  Prefactor  = 0.901115
  Normalizat = 0.815935
  Prefactor  = 1.03526
 **********
 **   18 **HESSE 
 **********

 FCN=   9888.324     FROM HESSE     STATUS=OK           310 CALLS     1829 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9233        1.2414        .74926E-03   -1.5680    
   2  norm          .41210        2.4295        .47627E-02   -1.5695    
   3  Prefactor      .0000        10.147        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11047E-07    8.2314        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.750        14.475        .26988E-03   -1.5634    
   6  norm           .0000        .44030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .15639E-05    52.806        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7269        12.139        .81746E-03   -1.5682    
   9  Prefactor     29.246        27.482        .18481E-03   -1.5600    
  10  norm          .38858E-09    6.4013        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1087        5.7485        .49500E-03   -1.5667    
  12  Prefactor     44.932        21.785        .14974E-03   -1.5574    
  13  norm          .50003        2.0889        .78102E-03   -1.5694    
  14  Prefactor     55.955        62.231        .13389E-03   -1.5558    
  15  Prefactor     .11102E-09    22.214        .16572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39968E-08    19.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .90111        14.492        .46706E-03   -1.5689    
  18  Normalizat    .81593        .22165        .98089E-01   -.99480    
  19  Prefactor     1.0353        .82280E-01    .40884E-01   -.91563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62347e-06
Minuit parameter uncertainties:
  1  1.24136
  2  2.00123
  3  5.47356e-07
  4  0.000602688
  5  14.4752
  6  4.83461e-07
  7  0.0181754
  8  9.15688
  9  27.4821
  10  0.000102557
  11  5.74849
  12  21.7851
  13  2.04402
  14  62.2317
  15  0.000105159
  16  0.000563459
  17  7.22754
  18  0.221897
  19  0.0822899
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.375e+01  1.448e+01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.035e+00  8.229e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.159e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.49e-05

TS (Fixed Index): 3.38
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253713/likelihoodResults_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.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) = 9887.90108584
delta logL = 0.422549356375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9887.89869299
delta logL = 0.424942206391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.303       1.0000          .0000       .10000E+07
     2 'Index     '    1.2098       1.0000          .0000       10.000    
     3 'Normalizat'    .82354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   9887.899     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      302 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.305        20.221        .91075E-05   -.13205E-01
   2  Index         1.2098        .62983        .13946E-01   -.41132E-03
   3  Normalizat    .82360        .23229        .43273E-03    .23198E-03
   4  Prefactor     1.0343        .91316E-01    .15202E-03    .67161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3048
  Index      = 1.20976
  Normalizat = 0.823602
  Prefactor  = 1.03432
 **********
 **   18 **HESSE 
 **********

 FCN=   9887.899     FROM HESSE     STATUS=OK            23 CALLS      325 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.305        20.315        .18215E-05   -1.5620    
   2  Index         1.2098        .63283        .55783E-03   -.86031    
   3  Normalizat    .82360        .23239        .17309E-04   -.99199    
   4  Prefactor     1.0343        .91355E-01    .30403E-04   -.91594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17983e-08
Minuit parameter uncertainties:
  1  20.3149
  2  0.636874
  3  0.23267
  4  0.0913687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253713': 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) = 9887.89869294
delta logL = 0.424942256159

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.930e+01  2.031e+01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.210e+00  6.369e-01  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.034e+00  9.137e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.236e-01  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 346.173 37.083
Photon Index (Free Index): 1.21 +/- 0.64
Photon Flux (Free Index): 5.78e-09 +/- 7.54e-09
Energy Flux (Free Index): 4.69e-05 +/- 7.24e-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/253713/cmap_HighResolution_684115201_684374401_4FGL_J2304.6+3704_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='4.69e-05', photon_flux_error='1.43e-08', dlogl='4.25e-01', energy_flux='1.41e-05', photon_flux2='5.78e-09', job_status='DONE', time_completed='2022-09-17 00:34:02.267897', photon_index_error2='0.64', photon_index2='1.21', ts='3.38', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='6.12e-08', energy_flux_error2='7.24e-05', EG='0.82', time_epoch_completed='1663400042.27', return_code='0', job_id='253713', GAL2='1.03', EG2='0.82', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='7.54e-09', ts2='4.23', photon_index='1.85' WHERE bin_id='1716' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 17 00:34:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 253713: <4FGL_J2304.6+3704_daily_bin1716> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1716> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 17 00:20:28 2022
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 00:21:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 00:21:24 2022
Terminated at Sat Sep 17 00:34:02 2022
Results reported at Sat Sep 17 00:34:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1716 346.173 37.0826 684115201 684374401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.6+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            814 sec.

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

