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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin658
RA = 196.008, Dec = 37.071
tmin = 409881601, tmax = 410140801
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='189587', job_status='RUN', time_executed='2021-09-06 19:49:42.154337', time_epoch_executed='1630982982.15' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189587

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189587/ft1_4FGL_J1304.0+3704_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189587/ft2_4FGL_J1304.0+3704_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189587/ft1_4FGL_J1304.0+3704_daily_bin658.fits outfile=/scratch/kocevski/189587/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin658.fits ra=196.008 dec=37.071 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.41
user 6.08
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189587/ft2_4FGL_J1304.0+3704_daily_bin658.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/189587/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/189587/ft1_filtered_4FGL_J1304.0+3704_daily_bin658.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.54
user 0.37
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189587/ft1_filtered_4FGL_J1304.0+3704_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/189587/ft2_4FGL_J1304.0+3704_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/189587/ltcube_409881601_410140801_4FGL_J1304.0+3704_daily_bin658.fits outfile=/scratch/kocevski/189587/expmap_409881601_410140801_4FGL_J1304.0+3704_daily_bin658.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/189587/ltcube_409881601_410140801_4FGL_J1304.0+3704_daily_bin658.fits
.....................!
real 193.46
user 186.23
sys 5.07

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/189587/ft1_filtered_4FGL_J1304.0+3704_daily_bin658.fits scfile=/scratch/kocevski/189587/ft2_4FGL_J1304.0+3704_daily_bin658.fits outfile=/scratch/kocevski/189587/cmap_409881601_410140801_4FGL_J1304.0+3704_daily_bin658.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189587/ft1_filtered_4FGL_J1304.0+3704_daily_bin658.fits scfile=/scratch/kocevski/189587/ft2_4FGL_J1304.0+3704_daily_bin658.fits outfile=/scratch/kocevski/189587/cmap_HighResolution_409881601_410140801_4FGL_J1304.0+3704_daily_bin658.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.384       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17611E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.488       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42529E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .18390E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.789       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7551       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6073       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.916       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.595       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    64.472       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.100       1.0000         .10000E-03   10000.    
    26 'norm      '    13.438       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    30.992       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .72001       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2062       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=   4088.326     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     3863 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.384        5.5900        .93966E-07    .24906E-03
   2  Prefactor     15.262        1.2888        .84412E-06    .11242E-03
   3  Prefactor     .10013E-03    15.444        .24690E-04** at limit **
   4  Prefactor     20.489        1.2751        .23938E-06    .12464E-02
   5  Prefactor     .14596E-03    1010.6        .11121E-03** at limit **
   6  Prefactor     .10000E-03    13.985       -.79109E-07** at limit **
   7  Prefactor     74.021        13.407        .23283E-05    .29084E-03
   8  Prefactor     .10000E-03    3.7879        .63980E-06** at limit **
   9  norm          .10000E-03    3.5920       -.28432E-05** at limit **
  10  Prefactor     .10014E-03    69.400       -.43542E-05** at limit **
  11  Prefactor     3.3393        29.545       -.47502E-04    .14931E-02
  12  Prefactor     .10000E-03    5.7094        .26048E-05** at limit **
  13  norm          .10000E-03    1.7589       -.40529E-05** at limit **
  14  norm          .10000E-03    8.1533        .59997E-05** at limit **
  15  norm          .10000E-03    9.1433        .53137E-05** at limit **
  16  norm          14.812        2.5800        .25831E-05   -.48449E-03
  17  norm          1.7556        3.9392        .69962E-06   -.18590E-04
  18  Prefactor     .10000E-03    3.5065        .11929E-05** at limit **
  19  Prefactor     4.6250        10.395        .12607E-04    .60244E-02
  20  Prefactor     .10010E-03    15.212       -.22200E-04** at limit **
  21  Prefactor     29.931        2.7065       -.19258E-05    .24468E-02
  22  Prefactor     11.593        1.5352        .64708E-06    .11623E-02
  23  Prefactor     .10000E-03    29.131       -.14073E-04** at limit **
  24  Prefactor     64.534        11.801       -.65203E-05    .12197E-01
  25  Prefactor     15.099        1.0339        .28964E-06    .61786E-04
  26  norm          13.439        3.3546        .48295E-06    .10523E-03
  27  Prefactor     .10000E-03    2.4472       -.39566E-05** at limit **
  28  norm          30.985        2.3955        .18418E-05   -.10137E-02
  29  Normalizat    .72041        .22534        .10393E-04   -.15188E-03
  30  Prefactor     1.2057        .29209       -.14696E-04   -.13738E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.384
  Prefactor  = 15.2623
  Prefactor  = 0.000100132
  Prefactor  = 20.4893
  Prefactor  = 0.000145964
  Prefactor  = 0.000100002
  Prefactor  = 74.0209
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100137
  Prefactor  = 3.33935
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.8116
  norm       = 1.75563
  Prefactor  = 0.0001
  Prefactor  = 4.62499
  Prefactor  = 0.000100102
  Prefactor  = 29.9309
  Prefactor  = 11.5927
  Prefactor  = 0.000100004
  Prefactor  = 64.5341
  Prefactor  = 15.0988
  norm       = 13.4387
  Prefactor  = 0.0001
  norm       = 30.9851
  Normalizat = 0.720412
  Prefactor  = 1.20575
 **********
 **   18 **HESSE 
 **********

 FCN=   4088.326     FROM HESSE     STATUS=OK           670 CALLS     4533 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.384        6.2220        .29684E-02   -1.5033    
   2  Prefactor     15.262        9.4615        .25632E-02   -1.4926    
   3  Prefactor     .10013E-03    2.2849        .55226E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.489        13.620        .22122E-02   -1.4802    
   5  Prefactor     .14596E-03    32.181        .11539       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     74.021        69.010        .11660E-02   -1.3985    
   8  Prefactor     .10000E-03    3.7397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.5718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10014E-03    69.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3393        51.521        .55735E-02   -1.5342    
  12  Prefactor     .10000E-03    5.7035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.7576        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.1484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2710        .58195E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.812        10.059        .26038E-02   -1.4938    
  17  norm          1.7556        3.9818        .79098E-02   -1.5443    
  18  Prefactor     .10000E-03    3.4386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6250        15.754        .46880E-02   -1.5278    
  20  Prefactor     .10010E-03    16.362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.931        43.154        .18313E-02   -1.4613    
  22  Prefactor     11.593        14.053        .29412E-02   -1.5027    
  23  Prefactor     .10000E-03    29.059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     64.534        41.663        .12495E-02   -1.4100    
  25  Prefactor     15.099        156.20        .25768E-02   -1.4931    
  26  norm          13.439        3.3650        .27316E-02   -1.4975    
  27  Prefactor     .10000E-03    2.4392        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          30.985        32.800        .17993E-02   -1.4594    
  29  Normalizat    .72041        .20641        .42557E-01   -1.0309    
  30  Prefactor     1.2057        .24944        .60020E-01   -.86155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82703e-07
Minuit parameter uncertainties:
  1  6.22234
  2  9.46239
  3  0.00109763
  4  13.6222
  5  0.0769612
  6  0.000339188
  7  69.0847
  8  3.41823e-06
  9  6.37696e-06
  10  0.00617215
  11  26.2598
  12  3.26877e-06
  13  1.50293e-06
  14  2.44479e-07
  15  2.53986e-06
  16  10.0598
  17  3.98235
  18  2.25219e-06
  19  15.7681
  20  0.00258513
  21  43.1991
  22  14.0567
  23  0.000697805
  24  41.682
  25  97.4548
  26  3.36509
  27  7.41573e-06
  28  32.8195
  29  0.206636
  30  0.249685
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.269e-06  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.206e+00  2.497e-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.204e-01  2.066e-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: 5.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189587/likelihoodResults_409881601_410140801_4FGL_J1304.0+3704_daily_bin658.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) = 4088.32695752
delta logL = -0.000825653545689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4088.32613201
delta logL = -1.45216290548e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4156       1.0000          .0000       10.000    
     3 'Normalizat'    .72051       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2056       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=   4088.326     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.335        .15157E-01** at limit **
   2  Index         1.7915        5.2048        .50000        .40038E-06
   3  Normalizat    .72041        .89522E-02    .25783E-03   -.73327E-04
   4  Prefactor     1.2057        .11687E-01    .26543E-03   -.69602E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79149
  Normalizat = 0.720413
  Prefactor  = 1.20575
 **********
 **   18 **HESSE 
 **********

 FCN=   4088.326     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    248.49        .17332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7915        6.5438        .50000       -.69672    
   3  Normalizat    .72041        .27961E-01    .10313E-04   -1.0309    
   4  Prefactor     1.2057        .36501E-01    .10617E-04   -.86155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.87744e-09
Minuit parameter uncertainties:
  1  0.000249425
  2  948.97
  3  0.0279611
  4  0.0365018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189587': 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) = 4088.3261296
delta logL = 2.26960264627e-06

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.494e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.791e+00  9.490e+02  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.206e+00  3.650e-02  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.204e-01  2.796e-02  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/189587/cmap_HighResolution_409881601_410140801_4FGL_J1304.0+3704_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='5.89e-08', time_completed='2021-09-06 20:01:39.345024', job_id='189587', GAL2='1.21', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630983699.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='658' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 189587: <4FGL_J1304.0+3704_daily_bin658> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin658> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:42 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:46:27 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:46:27 2021
Terminated at Mon Sep  6 20:01:40 2021
Results reported at Mon Sep  6 20:01:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin658 196.008 37.071 409881601 410140801 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            958 sec.

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

