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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin158
RA = 197.363, Dec = 43.085
tmin = 280281601, tmax = 280540801
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='275383', job_status='RUN', time_executed='2021-09-07 00:48:56.246534', time_epoch_executed='1631000936.25' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275383/ft1_4FGL_J1309.4+4305_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275383/ft2_4FGL_J1309.4+4305_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275383/ft1_4FGL_J1309.4+4305_daily_bin158.fits outfile=/scratch/kocevski/275383/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin158.fits ra=197.363 dec=43.085 rad=12.0 tmin=280281601.0 tmax=280540801.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.59
user 3.34
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275383/ft1_filtered_4FGL_J1309.4+4305_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/275383/ft2_4FGL_J1309.4+4305_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/275383/ltcube_280281601_280540801_4FGL_J1309.4+4305_daily_bin158.fits outfile=/scratch/kocevski/275383/expmap_280281601_280540801_4FGL_J1309.4+4305_daily_bin158.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/275383/ltcube_280281601_280540801_4FGL_J1309.4+4305_daily_bin158.fits
.....................!
real 156.90
user 151.70
sys 4.62

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/275383/ft1_filtered_4FGL_J1309.4+4305_daily_bin158.fits scfile=/scratch/kocevski/275383/ft2_4FGL_J1309.4+4305_daily_bin158.fits outfile=/scratch/kocevski/275383/cmap_280281601_280540801_4FGL_J1309.4+4305_daily_bin158.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.51
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275383/ft1_filtered_4FGL_J1309.4+4305_daily_bin158.fits scfile=/scratch/kocevski/275383/ft2_4FGL_J1309.4+4305_daily_bin158.fits outfile=/scratch/kocevski/275383/cmap_HighResolution_280281601_280540801_4FGL_J1309.4+4305_daily_bin158.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.50
user 0.31
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.676       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.079       1.0000         .10000E-03   10000.    
     5 'norm      '    .94038       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.942       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.990       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4535       1.0000         .10000E-03   10000.    
    12 'norm      '    11.356       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    26.905       1.0000         .10000E-03   10000.    
    15 'norm      '    180.32       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3362       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.6060       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .12831E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    8.2795       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .65725       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3921       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=   7612.484     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3349 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6120        .17715E-07** at limit **
   2  Prefactor     42.680        24.240       -.25941E-06   -.52413E-04
   3  Prefactor     .10000E-03    7.9551       -.40084E-07** at limit **
   4  Prefactor     20.083        16.232       -.45901E-06   -.51818E-04
   5  norm          .94155        1.6402        .10871E-06    .13527E-03
   6  Prefactor     .10000E-03    2.8253       -.30813E-07** at limit **
   7  norm          .10000E-03    2.2144        .29784E-07** at limit **
   8  Prefactor     60.952        61.272        .55703E-05    .12673E-03
   9  Prefactor     10.980        23.321        .15447E-05    .58285E-04
  10  Prefactor     .10002E-03    11.550       -.96565E-07** at limit **
  11  norm          3.4488        4.5871       -.74769E-07   -.81011E-04
  12  norm          11.357        11.103       -.24754E-06   -.44777E-05
  13  norm          .10000E-03    3.5883        .12108E-07** at limit **
  14  norm          26.896        9.1975       -.98029E-07    .78214E-04
  15  norm          180.33        14.172       -.78551E-07   -.81093E-04
  16  Prefactor     3.3364        2.8298        .49755E-07    .29210E-03
  17  Prefactor     .10000E-03    29.570       -.66858E-05** at limit **
  18  Prefactor     .10000E-03    27.144       -.57562E-07** at limit **
  19  Prefactor     .10000E-03    15.713        .15166E-05** at limit **
  20  Prefactor     .10000E-03    25.427        .27188E-05** at limit **
  21  Prefactor     .10000E-03    15.463       -.14786E-05** at limit **
  22  norm          5.6069        2.9642        .68557E-06   -.32179E-02
  23  Prefactor     .10000E-03    36.022        .35915E-05** at limit **
  24  norm          .20315E-01    .50589        .50659E-07   -.18664E-03
  25  norm          8.2806        11.565        .10397E-06   -.26182E-04
  26  Normalizat    .65730        .17238       -.73945E-06   -.21174E-04
  27  Prefactor     1.3917        .21342       -.28606E-06   -.22792E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 42.6805
  Prefactor  = 0.0001
  Prefactor  = 20.0831
  norm       = 0.941546
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.9521
  Prefactor  = 10.9797
  Prefactor  = 0.00010002
  norm       = 3.44877
  norm       = 11.3574
  norm       = 0.0001
  norm       = 26.896
  norm       = 180.325
  Prefactor  = 3.33637
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.60694
  Prefactor  = 0.000100001
  norm       = 0.0203154
  norm       = 8.2806
  Normalizat = 0.657297
  Prefactor  = 1.39172
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.484     FROM HESSE     STATUS=OK           494 CALLS     3843 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6181        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.680        24.271        .61366E-04   -1.4400    
   3  Prefactor     .10000E-03    7.9661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.083        16.235        .89383E-04   -1.4811    
   5  norm          .94155        1.3000        .14339E-02   -1.5514    
   6  Prefactor     .10000E-03    2.8380        .14310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2489        .12654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.952        62.046        .51398E-04   -1.4145    
   9  Prefactor     10.980        23.197        .12085E-03   -1.5045    
  10  Prefactor     .10002E-03    128.43        .54639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4488        4.4769        .20125E-03   -1.5337    
  12  norm          11.357        11.108        .11888E-03   -1.5034    
  13  norm          .10000E-03    3.6468        .32056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.896        9.1480        .77233E-04   -1.4670    
  15  norm          180.33        14.198        .30060E-04   -1.3014    
  16  Prefactor     3.3364        2.8155        .12829E-03   -1.5343    
  17  Prefactor     .10000E-03    30.596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.6069        4.6252        .81781E-03   -1.5234    
  23  Prefactor     .10000E-03    36.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .20315E-01    11.719        .11899E-02   -1.5680    
  25  norm          8.2806        11.563        .13933E-03   -1.5132    
  26  Normalizat    .65730        .20605        .31982E-03   -1.0560    
  27  Prefactor     1.3917        .25857        .29349E-03   -.80619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28352e-09
Minuit parameter uncertainties:
  1  3.24401e-06
  2  24.2768
  3  4.30705e-07
  4  16.2389
  5  1.30003
  6  3.47414e-07
  7  3.85049e-06
  8  62.1115
  9  23.2159
  10  0.00319152
  11  4.47734
  12  11.1102
  13  2.64703e-06
  14  9.14851
  15  14.1984
  16  2.81561
  17  0.000366057
  18  1.72415e-06
  19  9.53532e-05
  20  0.000187925
  21  8.36309e-05
  22  4.62548
  23  0.000338129
  24  0.973659
  25  11.5656
  26  0.206294
  27  0.258813
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.136e+01  1.111e+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.392e+00  2.588e-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:  6.573e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.98
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.28e-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) = 7612.3379621
delta logL = 0.145568015838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7612.32877528
delta logL = 0.154754841469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8012       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3553       1.0000          .0000       5.0000    
     3 'Normalizat'    .65894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3937       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=   7612.329     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      246 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7987        11.034        .12800E-03   -.23679E-03
   2  alpha         1.3553        .72007        .21118E-01    .25841E-04
   3  Normalizat    .65893        .19810        .31948E-03    .43136E-03
   4  Prefactor     1.3937        .25646        .29336E-03    .41109E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.7987
  alpha      = 1.35525
  Normalizat = 0.658932
  Prefactor  = 1.39372
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.329     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7987        11.260        .51199E-05   -1.5082    
   2  alpha         1.3553        .73448        .84473E-03   -.47563    
   3  Normalizat    .65893        .19829        .12779E-04   -1.0554    
   4  Prefactor     1.3937        .25671        .58673E-04   -.80561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47198e-10
Minuit parameter uncertainties:
  1  11.2623
  2  0.74855
  3  0.198504
  4  0.256948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275383': 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) = 7612.32877525
delta logL = 0.154754865182

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  9.799e+00  1.126e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.355e+00  7.486e-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.394e+00  2.569e-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:  6.589e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.29
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.36 +/- 0.75
Photon Flux (Free Index): 7.02e-09 +/- 9.74e-09
Energy Flux (Free Index): 2.26e-05 +/- 3.32e-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/275383/cmap_HighResolution_280281601_280540801_4FGL_J1309.4+4305_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='2.26e-05', photon_flux_error='1.16e-08', dlogl='1.55e-01', energy_flux='1.31e-05', photon_flux2='7.02e-09', job_status='DONE', time_completed='2021-09-07 01:01:05.534770', photon_index_error2='0.75', photon_index2='1.36', ts='5.98', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='3.32e-05', EG='0.66', time_epoch_completed='1631001665.53', return_code='0', job_id='275383', GAL2='1.39', EG2='0.66', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='9.74e-09', ts2='6.29', photon_index='1.77' WHERE bin_id='158' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:01:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 275383: <4FGL_J1309.4+4305_daily_bin158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin158 197.363 43.085 280281601 280540801 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 :                                   725.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            940 sec.

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

