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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin448
RA = 197.363, Dec = 43.085
tmin = 355449601, tmax = 355708801
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='276955', job_status='RUN', time_executed='2021-09-07 00:55:18.806445', time_epoch_executed='1631001318.81' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276955/ft1_4FGL_J1309.4+4305_daily_bin448.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276955/ft2_4FGL_J1309.4+4305_daily_bin448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276955/ft1_4FGL_J1309.4+4305_daily_bin448.fits outfile=/scratch/kocevski/276955/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin448.fits ra=197.363 dec=43.085 rad=12.0 tmin=355449601.0 tmax=355708801.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.13
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276955/ft2_4FGL_J1309.4+4305_daily_bin448.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/276955/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin448.fits evtable="EVENTS" outfile="/scratch/kocevski/276955/ft1_filtered_4FGL_J1309.4+4305_daily_bin448.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276955/ft1_filtered_4FGL_J1309.4+4305_daily_bin448.fits" evtable="EVENTS" scfile=/scratch/kocevski/276955/ft2_4FGL_J1309.4+4305_daily_bin448.fits sctable="SC_DATA" outfile=/scratch/kocevski/276955/ltcube_355449601_355708801_4FGL_J1309.4+4305_daily_bin448.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/276955/ft2_4FGL_J1309.4+4305_daily_bin448.fits
.....................!
real 14.48
user 14.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276955/ft1_filtered_4FGL_J1309.4+4305_daily_bin448.fits evtable="EVENTS" scfile=/scratch/kocevski/276955/ft2_4FGL_J1309.4+4305_daily_bin448.fits sctable="SC_DATA" expcube=/scratch/kocevski/276955/ltcube_355449601_355708801_4FGL_J1309.4+4305_daily_bin448.fits outfile=/scratch/kocevski/276955/expmap_355449601_355708801_4FGL_J1309.4+4305_daily_bin448.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/276955/ltcube_355449601_355708801_4FGL_J1309.4+4305_daily_bin448.fits
.....................!
real 192.94
user 187.34
sys 4.98

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/276955/ft1_filtered_4FGL_J1309.4+4305_daily_bin448.fits scfile=/scratch/kocevski/276955/ft2_4FGL_J1309.4+4305_daily_bin448.fits outfile=/scratch/kocevski/276955/cmap_355449601_355708801_4FGL_J1309.4+4305_daily_bin448.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276955/ft1_filtered_4FGL_J1309.4+4305_daily_bin448.fits scfile=/scratch/kocevski/276955/ft2_4FGL_J1309.4+4305_daily_bin448.fits outfile=/scratch/kocevski/276955/cmap_HighResolution_355449601_355708801_4FGL_J1309.4+4305_daily_bin448.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5138       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43165E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6184       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    30.729       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8485       1.0000         .10000E-03   10000.    
    14 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.144       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.968       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0637       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.733       1.0000         .10000E-03   10000.    
    24 'norm      '    15.774       1.0000         .10000E-03   10000.    
    25 'norm      '    .10414E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .50990       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5432       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=   5590.995     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3263 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5137        6.1857        .50540E-06    .11721E-03
   2  Prefactor     .10000E-03    23.870        .18778E-05** at limit **
   3  Prefactor     .10000E-03    7.3079       -.33151E-06** at limit **
   4  Prefactor     .10000E-03    11.112        .23688E-06** at limit **
   5  norm          .10000E-03    1.3951        .27791E-07** at limit **
   6  Prefactor     .10000E-03    3.7250       -.14283E-06** at limit **
   7  norm          1.6182        3.5218        .60149E-06    .50272E-04
   8  Prefactor     .10000E-03    31.107       -.11624E-05** at limit **
   9  Prefactor     .10000E-03    16.407        .14213E-06** at limit **
  10  Prefactor     .10000E-03    11.997       -.47728E-07** at limit **
  11  norm          .10000E-03    3.5223        .42131E-07** at limit **
  12  norm          30.730        18.069        .55086E-07   -.19117E-04
  13  norm          6.8529        3.9386       -.59542E-06   -.14491E-02
  14  norm          .10000E-03    13.050        .15628E-05** at limit **
  15  norm          .10000E-03    1.1847        .15650E-08** at limit **
  16  Prefactor     .10000E-03    3.3443        .27183E-05** at limit **
  17  Prefactor     .10000E-03    8.0820        .14501E-05** at limit **
  18  Prefactor     .10000E-03    15.049       -.34809E-06** at limit **
  19  Prefactor     65.181        58.247        .24261E-06   -.14922E-03
  20  Prefactor     18.973        22.308        .38298E-06    .37753E-04
  21  Prefactor     .10000E-03    11.463        .72557E-07** at limit **
  22  norm          5.0638        5.0023       -.42096E-08   -.15713E-04
  23  Prefactor     38.713        67.064       -.26419E-05   -.14542E-03
  24  norm          15.774        2.6307        .31616E-07   -.11344E-03
  25  norm          .10000E-03    28.989       -.11102E-05** at limit **
  26  Normalizat    .50967        .17054       -.53024E-06   -.45599E-03
  27  Prefactor     1.5434        .21962       -.49819E-06   -.48127E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51372
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.61822
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 30.7296
  norm       = 6.85288
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.1806
  Prefactor  = 18.9726
  Prefactor  = 0.0001
  norm       = 5.06377
  Prefactor  = 38.7127
  norm       = 15.7739
  norm       = 0.0001
  Normalizat = 0.509669
  Prefactor  = 1.5434
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.995     FROM HESSE     STATUS=OK           480 CALLS     3743 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5137        6.1875        .18950E-03   -1.5283    
   2  Prefactor     .10000E-03    24.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4629        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.344        .27641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6182        3.5022        .19974E-03   -1.5454    
   8  Prefactor     .10000E-03    31.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6447        .27389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          30.730        18.072        .72279E-04   -1.4599    
  13  norm          6.8529        4.0622        .11104E-03   -1.5184    
  14  norm          .10000E-03    13.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1878        .79472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0092        .19531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.181        58.164        .49723E-04   -1.4092    
  20  Prefactor     18.973        22.327        .91962E-04   -1.4837    
  21  Prefactor     .10000E-03    11.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.0638        4.9933        .13633E-03   -1.5258    
  23  Prefactor     38.713        67.767        .64402E-04   -1.4463    
  24  norm          15.774        2.6308        .47413E-04   -1.4913    
  25  norm          .10000E-03    30.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .50967        .19766        .30159E-03   -1.1197    
  27  Prefactor     1.5434        .25655        .24393E-03   -.76331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39442e-09
Minuit parameter uncertainties:
  1  6.18833
  2  0.000396124
  3  3.75579e-05
  4  3.82768e-05
  5  2.72098e-06
  6  0.000208902
  7  3.50261
  8  0.000273449
  9  1.52893e-05
  10  1.29539e-05
  11  5.79836e-06
  12  18.0749
  13  4.06237
  14  0.000214306
  15  7.30547e-07
  16  0.000280688
  17  0.0001044
  18  5.36159e-05
  19  58.2145
  20  22.3364
  21  1.43033e-05
  22  4.99372
  23  67.9026
  24  2.63078
  25  0.00012505
  26  0.197935
  27  0.256768
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.073e+01  1.807e+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.543e+00  2.568e-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:  5.097e-01  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.25
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 3.22e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 2.08e-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) = 5590.85981914
delta logL = 0.134768426688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5590.85660781
delta logL = 0.137979759411

Fit tolerance = 1e-08

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

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

 FCN=   5590.857     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      268 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.304        355.11        .18835E-02   -.36161E-04
   2  alpha         2.0774        3.1382        .23327        .37036E-04
   3  Normalizat    .49300        .16610        .69222E-01    .22768E-04
   4  Prefactor     1.5531        .11094        .55020E-01   -.24743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.3043
  alpha      = 2.07737
  Normalizat = 0.493005
  Prefactor  = 1.55309
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.857     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.304        18.395        .75340E-04   -1.4643    
   2  alpha         2.0774        .60626        .12096E-01   -.16987    
   3  Normalizat    .49300        .19321        .30643E-03   -1.1274    
   4  Prefactor     1.5531        .25531        .24324E-03   -.76064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94199e-09
Minuit parameter uncertainties:
  1  18.3987
  2  0.612547
  3  0.193477
  4  0.255526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276955': 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) = 5590.85659952
delta logL = 0.137988044118

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.830e+01  1.840e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.077e+00  6.125e-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.553e+00  2.555e-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:  4.930e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.48
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.08 +/- 0.61
Photon Flux (Free Index): 4.61e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.92e-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/276955/cmap_HighResolution_355449601_355708801_4FGL_J1309.4+4305_daily_bin448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.22e-08', energy_flux2='2.67e-05', photon_flux_error='1.89e-08', dlogl='1.38e-01', energy_flux='3.54e-05', photon_flux2='4.61e-08', job_status='DONE', time_completed='2021-09-07 01:06:59.319822', photon_index_error2='0.61', photon_index2='2.08', ts='10.25', fit_tolerance='1e-08', GAL='1.54', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.51', time_epoch_completed='1631002019.32', return_code='0', job_id='276955', GAL2='1.55', EG2='0.49', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='3.80e-08', ts2='10.48', photon_index='1.77' WHERE bin_id='448' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 276955: <4FGL_J1309.4+4305_daily_bin448> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin448 197.363 43.085 355449601 355708801 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 :                                   697.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            971 sec.

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

