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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1780
RA = 196.008, Dec = 37.071
tmin = 700704001, tmax = 700963201
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='63935', job_status='RUN', time_executed='2023-03-20 00:57:10.432838', time_epoch_executed='1679299030.43' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63935/ft1_4FGL_J1304.0+3704_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63935/ft1_4FGL_J1304.0+3704_daily_bin1780.fits outfile=/scratch/kocevski/63935/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1780.fits ra=196.008 dec=37.071 rad=12.0 tmin=700704001.0 tmax=700963201.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.11
user 3.88
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.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/63935/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 607

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/63935/ltcube_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.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/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits
.....................!
real 12.42
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/63935/ltcube_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.fits outfile=/scratch/kocevski/63935/expmap_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.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/63935/ltcube_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.fits
.....................!
real 191.00
user 186.29
sys 4.39

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

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits scfile=/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits outfile=/scratch/kocevski/63935/cmap_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.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=196.008 yref=37.071 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits scfile=/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits outfile=/scratch/kocevski/63935/cmap_HighResolution_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.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=196.008 yref=37.071 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/63935/Model_4FGL_J1304.0+3704_daily_bin1780.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/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits.....................!
real 55.69
user 54.38
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits', '/scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits', expMap='/scratch/kocevski/63935/expmap_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.fits', expCube='/scratch/kocevski/63935/ltcube_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/63935/Model_4FGL_J1304.0+3704_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/63935/ft1_filtered_4FGL_J1304.0+3704_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/63935/ft2_4FGL_J1304.0+3704_daily_bin1780.fits
Exposure map: /scratch/kocevski/63935/expmap_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.fits
Exposure cube: /scratch/kocevski/63935/ltcube_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/63935/Model_4FGL_J1304.0+3704_daily_bin1780.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) = 6940.07812126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6339       1.0000          .0000       .10000E+07
     2 'Prefactor '    .54643E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20839E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18786E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    33.582       1.0000          .0000       .10000E+07
     6 'Prefactor '    .66127E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.1517       1.0000          .0000       .10000E+07
     8 'norm      '    10.018       1.0000          .0000       .10000E+07
     9 'Prefactor '    .25524E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .46535       1.0000          .0000       .10000E+07
    11 'norm      '    .30169E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .65328E-02   1.0000          .0000       .10000E+07
    13 'norm      '    11.099       1.0000          .0000       .10000E+07
    14 'norm      '    14.555       1.0000          .0000       .10000E+07
    15 'norm      '    .33862E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14068E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12663E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20621E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .25640E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .40728E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .80978E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    20.283       1.0000          .0000       .10000E+07
    23 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    24 'Prefactor '    5.7453       1.0000          .0000       .10000E+07
    25 'norm      '    6.7947       1.0000          .0000       .10000E+07
    26 'Normalizat'    .78337       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1943       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6939.940     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     1901 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6329        3.3324        .10516E-07   -.61926E-04
   2  Prefactor     .10197E-05    7.8387       -.54837E-07** at limit **
   3  Prefactor      .0000        2.8162       -.76059E-07** at limit **
   4  Prefactor     .33407E-06    10.184        .17607E-07** at limit **
   5  Prefactor     32.875        3.9170       -.77422E-08    .13949E-01
   6  Prefactor     .47740E-07    6.1633       -.33871E-07** at limit **
   7  Prefactor     7.1443        5.9704        .32121E-07   -.76775E-03
   8  norm          10.031        4.5646       -.10113E-06    .59478E-03
   9  Prefactor     .20239E-06    52.391       -.98189E-06** at limit **
  10  Prefactor     .45910        7.8593        .36017E-06    .45990E-02
  11  norm          .16653E-09    8.3945       -.12155E-06** at limit **
  12  norm          .38269E-06    7.5731       -.43767E-07** at limit **
  13  norm          11.075        4.0893        .25131E-07   -.29059E-02
  14  norm          14.599        2.9193        .81831E-08    .65799E-02
  15  norm           .0000        1.1050        .13605E-07** at limit **
  16  Prefactor      .0000        1.6972        .42936E-07** at limit **
  17  Prefactor     .15044E-07    5.4634       -.35203E-07** at limit **
  18  Prefactor      .0000        24.994        .88815E-07** at limit **
  19  Prefactor     .64226E-07    18.753        .45921E-07** at limit **
  20  Prefactor     .47740E-08    10.422        .75763E-07** at limit **
  21  Prefactor     .41744E-06    30.935       -.42029E-06** at limit **
  22  Prefactor     20.651        1.9301        .65949E-08   -.40903E-02
  23  norm           .0000        .39960       -.15212E-07** at limit **
  24  Prefactor     5.7374        5.4494       -.34902E-08    .58431E-04
  25  norm          6.7552        12.398        .75505E-07   -.51871E-03
  26  Normalizat    .78407        .17663       -.13848E-05    .34409E-05
  27  Prefactor     1.1938        .21893        .20956E-05    .20218E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.63289
  Prefactor  = 1.01968e-06
  Prefactor  = 0
  Prefactor  = 3.34066e-07
  Prefactor  = 32.875
  Prefactor  = 4.77396e-08
  Prefactor  = 7.14426
  norm       = 10.0306
  Prefactor  = 2.02394e-07
  Prefactor  = 0.459102
  norm       = 1.66533e-10
  norm       = 3.82694e-07
  norm       = 11.0755
  norm       = 14.5991
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.50435e-08
  Prefactor  = 0
  Prefactor  = 6.42264e-08
  Prefactor  = 4.77396e-09
  Prefactor  = 4.17444e-07
  Prefactor  = 20.6512
  norm       = 0
  Prefactor  = 5.73741
  norm       = 6.75517
  Normalizat = 0.784069
  Prefactor  = 1.19383
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.940     FROM HESSE     STATUS=OK           544 CALLS     2445 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6329        3.3520        .46731E-03   -1.5665    
   2  Prefactor     .10197E-05    29.791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.7468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33407E-06    17.113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.875        24.287        .17258E-03   -1.5593    
   6  Prefactor     .47740E-07    12.114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1443        6.7230        .37486E-03   -1.5655    
   8  norm          10.031        4.5816        .31634E-03   -1.5645    
   9  Prefactor     .20239E-06    55.237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .45910        15.018        .95961E-02   -1.5694    
  11  norm          .16653E-09    8.2857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .38269E-06    14.586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.075        8.3065        .30047E-03   -1.5641    
  14  norm          14.599        14.905        .26227E-03   -1.5632    
  15  norm           .0000        1.1056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.6880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .15044E-07    12.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        24.679        .16996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .64226E-07    23.424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .47740E-08    10.521        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .41744E-06    35.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.651        26.734        .22211E-03   -1.5617    
  23  norm           .0000        .39618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.7374        5.4657        .41880E-03   -1.5660    
  25  norm          6.7552        12.430        .38468E-03   -1.5656    
  26  Normalizat    .78407        .15140        .43393E-01   -1.0066    
  27  Prefactor     1.1938        .18411        .58070E-01   -.86521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30167e-07
Minuit parameter uncertainties:
  1  3.35195
  2  0.0110232
  3  2.61763e-06
  4  0.00478207
  5  24.2867
  6  0.00152082
  7  6.723
  8  4.58156
  9  0.00668678
  10  5.25154
  11  7.62406e-05
  12  0.00472518
  13  8.30647
  14  14.9046
  15  1.38598e-06
  16  7.28864e-07
  17  0.000863439
  18  1.14378e-06
  19  0.00245322
  20  0.000447057
  21  0.00772149
  22  26.734
  23  4.23013e-08
  24  5.46573
  25  12.4297
  26  0.151479
  27  0.184206
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  4.591e-01  5.252e+00  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.194e+00  1.842e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.841e-01  1.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63935/likelihoodResults_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.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) = 6939.93873463
delta logL = 0.000809712561022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6939.93805299
delta logL = 0.00149134878302

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6939.938     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      308 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1175        44.044        .10885E-01    .27883E-02
   2  Index         2.2259        1.6135        .50000        .27824E-06
   3  Normalizat    .78401        .68025E-02    .43401E-01    .10777E-04
   4  Prefactor     1.1932        .85371E-02    .58081E-01    .35730E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.1175
  Index      = 2.22587
  Normalizat = 0.784012
  Prefactor  = 1.19323
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.938     FROM HESSE     STATUS=OK            35 CALLS      343 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1175        99.767        .58054E-03   -1.5687    
   2  Index         2.2259        3.1745        .17422E-01   -.58815    
   3  Normalizat    .78401        .17387        .24842E-03   -1.0066    
   4  Prefactor     1.1932        .21860        .25684E-03   -.86540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16891e-08
Minuit parameter uncertainties:
  1  21.1181
  2  3.61136
  3  0.173995
  4  0.218769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63935': 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) = 6939.93805218
delta logL = 0.00149215475903

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.118e+00  2.112e+01  0.000e+00  1.000e+06 ( 1.000e-13)
314        Index:  2.226e+00  3.611e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.193e+00  2.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.840e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 196.008 37.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/63935/cmap_HighResolution_700704001_700963201_4FGL_J1304.0+3704_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2023-03-20 01:08:10.528848', job_id='63935', GAL2='1.19', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1679299690.53', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.49e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1780' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:08:10 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 63935: <4FGL_J1304.0+3704_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 00:55:13 2023
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:55:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:55:14 2023
Terminated at Mon Mar 20 01:08:11 2023
Results reported at Mon Mar 20 01:08:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1780 196.008 37.071 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

