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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin659
RA = 197.363, Dec = 43.085
tmin = 410140801, tmax = 410400001
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='278428', job_status='RUN', time_executed='2021-09-07 00:57:58.045614', time_epoch_executed='1631001478.05' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='659'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278428

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278428/ft1_4FGL_J1309.4+4305_daily_bin659.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278428/ft1_4FGL_J1309.4+4305_daily_bin659.fits outfile=/scratch/kocevski/278428/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin659.fits ra=197.363 dec=43.085 rad=12.0 tmin=410140801.0 tmax=410400001.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 6.95
user 6.65
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.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/278428/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin659.fits evtable="EVENTS" outfile="/scratch/kocevski/278428/ft1_filtered_4FGL_J1309.4+4305_daily_bin659.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278428/ft1_filtered_4FGL_J1309.4+4305_daily_bin659.fits" evtable="EVENTS" scfile=/scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits sctable="SC_DATA" outfile=/scratch/kocevski/278428/ltcube_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.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/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits
.....................!
real 14.83
user 14.33
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278428/ft1_filtered_4FGL_J1309.4+4305_daily_bin659.fits evtable="EVENTS" scfile=/scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits sctable="SC_DATA" expcube=/scratch/kocevski/278428/ltcube_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.fits outfile=/scratch/kocevski/278428/expmap_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.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/278428/ltcube_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.fits
.....................!
real 192.78
user 186.03
sys 5.93

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/278428/ft1_filtered_4FGL_J1309.4+4305_daily_bin659.fits scfile=/scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits outfile=/scratch/kocevski/278428/cmap_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.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.83
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278428/ft1_filtered_4FGL_J1309.4+4305_daily_bin659.fits scfile=/scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits outfile=/scratch/kocevski/278428/cmap_HighResolution_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.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.66
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/278428/ft1_filtered_4FGL_J1309.4+4305_daily_bin659.fits', '/scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits', expMap='/scratch/kocevski/278428/expmap_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.fits', expCube='/scratch/kocevski/278428/ltcube_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/278428/Model_4FGL_J1309.4+4305_daily_bin659.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/278428/ft1_filtered_4FGL_J1309.4+4305_daily_bin659.fits
Spacecraft file(s): /scratch/kocevski/278428/ft2_4FGL_J1309.4+4305_daily_bin659.fits
Exposure map: /scratch/kocevski/278428/expmap_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.fits
Exposure cube: /scratch/kocevski/278428/ltcube_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/278428/Model_4FGL_J1309.4+4305_daily_bin659.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) = 3894.5773985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5372       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16074E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8653       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3439       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6596       1.0000         .10000E-03   10000.    
    14 'norm      '    10.572       1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2479       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.864       1.0000         .10000E-03   10000.    
    24 'norm      '    17.454       1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0810       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80644       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=   3894.569     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3291 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5278        8.5250        .66980E-05   -.87751E-03
   2  Prefactor     .10006E-03    29.862       -.11939E-04** at limit **
   3  Prefactor     7.8571        27.948        .80916E-06    .12289E-03
   4  Prefactor     .10000E-03    30.403        .54282E-06** at limit **
   5  norm          3.3440        2.6224       -.21703E-07    .10756E-03
   6  Prefactor     .10000E-03    6.9350       -.15060E-06** at limit **
   7  norm          .10000E-03    4.8786       -.60635E-06** at limit **
   8  Prefactor     45.367        52.754        .29595E-05    .15350E-03
   9  Prefactor     .10000E-03    11.050       -.21475E-06** at limit **
  10  Prefactor     .10000E-03    7.3786       -.47534E-07** at limit **
  11  norm          .10000E-03    1.8522       -.22897E-07** at limit **
  12  norm          .10000E-03    6.9355        .25142E-06** at limit **
  13  norm          5.6612        6.5085       -.18622E-06    .54562E-04
  14  norm          10.571        12.086        .46877E-06   -.50465E-03
  15  norm          .10000E-03    4.5857       -.30313E-07** at limit **
  16  Prefactor     .10000E-03    1.6604       -.40292E-07** at limit **
  17  Prefactor     18.796        15.730        .37442E-06   -.31318E-04
  18  Prefactor     .10000E-03    18.270        .21992E-05** at limit **
  19  Prefactor     33.025        58.619       -.13281E-04   -.31768E-03
  20  Prefactor     7.2499        16.038       -.34959E-06   -.23863E-04
  21  Prefactor     .10000E-03    21.416       -.21397E-05** at limit **
  22  norm          .10000E-03    2.1954       -.69247E-07** at limit **
  23  Prefactor     12.857        143.08       -.29695E-05   -.15323E-04
  24  norm          17.454        3.7921       -.18761E-07    .81667E-04
  25  norm          .10000E-03    10.636        .67498E-06** at limit **
  26  Normalizat    1.0810        .20750        .60277E-06    .51016E-03
  27  Prefactor     .80648        .24739       -.75080E-07    .30687E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.52778
  Prefactor  = 0.000100063
  Prefactor  = 7.85707
  Prefactor  = 0.0001
  norm       = 3.34395
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 45.3666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.66116
  norm       = 10.5714
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7964
  Prefactor  = 0.000100001
  Prefactor  = 33.0252
  Prefactor  = 7.24989
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 12.8572
  norm       = 17.4539
  norm       = 0.0001
  Normalizat = 1.08099
  Prefactor  = 0.806481
 **********
 **   18 **HESSE 
 **********

 FCN=   3894.569     FROM HESSE     STATUS=OK           484 CALLS     3775 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5278        9.1417        .85369E-03   -1.5238    
   2  Prefactor     .10006E-03    175.41        .57578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8571        27.829        .14297E-03   -1.5147    
   4  Prefactor     .10000E-03    30.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3440        2.6203        .86548E-04   -1.5342    
   6  Prefactor     .10000E-03    7.0198        .16046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.698        .26591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     45.367        52.846        .59535E-04   -1.4360    
   9  Prefactor     .10000E-03    11.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3890        .16556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8552        .82942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.9365        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6612        6.7315        .11819E-03   -1.5232    
  14  norm          10.571        12.530        .61612E-03   -1.5058    
  15  norm          .10000E-03    4.7044        .26090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6739        .78464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.796        15.714        .92396E-04   -1.4841    
  18  Prefactor     .10000E-03    18.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.025        61.186        .69675E-04   -1.4558    
  20  Prefactor     7.2499        16.036        .14899E-03   -1.5169    
  21  Prefactor     .10000E-03    21.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.2003        .90251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.857        144.48        .11168E-03   -1.4991    
  24  norm          17.454        3.7979        .54226E-04   -1.4872    
  25  norm          .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0810        .24393        .21715E-03   -.90364    
  27  Prefactor     .80648        .28914        .30724E-03   -.99490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54489e-09
Minuit parameter uncertainties:
  1  9.14403
  2  0.00664368
  3  27.8751
  4  1.85304e-05
  5  2.62042
  6  2.70522e-05
  7  0.000465991
  8  52.9011
  9  1.54128e-05
  10  2.0624e-06
  11  3.48516e-06
  12  7.42941e-06
  13  6.73241
  14  12.5326
  15  2.53191e-05
  16  3.45094e-05
  17  15.717
  18  0.00023679
  19  61.3024
  20  16.0451
  21  0.000287056
  22  3.92809e-06
  23  86.4646
  24  3.79799
  25  5.36201e-05
  26  0.244184
  27  0.289684
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  7.429e-06  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:  8.065e-01  2.897e-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:  1.081e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/278428/likelihoodResults_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.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) = 3894.56992012
delta logL = -0.000680120023389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3894.56924
delta logL = 4.21323420596e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7730       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80648       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3894.492     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      318 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23206        55.399        .16062E-01    .10783E-02
   2  alpha         4.1603        2.8027        .50000       -.35739E-04
   3  Normalizat    1.0485        .37762        .21715E-03    .50732E-04
   4  Prefactor     .82904        .15681        .30724E-03    .49768E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.232058
  alpha      = 4.16032
  Normalizat = 1.04846
  Prefactor  = 0.82904
 **********
 **   18 **HESSE 
 **********

 FCN=   3894.492     FROM HESSE     STATUS=OK            31 CALLS      349 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23206        1.5697        .64783E-03   -1.5612    
   2  alpha         4.1603        2.8864        .27338E-01    2.4153    
   3  Normalizat    1.0485        .24607        .86859E-05   -.91424    
   4  Prefactor     .82904        .29387        .12290E-04   -.98667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8524e-09
Minuit parameter uncertainties:
  1  1.20687
  2  2.01132
  3  0.246338
  4  0.294429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278428': 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) = 3894.49243044
delta logL = 0.0768095587982

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.321e-01  1.207e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  4.160e+00  2.011e+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:  8.290e-01  2.944e-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:  1.048e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/278428/cmap_HighResolution_410140801_410400001_4FGL_J1309.4+4305_daily_bin659.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-05', job_status='DONE', photon_flux_upper_limit='4.07e-08', time_completed='2021-09-07 01:09:28.151871', job_id='278428', GAL2='0.83', fit_tolerance='1e-08', EG2='1.05', EG='1.08', time_epoch_completed='1631002168.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.68e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='659' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:09:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 278428: <4FGL_J1309.4+4305_daily_bin659> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin659> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:40 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:56:01 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:56:01 2021
Terminated at Tue Sep  7 01:09:29 2021
Results reported at Tue Sep  7 01:09:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin659 197.363 43.085 410140801 410400001 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 :                                   680.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            829 sec.

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

