/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 2 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 = 7432
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1013
RA = 196.008, Dec = 37.071
tmin = 501897601, tmax = 502156801
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='192324', job_status='RUN', time_executed='2021-09-06 19:55:44.607769', time_epoch_executed='1630983344.61' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192324

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192324/ft1_4FGL_J1304.0+3704_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192324/ft1_4FGL_J1304.0+3704_daily_bin1013.fits outfile=/scratch/kocevski/192324/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1013.fits ra=196.008 dec=37.071 rad=12.0 tmin=501897601.0 tmax=502156801.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.53
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.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/192324/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/192324/ft1_filtered_4FGL_J1304.0+3704_daily_bin1013.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192324/ft1_filtered_4FGL_J1304.0+3704_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/192324/ltcube_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.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/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits
.....................!
real 16.56
user 16.07
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192324/ft1_filtered_4FGL_J1304.0+3704_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/192324/ltcube_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.fits outfile=/scratch/kocevski/192324/expmap_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.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/192324/ltcube_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.fits
.....................!
real 192.76
user 186.78
sys 5.45

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/192324/ft1_filtered_4FGL_J1304.0+3704_daily_bin1013.fits scfile=/scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits outfile=/scratch/kocevski/192324/cmap_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192324/ft1_filtered_4FGL_J1304.0+3704_daily_bin1013.fits scfile=/scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits outfile=/scratch/kocevski/192324/cmap_HighResolution_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.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.57
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192324/ft1_filtered_4FGL_J1304.0+3704_daily_bin1013.fits', '/scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits', expMap='/scratch/kocevski/192324/expmap_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.fits', expCube='/scratch/kocevski/192324/ltcube_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192324/Model_4FGL_J1304.0+3704_daily_bin1013.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  1.000e-04  1.000e+04 ( 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/192324/ft1_filtered_4FGL_J1304.0+3704_daily_bin1013.fits
Spacecraft file(s): /scratch/kocevski/192324/ft2_4FGL_J1304.0+3704_daily_bin1013.fits
Exposure map: /scratch/kocevski/192324/expmap_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.fits
Exposure cube: /scratch/kocevski/192324/ltcube_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192324/Model_4FGL_J1304.0+3704_daily_bin1013.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) = 5269.76738326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.704       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.533       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7237       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20137E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6281       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9602       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.394       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11535       1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.133       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .87305       1.0000         .10000E-03   10000.    
    26 'norm      '    6.2864       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    20.477       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95544       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0043       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5269.753     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4535 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.704        4.4709        .11786E-06   -.24478E-04
   2  Prefactor     10.453        7.9304        .26515E-07    .10023E-04
   3  Prefactor     .10000E-03    .93022       -.83050E-07** at limit **
   4  Prefactor     .10000E-03    4.4498        .23680E-07** at limit **
   5  Prefactor     30.521        32.600        .21857E-06    .24858E-05
   6  Prefactor     5.9813        18.763        .10020E-05    .36680E-04
   7  Prefactor     .10000E-03    26.413        .17767E-05** at limit **
   8  Prefactor     .10000E-03    2.5961        .41253E-08** at limit **
   9  norm          4.7230        3.8462       -.37985E-07    .19518E-04
  10  Prefactor     .10000E-03    31.473        .12673E-05** at limit **
  11  Prefactor     .10000E-03    8.1676       -.15144E-07** at limit **
  12  Prefactor     .10002E-03    17.819       -.11702E-05** at limit **
  13  norm          2.6168        5.5233        .12092E-05    .36608E-03
  14  norm          .10000E-03    5.0648       -.52805E-07** at limit **
  15  norm          .10000E-03    2.0476        .10075E-06** at limit **
  16  norm          .10000E-03    2.9868        .49427E-07** at limit **
  17  norm          .10000E-03    1.1753       -.42101E-07** at limit **
  18  Prefactor     1.9575        3.1700        .18826E-05   -.24460E-03
  19  Prefactor     .10000E-03    6.5995        .20162E-06** at limit **
  20  Prefactor     .10000E-03    27.974       -.37047E-05** at limit **
  21  Prefactor     62.392        54.313       -.18148E-05    .18289E-04
  22  Prefactor     .94487E-02    12.875       -.44607E-06    .44422E-04
  23  Prefactor     59.133        51.702        .24146E-05    .25432E-04
  24  Prefactor     .10000E-03    12.292       -.14164E-07** at limit **
  25  Prefactor     .71903        77.666       -.89156E-06    .18151E-04
  26  norm          6.2864        2.3249       -.38885E-07    .47897E-04
  27  Prefactor     .10000E-03    2.6165        .28083E-07** at limit **
  28  norm          20.480        17.843       -.35841E-06   -.37150E-05
  29  Normalizat    .95537        .17832       -.45872E-06    .17365E-03
  30  Prefactor     1.0044        .21481       -.34115E-06    .87198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7044
  Prefactor  = 10.4532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.5212
  Prefactor  = 5.9813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.72296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 2.61677
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.95751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.3921
  Prefactor  = 0.00944865
  Prefactor  = 59.1332
  Prefactor  = 0.0001
  Prefactor  = 0.719031
  norm       = 6.28642
  Prefactor  = 0.0001
  norm       = 20.48
  Normalizat = 0.95537
  Prefactor  = 1.00439
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.753     FROM HESSE     STATUS=OK           598 CALLS     5133 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.704        4.4586        .88401E-04   -1.4995    
   2  Prefactor     10.453        7.9314        .12392E-03   -1.5061    
   3  Prefactor     .10000E-03    .93792        .68245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4844        .14954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.521        32.613        .72511E-04   -1.4602    
   6  Prefactor     5.9813        18.732        .16401E-03   -1.5219    
   7  Prefactor     .10000E-03    26.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5996        .11416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7230        3.8455        .12409E-03   -1.5273    
  10  Prefactor     .10000E-03    31.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    106.11        .54189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6168        5.3302        .22628E-03   -1.5384    
  14  norm          .10000E-03    5.0669        .15956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0891        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0072        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1766        .76859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9575        3.1784        .75769E-03   -1.5428    
  19  Prefactor     .10000E-03    6.6293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.392        54.274        .50800E-04   -1.4127    
  22  Prefactor     .94487E-02    18.744        .74473E-01   -1.5689    
  23  Prefactor     59.133        51.658        .52173E-04   -1.4168    
  24  Prefactor     .10000E-03    12.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .71903        82.254        .16393       -1.5538    
  26  norm          6.2864        2.3265        .63449E-04   -1.5206    
  27  Prefactor     .10000E-03    2.6637        .11465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          20.480        17.848        .88511E-04   -1.4803    
  29  Normalizat    .95537        .21384        .22666E-03   -.94541    
  30  Prefactor     1.0044        .25866        .28194E-03   -.92583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87594e-10
Minuit parameter uncertainties:
  1  4.45876
  2  7.93222
  3  3.67636e-06
  4  1.01876e-06
  5  32.6324
  6  18.7507
  7  5.58963e-05
  8  2.97009e-06
  9  3.84573
  10  5.19241e-05
  11  4.3487e-06
  12  0.00316355
  13  5.33112
  14  5.74182e-07
  15  1.01379e-07
  16  1.60002e-06
  17  2.11324e-06
  18  3.17863
  19  8.67871e-06
  20  5.40725e-05
  21  54.317
  22  0.837465
  23  51.6967
  24  7.04006e-06
  25  15.4015
  26  2.32652
  27  4.17807e-06
  28  17.8527
  29  0.214032
  30  0.258976
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.164e-03  1.000e-04  1.000e+04 ( 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.004e+00  2.590e-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:  9.554e-01  2.140e-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: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192324/likelihoodResults_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.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) = 5269.75349964
delta logL = -4.41522433903e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5269.75349963
delta logL = -4.41412494183e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96344E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4358       1.0000          .0000       10.000    
     3 'Normalizat'    .95536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0044       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5269.753     FROM MIGRAD    STATUS=FAILED       108 CALLS      270 TOTAL
                     EDM=   .43E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26388E-03    6711.3        .53168E-02** at limit **
   2  Index         2.7981        2.9255        .50000       -.54275E-04
   3  Normalizat    .95537        .23293E-01    .22666E-03    .65830E-03
   4  Prefactor     1.0044        .28108E-01    .28194E-03    .41976E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5269.747     FROM SIMPLEX   STATUS=PROGRESS     148 CALLS      418 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2502        6711.3        .80458E-03   -.12997E-01
   2  Index         2.7983        2.9255        .30230E-05   -.54275E-04
   3  Normalizat    .95537        .23293E-01    .42876E-07    .65830E-03
   4  Prefactor     1.0044        .28108E-01    .74956E-07    .41976E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5269.734     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      498 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1254        49.132        .21267E-02    .61090E-04
   2  Index         3.2608        .65431        .50000        .36025E-05
   3  Normalizat    .94336        .11515E-01    .45332E-04   -.43291E-03
   4  Prefactor     1.0118        .14716E-01    .56388E-04   -.36222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12543
  Index      = 3.26079
  Normalizat = 0.943357
  Prefactor  = 1.01175
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.734     FROM HESSE     STATUS=OK            29 CALLS      527 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1254        16.788        .85069E-04   -1.5496    
   2  Index         3.2608        2.9467        .36279E-02   -.35527    
   3  Normalizat    .94336        .21030        .90664E-05   -.94953    
   4  Prefactor     1.0118        .25972        .11278E-04   -.92339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34742e-10
Minuit parameter uncertainties:
  1  8.69597
  2  3.18654
  3  0.210481
  4  0.260039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192324': 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) = 5269.7344686
delta logL = 0.0189868836742

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.125e+00  8.696e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.261e+00  3.187e+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.012e+00  2.600e-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:  9.434e-01  2.105e-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/192324/cmap_HighResolution_501897601_502156801_4FGL_J1304.0+3704_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.03e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-06 20:10:15.479770', job_id='192324', GAL2='1.01', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1630984215.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.90e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1013' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:10:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 192324: <4FGL_J1304.0+3704_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1013> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:55:30 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:55:34 2021
Terminated at Mon Sep  6 20:10:16 2021
Results reported at Mon Sep  6 20:10:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1013 196.008 37.071 501897601 502156801 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 :                                   867.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            886 sec.

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

