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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin672
RA = 196.008, Dec = 37.071
tmin = 413510401, tmax = 413769601
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='189607', job_status='RUN', time_executed='2021-09-06 19:50:12.708124', time_epoch_executed='1630983012.71' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189607/ft1_4FGL_J1304.0+3704_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189607/ft2_4FGL_J1304.0+3704_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189607/ft1_4FGL_J1304.0+3704_daily_bin672.fits outfile=/scratch/kocevski/189607/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin672.fits ra=196.008 dec=37.071 rad=12.0 tmin=413510401.0 tmax=413769601.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 5.57
user 5.32
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189607/ft1_filtered_4FGL_J1304.0+3704_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/189607/ft2_4FGL_J1304.0+3704_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/189607/ltcube_413510401_413769601_4FGL_J1304.0+3704_daily_bin672.fits outfile=/scratch/kocevski/189607/expmap_413510401_413769601_4FGL_J1304.0+3704_daily_bin672.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/189607/ltcube_413510401_413769601_4FGL_J1304.0+3704_daily_bin672.fits
.....................!
real 192.29
user 187.51
sys 4.39

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/189607/ft1_filtered_4FGL_J1304.0+3704_daily_bin672.fits scfile=/scratch/kocevski/189607/ft2_4FGL_J1304.0+3704_daily_bin672.fits outfile=/scratch/kocevski/189607/cmap_413510401_413769601_4FGL_J1304.0+3704_daily_bin672.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189607/ft1_filtered_4FGL_J1304.0+3704_daily_bin672.fits scfile=/scratch/kocevski/189607/ft2_4FGL_J1304.0+3704_daily_bin672.fits outfile=/scratch/kocevski/189607/cmap_HighResolution_413510401_413769601_4FGL_J1304.0+3704_daily_bin672.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=196.008 yref=37.071 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    53.161       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .40954E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46150       1.0000         .10000E-03   10000.    
     5 'Prefactor '    92.376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.840       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1110       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.7062       1.0000         .10000E-03   10000.    
    13 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    39.476       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7796       1.0000         .10000E-03   10000.    
    16 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14554E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.362       1.0000         .10000E-03   10000.    
    23 'Prefactor '    78.919       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    70.739       1.0000         .10000E-03   10000.    
    26 'norm      '    9.1516       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.0767       1.0000         .10000E-03   10000.    
    28 'norm      '    12.972       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2870       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .33209       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=   4131.609     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     4022 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          53.142        10.752        .75261E-06    .18057E-02
   2  Prefactor     .10000E-03    6.1058       -.12665E-06** at limit **
   3  Prefactor     .10001E-03    104.32       -.56270E-05** at limit **
   4  Prefactor     .51148        18.770       -.35166E-05    .52285E-03
   5  Prefactor     92.380        50.214       -.10743E-05   -.11488E-04
   6  Prefactor     .10000E-03    11.947       -.56881E-07** at limit **
   7  Prefactor     69.877        104.85       -.30177E-05    .30543E-04
   8  Prefactor     4.1101        7.6364       -.48086E-06   -.48325E-04
   9  norm          .10000E-03    3.6573        .71819E-06** at limit **
  10  Prefactor     .10000E-03    32.472       -.13979E-06** at limit **
  11  Prefactor     .10000E-03    20.951        .16750E-06** at limit **
  12  Prefactor     8.7038        14.736       -.22335E-06   -.15831E-04
  13  norm          .10000E-03    5.4570       -.43958E-06** at limit **
  14  norm          39.476        22.934       -.36334E-06   -.24995E-04
  15  norm          3.7790        5.5435       -.47429E-06   -.20085E-04
  16  norm          .10000E-03    6.6828       -.44399E-06** at limit **
  17  norm          .10000E-03    2.4581        .23477E-06** at limit **
  18  Prefactor     2.2768        3.4504        .58414E-07    .13049E-03
  19  Prefactor     .10000E-03    63.573       -.20586E-05** at limit **
  20  Prefactor     .10000E-03    17.939        .71498E-06** at limit **
  21  Prefactor     .10000E-03    35.453       -.18111E-06** at limit **
  22  Prefactor     37.353        25.548       -.73047E-06   -.37778E-04
  23  Prefactor     78.937        58.183       -.37263E-06    .44619E-04
  24  Prefactor     .10000E-03    33.731       -.53621E-06** at limit **
  25  Prefactor     70.706        86.152       -.26936E-05   -.64081E-04
  26  norm          9.1507        2.9247       -.12294E-06   -.11730E-03
  27  Prefactor     7.0747        7.8885        .10216E-06    .55450E-05
  28  norm          12.968        15.641       -.36694E-06   -.15932E-04
  29  Normalizat    1.2871        .25247        .35960E-05    .25372E-03
  30  Prefactor     .33194        .27153       -.48290E-05    .97320E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 53.1419
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.511475
  Prefactor  = 92.3796
  Prefactor  = 0.0001
  Prefactor  = 69.8765
  Prefactor  = 4.1101
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.70383
  norm       = 0.0001
  norm       = 39.4757
  norm       = 3.77903
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.27685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.3528
  Prefactor  = 78.9372
  Prefactor  = 0.0001
  Prefactor  = 70.7061
  norm       = 9.15074
  Prefactor  = 7.07471
  norm       = 12.9682
  Normalizat = 1.28713
  Prefactor  = 0.331944
 **********
 **   18 **HESSE 
 **********

 FCN=   4131.609     FROM HESSE     STATUS=OK           588 CALLS     4610 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          53.142        12.242        .55010E-04   -1.4249    
   2  Prefactor     .10000E-03    6.1654        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    9.7125        .33488E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51148        48.634        .41044E-02   -1.5565    
   5  Prefactor     92.380        50.154        .41812E-04   -1.3783    
   6  Prefactor     .10000E-03    11.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     69.877        104.47        .48033E-04   -1.4034    
   8  Prefactor     4.1101        7.5875        .19882E-03   -1.5302    
   9  norm          .10000E-03    3.6730        .11991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.7038        14.676        .67925E-03   -1.5118    
  13  norm          .10000E-03    5.6289        .29288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          39.476        22.898        .63795E-04   -1.4451    
  15  norm          3.7790        5.4615        .16575E-03   -1.5319    
  16  norm          .10000E-03    6.6928        .16158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4815        .98365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2768        3.4085        .13704E-03   -1.5406    
  19  Prefactor     .10000E-03    64.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.353        25.485        .65569E-04   -1.4485    
  23  Prefactor     78.937        58.194        .45206E-04   -1.3929    
  24  Prefactor     .10000E-03    33.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     70.706        86.056        .47729E-04   -1.4024    
  26  norm          9.1507        2.9232        .58424E-04   -1.5103    
  27  Prefactor     7.0747        7.8864        .75399E-03   -1.5176    
  28  norm          12.968        15.631        .11122E-03   -1.4988    
  29  Normalizat    1.2871        .25883        .21204E-03   -.83951    
  30  Prefactor     .33194        .27484        .45803E-03   -1.2044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7e-09
Minuit parameter uncertainties:
  1  12.2425
  2  1.78422e-05
  3  0.000742656
  4  9.98237
  5  50.1765
  6  9.75982e-06
  7  104.744
  8  7.58931
  9  3.16993e-05
  10  7.85729e-05
  11  9.46538e-05
  12  14.6822
  13  2.46615e-05
  14  22.9028
  15  5.46222
  16  1.50365e-05
  17  6.49191e-06
  18  3.40877
  19  0.000140801
  20  0.000147678
  21  4.57554e-05
  22  25.4926
  23  58.2365
  24  6.02487e-05
  25  86.2079
  26  2.92328
  27  7.88754
  28  15.6362
  29  0.259094
  30  0.275934
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  8.704e+00  1.468e+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:  3.319e-01  2.759e-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.287e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 9.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189607/likelihoodResults_413510401_413769601_4FGL_J1304.0+3704_daily_bin672.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) = 4131.60759453
delta logL = 0.00127682578204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4131.60675852
delta logL = 0.00211283007229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0122       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5222       1.0000          .0000       10.000    
     3 'Normalizat'    1.2853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4131.607     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      257 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0072        18.413        .14165E-03    .56423E-04
   2  Index         2.5210        1.4218        .96089E-02    .88321E-05
   3  Normalizat    1.2856        .23771        .21215E-03   -.94173E-03
   4  Prefactor     .33324        .27234        .45718E-03   -.46416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.00725
  Index      = 2.52099
  Normalizat = 1.2856
  Prefactor  = 0.333243
 **********
 **   18 **HESSE 
 **********

 FCN=   4131.607     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0072        16.958        .56659E-05   -1.5142    
   2  Index         2.5210        1.3126        .38436E-03   -.51876    
   3  Normalizat    1.2856        .23752        .42429E-04   -.83997    
   4  Prefactor     .33324        .27214        .18287E-04   -1.2036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20843e-09
Minuit parameter uncertainties:
  1  16.9684
  2  1.33342
  3  0.237725
  4  0.273193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189607': 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) = 4131.6067466
delta logL = 0.00212474988712

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  8.007e+00  1.697e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.521e+00  1.333e+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:  3.332e-01  2.732e-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.286e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/189607/cmap_HighResolution_413510401_413769601_4FGL_J1304.0+3704_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-06 20:02:15.134050', job_id='189607', GAL2='0.33', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630983735.13', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.33', dlogl='2.12e-03', ts2='0.58', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='672' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:02:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 189607: <4FGL_J1304.0+3704_daily_bin672> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin672 196.008 37.071 413510401 413769601 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 :                                   721.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            992 sec.

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

