/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 121 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin129
RA = 196.008, Dec = 37.071
tmin = 272764801, tmax = 273024001
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='184021', job_status='RUN', time_executed='2021-09-06 19:28:17.590541', time_epoch_executed='1630981697.59' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/184021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/184021/ft1_4FGL_J1304.0+3704_daily_bin129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/184021/ft2_4FGL_J1304.0+3704_daily_bin129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/184021/ft1_4FGL_J1304.0+3704_daily_bin129.fits outfile=/scratch/kocevski/184021/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin129.fits ra=196.008 dec=37.071 rad=12.0 tmin=272764801.0 tmax=273024001.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 1.76
user 1.58
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/184021/ft2_4FGL_J1304.0+3704_daily_bin129.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/184021/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin129.fits evtable="EVENTS" outfile="/scratch/kocevski/184021/ft1_filtered_4FGL_J1304.0+3704_daily_bin129.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/184021/ft1_filtered_4FGL_J1304.0+3704_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/184021/ft2_4FGL_J1304.0+3704_daily_bin129.fits sctable="SC_DATA" expcube=/scratch/kocevski/184021/ltcube_272764801_273024001_4FGL_J1304.0+3704_daily_bin129.fits outfile=/scratch/kocevski/184021/expmap_272764801_273024001_4FGL_J1304.0+3704_daily_bin129.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/184021/ltcube_272764801_273024001_4FGL_J1304.0+3704_daily_bin129.fits
.....................!
real 191.80
user 186.55
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/184021/ft1_filtered_4FGL_J1304.0+3704_daily_bin129.fits scfile=/scratch/kocevski/184021/ft2_4FGL_J1304.0+3704_daily_bin129.fits outfile=/scratch/kocevski/184021/cmap_272764801_273024001_4FGL_J1304.0+3704_daily_bin129.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/184021/ft1_filtered_4FGL_J1304.0+3704_daily_bin129.fits scfile=/scratch/kocevski/184021/ft2_4FGL_J1304.0+3704_daily_bin129.fits outfile=/scratch/kocevski/184021/cmap_HighResolution_272764801_273024001_4FGL_J1304.0+3704_daily_bin129.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/184021/ft1_filtered_4FGL_J1304.0+3704_daily_bin129.fits evtable="EVENTS" scfile=/scratch/kocevski/184021/ft2_4FGL_J1304.0+3704_daily_bin129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/184021/Model_4FGL_J1304.0+3704_daily_bin129.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/184021/ft1_filtered_4FGL_J1304.0+3704_daily_bin129.fits.....................!
real 47.31
user 46.00
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.086       1.0000         .10000E-03   10000.    
     7 'Prefactor '    171.16       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.209       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74533       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6245       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6786       1.0000         .10000E-03   10000.    
    16 'norm      '    .19598E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1758       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3105       1.0000         .10000E-03   10000.    
    24 'Prefactor '    31.142       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.1568       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.8372       1.0000         .10000E-03   10000.    
    28 'norm      '    11.314       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0706       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69092       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=   5483.627     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3932 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2379        3.2378       -.10841E-06   -.78961E-04
   2  Prefactor     .10000E-03    3.3581        .34789E-07** at limit **
   3  Prefactor     1.5461        1.9985        .90480E-07   -.13256E-04
   4  Prefactor     15.701        10.990        .11470E-07   -.12013E-04
   5  Prefactor     .10000E-03    45.763        .35763E-06** at limit **
   6  Prefactor     25.086        19.266       -.50972E-07    .11932E-04
   7  Prefactor     171.13        87.430       -.26543E-05   -.17997E-03
   8  Prefactor     .10000E-03    7.7271        .41064E-08** at limit **
   9  norm          .10000E-03    1.7417       -.13405E-06** at limit **
  10  Prefactor     35.855        57.606       -.47861E-05   -.12828E-03
  11  Prefactor     26.193        24.272       -.26128E-06   -.20856E-04
  12  Prefactor     .73492        11.202       -.19597E-06    .28554E-04
  13  norm          .10000E-03    3.0054       -.25049E-07** at limit **
  14  norm          4.6236        9.7638        .38275E-05   -.27100E-03
  15  norm          7.6851        4.7307        .14341E-06   -.48504E-05
  16  norm          .10005E-03    6.4189       -.33363E-06** at limit **
  17  norm          1.7649        2.1705       -.85627E-08    .16568E-04
  18  Prefactor     4.1755        3.0899       -.39799E-07    .90011E-04
  19  Prefactor     .10000E-03    6.0523       -.39877E-07** at limit **
  20  Prefactor     .10000E-03    10.290       -.47832E-07** at limit **
  21  Prefactor     .10000E-03    22.143       -.22544E-05** at limit **
  22  Prefactor     9.2128        19.878        .24765E-05   -.98021E-04
  23  Prefactor     3.3119        29.905        .24873E-06   -.91476E-05
  24  Prefactor     31.143        24.820       -.51501E-06    .16205E-04
  25  Prefactor     .10000E-03    21.500        .21852E-05** at limit **
  26  norm          6.1568        1.8533       -.84430E-08    .13213E-04
  27  Prefactor     3.8371        3.6739       -.92215E-07   -.63984E-04
  28  norm          11.315        12.329        .74339E-07   -.70555E-06
  29  Normalizat    1.0707        .17841        .10300E-05   -.52479E-04
  30  Prefactor     .69078        .21293       -.15249E-05    .59912E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.2379
  Prefactor  = 0.0001
  Prefactor  = 1.5461
  Prefactor  = 15.7013
  Prefactor  = 0.0001
  Prefactor  = 25.0859
  Prefactor  = 171.13
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.855
  Prefactor  = 26.1926
  Prefactor  = 0.734923
  norm       = 0.0001
  norm       = 4.6236
  norm       = 7.68505
  norm       = 0.000100048
  norm       = 1.76487
  Prefactor  = 4.17549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.21275
  Prefactor  = 3.31193
  Prefactor  = 31.1429
  Prefactor  = 0.000100001
  norm       = 6.15676
  Prefactor  = 3.83715
  norm       = 11.3149
  Normalizat = 1.07071
  Prefactor  = 0.690776
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.627     FROM HESSE     STATUS=OK           602 CALLS     4534 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2379        3.2550        .10974E-03   -1.5296    
   2  Prefactor     .10000E-03    3.3687        .13251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5461        1.9898        .11186E-03   -1.5459    
   4  Prefactor     15.701        10.982        .10108E-03   -1.4915    
   5  Prefactor     .10000E-03    46.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.086        19.232        .79978E-04   -1.4706    
   7  Prefactor     171.13        89.774        .15420E-03   -1.3084    
   8  Prefactor     .10000E-03    7.9014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7501        .95309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.855        58.878        .66907E-04   -1.4510    
  11  Prefactor     26.193        24.226        .78249E-04   -1.4684    
  12  Prefactor     .73492        45.526        .46235E-02   -1.5537    
  13  norm          .10000E-03    3.0657        .12508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6236        9.9932        .93581E-03   -1.5278    
  15  norm          7.6851        4.8238        .10197E-03   -1.5153    
  16  norm          .10005E-03    7.0792        .52134E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7649        2.1634        .11796E-03   -1.5442    
  18  Prefactor     4.1755        3.0834        .10547E-03   -1.5299    
  19  Prefactor     .10000E-03    6.0633        .17783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2128        20.143        .66006E-03   -1.5101    
  23  Prefactor     3.3119        29.925        .22250E-03   -1.5344    
  24  Prefactor     31.143        24.808        .71799E-04   -1.4591    
  25  Prefactor     .10000E-03    21.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.1568        1.8534        .53411E-04   -1.5212    
  27  Prefactor     3.8371        3.6688        .13447E-03   -1.5316    
  28  norm          11.315        12.338        .11910E-03   -1.5035    
  29  Normalizat    1.0707        .20955        .21336E-03   -.90698    
  30  Prefactor     .69078        .24852        .32163E-03   -1.0389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13008e-10
Minuit parameter uncertainties:
  1  3.25511
  2  1.27839e-06
  3  1.98986
  4  10.9838
  5  9.63625e-05
  6  19.2372
  7  89.8454
  8  1.42271e-05
  9  5.93767e-06
  10  58.9736
  11  24.2352
  12  11.5771
  13  3.80027e-06
  14  9.99676
  15  4.82401
  16  0.00116112
  17  2.16351
  18  3.0835
  19  4.40031e-06
  20  2.67023e-06
  21  0.000372181
  22  20.1583
  23  19.9238
  24  24.8163
  25  0.000332998
  26  1.85342
  27  3.669
  28  12.3408
  29  0.209715
  30  0.248917
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  7.349e-01  1.158e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  6.908e-01  2.489e-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.071e+00  2.097e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/184021/likelihoodResults_272764801_273024001_4FGL_J1304.0+3704_daily_bin129.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.625983
delta logL = 0.000669414822369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.62598209
delta logL = 0.000670320604513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73492       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2994       1.0000          .0000       10.000    
     3 'Normalizat'    1.0711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69046       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=   5483.626     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      228 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99417        29.480        .12195        .24579E-03
   2  Index         2.2770        1.7451        .50000        .91984E-06
   3  Normalizat    1.0709        .73619E-02    .39319E-01    .57518E-04
   4  Prefactor     .69035        .91441E-02    .72688E-01    .64401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.994167
  Index      = 2.27703
  Normalizat = 1.07094
  Prefactor  = 0.690346
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.626     FROM HESSE     STATUS=OK            35 CALLS      263 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99417        57.982        .43453E-02   -1.5509    
   2  Index         2.2770        3.4124        .17165E-01   -.57591    
   3  Normalizat    1.0709        .19749        .21334E-03   -.90690    
   4  Prefactor     .69035        .24502        .32173E-03   -1.0391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47564e-08
Minuit parameter uncertainties:
  1  15.1994
  2  3.98611
  3  0.197628
  4  0.2454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/184021': 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) = 5483.62578854
delta logL = 0.000863867780026

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  9.942e-01  1.520e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.277e+00  3.986e+00  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:  6.903e-01  2.454e-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.071e+00  1.976e-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/184021/cmap_HighResolution_272764801_273024001_4FGL_J1304.0+3704_daily_bin129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-09-06 19:41:45.554449', job_id='184021', GAL2='0.69', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630982505.55', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='8.64e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='129' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:41:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 184021: <4FGL_J1304.0+3704_daily_bin129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin129 196.008 37.071 272764801 273024001 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 :                                   806.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            959 sec.

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

