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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin572
RA = 197.363, Dec = 43.085
tmin = 387590401, tmax = 387849601
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='278298', job_status='RUN', time_executed='2021-09-07 00:57:38.637261', time_epoch_executed='1631001458.64' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278298/ft1_4FGL_J1309.4+4305_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278298/ft2_4FGL_J1309.4+4305_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278298/ft1_4FGL_J1309.4+4305_daily_bin572.fits outfile=/scratch/kocevski/278298/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin572.fits ra=197.363 dec=43.085 rad=12.0 tmin=387590401.0 tmax=387849601.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.42
user 3.09
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278298/ft1_filtered_4FGL_J1309.4+4305_daily_bin572.fits" evtable="EVENTS" scfile=/scratch/kocevski/278298/ft2_4FGL_J1309.4+4305_daily_bin572.fits sctable="SC_DATA" outfile=/scratch/kocevski/278298/ltcube_387590401_387849601_4FGL_J1309.4+4305_daily_bin572.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/278298/ft2_4FGL_J1309.4+4305_daily_bin572.fits
.....................!
real 15.10
user 14.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278298/ft1_filtered_4FGL_J1309.4+4305_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/278298/ft2_4FGL_J1309.4+4305_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/278298/ltcube_387590401_387849601_4FGL_J1309.4+4305_daily_bin572.fits outfile=/scratch/kocevski/278298/expmap_387590401_387849601_4FGL_J1309.4+4305_daily_bin572.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/278298/ltcube_387590401_387849601_4FGL_J1309.4+4305_daily_bin572.fits
.....................!
real 192.64
user 185.92
sys 5.75

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/278298/ft1_filtered_4FGL_J1309.4+4305_daily_bin572.fits scfile=/scratch/kocevski/278298/ft2_4FGL_J1309.4+4305_daily_bin572.fits outfile=/scratch/kocevski/278298/cmap_387590401_387849601_4FGL_J1309.4+4305_daily_bin572.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.70
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278298/ft1_filtered_4FGL_J1309.4+4305_daily_bin572.fits scfile=/scratch/kocevski/278298/ft2_4FGL_J1309.4+4305_daily_bin572.fits outfile=/scratch/kocevski/278298/cmap_HighResolution_387590401_387849601_4FGL_J1309.4+4305_daily_bin572.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.59
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5989       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4847       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94263E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1195       1.0000         .10000E-03   10000.    
    12 'norm      '    11.297       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.297       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19231E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10364E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.322       1.0000         .10000E-03   10000.    
    25 'norm      '    21.852       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95265       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87271       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=   7704.210     FROM MIGRAD    STATUS=CONVERGED   1191 CALLS     3444 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5988        7.6829        .14548E-03   -.30790E-04
   2  Prefactor     22.633        24.385        .84193E-04    .13503E-05
   3  Prefactor     .10000E-03    5.4225        .18142E-02** at limit **
   4  Prefactor     3.4925        18.654        .21661E-03    .29549E-04
   5  norm          7.6762        2.4008        .73791E-04    .44679E-05
   6  Prefactor     .10005E-03    4.1688        .49240E-01** at limit **
   7  norm          1.5660        3.5349        .23769E-03    .88390E-04
   8  Prefactor     .10000E-03    24.386        .18142E-02** at limit **
   9  Prefactor     .10000E-03    30.651        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.433        .18142E-02** at limit **
  11  norm          1.1200        2.6312        .21497E-03    .14173E-03
  12  norm          11.297        10.231        .59596E-03    .94904E-04
  13  norm          .10000E-03    2.4744        .18979E-02** at limit **
  14  norm          .10000E-03    2.2859        .12886E-02** at limit **
  15  norm          1.7669        2.9153        .18578E-03   -.23204E-03
  16  Prefactor     .21869        1.0343        .14201E-02    .76305E-03
  17  Prefactor     .10000E-03    4.0007        .17104E-02** at limit **
  18  Prefactor     .10000E-03    17.690        .18142E-02** at limit **
  19  Prefactor     .10000E-03    13.878        .18142E-02** at limit **
  20  Prefactor     12.308        12.869        .11423E-03   -.19506E-04
  21  Prefactor     .10000E-03    22.225        .10845    ** at limit **
  22  norm          .10000E-03    1.7155        .11098E-02** at limit **
  23  Prefactor     .10000E-03    34.347        .18142E-02** at limit **
  24  norm          10.322        2.0049        .51318E-04    .10146E-03
  25  norm          21.853        11.515        .85685E-04   -.39804E-05
  26  Normalizat    .95268        .16440        .21587E-03    .30633E-03
  27  Prefactor     .87270        .20276        .28405E-03    .19167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.59882
  Prefactor  = 22.6332
  Prefactor  = 0.0001
  Prefactor  = 3.49254
  norm       = 7.67622
  Prefactor  = 0.000100053
  norm       = 1.56597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12004
  norm       = 11.297
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.76688
  Prefactor  = 0.218693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.308
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3215
  norm       = 21.8532
  Normalizat = 0.952681
  Prefactor  = 0.872703
 **********
 **   18 **HESSE 
 **********

 FCN=   7704.210     FROM HESSE     STATUS=OK           482 CALLS     3926 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5988        7.6811        .58191E-05   -1.5157    
   2  Prefactor     22.633        24.378        .33677E-05   -1.4756    
   3  Prefactor     .10000E-03    5.4228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4925        18.637        .86643E-05   -1.5334    
   5  norm          7.6762        2.4007        .29516E-05   -1.5154    
   6  Prefactor     .10005E-03    4.0949        .49867E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5660        3.5340        .95076E-05   -1.5458    
   8  Prefactor     .10000E-03    24.387        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.664        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1200        2.6306        .85986E-05   -1.5496    
  12  norm          11.297        10.230        .23839E-04   -1.5036    
  13  norm          .10000E-03    2.4839        .37959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.2864        .25771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7669        2.9151        .74314E-05   -1.5442    
  16  Prefactor     .21869        1.0310        .56804E-04   -1.5614    
  17  Prefactor     .10000E-03    4.0013        .34208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.308        12.867        .45694E-05   -1.5006    
  21  Prefactor     .10000E-03    21.048        .11271       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7158        .22197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.322        2.0050        .20527E-05   -1.5065    
  25  norm          21.853        11.514        .34274E-05   -1.4773    
  26  Normalizat    .95268        .16456        .43174E-04   -.94633    
  27  Prefactor     .87270        .20297        .11362E-04   -.97102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99363e-10
Minuit parameter uncertainties:
  1  7.68211
  2  24.3887
  3  2.58163e-06
  4  16.1432
  5  2.40076
  6  0.000933296
  7  3.53449
  8  4.26156e-05
  9  0.000203326
  10  3.51063e-05
  11  2.6309
  12  10.2319
  13  2.55723e-05
  14  1.73069e-06
  15  2.91532
  16  0.949489
  17  3.92917e-06
  18  7.26587e-05
  19  2.21783e-05
  20  12.8702
  21  0.000283158
  22  1.81767e-06
  23  7.84645e-05
  24  2.005
  25  11.5155
  26  0.164651
  27  0.203143
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.130e+01  1.023e+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:  8.727e-01  2.031e-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.527e-01  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.07e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.18e-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) = 7704.11008971
delta logL = 0.0997606632382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7704.07340032
delta logL = 0.13645005248

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9195       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2943       1.0000          .0000       5.0000    
     3 'Normalizat'    .95507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87659       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=   7704.073     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8824        7.7419        .35620E-02    .20117E-03
   2  alpha         1.2924        .53670        .49916       -.67693E-04
   3  Normalizat    .95503        .13216        .45602E-01   -.23597E-04
   4  Prefactor     .87668        .16790        .64092E-01    .37839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.88241
  alpha      = 1.29244
  Normalizat = 0.955026
  Prefactor  = 0.876679
 **********
 **   18 **HESSE 
 **********

 FCN=   7704.073     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8824        10.977        .14248E-03   -1.5146    
   2  alpha         1.2924        .85665        .21130E-01   -.50410    
   3  Normalizat    .95503        .15827        .21561E-03   -.94553    
   4  Prefactor     .87668        .20139        .28348E-03   -.96961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44614e-10
Minuit parameter uncertainties:
  1  10.9795
  2  0.880174
  3  0.158347
  4  0.201561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278298': 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) = 7704.07339499
delta logL = 0.136455386059

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.882e+00  1.098e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.292e+00  8.802e-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:  8.767e-01  2.016e-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.550e-01  1.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.29 +/- 0.88
Photon Flux (Free Index): 5.49e-09 +/- 9.04e-09
Energy Flux (Free Index): 2.10e-05 +/- 3.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/278298/cmap_HighResolution_387590401_387849601_4FGL_J1309.4+4305_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='2.10e-05', photon_flux_error='1.07e-08', dlogl='1.36e-01', energy_flux='1.30e-05', photon_flux2='5.49e-09', job_status='DONE', time_completed='2021-09-07 01:12:03.511922', photon_index_error2='0.88', photon_index2='1.29', ts='7.05', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.05e-05', EG='0.95', time_epoch_completed='1631002323.51', return_code='0', job_id='278298', GAL2='0.88', EG2='0.96', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='9.04e-09', ts2='7.32', photon_index='1.77' WHERE bin_id='572' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 278298: <4FGL_J1309.4+4305_daily_bin572> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin572> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:30 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:41 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:55:41 2021
Terminated at Tue Sep  7 01:12:04 2021
Results reported at Tue Sep  7 01:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin572 197.363 43.085 387590401 387849601 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 :                                   859.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            994 sec.

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

