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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin488
RA = 196.008, Dec = 37.071
tmin = 365817601, tmax = 366076801
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='189341', job_status='RUN', time_executed='2021-09-06 19:49:25.320896', time_epoch_executed='1630982965.32' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189341/ft1_4FGL_J1304.0+3704_daily_bin488.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189341/ft2_4FGL_J1304.0+3704_daily_bin488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189341/ft1_4FGL_J1304.0+3704_daily_bin488.fits outfile=/scratch/kocevski/189341/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin488.fits ra=196.008 dec=37.071 rad=12.0 tmin=365817601.0 tmax=366076801.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.04
user 2.73
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189341/ft1_filtered_4FGL_J1304.0+3704_daily_bin488.fits evtable="EVENTS" scfile=/scratch/kocevski/189341/ft2_4FGL_J1304.0+3704_daily_bin488.fits sctable="SC_DATA" expcube=/scratch/kocevski/189341/ltcube_365817601_366076801_4FGL_J1304.0+3704_daily_bin488.fits outfile=/scratch/kocevski/189341/expmap_365817601_366076801_4FGL_J1304.0+3704_daily_bin488.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/189341/ltcube_365817601_366076801_4FGL_J1304.0+3704_daily_bin488.fits
.....................!
real 154.10
user 149.66
sys 4.13

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/189341/ft1_filtered_4FGL_J1304.0+3704_daily_bin488.fits scfile=/scratch/kocevski/189341/ft2_4FGL_J1304.0+3704_daily_bin488.fits outfile=/scratch/kocevski/189341/cmap_365817601_366076801_4FGL_J1304.0+3704_daily_bin488.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.48
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189341/ft1_filtered_4FGL_J1304.0+3704_daily_bin488.fits scfile=/scratch/kocevski/189341/ft2_4FGL_J1304.0+3704_daily_bin488.fits outfile=/scratch/kocevski/189341/cmap_HighResolution_365817601_366076801_4FGL_J1304.0+3704_daily_bin488.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.50
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5425       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4575       1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.27       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11087E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .97520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12132E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.377       1.0000         .10000E-03   10000.    
    15 'norm      '    .14089E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8677       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1680       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.260       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.514       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.940       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.587       1.0000         .10000E-03   10000.    
    26 'norm      '    15.977       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7582       1.0000         .10000E-03   10000.    
    28 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2493       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76229       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=   6092.451     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3976 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5424        2.4437       -.16829E-07    .67171E-05
   2  Prefactor     .10000E-03    2.5645       -.81868E-07** at limit **
   3  Prefactor     .10000E-03    .78362       -.38851E-07** at limit **
   4  Prefactor     13.177        8.7801       -.10752E-07   -.19123E-05
   5  Prefactor     .10000E-03    14.952       -.26733E-06** at limit **
   6  Prefactor     3.3992        58.917       -.32620E-05   -.10203E-04
   7  Prefactor     109.24        91.919       -.40045E-06   -.32804E-05
   8  Prefactor     .10000E-03    5.9305        .14078E-05** at limit **
   9  norm          .97766        4.5765        .61657E-06    .83478E-05
  10  Prefactor     .10000E-03    15.444       -.61766E-07** at limit **
  11  Prefactor     .10000E-03    21.834       -.44991E-07** at limit **
  12  Prefactor     .10000E-03    43.587        .11860E-05** at limit **
  13  norm          .10000E-03    4.8405       -.38415E-07** at limit **
  14  norm          20.376        13.803       -.10087E-07   -.41445E-05
  15  norm          .10000E-03    2.4604       -.33302E-06** at limit **
  16  norm          3.8744        3.9489        .47923E-06    .13035E-03
  17  norm          .10000E-03    2.4092       -.14142E-06** at limit **
  18  Prefactor     .10000E-03    1.7995       -.23018E-07** at limit **
  19  Prefactor     1.1711        35.022        .47970E-05   -.66222E-05
  20  Prefactor     .10000E-03    17.904        .40788E-06** at limit **
  21  Prefactor     .10000E-03    33.032       -.62681E-07** at limit **
  22  Prefactor     19.264        24.758       -.43099E-07    .39089E-05
  23  Prefactor     41.501        35.530       -.30671E-06    .58745E-05
  24  Prefactor     30.938        28.392       -.10789E-07    .26217E-05
  25  Prefactor     26.510        89.689       -.10398E-05    .10277E-04
  26  norm          15.976        2.8370        .86028E-08   -.39146E-04
  27  Prefactor     4.7576        5.2580       -.27881E-08   -.10037E-05
  28  norm          .10000E-03    24.660        .41485E-06** at limit **
  29  Normalizat    1.2496        .18786       -.77549E-06    .10602E-03
  30  Prefactor     .76200        .22599        .16954E-05   -.50789E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1771
  Prefactor  = 0.0001
  Prefactor  = 3.39916
  Prefactor  = 109.243
  Prefactor  = 0.0001
  norm       = 0.977659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.3756
  norm       = 0.000100001
  norm       = 3.87441
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.264
  Prefactor  = 41.5011
  Prefactor  = 30.9376
  Prefactor  = 26.5101
  norm       = 15.9763
  Prefactor  = 4.75763
  norm       = 0.0001
  Normalizat = 1.24958
  Prefactor  = 0.761996
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.451     FROM HESSE     STATUS=OK           584 CALLS     4560 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5424        2.4119        .14918E-03   -1.5460    
   2  Prefactor     .10000E-03    2.5711        .12207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .78815        .67414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.177        8.7790        .55172E-03   -1.4982    
   5  Prefactor     .10000E-03    15.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3992        60.036        .21749E-03   -1.5339    
   7  Prefactor     109.24        90.743        .19239E-03   -1.3614    
   8  Prefactor     .10000E-03    5.9625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .97766        4.3900        .30362E-03   -1.5510    
  10  Prefactor     .10000E-03    15.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9469        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.376        13.804        .88728E-04   -1.4805    
  15  norm          .10000E-03    4.4162        .22997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8744        3.8828        .14950E-03   -1.5314    
  17  norm          .10000E-03    2.4848        .23661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8309        .10229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1711        35.104        .21253E-02   -1.5492    
  20  Prefactor     .10000E-03    17.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.264        24.728        .91263E-04   -1.4830    
  23  Prefactor     41.501        35.552        .62216E-04   -1.4419    
  24  Prefactor     30.938        28.370        .72033E-04   -1.4595    
  25  Prefactor     26.510        89.927        .77692E-04   -1.4678    
  26  norm          15.976        2.8372        .53298E-04   -1.4908    
  27  Prefactor     4.7576        5.2501        .18132E-03   -1.5272    
  28  norm          .10000E-03    24.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2496        .22078        .22070E-03   -.85084    
  30  Prefactor     .76200        .25871        .33754E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35051e-09
Minuit parameter uncertainties:
  1  2.41202
  2  6.57934e-07
  3  3.02001e-07
  4  8.77985
  5  1.03299e-05
  6  28.6039
  7  90.8589
  8  1.07083e-05
  9  4.14369
  10  2.88246e-06
  11  2.34676e-05
  12  7.82508e-05
  13  6.18037e-06
  14  13.8066
  15  0.000102376
  16  3.88304
  17  2.0008e-06
  18  1.19522e-06
  19  12.8314
  20  2.39149e-05
  21  1.29437e-05
  22  24.7409
  23  35.5698
  24  28.3824
  25  90.3916
  26  2.83719
  27  5.25056
  28  1.42499e-05
  29  0.220946
  30  0.259119
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.825e-05  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:  7.620e-01  2.591e-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:  1.250e+00  2.209e-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: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189341/likelihoodResults_365817601_366076801_4FGL_J1304.0+3704_daily_bin488.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) = 6092.45094913
delta logL = -0.000107091354039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6092.45084258
delta logL = -5.47461240785e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    1.2496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76201       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=   6092.451     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      257 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    11.094        .90712E-01** at limit **
   2  Index         2.4906        3.3638        .50000       -.43221E-04
   3  Normalizat    1.2496        .37990E-02    .49920E-01    .32475E-03
   4  Prefactor     .76199        .46780E-02    .76254E-01   -.15333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100495
  Index      = 2.49061
  Normalizat = 1.24958
  Prefactor  = 0.761993
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.451     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10050E-03    1315.7        .57149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4906        8.7542        .50000       -.52577    
   3  Normalizat    1.2496        .18252E-01    .22070E-03   -.85084    
   4  Prefactor     .76199        .22428E-01    .33754E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49779e-07
Minuit parameter uncertainties:
  1  0.0522563
  2  18.1914
  3  0.0182516
  4  0.0224286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189341': 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) = 6092.45084153
delta logL = 5.11114194524e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.005e-04  5.226e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.491e+00  1.819e+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:  7.620e-01  2.243e-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:  1.250e+00  1.825e-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/189341/cmap_HighResolution_365817601_366076801_4FGL_J1304.0+3704_daily_bin488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2021-09-06 20:01:33.046684', job_id='189341', GAL2='0.76', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630983693.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='488' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 189341: <4FGL_J1304.0+3704_daily_bin488> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin488 196.008 37.071 365817601 366076801 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            969 sec.

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

