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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin576
RA = 197.363, Dec = 43.085
tmin = 388627201, tmax = 388886401
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='278304', job_status='RUN', time_executed='2021-09-07 00:59:35.986900', time_epoch_executed='1631001575.99' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278304

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278304/ft1_4FGL_J1309.4+4305_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278304/ft2_4FGL_J1309.4+4305_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278304/ft1_4FGL_J1309.4+4305_daily_bin576.fits outfile=/scratch/kocevski/278304/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin576.fits ra=197.363 dec=43.085 rad=12.0 tmin=388627201.0 tmax=388886401.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 4.07
user 3.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278304/ft2_4FGL_J1309.4+4305_daily_bin576.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/278304/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin576.fits evtable="EVENTS" outfile="/scratch/kocevski/278304/ft1_filtered_4FGL_J1309.4+4305_daily_bin576.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.56
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278304/ft1_filtered_4FGL_J1309.4+4305_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/278304/ft2_4FGL_J1309.4+4305_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/278304/ltcube_388627201_388886401_4FGL_J1309.4+4305_daily_bin576.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/278304/ft2_4FGL_J1309.4+4305_daily_bin576.fits
.....................!
real 15.42
user 15.07
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278304/ft1_filtered_4FGL_J1309.4+4305_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/278304/ft2_4FGL_J1309.4+4305_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/278304/ltcube_388627201_388886401_4FGL_J1309.4+4305_daily_bin576.fits outfile=/scratch/kocevski/278304/expmap_388627201_388886401_4FGL_J1309.4+4305_daily_bin576.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/278304/ltcube_388627201_388886401_4FGL_J1309.4+4305_daily_bin576.fits
.....................!
real 192.09
user 186.53
sys 3.94

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/278304/ft1_filtered_4FGL_J1309.4+4305_daily_bin576.fits scfile=/scratch/kocevski/278304/ft2_4FGL_J1309.4+4305_daily_bin576.fits outfile=/scratch/kocevski/278304/cmap_388627201_388886401_4FGL_J1309.4+4305_daily_bin576.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.84
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278304/ft1_filtered_4FGL_J1309.4+4305_daily_bin576.fits scfile=/scratch/kocevski/278304/ft2_4FGL_J1309.4+4305_daily_bin576.fits outfile=/scratch/kocevski/278304/cmap_HighResolution_388627201_388886401_4FGL_J1309.4+4305_daily_bin576.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.78
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.431       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.183       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.978       1.0000         .10000E-03   10000.    
    11 'norm      '    5.3218       1.0000         .10000E-03   10000.    
    12 'norm      '    17.102       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .80251       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4052       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14784E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.493       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3067       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.869       1.0000         .10000E-03   10000.    
    24 'norm      '    8.8535       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .79209       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0632       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=   4894.781     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3352 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.432        8.3169        .24511E-07   -.22469E-06
   2  Prefactor     13.199        24.207        .66275E-07   -.10493E-04
   3  Prefactor     .10000E-03    6.7783       -.10020E-06** at limit **
   4  Prefactor     14.183        14.273       -.55557E-08   -.16082E-05
   5  norm          3.9267        2.5546        .37440E-07    .70943E-05
   6  Prefactor     .10000E-03    2.6193       -.34927E-07** at limit **
   7  norm          .10000E-03    3.5154       -.16593E-06** at limit **
   8  Prefactor     .10000E-03    12.893        .30908E-07** at limit **
   9  Prefactor     .10000E-03    14.827       -.28709E-06** at limit **
  10  Prefactor     24.979        18.603       -.42514E-06   -.76461E-05
  11  norm          5.3220        5.3205        .14062E-05   -.10353E-03
  12  norm          17.102        13.862        .42791E-07   -.21297E-05
  13  norm          .10000E-03    1.7483       -.21657E-06** at limit **
  14  norm          .80276        3.8632        .14810E-05    .25282E-04
  15  norm          .10000E-03    1.8067       -.84689E-07** at limit **
  16  Prefactor     4.4050        3.8631       -.77384E-07   -.54233E-04
  17  Prefactor     .10000E-03    6.5673        .58128E-06** at limit **
  18  Prefactor     .10000E-03    21.703       -.21071E-06** at limit **
  19  Prefactor     14.835        136.75        .66057E-06    .29212E-04
  20  Prefactor     .10000E-03    14.132       -.47201E-06** at limit **
  21  Prefactor     17.486        28.364        .62844E-07   -.11126E-04
  22  norm          1.3037        3.8017        .37777E-06    .11864E-03
  23  Prefactor     27.864        62.398        .20797E-06   -.44390E-05
  24  norm          8.8536        2.3948        .19220E-07    .11612E-04
  25  norm          .10000E-03    5.1157       -.27552E-07** at limit **
  26  Normalizat    .79211        .18065        .45057E-06   -.73030E-05
  27  Prefactor     1.0631        .22211       -.10416E-05    .54387E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4315
  Prefactor  = 13.199
  Prefactor  = 0.0001
  Prefactor  = 14.1831
  norm       = 3.92669
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9786
  norm       = 5.32203
  norm       = 17.1024
  norm       = 0.0001
  norm       = 0.802762
  norm       = 0.0001
  Prefactor  = 4.40496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8348
  Prefactor  = 0.000100003
  Prefactor  = 17.4864
  norm       = 1.3037
  Prefactor  = 27.8643
  norm       = 8.85363
  norm       = 0.0001
  Normalizat = 0.792109
  Prefactor  = 1.06313
 **********
 **   18 **HESSE 
 **********

 FCN=   4894.781     FROM HESSE     STATUS=OK           492 CALLS     3844 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.432        8.2989        .11361E-03   -1.5003    
   2  Prefactor     13.199        24.218        .11023E-03   -1.4981    
   3  Prefactor     .10000E-03    6.7884        .17789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.183        14.272        .10635E-03   -1.4955    
   5  norm          3.9267        2.5525        .87082E-04   -1.5312    
   6  Prefactor     .10000E-03    2.6244        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6107        .25621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.979        18.606        .80151E-04   -1.4708    
  11  norm          5.3220        5.2645        .75506E-03   -1.5247    
  12  norm          17.102        13.862        .96849E-04   -1.4881    
  13  norm          .10000E-03    1.7921        .90410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .80276        3.7518        .26818E-03   -1.5529    
  15  norm          .10000E-03    1.8461        .91794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4050        3.8452        .11337E-03   -1.5288    
  17  Prefactor     .10000E-03    6.5574        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.835        135.89        .10422E-03   -1.4937    
  20  Prefactor     .10000E-03    65.152        .47012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.486        28.357        .95759E-04   -1.4871    
  22  norm          1.3037        3.5440        .20872E-03   -1.5480    
  23  Prefactor     27.864        62.567        .75889E-04   -1.4652    
  24  norm          8.8536        2.3978        .53178E-04   -1.5113    
  25  norm          .10000E-03    5.1207        .15454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .79211        .21475        .23927E-03   -1.0036    
  27  Prefactor     1.0631        .26303        .26772E-03   -.90654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6947e-10
Minuit parameter uncertainties:
  1  8.29962
  2  24.2365
  3  4.93753e-06
  4  14.2757
  5  2.55254
  6  2.85833e-07
  7  3.72394e-06
  8  2.24266e-05
  9  5.12187e-05
  10  18.61
  11  5.26491
  12  13.865
  13  1.97103e-05
  14  3.47106
  15  1.43075e-06
  16  3.84537
  17  4.19013e-06
  18  2.09584e-05
  19  90.0685
  20  0.000847944
  21  28.3791
  22  3.5446
  23  62.7144
  24  2.39785
  25  4.86492e-07
  26  0.214978
  27  0.263355
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.710e+01  1.386e+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.063e+00  2.634e-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:  7.921e-01  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.20
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.60e-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) = 4894.60173879
delta logL = 0.179155514169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4894.58687181
delta logL = 0.19402248848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.472       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3244       1.0000          .0000       5.0000    
     3 'Normalizat'    .79849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0625       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=   4894.587     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.472        12.630        .26321E-02    .72779E-03
   2  alpha         1.3243        .52413        .40949       -.23231E-04
   3  Normalizat    .79852        .17010        .43591E-01    .13093E-04
   4  Prefactor     1.0625        .21827        .60563E-01    .73806E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4723
  alpha      = 1.32434
  Normalizat = 0.798516
  Prefactor  = 1.06247
 **********
 **   18 **HESSE 
 **********

 FCN=   4894.587     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.472        14.655        .10529E-03   -1.4947    
   2  alpha         1.3243        .67278        .16208E-01   -.48959    
   3  Normalizat    .79852        .20200        .23837E-03   -1.0012    
   4  Prefactor     1.0625        .25964        .26784E-03   -.90675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77318e-10
Minuit parameter uncertainties:
  1  14.6589
  2  0.683673
  3  0.202186
  4  0.259947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278304': 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) = 4894.5868718
delta logL = 0.194022499676

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.447e+01  1.466e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.324e+00  6.837e-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.062e+00  2.599e-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:  7.985e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.58
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.32 +/- 0.68
Photon Flux (Free Index): 1.02e-08 +/- 1.23e-08
Energy Flux (Free Index): 3.58e-05 +/- 4.83e-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/278304/cmap_HighResolution_388627201_388886401_4FGL_J1309.4+4305_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='3.58e-05', photon_flux_error='1.45e-08', dlogl='1.94e-01', energy_flux='1.97e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-07 01:10:49.051309', photon_index_error2='0.68', photon_index2='1.32', ts='9.20', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.83e-05', EG='0.79', time_epoch_completed='1631002249.05', return_code='0', job_id='278304', GAL2='1.06', EG2='0.80', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='1.23e-08', ts2='9.58', photon_index='1.77' WHERE bin_id='576' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 278304: <4FGL_J1309.4+4305_daily_bin576> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin576> 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) <bullet0187>, 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:10:49 2021
Results reported at Tue Sep  7 01:10:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin576 197.363 43.085 388627201 388886401 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            919 sec.

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

