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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin387
RA = 197.363, Dec = 43.085
tmin = 339638401, tmax = 339897601
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='276854', job_status='RUN', time_executed='2021-09-07 00:53:34.443418', time_epoch_executed='1631001214.44' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276854/ft1_4FGL_J1309.4+4305_daily_bin387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276854/ft2_4FGL_J1309.4+4305_daily_bin387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276854/ft1_4FGL_J1309.4+4305_daily_bin387.fits outfile=/scratch/kocevski/276854/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin387.fits ra=197.363 dec=43.085 rad=12.0 tmin=339638401.0 tmax=339897601.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.36
user 3.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276854/ft1_filtered_4FGL_J1309.4+4305_daily_bin387.fits" evtable="EVENTS" scfile=/scratch/kocevski/276854/ft2_4FGL_J1309.4+4305_daily_bin387.fits sctable="SC_DATA" outfile=/scratch/kocevski/276854/ltcube_339638401_339897601_4FGL_J1309.4+4305_daily_bin387.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/276854/ft2_4FGL_J1309.4+4305_daily_bin387.fits
.....................!
real 13.90
user 13.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276854/ft1_filtered_4FGL_J1309.4+4305_daily_bin387.fits evtable="EVENTS" scfile=/scratch/kocevski/276854/ft2_4FGL_J1309.4+4305_daily_bin387.fits sctable="SC_DATA" expcube=/scratch/kocevski/276854/ltcube_339638401_339897601_4FGL_J1309.4+4305_daily_bin387.fits outfile=/scratch/kocevski/276854/expmap_339638401_339897601_4FGL_J1309.4+4305_daily_bin387.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/276854/ltcube_339638401_339897601_4FGL_J1309.4+4305_daily_bin387.fits
.....................!
real 193.76
user 187.03
sys 4.70

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/276854/ft1_filtered_4FGL_J1309.4+4305_daily_bin387.fits scfile=/scratch/kocevski/276854/ft2_4FGL_J1309.4+4305_daily_bin387.fits outfile=/scratch/kocevski/276854/cmap_339638401_339897601_4FGL_J1309.4+4305_daily_bin387.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276854/ft1_filtered_4FGL_J1309.4+4305_daily_bin387.fits scfile=/scratch/kocevski/276854/ft2_4FGL_J1309.4+4305_daily_bin387.fits outfile=/scratch/kocevski/276854/cmap_HighResolution_339638401_339897601_4FGL_J1309.4+4305_daily_bin387.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1411       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.081       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.8901       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.899       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8362       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    43.425       1.0000         .10000E-03   10000.    
    13 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12346E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23201E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20480E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70944       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.420       1.0000         .10000E-03   10000.    
    22 'norm      '    .19235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.273       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92403       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0948       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=   6114.145     FROM MIGRAD    STATUS=CONVERGED   1205 CALLS     3428 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1444        8.3423        .21432E-02    .35509E-03
   2  Prefactor     .10000E-03    23.191        .18142E-02** at limit **
   3  Prefactor     .10000E-03    4.8047        .16735E-02** at limit **
   4  Prefactor     17.086        19.354        .96909E-04   -.16424E-05
   5  norm          3.1160        1.8542        .79877E-04    .46427E-04
   6  Prefactor     .10000E-03    2.5425        .12159E-02** at limit **
   7  norm          6.8900        5.3975        .14806E-03    .21906E-03
   8  Prefactor     .10000E-03    21.124        .18142E-02** at limit **
   9  Prefactor     13.880        25.638        .10744E-03    .12740E-03
  10  Prefactor     1.8218        34.200        .30790E-03   -.58339E-05
  11  norm          .10000E-03    2.1411        .11141E-02** at limit **
  12  norm          43.424        18.622        .60837E-04    .18500E-04
  13  norm          .10000E-03    4.1871        .30604E-03** at limit **
  14  norm          .10000E-03    5.6440        .17973E-02** at limit **
  15  norm          2.2651        3.2161        .16172E-03   -.31354E-04
  16  Prefactor     .10001E-03    5.7051        .23236E-02** at limit **
  17  Prefactor     .10001E-03    73.230        .52439E-02** at limit **
  18  Prefactor     .10001E-03    36.235        .18142E-02** at limit **
  19  Prefactor     .94933        68.684        .17431        .60786E-04
  20  Prefactor     .10000E-03    5.4101        .17730E-02** at limit **
  21  Prefactor     30.467        30.959        .72644E-04   -.58844E-04
  22  norm          .19311        6.0695        .22478E-02    .86111E-03
  23  Prefactor     .10000E-03    28.582        .18142E-02** at limit **
  24  norm          13.274        2.4769        .50488E-04    .35668E-03
  25  norm          .10000E-03    3.8498        .14979E-02** at limit **
  26  Normalizat    .92402        .20494        .24128E-03    .39442E-03
  27  Prefactor     1.0946        .24986        .28168E-03    .59135E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0856
  norm       = 3.11605
  Prefactor  = 0.0001
  norm       = 6.88998
  Prefactor  = 0.0001
  Prefactor  = 13.8799
  Prefactor  = 1.82182
  norm       = 0.0001
  norm       = 43.4241
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.26506
  Prefactor  = 0.000100015
  Prefactor  = 0.000100006
  Prefactor  = 0.000100008
  Prefactor  = 0.949328
  Prefactor  = 0.0001
  Prefactor  = 30.4672
  norm       = 0.193113
  Prefactor  = 0.0001
  norm       = 13.2738
  norm       = 0.0001
  Normalizat = 0.92402
  Prefactor  = 1.0946
 **********
 **   18 **HESSE 
 **********

 FCN=   6114.145     FROM HESSE     STATUS=OK           474 CALLS     3902 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1444        8.3189        .85730E-04   -1.5494    
   2  Prefactor     .10000E-03    23.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8048        .33471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.086        19.351        .38764E-05   -1.4881    
   5  norm          3.1160        1.8542        .15975E-04   -1.5355    
   6  Prefactor     .10000E-03    2.5426        .24319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.8900        5.3970        .59225E-05   -1.5183    
   8  Prefactor     .10000E-03    21.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.880        25.629        .42975E-05   -1.4963    
  10  Prefactor     1.8218        34.155        .12316E-04   -1.5438    
  11  norm          .10000E-03    2.1412        .22282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          43.424        18.620        .24335E-05   -1.4389    
  13  norm          .10000E-03    4.1873        .61208E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.6479        .35946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2651        3.2159        .64687E-05   -1.5407    
  16  Prefactor     .10001E-03    5.7374        .46471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    74.460        .10488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    36.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .94933        68.647        .17401       -1.5513    
  20  Prefactor     .10000E-03    5.4107        .35461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.467        30.948        .29057E-05   -1.4603    
  22  norm          .19311        6.0934        .89912E-04   -1.5620    
  23  Prefactor     .10000E-03    28.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.274        2.4767        .10098E-04   -1.4979    
  25  norm          .10000E-03    3.8499        .29959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .92402        .20503        .48255E-04   -.95621    
  27  Prefactor     1.0946        .25007        .56335E-04   -.89639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03752e-09
Minuit parameter uncertainties:
  1  6.17192
  2  0.000127898
  3  1.13558e-05
  4  19.3583
  5  1.85426
  6  2.13579e-05
  7  5.39736
  8  5.59419e-05
  9  25.6488
  10  15.7865
  11  1.9741e-05
  12  18.6223
  13  3.87311e-06
  14  7.86188e-06
  15  3.21617
  16  0.000577486
  17  0.00136514
  18  0.00111023
  19  16.1638
  20  1.62215e-05
  21  30.9642
  22  2.16921
  23  0.000149068
  24  2.47672
  25  6.29958e-06
  26  0.2052
  27  0.250334
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  4.342e+01  1.862e+01  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.095e+00  2.503e-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:  9.240e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.22
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.55e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 2.14e-05

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) = 6113.70553445
delta logL = 0.439894828198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6113.63943848
delta logL = 0.505990803495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.773       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3819       1.0000          .0000       5.0000    
     3 'Normalizat'    .93564       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0945       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=   6113.639     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.768        20.894       -.15606E-05    .11665E-03
   2  alpha         1.3819        .39195       -.19337E-04   -.31305E-05
   3  Normalizat    .93565        .16377        .44507E-06    .19854E-03
   4  Prefactor     1.0945        .20721        .19528E-06    .14592E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 39.7682
  alpha      = 1.38191
  Normalizat = 0.93565
  Prefactor  = 1.09449
 **********
 **   18 **HESSE 
 **********

 FCN=   6113.639     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.768        20.675        .63558E-04   -1.4446    
   2  alpha         1.3819        .38762        .10968E-01   -.46367    
   3  Normalizat    .93565        .19706        .24004E-03   -.95219    
   4  Prefactor     1.0945        .24920        .28191E-03   -.89643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82535e-11
Minuit parameter uncertainties:
  1  20.6784
  2  0.389592
  3  0.197213
  4  0.249467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276854': 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) = 6113.63943844
delta logL = 0.505990842134

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.977e+01  2.068e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.382e+00  3.896e-01  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.094e+00  2.495e-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:  9.356e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.19
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.38 +/- 0.39
Photon Flux (Free Index): 2.89e-08 +/- 1.90e-08
Energy Flux (Free Index): 8.67e-05 +/- 6.55e-05

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/276854/cmap_HighResolution_339638401_339897601_4FGL_J1309.4+4305_daily_bin387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.55e-08', energy_flux2='8.67e-05', photon_flux_error='1.95e-08', dlogl='5.06e-01', energy_flux='5.00e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-07 01:06:35.541736', photon_index_error2='0.39', photon_index2='1.38', ts='37.22', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='6.55e-05', EG='0.92', time_epoch_completed='1631001995.54', return_code='0', job_id='276854', GAL2='1.09', EG2='0.94', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='1.90e-08', ts2='38.19', photon_index='1.77' WHERE bin_id='387' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 276854: <4FGL_J1309.4+4305_daily_bin387> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin387> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:40 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:51:13 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:51:13 2021
Terminated at Tue Sep  7 01:06:36 2021
Results reported at Tue Sep  7 01:06:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin387 197.363 43.085 339638401 339897601 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            956 sec.

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

