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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin300
RA = 197.363, Dec = 43.085
tmin = 317088001, tmax = 317347201
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='276713', job_status='RUN', time_executed='2021-09-07 00:53:07.825265', time_epoch_executed='1631001187.83' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276713/ft1_4FGL_J1309.4+4305_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276713/ft1_4FGL_J1309.4+4305_daily_bin300.fits outfile=/scratch/kocevski/276713/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin300.fits ra=197.363 dec=43.085 rad=12.0 tmin=317088001.0 tmax=317347201.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.19
user 2.98
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.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/276713/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin300.fits evtable="EVENTS" outfile="/scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/276713/ltcube_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.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/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits
.....................!
real 10.85
user 10.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/276713/ltcube_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.fits outfile=/scratch/kocevski/276713/expmap_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.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/276713/ltcube_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.fits
.....................!
real 154.76
user 150.24
sys 4.21

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits scfile=/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits outfile=/scratch/kocevski/276713/cmap_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.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=197.363 yref=43.085 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.47
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits scfile=/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits outfile=/scratch/kocevski/276713/cmap_HighResolution_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.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=197.363 yref=43.085 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.51
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/276713/Model_4FGL_J1309.4+4305_daily_bin300.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/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits.....................!
real 41.13
user 40.02
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits', '/scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits', expMap='/scratch/kocevski/276713/expmap_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.fits', expCube='/scratch/kocevski/276713/ltcube_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/276713/Model_4FGL_J1309.4+4305_daily_bin300.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/276713/ft1_filtered_4FGL_J1309.4+4305_daily_bin300.fits
Spacecraft file(s): /scratch/kocevski/276713/ft2_4FGL_J1309.4+4305_daily_bin300.fits
Exposure map: /scratch/kocevski/276713/expmap_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.fits
Exposure cube: /scratch/kocevski/276713/ltcube_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/276713/Model_4FGL_J1309.4+4305_daily_bin300.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) = 6007.88598209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16976E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .70160       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.478       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.569       1.0000         .10000E-03   10000.    
    11 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3840       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9433       1.0000         .10000E-03   10000.    
    14 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22833E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18427E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    95.110       1.0000         .10000E-03   10000.    
    22 'norm      '    .10194E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.206       1.0000         .10000E-03   10000.    
    24 'norm      '    3.6867       1.0000         .10000E-03   10000.    
    25 'norm      '    .10390E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82855       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6007.716     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3327 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10009E-03    5.0314        .13009E-05** at limit **
   2  Prefactor     .10000E-03    31.998       -.40507E-05** at limit **
   3  Prefactor     33.387        25.766        .48758E-05   -.44863E-04
   4  Prefactor     .10000E-03    8.0597        .77982E-05** at limit **
   5  norm          .70139        1.8381       -.71894E-06   -.14271E-02
   6  Prefactor     .10000E-03    3.1347        .20425E-07** at limit **
   7  norm          .10000E-03    3.5387       -.27863E-05** at limit **
   8  Prefactor     68.475        50.751       -.31192E-05   -.34695E-05
   9  Prefactor     30.988        22.761        .85492E-05    .49544E-03
  10  Prefactor     14.576        16.942        .15628E-05    .85601E-04
  11  norm          .10000E-03    1.4266       -.16920E-07** at limit **
  12  norm          3.3818        9.6903       -.10641E-06   -.13947E-03
  13  norm          3.9479        3.5751        .39665E-07    .14949E-02
  14  norm          .10000E-03    7.2933       -.44013E-05** at limit **
  15  norm          .10000E-03    2.8648       -.11821E-06** at limit **
  16  Prefactor     .10000E-03    1.4881        .96578E-08** at limit **
  17  Prefactor     .10019E-03    8.3683       -.24876E-05** at limit **
  18  Prefactor     .10000E-03    30.407        .52901E-05** at limit **
  19  Prefactor     .10000E-03    22.819       -.53284E-05** at limit **
  20  Prefactor     .10000E-03    23.619        .21461E-05** at limit **
  21  Prefactor     95.107        38.518       -.17324E-05   -.61721E-04
  22  norm          .10000E-03    1.9035        .27675E-07** at limit **
  23  Prefactor     24.206        37.863       -.69508E-06    .10701E-04
  24  norm          3.6867        1.5725        .10654E-06   -.12691E-03
  25  norm          .10000E-03    23.044       -.72050E-06** at limit **
  26  Normalizat    .82835        .16905       -.17112E-05    .39716E-03
  27  Prefactor     1.2156        .20573        .53276E-06    .22456E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100094
  Prefactor  = 0.0001
  Prefactor  = 33.3872
  Prefactor  = 0.0001
  norm       = 0.701395
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 68.4746
  Prefactor  = 30.9879
  Prefactor  = 14.5759
  norm       = 0.0001
  norm       = 3.3818
  norm       = 3.94787
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.1069
  norm       = 0.0001
  Prefactor  = 24.2059
  norm       = 3.68674
  norm       = 0.0001
  Normalizat = 0.828345
  Prefactor  = 1.21559
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.716     FROM HESSE     STATUS=OK           480 CALLS     3807 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10009E-03    24.900        .33285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.387        25.702        .69355E-04   -1.4552    
   4  Prefactor     .10000E-03    7.9706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .70139        1.8505        .16582E-03   -1.5540    
   6  Prefactor     .10000E-03    3.1453        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.1311        .27665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     68.475        50.741        .48505E-04   -1.4051    
   9  Prefactor     30.988        22.690        .71991E-04   -1.4594    
  10  Prefactor     14.576        16.921        .10493E-03   -1.4944    
  11  norm          .10000E-03    1.4285        .90388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3818        9.6737        .21995E-03   -1.5340    
  13  norm          3.9479        3.4635        .12899E-03   -1.5311    
  14  norm          .10000E-03    7.3986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9259        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5138        .92149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10019E-03    42.667        .42007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     95.107        38.613        .41212E-04   -1.3754    
  22  norm          .10000E-03    1.9277        .10437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.206        37.897        .81417E-04   -1.4724    
  24  norm          3.6867        1.5697        .60279E-04   -1.5324    
  25  norm          .10000E-03    23.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82835        .20096        .24338E-03   -.99026    
  27  Prefactor     1.2156        .24555        .26324E-03   -.85853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02825e-08
Minuit parameter uncertainties:
  1  0.00305904
  2  0.00021159
  3  25.7107
  4  1.13509e-05
  5  1.85062
  6  1.98296e-05
  7  0.000317901
  8  50.7732
  9  22.6966
  10  16.9267
  11  5.31082e-06
  12  9.6782
  13  3.46372
  14  9.5312e-06
  15  1.17412e-06
  16  1.02238e-06
  17  0.00567004
  18  0.000108266
  19  1.29357e-05
  20  6.32938e-05
  21  38.6234
  22  5.60527e-06
  23  37.9346
  24  1.56972
  25  6.44788e-05
  26  0.201141
  27  0.245777
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.382e+00  9.678e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.216e+00  2.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  8.283e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 3.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276713/likelihoodResults_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.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) = 6007.56350008
delta logL = 0.152111415746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6007.55950509
delta logL = 0.156106401962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7576       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7856       1.0000          .0000       5.0000    
     3 'Normalizat'    .81572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6007.560     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      257 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7529        38.885        .10410E-02   -.12519E-03
   2  alpha         2.7863        3.7780        .19451E-01   -.54496E-05
   3  Normalizat    .81569        .21534        .24506E-03   -.39665E-04
   4  Prefactor     1.2218        .26140        .26257E-03   -.14331E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75286
  alpha      = 2.78628
  Normalizat = 0.81569
  Prefactor  = 1.2218
 **********
 **   18 **HESSE 
 **********

 FCN=   6007.560     FROM HESSE     STATUS=OK            27 CALLS      284 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7529        8.1920        .41641E-04   -1.5376    
   2  alpha         2.7863        1.8442        .77806E-03    .11476    
   3  Normalizat    .81569        .19441        .98024E-05   -.99489    
   4  Prefactor     1.2218        .24619        .10503E-04   -.85663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33885e-11
Minuit parameter uncertainties:
  1  8.19537
  2  2.07848
  3  0.194575
  4  0.246421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276713': 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) = 6007.55950488
delta logL = 0.156106614053

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.753e+00  8.195e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.786e+00  2.078e+00  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.222e+00  2.464e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  8.157e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 197.363 43.085

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/276713/cmap_HighResolution_317088001_317347201_4FGL_J1309.4+4305_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='3.72e-08', time_completed='2021-09-07 01:05:37.770601', job_id='276713', GAL2='1.22', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1631001937.77', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.56e-01', ts2='0.47', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='300' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 276713: <4FGL_J1309.4+4305_daily_bin300> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin300> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:29 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:50:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:50:39 2021
Terminated at Tue Sep  7 01:05:40 2021
Results reported at Tue Sep  7 01:05:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin300 197.363 43.085 317088001 317347201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   676.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            911 sec.

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

