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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin271
RA = 197.363, Dec = 43.085
tmin = 309571201, tmax = 309830401
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='276666', job_status='RUN', time_executed='2021-09-07 00:54:11.237861', time_epoch_executed='1631001251.24' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276666/ft1_4FGL_J1309.4+4305_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276666/ft2_4FGL_J1309.4+4305_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276666/ft1_4FGL_J1309.4+4305_daily_bin271.fits outfile=/scratch/kocevski/276666/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin271.fits ra=197.363 dec=43.085 rad=12.0 tmin=309571201.0 tmax=309830401.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 6.29
user 6.01
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276666/ft1_filtered_4FGL_J1309.4+4305_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/276666/ft2_4FGL_J1309.4+4305_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/276666/ltcube_309571201_309830401_4FGL_J1309.4+4305_daily_bin271.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/276666/ft2_4FGL_J1309.4+4305_daily_bin271.fits
.....................!
real 15.92
user 15.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276666/ft1_filtered_4FGL_J1309.4+4305_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/276666/ft2_4FGL_J1309.4+4305_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/276666/ltcube_309571201_309830401_4FGL_J1309.4+4305_daily_bin271.fits outfile=/scratch/kocevski/276666/expmap_309571201_309830401_4FGL_J1309.4+4305_daily_bin271.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/276666/ltcube_309571201_309830401_4FGL_J1309.4+4305_daily_bin271.fits
.....................!
real 192.90
user 187.62
sys 4.67

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/276666/ft1_filtered_4FGL_J1309.4+4305_daily_bin271.fits scfile=/scratch/kocevski/276666/ft2_4FGL_J1309.4+4305_daily_bin271.fits outfile=/scratch/kocevski/276666/cmap_309571201_309830401_4FGL_J1309.4+4305_daily_bin271.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276666/ft1_filtered_4FGL_J1309.4+4305_daily_bin271.fits scfile=/scratch/kocevski/276666/ft2_4FGL_J1309.4+4305_daily_bin271.fits outfile=/scratch/kocevski/276666/cmap_HighResolution_309571201_309830401_4FGL_J1309.4+4305_daily_bin271.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8694       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.557       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.8015       1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.682       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0449       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7722       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.081       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1910       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33243       1.0000         .10000E-03   10000.    
    22 'norm      '    .17609E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11558E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5475       1.0000         .10000E-03   10000.    
    25 'norm      '    13.093       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75915       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87947       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=   4433.056     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3288 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8747        6.3787        .28547E-06    .28613E-04
   2  Prefactor     .10000E-03    13.172       -.16788E-06** at limit **
   3  Prefactor     37.569        22.556        .53785E-08   -.78722E-04
   4  Prefactor     .10000E-03    12.568        .20484E-06** at limit **
   5  norm          3.3378        2.7396        .10345E-06   -.35741E-05
   6  Prefactor     .10000E-03    2.3058       -.19059E-06** at limit **
   7  norm          5.8015        5.0076        .11465E-08    .19401E-04
   8  Prefactor     49.694        45.537        .32036E-06    .46175E-05
   9  Prefactor     9.0573        25.472        .14959E-05    .45317E-05
  10  Prefactor     5.7782        14.701        .12415E-05    .22754E-05
  11  norm          .10000E-03    2.1012       -.29287E-07** at limit **
  12  norm          16.083        14.500        .47495E-07   -.39922E-04
  13  norm          .10000E-03    1.5402        .96132E-07** at limit **
  14  norm          .10000E-03    1.5807        .14070E-07** at limit **
  15  norm          1.8108        1.9815       -.15207E-07   -.11358E-03
  16  Prefactor     3.0571        5.5253       -.23946E-05   -.81856E-03
  17  Prefactor     4.1994        18.138        .38007E-05   -.31793E-04
  18  Prefactor     .10000E-03    28.227        .15955E-06** at limit **
  19  Prefactor     2.8214        371.59        .16844E-04    .36167E-06
  20  Prefactor     .10000E-03    9.1726        .34818E-07** at limit **
  21  Prefactor     .28863        21.114        .46752E-05   -.53346E-03
  22  norm          .10000E-03    2.6078        .16188E-06** at limit **
  23  Prefactor     .10001E-03    235.23       -.35203E-05** at limit **
  24  norm          3.5477        1.5244        .12399E-07   -.46056E-03
  25  norm          13.083        15.889        .47407E-07   -.80973E-05
  26  Normalizat    .75886        .16726       -.10422E-05   -.40579E-03
  27  Prefactor     .87953        .20017       -.35726E-06   -.32198E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.87471
  Prefactor  = 0.0001
  Prefactor  = 37.5693
  Prefactor  = 0.0001
  norm       = 3.33783
  Prefactor  = 0.0001
  norm       = 5.80145
  Prefactor  = 49.6942
  Prefactor  = 9.05734
  Prefactor  = 5.77822
  norm       = 0.0001
  norm       = 16.0833
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.81081
  Prefactor  = 3.05712
  Prefactor  = 4.19939
  Prefactor  = 0.0001
  Prefactor  = 2.82138
  Prefactor  = 0.0001
  Prefactor  = 0.288632
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 3.54767
  norm       = 13.0825
  Normalizat = 0.758862
  Prefactor  = 0.879533
 **********
 **   18 **HESSE 
 **********

 FCN=   4433.056     FROM HESSE     STATUS=OK           490 CALLS     3778 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8747        6.3662        .20514E-03   -1.5314    
   2  Prefactor     .10000E-03    13.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.569        22.617        .65399E-04   -1.4481    
   4  Prefactor     .10000E-03    12.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3378        2.7342        .95980E-04   -1.5343    
   6  Prefactor     .10000E-03    2.3071        .98617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.8015        4.9868        .11968E-03   -1.5226    
   8  Prefactor     49.694        45.543        .56894E-04   -1.4297    
   9  Prefactor     9.0573        25.320        .13327E-03   -1.5106    
  10  Prefactor     5.7782        14.710        .16717E-03   -1.5227    
  11  norm          .10000E-03    2.1080        .94146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.083        14.501        .99875E-04   -1.4906    
  13  norm          .10000E-03    1.5557        .80571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5812        .81744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8108        1.9846        .95501E-04   -1.5439    
  16  Prefactor     3.0571        5.5948        .13207E-03   -1.5358    
  17  Prefactor     4.1994        17.776        .19686E-03   -1.5298    
  18  Prefactor     .10000E-03    28.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8214        372.31        .24060E-03   -1.5372    
  20  Prefactor     .10000E-03    9.2245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .28863        155.55        .48496E-02   -1.5601    
  22  norm          .10000E-03    5.8896        .20815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    234.93        .20664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5477        1.5235        .51729E-04   -1.5331    
  25  norm          13.083        15.900        .11070E-03   -1.4984    
  26  Normalizat    .75886        .19619        .21310E-03   -1.0161    
  27  Prefactor     .87953        .23572        .25369E-03   -.96860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63555e-08
Minuit parameter uncertainties:
  1  6.36733
  2  6.21219e-05
  3  22.6223
  4  7.40878e-05
  5  2.73432
  6  7.05156e-06
  7  4.98717
  8  45.5746
  9  25.3498
  10  14.7193
  11  3.59154e-06
  12  14.5039
  13  6.44378e-06
  14  1.30653e-06
  15  1.98469
  16  5.59574
  17  17.2883
  18  1.12692e-05
  19  65.2378
  20  2.28057e-06
  21  13.4339
  22  2.42306e-06
  23  0.00278593
  24  1.52347
  25  15.9055
  26  0.196376
  27  0.235988
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.608e+01  1.450e+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.795e-01  2.360e-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.589e-01  1.964e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.81
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.67e-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) = 4432.46822927
delta logL = 0.58766759314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4432.2817923
delta logL = 0.774104568557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6953       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86030       1.0000          .0000       5.0000    
     3 'Normalizat'    .77011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87596       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=   4432.282     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6731        7.6600        .36139E-02   -.61066E-04
   2  alpha         .85908        .45646        .33603       -.23020E-04
   3  Normalizat    .77021        .15538        .43219E-01    .10026E-04
   4  Prefactor     .87574        .19914        .44698E-01    .89659E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.67314
  alpha      = 0.85908
  Normalizat = 0.770215
  Prefactor  = 0.875745
 **********
 **   18 **HESSE 
 **********

 FCN=   4432.282     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .15E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6731        10.696        .14456E-03   -1.5154    
   2  alpha         .85908        .63238        .14826E-02   -.71599    
   3  Normalizat    .77021        .18148        .21160E-03   -1.0118    
   4  Prefactor     .87574        .23266        .25416E-03   -.96994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53288e-14
Minuit parameter uncertainties:
  1  10.6989
  2  0.644867
  3  0.181624
  4  0.23292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276666': 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) = 4432.28178938
delta logL = 0.774107480673

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.673e+00  1.070e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  8.591e-01  6.449e-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.757e-01  2.329e-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.702e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.36
Ra Dec: 197.363 43.085
Photon Index (Free Index): 0.86 +/- 0.64
Photon Flux (Free Index): 5.83e-09 +/- 6.17e-09
Energy Flux (Free Index): 6.61e-05 +/- 8.60e-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/276666/cmap_HighResolution_309571201_309830401_4FGL_J1309.4+4305_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='6.61e-05', photon_flux_error='1.52e-08', dlogl='7.74e-01', energy_flux='1.85e-05', photon_flux2='5.83e-09', job_status='DONE', time_completed='2021-09-07 01:04:59.855924', photon_index_error2='0.64', photon_index2='0.86', ts='7.81', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='8.60e-05', EG='0.76', time_epoch_completed='1631001899.86', return_code='0', job_id='276666', GAL2='0.88', EG2='0.77', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.17e-09', ts2='9.36', photon_index='1.77' WHERE bin_id='271' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:04:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 276666: <4FGL_J1309.4+4305_daily_bin271> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin271 197.363 43.085 309571201 309830401 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 :                                   637.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

