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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1736
RA = 346.173, Dec = 37.0826
tmin = 689299201, tmax = 689558401
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='963424', job_status='RUN', time_executed='2022-11-08 00:41:10.307444', time_epoch_executed='1667896870.31' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963424/ft1_4FGL_J2304.6+3704_daily_bin1736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963424/ft1_4FGL_J2304.6+3704_daily_bin1736.fits outfile=/scratch/kocevski/963424/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1736.fits ra=346.173 dec=37.0826 rad=12.0 tmin=689299201.0 tmax=689558401.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.58
user 3.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.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/963424/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1736.fits evtable="EVENTS" outfile="/scratch/kocevski/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.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.34
sys 0.14

Number of photons that the gtmktime cut: 1597

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits" evtable="EVENTS" scfile=/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits sctable="SC_DATA" outfile=/scratch/kocevski/963424/ltcube_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.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/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits
.....................!
real 12.42
user 12.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits sctable="SC_DATA" expcube=/scratch/kocevski/963424/ltcube_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.fits outfile=/scratch/kocevski/963424/expmap_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.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/963424/ltcube_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.fits
.....................!
real 190.58
user 185.91
sys 4.27

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits scfile=/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits outfile=/scratch/kocevski/963424/cmap_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits scfile=/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits outfile=/scratch/kocevski/963424/cmap_HighResolution_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963424/Model_4FGL_J2304.6+3704_daily_bin1736.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/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits.....................!
real 187.01
user 185.27
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits', '/scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits', expMap='/scratch/kocevski/963424/expmap_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.fits', expCube='/scratch/kocevski/963424/ltcube_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963424/Model_4FGL_J2304.6+3704_daily_bin1736.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/963424/ft1_filtered_4FGL_J2304.6+3704_daily_bin1736.fits
Spacecraft file(s): /scratch/kocevski/963424/ft2_4FGL_J2304.6+3704_daily_bin1736.fits
Exposure map: /scratch/kocevski/963424/expmap_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.fits
Exposure cube: /scratch/kocevski/963424/ltcube_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963424/Model_4FGL_J2304.6+3704_daily_bin1736.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) = 16432.4714443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9337       1.0000          .0000       .10000E+07
     2 'norm      '    .22204E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15641E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .33420E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10589E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .45774       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16399E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .71848E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2618.4       1.0000          .0000       .10000E+07
    10 'norm      '    .55933E-06   1.0000          .0000       .10000E+07
    11 'norm      '    10.506       1.0000          .0000       .10000E+07
    12 'Prefactor '    .81787E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .25863E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24071E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10222E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14084E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .67846E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0944       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=   16432.29     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     1191 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9324        1.3952       -.53683E-07   -.11351E-02
   2  norm           .0000        1.3409        .17604E-07** at limit **
   3  Prefactor      .0000        5.1413       -.54713E-07** at limit **
   4  Prefactor      .0000        1.8134       -.70652E-07** at limit **
   5  Prefactor      .0000        6.4656        .37143E-07** at limit **
   6  norm          .45906        .98931       -.14036E-07    .22117E-03
   7  Prefactor     .16653E-09    29.820       -.21486E-05** at limit **
   8  Prefactor      .0000        2.2710        .34821E-07** at limit **
   9  Prefactor     2609.8        130.41       -.17551E-06    .18724E-03
  10  norm           .0000        1.0890       -.20703E-07** at limit **
  11  norm          10.495        7.1754        .73298E-07    .94009E-03
  12  Prefactor      .0000        4.2629        .37612E-07** at limit **
  13  norm           .0000        .60152        .11675E-07** at limit **
  14  Prefactor      .0000        33.539        .93053E-07** at limit **
  15  Prefactor      .0000        10.089       -.16765E-07** at limit **
  16  Prefactor     .11102E-09    85.866       -.12391E-05** at limit **
  17  Prefactor     .11102E-09    20.186        .19132E-05** at limit **
  18  Normalizat    1.1394        .28889        .61349E-05   -.10455E-04
  19  Prefactor     1.0940        .10486        .40210E-05    .53213E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93236
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.45906
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 2609.78
  norm       = 0
  norm       = 10.495
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 1.11022e-10
  Normalizat = 1.13939
  Prefactor  = 1.09398
 **********
 **   18 **HESSE 
 **********

 FCN=   16432.29     FROM HESSE     STATUS=OK           296 CALLS     1487 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9324        1.3954        .59278E-03   -1.5674    
   2  norm           .0000        1.3357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        5.1440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.8128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        6.4689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .45906        1.0082        .83080E-03   -1.5694    
   7  Prefactor     .16653E-09    30.159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.2714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2609.8        130.48        .19568E-04   -1.4686    
  10  norm           .0000        1.0915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.495        7.1779        .30887E-03   -1.5643    
  12  Prefactor      .0000        4.2802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .60055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        33.476        .16782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        10.106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    85.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    19.709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1394        .25484        .12814       -.88497    
  19  Prefactor     1.0940        .91853E-01    .37804E-01   -.89659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74291e-09
Minuit parameter uncertainties:
  1  1.39538
  2  1.31739e-06
  3  4.38368e-06
  4  2.4766e-06
  5  2.55982e-06
  6  1.00823
  7  0.000150862
  8  1.96819e-06
  9  130.484
  10  1.67497e-07
  11  7.17791
  12  5.29992e-07
  13  1.61991e-07
  14  4.76669e-06
  15  8.29818e-06
  16  0.000177565
  17  0.00010438
  18  0.255113
  19  0.0918662
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  0.000e+00  2.560e-06  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.094e+00  9.187e-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:  1.139e+00  2.551e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/963424/likelihoodResults_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.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) = 16432.3659398
delta logL = -0.0738955987181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16432.2920449
delta logL = -6.35409378447e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38053E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .63620       1.0000          .0000       10.000    
     3 'Normalizat'    1.1392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0940       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.

 FCN=   16432.29     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      230 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42744E-08    .33613        .42118E-03** at limit **
   2  Index         1.5162        8.8100        .41546        .32837E-09
   3  Normalizat    1.1394        .12766E-02    .12814        .70075E-04
   4  Prefactor     1.0940        .46941E-03    .37820E-01    .27934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27436e-09
  Index      = 1.5162
  Normalizat = 1.13939
  Prefactor  = 1.09398
 **********
 **   18 **HESSE 
 **********

 FCN=   16432.29     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      261 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42744E-08    .89345        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5162        9.0499        .50000       -.77087    
   3  Normalizat    1.1394        .20713E-02    .56884E-03   -.88497    
   4  Prefactor     1.0940        .76514E-03    .21198E-03   -.89659    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.80452e-11
Minuit parameter uncertainties:
  1  0.000123922
  2  3438.01
  3  0.00207135
  4  0.000765138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963424': 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): 102
logL (Free Index) = 16432.2920442
delta logL = -2.83762346953e-10

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.274e-09  1.239e-04  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.516e+00  3.438e+03  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.094e+00  7.651e-04  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:  1.139e+00  2.071e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 346.173 37.083

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/963424/cmap_HighResolution_689299201_689558401_4FGL_J2304.6+3704_daily_bin1736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-03', job_status='DONE', photon_flux_upper_limit='3.40e-08', time_completed='2022-11-08 00:55:53.360350', job_id='963424', GAL2='1.09', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1667897753.36', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-2.84e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1736' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:55:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 963424: <4FGL_J2304.6+3704_daily_bin1736> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1736> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Nov  8 00:40:23 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:40:25 2022
Terminated at Tue Nov  8 00:55:54 2022
Results reported at Tue Nov  8 00:55:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1736 346.173 37.0826 689299201 689558401 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 :                                   885.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

