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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin852
RA = 196.008, Dec = 37.071
tmin = 460166401, tmax = 460425601
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='190929', job_status='RUN', time_executed='2021-09-06 19:51:26.474623', time_epoch_executed='1630983086.47' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190929/ft1_4FGL_J1304.0+3704_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190929/ft1_4FGL_J1304.0+3704_daily_bin852.fits outfile=/scratch/kocevski/190929/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin852.fits ra=196.008 dec=37.071 rad=12.0 tmin=460166401.0 tmax=460425601.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.36
user 3.14
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190929/ft1_filtered_4FGL_J1304.0+3704_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/190929/ltcube_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.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/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits
.....................!
real 14.80
user 14.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190929/ft1_filtered_4FGL_J1304.0+3704_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/190929/ltcube_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.fits outfile=/scratch/kocevski/190929/expmap_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.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/190929/ltcube_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.fits
.....................!
real 191.69
user 186.98
sys 3.97

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/190929/ft1_filtered_4FGL_J1304.0+3704_daily_bin852.fits scfile=/scratch/kocevski/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits outfile=/scratch/kocevski/190929/cmap_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190929/ft1_filtered_4FGL_J1304.0+3704_daily_bin852.fits scfile=/scratch/kocevski/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits outfile=/scratch/kocevski/190929/cmap_HighResolution_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.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.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190929/ft1_filtered_4FGL_J1304.0+3704_daily_bin852.fits', '/scratch/kocevski/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits', expMap='/scratch/kocevski/190929/expmap_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.fits', expCube='/scratch/kocevski/190929/ltcube_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190929/Model_4FGL_J1304.0+3704_daily_bin852.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/190929/ft1_filtered_4FGL_J1304.0+3704_daily_bin852.fits
Spacecraft file(s): /scratch/kocevski/190929/ft2_4FGL_J1304.0+3704_daily_bin852.fits
Exposure map: /scratch/kocevski/190929/expmap_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.fits
Exposure cube: /scratch/kocevski/190929/ltcube_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190929/Model_4FGL_J1304.0+3704_daily_bin852.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) = 6400.35918126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.771       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45339E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5305       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11293E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.402       1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.8649       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.479       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .89388E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17616E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.779       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5011       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    18.373       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66660       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4569       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=   6400.243     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     3453 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6629        .19078E-06** at limit **
   2  Prefactor     .10000E-03    12.066        .15766E-05** at limit **
   3  Prefactor     3.5141        2.1161       -.29940E-07    .38221E-04
   4  Prefactor     11.772        10.044        .25090E-06   -.11636E-03
   5  Prefactor     .10000E-03    153.57       -.58737E-06** at limit **
   6  Prefactor     .10000E-03    6.5723        .16684E-06** at limit **
   7  Prefactor     3.2709        383.97        .11442E-05   -.40139E-05
   8  Prefactor     .10000E-03    2.5492        .12254E-06** at limit **
   9  norm          .10000E-03    4.5274        .35990E-05** at limit **
  10  Prefactor     57.586        44.473       -.90945E-07    .39331E-04
  11  Prefactor     .10000E-03    19.707        .35701E-05** at limit **
  12  Prefactor     22.406        16.592        .77972E-06   -.34870E-03
  13  norm          .10000E-03    3.0140        .60987E-06** at limit **
  14  norm          .10000E-03    4.7483        .16457E-06** at limit **
  15  norm          9.8635        4.4612        .29023E-06   -.17284E-02
  16  norm          .10000E-03    3.0181        .59132E-06** at limit **
  17  norm          .10000E-03    1.6593        .19187E-06** at limit **
  18  Prefactor     13.469        4.8495       -.13448E-05   -.11311E-02
  19  Prefactor     .16542        273.94       -.36545E-04    .10183E-05
  20  Prefactor     .10000E-03    11.899       -.18083E-06** at limit **
  21  Prefactor     .10000E-03    22.398        .28663E-06** at limit **
  22  Prefactor     .10000E-03    43.361        .22372E-05** at limit **
  23  Prefactor     30.778        27.885       -.26507E-07    .30444E-04
  24  Prefactor     .10000E-03    8.0166        .17013E-06** at limit **
  25  Prefactor     .10000E-03    14.518       -.17242E-06** at limit **
  26  norm          2.5011        1.3416        .73918E-09    .13328E-03
  27  Prefactor     .10000E-03    1.4888        .16188E-06** at limit **
  28  norm          18.373        15.534       -.34679E-08    .24935E-04
  29  Normalizat    .66666        .16485       -.40435E-05   -.65726E-04
  30  Prefactor     1.4568        .20908        .26301E-05   -.60640E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.51413
  Prefactor  = 11.7721
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 3.27094
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 57.5863
  Prefactor  = 0.0001
  Prefactor  = 22.4056
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.86352
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4687
  Prefactor  = 0.165417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.7775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50105
  Prefactor  = 0.0001
  norm       = 18.3731
  Normalizat = 0.666664
  Prefactor  = 1.45684
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.243     FROM HESSE     STATUS=OK           588 CALLS     4041 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6792        .10061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5141        2.1147        .87636E-04   -1.5333    
   4  Prefactor     11.772        10.041        .58380E-03   -1.5022    
   5  Prefactor     .10000E-03    160.90        .38668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2709        395.35        .21514E-02   -1.5346    
   8  Prefactor     .10000E-03    2.5559        .12465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.5670        .32906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.586        44.483        .52863E-04   -1.4189    
  11  Prefactor     .10000E-03    19.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.406        16.538        .42314E-03   -1.4761    
  13  norm          .10000E-03    3.0596        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.7532        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.8635        4.4146        .10407E-03   -1.5080    
  16  norm          .10000E-03    3.0252        .13539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6799        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.469        5.0116        .88745E-04   -1.4974    
  19  Prefactor     .16542        19.131        .75256E-01   -1.5627    
  20  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    44.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.778        27.878        .72220E-04   -1.4598    
  24  Prefactor     .10000E-03    8.0241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.5011        1.3380        .65665E-04   -1.5392    
  27  Prefactor     .10000E-03    1.4954        .95331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          18.373        15.534        .93439E-04   -1.4850    
  29  Normalizat    .66666        .18923        .27404E-03   -1.0522    
  30  Prefactor     1.4568        .24145        .25391E-03   -.78756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38807e-09
Minuit parameter uncertainties:
  1  4.07711e-06
  2  0.000136801
  3  2.11477
  4  10.0428
  5  0.00145083
  6  5.9493e-06
  7  72.4152
  8  1.21229e-06
  9  9.97023e-05
  10  44.5089
  11  1.42861e-05
  12  16.5418
  13  2.91999e-06
  14  6.98447e-06
  15  4.41471
  16  3.10361e-05
  17  5.30186e-06
  18  5.0118
  19  3.55793
  20  2.18318e-05
  21  6.75086e-05
  22  0.000365068
  23  27.8894
  24  1.13456e-05
  25  2.84483e-05
  26  1.33803
  27  2.47566e-06
  28  15.5379
  29  0.189411
  30  0.241643
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.241e+01  1.654e+01  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.457e+00  2.416e-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:  6.667e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.06e-05

TS (Fixed Index): 2.68
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190929/likelihoodResults_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.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) = 6400.14522349
delta logL = 0.0978803761018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6400.13227176
delta logL = 0.110832105801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.825       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7740       1.0000          .0000       10.000    
     3 'Normalizat'    .65360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4697       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.

 FCN=   6400.132     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      278 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.818        23.595        .10402E-03   -.47825E-03
   2  Index         2.7745        .92426        .53571E-02   -.16098E-03
   3  Normalizat    .65358        .18606        .27651E-03    .38529E-03
   4  Prefactor     1.4697        .24300        .25299E-03    .25596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8184
  Index      = 2.77446
  Normalizat = 0.653585
  Prefactor  = 1.46971
 **********
 **   18 **HESSE 
 **********

 FCN=   6400.132     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.818        19.752        .41609E-05   -1.4938    
   2  Index         2.7745        .77462        .21428E-03   -.46130    
   3  Normalizat    .65358        .18569        .11060E-04   -1.0575    
   4  Prefactor     1.4697        .24249        .50597E-04   -.78392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65875e-10
Minuit parameter uncertainties:
  1  19.7606
  2  0.778541
  3  0.185872
  4  0.242679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190929': 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) = 6400.13227146
delta logL = 0.110832404853

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.482e+01  1.976e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.774e+00  7.785e-01  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.470e+00  2.427e-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:  6.536e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 196.008 37.071
Photon Index (Free Index): 2.77 +/- 0.78
Photon Flux (Free Index): 5.43e-08 +/- 4.03e-08
Energy Flux (Free Index): 1.24e-05 +/- 9.42e-06

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/190929/cmap_HighResolution_460166401_460425601_4FGL_J1304.0+3704_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='1.24e-05', photon_flux_error='3.39e-08', dlogl='1.11e-01', energy_flux='1.44e-05', photon_flux2='5.43e-08', job_status='DONE', time_completed='2021-09-06 20:06:01.286510', photon_index_error2='0.78', photon_index2='2.77', ts='2.68', fit_tolerance='1e-08', GAL='1.46', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.42e-06', EG='0.67', time_epoch_completed='1630983961.29', return_code='0', job_id='190929', GAL2='1.47', EG2='0.65', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.03e-08', ts2='2.93', photon_index='2.44' WHERE bin_id='852' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:06:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 190929: <4FGL_J1304.0+3704_daily_bin852> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin852> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:50:30 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:51:13 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:51:13 2021
Terminated at Mon Sep  6 20:06:01 2021
Results reported at Mon Sep  6 20:06:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin852 196.008 37.071 460166401 460425601 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 :                                   870.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            931 sec.

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

