/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 83 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin61
RA = 196.008, Dec = 37.071
tmin = 255139201, tmax = 255398401
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='183927', job_status='RUN', time_executed='2021-09-06 19:27:27.608536', time_epoch_executed='1630981647.61' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/183927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/183927/ft1_4FGL_J1304.0+3704_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/183927/ft2_4FGL_J1304.0+3704_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/183927/ft1_4FGL_J1304.0+3704_daily_bin61.fits outfile=/scratch/kocevski/183927/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin61.fits ra=196.008 dec=37.071 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.54
user 7.24
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/183927/ft1_filtered_4FGL_J1304.0+3704_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/183927/ft2_4FGL_J1304.0+3704_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/183927/ltcube_255139201_255398401_4FGL_J1304.0+3704_daily_bin61.fits outfile=/scratch/kocevski/183927/expmap_255139201_255398401_4FGL_J1304.0+3704_daily_bin61.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/183927/ltcube_255139201_255398401_4FGL_J1304.0+3704_daily_bin61.fits
.....................!
real 192.18
user 186.99
sys 4.69

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/183927/ft1_filtered_4FGL_J1304.0+3704_daily_bin61.fits scfile=/scratch/kocevski/183927/ft2_4FGL_J1304.0+3704_daily_bin61.fits outfile=/scratch/kocevski/183927/cmap_255139201_255398401_4FGL_J1304.0+3704_daily_bin61.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/183927/ft1_filtered_4FGL_J1304.0+3704_daily_bin61.fits scfile=/scratch/kocevski/183927/ft2_4FGL_J1304.0+3704_daily_bin61.fits outfile=/scratch/kocevski/183927/cmap_HighResolution_255139201_255398401_4FGL_J1304.0+3704_daily_bin61.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6913       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2804       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.867       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.322       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6697       1.0000         .10000E-03   10000.    
    14 'norm      '    .13465E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0799       1.0000         .10000E-03   10000.    
    16 'norm      '    .13226E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4658       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6128       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .17907E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .65177       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5938       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=   5019.104     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     3224 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8559        3.2256       -.14308E-06   -.27030E-03
   2  Prefactor     7.6934        1.0178        .11533E-06    .18068E-03
   3  Prefactor     1.2804        1.3478        .18885E-07    .10644E-04
   4  Prefactor     22.870        1.0134       -.73676E-07    .20936E-03
   5  Prefactor     25.525        1.0403        .17274E-06   -.46744E-03
   6  Prefactor     .10002E-03    6.4290       -.62724E-05** at limit **
   7  Prefactor     61.324        1.2053        .26654E-06   -.16153E-02
   8  Prefactor     .10000E-03    3.2835       -.93639E-07** at limit **
   9  norm          .10000E-03    1.7133        .14105E-06** at limit **
  10  Prefactor     62.075        5.3499       -.20724E-05    .12916E-01
  11  Prefactor     .10000E-03    3.3823       -.24503E-05** at limit **
  12  Prefactor     .10001E-03    3.4442       -.10807E-05** at limit **
  13  norm          4.6702        1.5436        .48832E-06   -.14732E-03
  14  norm          .10019E-03    5.0082        .99295E-05** at limit **
  15  norm          4.0870        3.6273       -.17057E-05   -.83348E-03
  16  norm          .10004E-03    6.5765        .31414E-05** at limit **
  17  norm          3.4648        1.7380       -.10142E-05   -.24090E-02
  18  Prefactor     9.6138        3.8909        .24530E-05    .25150E-02
  19  Prefactor     .10006E-03    4.8024        .49081E-05** at limit **
  20  Prefactor     .10003E-03    59.543       -.12658E-04** at limit **
  21  Prefactor     .10001E-03    6.5799       -.78400E-05** at limit **
  22  Prefactor     .10003E-03    6.4414       -.50884E-05** at limit **
  23  Prefactor     .10004E-03    6.5362        .28291E-05** at limit **
  24  Prefactor     .10006E-03    7.1901       -.34862E-05** at limit **
  25  Prefactor     .10000E-03    21.557        .19100E-04** at limit **
  26  norm          .24041E-01    5.6345       -.11204E-04   -.17694E-02
  27  Prefactor     .10000E-03    1.8940        .47986E-07** at limit **
  28  norm          .10000E-03    5.5439        .15304E-06** at limit **
  29  Normalizat    .65175        .22279       -.13375E-05    .12901E-04
  30  Prefactor     1.5936        .29071        .13017E-05    .11449E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.85592
  Prefactor  = 7.69344
  Prefactor  = 1.28037
  Prefactor  = 22.8697
  Prefactor  = 25.5252
  Prefactor  = 0.000100019
  Prefactor  = 61.3244
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.0746
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  norm       = 4.6702
  norm       = 0.000100195
  norm       = 4.08696
  norm       = 0.000100038
  norm       = 3.46479
  Prefactor  = 9.61383
  Prefactor  = 0.000100057
  Prefactor  = 0.000100028
  Prefactor  = 0.000100005
  Prefactor  = 0.000100031
  Prefactor  = 0.000100041
  Prefactor  = 0.000100058
  Prefactor  = 0.000100004
  norm       = 0.0240407
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.651753
  Prefactor  = 1.59364
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.104     FROM HESSE     STATUS=OK           656 CALLS     3880 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8559        3.2268        .45637E-02   -1.5267    
   2  Prefactor     7.6934        9.6728        .36149E-02   -1.5153    
   3  Prefactor     1.2804        1.3302        .98072E-02   -1.5482    
   4  Prefactor     22.870        13.922        .20941E-02   -1.4751    
   5  Prefactor     25.525        32.811        .19823E-02   -1.4697    
   6  Prefactor     .10002E-03    21.844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.324        72.768        .12810E-02   -1.4140    
   8  Prefactor     .10000E-03    3.2603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.075        64.336        .12731E-02   -1.4131    
  11  Prefactor     .10000E-03    10.538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    10.698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6702        5.2318        .46558E-02   -1.5276    
  14  norm          .10019E-03    47.107        .10277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0870        4.3076        .49900E-02   -1.5304    
  16  norm          .10004E-03    7.5315        .59447E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4648        4.9465        .54306E-02   -1.5336    
  18  Prefactor     9.6138        4.2028        .32313E-02   -1.5088    
  19  Prefactor     .10006E-03    11.428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    61.038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    21.370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    22.332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    15.449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10006E-03    9.4833        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .24041E-01    .71220        .32555E-01   -1.5677    
  27  Prefactor     .10000E-03    1.8874        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.5374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .65175        .18912        .65162E-01   -1.0583    
  30  Prefactor     1.5936        .24259        .57209E-01   -.74950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18718e-06
Minuit parameter uncertainties:
  1  3.22693
  2  9.67473
  3  1.33025
  4  13.9243
  5  32.8342
  6  0.00129592
  7  72.8742
  8  4.84565e-06
  9  7.54874e-07
  10  64.408
  11  0.000174489
  12  0.000525975
  13  5.23231
  14  0.00605943
  15  4.30794
  16  0.00107381
  17  4.94709
  18  4.20297
  19  0.00161685
  20  0.00263054
  21  0.000654154
  22  0.00166651
  23  0.00159222
  24  0.00147979
  25  0.000704088
  26  0.261159
  27  1.94215e-07
  28  9.29574e-06
  29  0.189311
  30  0.242772
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.260e-04  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.594e+00  2.428e-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.518e-01  1.893e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/183927/likelihoodResults_255139201_255398401_4FGL_J1304.0+3704_daily_bin61.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) = 5019.10452249
delta logL = -0.000443458899099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5019.10407962
delta logL = -5.84669578529e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4382       1.0000          .0000       10.000    
     3 'Normalizat'    .65183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5935       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=   5019.104     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.361        .90712E-02** at limit **
   2  Index         2.4407        5.5694        .50000       -.20037E-05
   3  Normalizat    .65175        .59881E-02    .65162E-01    .22809E-04
   4  Prefactor     1.5936        .78501E-02    .57209E-01    .17978E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44068
  Normalizat = 0.651753
  Prefactor  = 1.59364
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.104     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4407        7.0919        .50000       -.53735    
   3  Normalizat    .65175        .16171E-01    .28833E-03   -1.0583    
   4  Prefactor     1.5936        .21230E-01    .25294E-03   -.74950    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.70862e-08
Minuit parameter uncertainties:
  1  3.14206e-05
  2  509.049
  3  0.0161712
  4  0.0212302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/183927': 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) = 5019.10407903
delta logL = 2.63480615104e-09

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.142e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.441e+00  5.090e+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.594e+00  2.123e-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:  6.518e-01  1.617e-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/183927/cmap_HighResolution_255139201_255398401_4FGL_J1304.0+3704_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-06 19:39:46.303085', job_id='183927', GAL2='1.59', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630982386.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.59', dlogl='2.63e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='61' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 183927: <4FGL_J1304.0+3704_daily_bin61> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin61> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:25:39 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:25:53 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:25:53 2021
Terminated at Mon Sep  6 19:39:47 2021
Results reported at Mon Sep  6 19:39:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin61 196.008 37.071 255139201 255398401 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 :                                   735.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            848 sec.

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

