/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 111 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin91
RA = 197.363, Dec = 43.085
tmin = 262915201, tmax = 263174401
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='275274', job_status='RUN', time_executed='2021-09-07 00:47:26.557057', time_epoch_executed='1631000846.56' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275274

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275274/ft1_4FGL_J1309.4+4305_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275274/ft2_4FGL_J1309.4+4305_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275274/ft1_4FGL_J1309.4+4305_daily_bin91.fits outfile=/scratch/kocevski/275274/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin91.fits ra=197.363 dec=43.085 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.29
user 1.12
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275274/ft2_4FGL_J1309.4+4305_daily_bin91.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/275274/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/275274/ft1_filtered_4FGL_J1309.4+4305_daily_bin91.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/275274/ft1_filtered_4FGL_J1309.4+4305_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/275274/ft2_4FGL_J1309.4+4305_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/275274/ltcube_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.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/275274/ft2_4FGL_J1309.4+4305_daily_bin91.fits
.....................!
real 13.90
user 13.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275274/ft1_filtered_4FGL_J1309.4+4305_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/275274/ft2_4FGL_J1309.4+4305_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/275274/ltcube_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.fits outfile=/scratch/kocevski/275274/expmap_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.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/275274/ltcube_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.fits
.....................!
real 192.60
user 186.77
sys 5.26

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/275274/ft1_filtered_4FGL_J1309.4+4305_daily_bin91.fits scfile=/scratch/kocevski/275274/ft2_4FGL_J1309.4+4305_daily_bin91.fits outfile=/scratch/kocevski/275274/cmap_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275274/ft1_filtered_4FGL_J1309.4+4305_daily_bin91.fits scfile=/scratch/kocevski/275274/ft2_4FGL_J1309.4+4305_daily_bin91.fits outfile=/scratch/kocevski/275274/cmap_HighResolution_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7753       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.219       1.0000         .10000E-03   10000.    
    12 'norm      '    17.648       1.0000         .10000E-03   10000.    
    13 'norm      '    9.9735       1.0000         .10000E-03   10000.    
    14 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.3426       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.385       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23420E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92443       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1033       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=   3528.037     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3210 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.214        9.9177        .28411E-06   -.49258E-05
   2  Prefactor     .10000E-03    23.974        .16201E-06** at limit **
   3  Prefactor     .10000E-03    18.041       -.30811E-07** at limit **
   4  Prefactor     .10000E-03    13.797        .44684E-07** at limit **
   5  norm          3.7752        3.5394        .15218E-06   -.10244E-04
   6  Prefactor     .10000E-03    3.1998        .70488E-08** at limit **
   7  norm          .10000E-03    5.2367       -.16641E-06** at limit **
   8  Prefactor     .10000E-03    53.829        .30131E-06** at limit **
   9  Prefactor     28.833        30.529        .61759E-07   -.60669E-05
  10  Prefactor     .10000E-03    14.964        .42136E-09** at limit **
  11  norm          12.219        7.9292       -.33322E-06    .19016E-04
  12  norm          17.664        24.059        .47686E-06    .13056E-04
  13  norm          9.9741        6.2009        .23682E-06    .20305E-04
  14  norm          .10000E-03    9.9889        .30066E-06** at limit **
  15  norm          8.3426        6.5121        .19427E-06   -.17333E-04
  16  Prefactor     .10000E-03    2.5968       -.16325E-06** at limit **
  17  Prefactor     13.389        18.184       -.31653E-05    .26482E-04
  18  Prefactor     .10000E-03    21.374        .33204E-07** at limit **
  19  Prefactor     .10000E-03    1060.2       -.29271E-04** at limit **
  20  Prefactor     .10000E-03    7.3160        .51568E-07** at limit **
  21  Prefactor     .10000E-03    11.952        .10028E-06** at limit **
  22  norm          .10000E-03    1.5752        .20777E-07** at limit **
  23  Prefactor     .10000E-03    23.932        .63552E-07** at limit **
  24  norm          .10000E-03    1.0408        .18873E-06** at limit **
  25  norm          .10000E-03    8.6024       -.32288E-07** at limit **
  26  Normalizat    .92446        .20611       -.11189E-05   -.56911E-04
  27  Prefactor     1.1033        .25812       -.14883E-05   -.46641E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.77523
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8326
  Prefactor  = 0.0001
  norm       = 12.2189
  norm       = 17.6642
  norm       = 9.97413
  norm       = 0.0001
  norm       = 8.34265
  Prefactor  = 0.0001
  Prefactor  = 13.3892
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.924461
  Prefactor  = 1.10327
 **********
 **   18 **HESSE 
 **********

 FCN=   3528.037     FROM HESSE     STATUS=OK           482 CALLS     3692 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.214        9.9161        .11463E-03   -1.5009    
   2  Prefactor     .10000E-03    24.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7752        3.5365        .10460E-03   -1.5319    
   6  Prefactor     .10000E-03    3.2046        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.3593        .26497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    53.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.833        30.516        .74601E-04   -1.4634    
  10  Prefactor     .10000E-03    15.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.219        7.9184        .11460E-03   -1.5009    
  12  norm          17.664        24.070        .95338E-04   -1.4867    
  13  norm          9.9741        6.1624        .10575E-03   -1.5076    
  14  norm          .10000E-03    10.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.3426        6.5144        .12859E-03   -1.5130    
  16  Prefactor     .10000E-03    2.6058        .93137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.389        18.047        .10948E-03   -1.4976    
  18  Prefactor     .10000E-03    21.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1051.1        .40164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3203        .15694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5773        .72806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.8035        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.6238        .17020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .92446        .24522        .23274E-03   -.95606    
  27  Prefactor     1.1033        .30612        .27145E-03   -.89362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87481e-11
Minuit parameter uncertainties:
  1  9.91744
  2  5.8558e-05
  3  2.29682e-05
  4  1.74123e-05
  5  3.53667
  6  6.34464e-06
  7  1.41313e-05
  8  2.775e-05
  9  30.5322
  10  3.00865e-05
  11  7.91912
  12  24.0832
  13  6.16277
  14  3.28403e-05
  15  6.51493
  16  3.24509e-05
  17  18.0544
  18  2.47297e-07
  19  0.00325377
  20  1.10957e-05
  21  2.88704e-05
  22  1.53838e-06
  23  4.86477e-05
  24  1.41341e-05
  25  7.84638e-06
  26  0.245515
  27  0.306613
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.766e+01  2.408e+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.103e+00  3.066e-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.245e-01  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275274/likelihoodResults_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.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) = 3526.20426606
delta logL = 1.83304287435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3526.20144651
delta logL = 1.83586243104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0140       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2677       1.0000          .0000       5.0000    
     3 'Normalizat'    .81723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1689       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=   3526.201     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      286 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0118        17.927        .88277E-04    .35448E-03
   2  alpha         3.2679        1.2180        .65704E-02    .22890E-04
   3  Normalizat    .81720        .25272        .24540E-03   -.38464E-03
   4  Prefactor     1.1690        .31401        .26410E-03   -.53376E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.01182
  alpha      = 3.26787
  Normalizat = 0.817199
  Prefactor  = 1.16896
 **********
 **   18 **HESSE 
 **********

 FCN=   3526.201     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0118        12.004        .35311E-05   -1.5178    
   2  alpha         3.2679        .83684        .26281E-03    .31219    
   3  Normalizat    .81720        .24952        .49079E-04   -.99434    
   4  Prefactor     1.1690        .30998        .52820E-04   -.87292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14366e-10
Minuit parameter uncertainties:
  1  12.0078
  2  0.855138
  3  0.249875
  4  0.310465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275274': 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) = 3526.20144648
delta logL = 1.83586245647

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.012e+00  1.201e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.268e+00  8.551e-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.169e+00  3.105e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  8.172e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 197.363 43.085
Photon Index (Free Index): 3.27 +/- 0.86
Photon Flux (Free Index): 1.11e-07 +/- 7.10e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.33e-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/275274/cmap_HighResolution_262915201_263174401_4FGL_J1309.4+4305_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-05', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='1.84e+00', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-07 00:57:27.850866', photon_index_error2='0.86', photon_index2='3.27', ts='0.79', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='8.47e-08', energy_flux_error2='1.33e-05', EG='0.92', time_epoch_completed='1631001447.85', return_code='0', job_id='275274', GAL2='1.17', EG2='0.82', return_code2='0', photon_flux_error2='7.10e-08', ts2='4.55', photon_index='1.77' WHERE bin_id='91' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:57:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 275274: <4FGL_J1309.4+4305_daily_bin91> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin91> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:17 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45:26 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:45:26 2021
Terminated at Tue Sep  7 00:57:28 2021
Results reported at Tue Sep  7 00:57:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin91 197.363 43.085 262915201 263174401 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 :                                   601.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            731 sec.

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

