/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 140 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_bin651
RA = 196.008, Dec = 37.071
tmin = 408067201, tmax = 408326401
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='189576', job_status='RUN', time_executed='2021-09-06 19:48:52.744773', time_epoch_executed='1630982932.74' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189576/ft1_4FGL_J1304.0+3704_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189576/ft2_4FGL_J1304.0+3704_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189576/ft1_4FGL_J1304.0+3704_daily_bin651.fits outfile=/scratch/kocevski/189576/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin651.fits ra=196.008 dec=37.071 rad=12.0 tmin=408067201.0 tmax=408326401.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.87
user 3.65
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189576/ft1_filtered_4FGL_J1304.0+3704_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/189576/ft2_4FGL_J1304.0+3704_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/189576/ltcube_408067201_408326401_4FGL_J1304.0+3704_daily_bin651.fits outfile=/scratch/kocevski/189576/expmap_408067201_408326401_4FGL_J1304.0+3704_daily_bin651.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/189576/ltcube_408067201_408326401_4FGL_J1304.0+3704_daily_bin651.fits
.....................!
real 191.23
user 185.94
sys 4.88

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/189576/ft1_filtered_4FGL_J1304.0+3704_daily_bin651.fits scfile=/scratch/kocevski/189576/ft2_4FGL_J1304.0+3704_daily_bin651.fits outfile=/scratch/kocevski/189576/cmap_408067201_408326401_4FGL_J1304.0+3704_daily_bin651.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/189576/ft1_filtered_4FGL_J1304.0+3704_daily_bin651.fits scfile=/scratch/kocevski/189576/ft2_4FGL_J1304.0+3704_daily_bin651.fits outfile=/scratch/kocevski/189576/cmap_HighResolution_408067201_408326401_4FGL_J1304.0+3704_daily_bin651.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0620       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9539       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    361.83       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10204E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.236       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    26.818       1.0000         .10000E-03   10000.    
    15 'norm      '    .34395       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.568       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    24.697       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'    1.4350       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .45465       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=   2660.779     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4664 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0620        3.5645       -.35353E-06   -.35226E-03
   2  Prefactor     .10000E-03    11.370        .29861E-06** at limit **
   3  Prefactor     2.9538        2.7909        .20061E-06    .13708E-04
   4  Prefactor     5.7745        14.015       -.99477E-06   -.56180E-04
   5  Prefactor     361.92        363.86        .46798E-04    .22797E-05
   6  Prefactor     .10000E-03    12.940       -.51726E-06** at limit **
   7  Prefactor     .10000E-03    58.486        .37464E-04** at limit **
   8  Prefactor     .10000E-03    4.7851       -.41934E-07** at limit **
   9  norm          .10000E-03    7.0372       -.14306E-05** at limit **
  10  Prefactor     65.431        200.78       -.11599E-04    .25416E-05
  11  Prefactor     54.251        58.665        .68900E-05    .39608E-03
  12  Prefactor     .10000E-03    18.263       -.52289E-05** at limit **
  13  norm          .10000E-03    3.1557        .17097E-06** at limit **
  14  norm          26.826        52.740        .28817E-05    .21018E-05
  15  norm          .33538        5.7764       -.16854E-05    .28810E-03
  16  norm          .10000E-03    3.5895       -.32609E-07** at limit **
  17  norm          .10000E-03    15.571        .12489E-05** at limit **
  18  Prefactor     .10000E-03    1.9355       -.31108E-07** at limit **
  19  Prefactor     .10000E-03    10.742        .27894E-06** at limit **
  20  Prefactor     .10000E-03    292.97        .57692E-04** at limit **
  21  Prefactor     .10000E-03    52.147       -.22541E-04** at limit **
  22  Prefactor     17.565        29.530        .72745E-06   -.10778E-03
  23  Prefactor     .10000E-03    404.13       -.11646E-03** at limit **
  24  Prefactor     .10000E-03    154.63        .28619E-04** at limit **
  25  Prefactor     .10000E-03    85.454       -.32070E-04** at limit **
  26  norm          24.696        10.385       -.51559E-07    .91209E-04
  27  Prefactor     .10000E-03    5.3574        .20643E-07** at limit **
  28  norm          .10000E-03    19.019        .47817E-05** at limit **
  29  Normalizat    1.4351        .29431       -.13762E-05    .33077E-03
  30  Prefactor     .45453        .31613       -.94247E-06    .69382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.06195
  Prefactor  = 0.0001
  Prefactor  = 2.95383
  Prefactor  = 5.77453
  Prefactor  = 361.923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 65.4313
  Prefactor  = 54.2513
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.8259
  norm       = 0.335377
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.6961
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.4351
  Prefactor  = 0.454534
 **********
 **   18 **HESSE 
 **********

 FCN=   2660.779     FROM HESSE     STATUS=OK           576 CALLS     5240 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0620        3.5496        .15407E-03   -1.5502    
   2  Prefactor     .10000E-03    11.494        .16983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9538        2.8578        .72296E-04   -1.5364    
   4  Prefactor     5.7745        13.970        .16712E-03   -1.5227    
   5  Prefactor     361.92        363.30        .10710E-03   -1.1880    
   6  Prefactor     .10000E-03    12.942        .18126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    58.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7928        .11019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.574        .23759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     65.431        201.19        .49611E-04   -1.4088    
  11  Prefactor     54.251        57.948        .54465E-04   -1.4234    
  12  Prefactor     .10000E-03    18.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1592        .89481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.826        52.844        .77358E-04   -1.4672    
  15  norm          .33538        35.727        .19952E-02   -1.5592    
  16  norm          .10000E-03    3.5927        .95387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9404        .70041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.765        .16507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    292.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    52.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.565        29.582        .95555E-04   -1.4870    
  23  Prefactor     .10000E-03    403.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    156.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    85.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          24.696        10.382        .80605E-04   -1.4714    
  27  Prefactor     .10000E-03    5.3906        .11653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    19.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4351        .34147        .21369E-03   -.79619    
  30  Prefactor     .45453        .35475        .39969E-03   -1.1411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57918e-09
Minuit parameter uncertainties:
  1  3.55032
  2  1.74778e-05
  3  2.8579
  4  13.9775
  5  365.63
  6  4.24579e-06
  7  1.48944e-05
  8  8.53458e-06
  9  0.000296019
  10  203.339
  11  58.0084
  12  3.03917e-05
  13  4.1497e-06
  14  52.9368
  15  6.92624
  16  2.15423e-06
  17  3.17914e-05
  18  7.67526e-07
  19  1.10383e-05
  20  0.000240515
  21  2.77343e-05
  22  29.6063
  23  0.000267801
  24  0.000513892
  25  4.24331e-05
  26  10.3829
  27  4.84234e-06
  28  4.74301e-06
  29  0.342011
  30  0.356483
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.039e-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:  4.545e-01  3.565e-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.435e+00  3.420e-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: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189576/likelihoodResults_408067201_408326401_4FGL_J1304.0+3704_daily_bin651.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) = 2660.77900297
delta logL = -0.000259860677943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2660.77874322
delta logL = -1.09562279249e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3384       1.0000          .0000       10.000    
     3 'Normalizat'    1.4351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45456       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=   2660.779     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1737.4        .90712E-02** at limit **
   2  Index         2.3466        8.7881        .50000       -.41395E-05
   3  Normalizat    1.4351        .78467E-01    .48341E-01   -.17215E-04
   4  Prefactor     .45454        .87230E-01    .90177E-01    .94013E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.34661
  Normalizat = 1.43509
  Prefactor  = 0.454539
 **********
 **   18 **HESSE 
 **********

 FCN=   2660.779     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    170.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3466        7.6086        .50000       -.55940    
   3  Normalizat    1.4351        .30742        .21369E-03   -.79619    
   4  Prefactor     .45454        .33990        .39969E-03   -1.1411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8538e-11
Minuit parameter uncertainties:
  1  0.000399594
  2  13.2247
  3  0.30782
  4  0.341424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189576': 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) = 2660.7787432
delta logL = -9.25292624743e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.996e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.347e+00  1.322e+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:  4.545e-01  3.414e-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.435e+00  3.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.008 37.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/189576/cmap_HighResolution_408067201_408326401_4FGL_J1304.0+3704_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-06 19:58:29.944419', job_id='189576', GAL2='0.45', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630983509.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='-9.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='651' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:58:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 189576: <4FGL_J1304.0+3704_daily_bin651> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin651 196.008 37.071 408067201 408326401 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 :                                   575.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            773 sec.

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

