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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1340
RA = 197.363, Dec = 43.085
tmin = 586656001, tmax = 586915201
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='284117', job_status='RUN', time_executed='2021-09-07 01:11:31.351826', time_epoch_executed='1631002291.35' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284117

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284117/ft1_4FGL_J1309.4+4305_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284117/ft2_4FGL_J1309.4+4305_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284117/ft1_4FGL_J1309.4+4305_daily_bin1340.fits outfile=/scratch/kocevski/284117/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1340.fits ra=197.363 dec=43.085 rad=12.0 tmin=586656001.0 tmax=586915201.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.71
user 3.47
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284117/ft1_filtered_4FGL_J1309.4+4305_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/284117/ft2_4FGL_J1309.4+4305_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/284117/ltcube_586656001_586915201_4FGL_J1309.4+4305_daily_bin1340.fits outfile=/scratch/kocevski/284117/expmap_586656001_586915201_4FGL_J1309.4+4305_daily_bin1340.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/284117/ltcube_586656001_586915201_4FGL_J1309.4+4305_daily_bin1340.fits
.....................!
real 194.60
user 187.61
sys 5.51

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/284117/ft1_filtered_4FGL_J1309.4+4305_daily_bin1340.fits scfile=/scratch/kocevski/284117/ft2_4FGL_J1309.4+4305_daily_bin1340.fits outfile=/scratch/kocevski/284117/cmap_586656001_586915201_4FGL_J1309.4+4305_daily_bin1340.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284117/ft1_filtered_4FGL_J1309.4+4305_daily_bin1340.fits scfile=/scratch/kocevski/284117/ft2_4FGL_J1309.4+4305_daily_bin1340.fits outfile=/scratch/kocevski/284117/cmap_HighResolution_586656001_586915201_4FGL_J1309.4+4305_daily_bin1340.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9948       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0425       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.518       1.0000         .10000E-03   10000.    
     7 'norm      '    2.8563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .40680E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.488       1.0000         .10000E-03   10000.    
    13 'norm      '    13.566       1.0000         .10000E-03   10000.    
    14 'norm      '    7.5280       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.455       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5709       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.095       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3832       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .50198       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=   5975.518     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3286 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9941        5.4466        .95543E-06   -.42340E-03
   2  Prefactor     .10000E-03    36.373        .17482E-04** at limit **
   3  Prefactor     .10000E-03    16.543       -.12704E-05** at limit **
   4  Prefactor     .10000E-03    7.5514       -.17300E-05** at limit **
   5  norm          3.0424        1.8384       -.48672E-07    .14451E-04
   6  Prefactor     14.522        9.0125       -.13165E-06    .48858E-03
   7  norm          2.8563        3.4404       -.94594E-07    .15044E-04
   8  Prefactor     .10000E-03    20.687        .88727E-05** at limit **
   9  Prefactor     16.088        20.419        .12778E-06    .12423E-03
  10  Prefactor     .10000E-03    28.963       -.83515E-05** at limit **
  11  norm          .10008E-03    4.9354       -.17508E-05** at limit **
  12  norm          12.488        13.632       -.33716E-06   -.17041E-04
  13  norm          13.568        7.9793       -.19902E-06    .31823E-03
  14  norm          7.5287        11.292       -.33895E-06    .29878E-04
  15  norm          .10000E-03    1.4082       -.44671E-07** at limit **
  16  Prefactor     5.9659        5.1754        .35683E-05    .61834E-03
  17  Prefactor     .10000E-03    79.853       -.42916E-05** at limit **
  18  Prefactor     .10000E-03    28.756       -.88278E-05** at limit **
  19  Prefactor     17.416        64.400       -.74207E-04    .23184E-04
  20  Prefactor     .10000E-03    22.467        .15827E-05** at limit **
  21  Prefactor     .10000E-03    8.8339        .17629E-06** at limit **
  22  norm          3.5701        3.5301       -.25226E-06   -.27788E-03
  23  Prefactor     .10000E-03    24.658       -.51339E-05** at limit **
  24  norm          12.094        2.4732       -.54986E-07    .22562E-04
  25  norm          .10000E-03    7.6004        .17069E-05** at limit **
  26  Normalizat    1.3833        .18397       -.18994E-06    .19483E-03
  27  Prefactor     .50191        .21877        .35892E-05    .60546E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.99405
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0424
  Prefactor  = 14.522
  norm       = 2.85628
  Prefactor  = 0.0001
  Prefactor  = 16.0879
  Prefactor  = 0.0001
  norm       = 0.000100082
  norm       = 12.4877
  norm       = 13.5676
  norm       = 7.52872
  norm       = 0.0001
  Prefactor  = 5.96588
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 17.416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57005
  Prefactor  = 0.0001
  norm       = 12.0945
  norm       = 0.0001
  Normalizat = 1.38333
  Prefactor  = 0.501911
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.518     FROM HESSE     STATUS=OK           486 CALLS     3772 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9941        5.4300        .16400E-03   -1.5218    
   2  Prefactor     .10000E-03    36.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0424        1.8403        .79239E-04   -1.5359    
   6  Prefactor     14.522        8.9073        .10512E-03   -1.4946    
   7  norm          2.8563        3.4333        .15219E-03   -1.5370    
   8  Prefactor     .10000E-03    20.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.088        20.340        .99890E-04   -1.4906    
  10  Prefactor     .10000E-03    29.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10008E-03    19.270        .32190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.488        13.629        .11335E-03   -1.5001    
  13  norm          13.568        8.0539        .10875E-03   -1.4971    
  14  norm          7.5287        11.406        .14617E-03   -1.5159    
  15  norm          .10000E-03    1.4168        .89569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9659        5.1133        .13974E-03   -1.5219    
  17  Prefactor     .10000E-03    81.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.416        64.460        .95865E-04   -1.4873    
  20  Prefactor     .10000E-03    22.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5701        3.5176        .13896E-03   -1.5330    
  23  Prefactor     .10000E-03    24.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.094        2.4774        .52538E-04   -1.5012    
  25  norm          .10000E-03    7.6287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3833        .21107        .21142E-03   -.81112    
  27  Prefactor     .50191        .24717        .39556E-03   -1.1189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48641e-09
Minuit parameter uncertainties:
  1  5.43044
  2  0.000432778
  3  4.76824e-05
  4  1.2589e-08
  5  1.84037
  6  8.90816
  7  3.4335
  8  1.09761e-05
  9  20.349
  10  0.00011581
  11  0.00250966
  12  13.6319
  13  8.05455
  14  11.4091
  15  2.09335e-06
  16  5.11363
  17  0.00100231
  18  6.51498e-06
  19  64.7199
  20  2.9559e-05
  21  2.27424e-06
  22  3.5178
  23  2.48954e-05
  24  2.47739
  25  5.79897e-06
  26  0.211205
  27  0.247703
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.249e+01  1.363e+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:  5.019e-01  2.477e-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:  1.383e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/284117/likelihoodResults_586656001_586915201_4FGL_J1309.4+4305_daily_bin1340.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) = 5975.49289319
delta logL = 0.0251935768101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5975.49240116
delta logL = 0.0256856035066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.488       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9746       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50336       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=   5975.492     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      243 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.479        13.454        .56677E-03   -.86533E-04
   2  alpha         1.9742        .90033        .19007E-01   -.12612E-04
   3  Normalizat    1.3792        .20792        .21169E-03   -.32236E-03
   4  Prefactor     .50339        .24513        .39499E-03   -.93428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4794
  alpha      = 1.97416
  Normalizat = 1.37922
  Prefactor  = 0.503385
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.492     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.479        13.283        .22671E-04   -1.5001    
   2  alpha         1.9742        .88914        .76028E-03   -.21192    
   3  Normalizat    1.3792        .20786        .42337E-04   -.81231    
   4  Prefactor     .50339        .24517        .15799E-04   -1.1182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43589e-10
Minuit parameter uncertainties:
  1  13.2865
  2  0.910017
  3  0.207991
  4  0.245683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284117': 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) = 5975.49240078
delta logL = 0.0256859862775

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.248e+01  1.329e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.974e+00  9.100e-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:  5.034e-01  2.457e-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:  1.379e+00  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.97 +/- 0.91
Photon Flux (Free Index): 1.73e-08 +/- 2.68e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.50e-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/284117/cmap_HighResolution_586656001_586915201_4FGL_J1309.4+4305_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-05', comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='1.22e-05', photon_flux_error='1.43e-08', dlogl='2.57e-02', energy_flux='1.44e-05', photon_flux2='1.73e-08', job_status='DONE', time_completed='2021-09-07 01:25:12.194897', photon_index_error2='0.91', photon_index2='1.97', ts='1.58', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='5.17e-08', energy_flux_error2='1.50e-05', EG='1.38', time_epoch_completed='1631003112.19', return_code='0', job_id='284117', GAL2='0.50', EG2='1.38', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.68e-08', ts2='1.63', photon_index='1.77' WHERE bin_id='1340' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 284117: <4FGL_J1309.4+4305_daily_bin1340> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1340> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 01:10:50 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:11:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:11:08 2021
Terminated at Tue Sep  7 01:25:12 2021
Results reported at Tue Sep  7 01:25:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1340 197.363 43.085 586656001 586915201 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 :                                   816.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            862 sec.

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

