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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin411
RA = 197.363, Dec = 43.085
tmin = 345859201, tmax = 346118401
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='276891', job_status='RUN', time_executed='2021-09-07 00:55:22.319142', time_epoch_executed='1631001322.32' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276891/ft1_4FGL_J1309.4+4305_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276891/ft2_4FGL_J1309.4+4305_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276891/ft1_4FGL_J1309.4+4305_daily_bin411.fits outfile=/scratch/kocevski/276891/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin411.fits ra=197.363 dec=43.085 rad=12.0 tmin=345859201.0 tmax=346118401.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 2.84
user 2.60
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276891/ft2_4FGL_J1309.4+4305_daily_bin411.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/276891/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin411.fits evtable="EVENTS" outfile="/scratch/kocevski/276891/ft1_filtered_4FGL_J1309.4+4305_daily_bin411.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/276891/ft1_filtered_4FGL_J1309.4+4305_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/276891/ft2_4FGL_J1309.4+4305_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/276891/ltcube_345859201_346118401_4FGL_J1309.4+4305_daily_bin411.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/276891/ft2_4FGL_J1309.4+4305_daily_bin411.fits
.....................!
real 14.61
user 14.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276891/ft1_filtered_4FGL_J1309.4+4305_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/276891/ft2_4FGL_J1309.4+4305_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/276891/ltcube_345859201_346118401_4FGL_J1309.4+4305_daily_bin411.fits outfile=/scratch/kocevski/276891/expmap_345859201_346118401_4FGL_J1309.4+4305_daily_bin411.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/276891/ltcube_345859201_346118401_4FGL_J1309.4+4305_daily_bin411.fits
.....................!
real 157.11
user 152.09
sys 4.68

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/276891/ft1_filtered_4FGL_J1309.4+4305_daily_bin411.fits scfile=/scratch/kocevski/276891/ft2_4FGL_J1309.4+4305_daily_bin411.fits outfile=/scratch/kocevski/276891/cmap_345859201_346118401_4FGL_J1309.4+4305_daily_bin411.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276891/ft1_filtered_4FGL_J1309.4+4305_daily_bin411.fits scfile=/scratch/kocevski/276891/ft2_4FGL_J1309.4+4305_daily_bin411.fits outfile=/scratch/kocevski/276891/cmap_HighResolution_345859201_346118401_4FGL_J1309.4+4305_daily_bin411.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.48
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.1245       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0630       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5332       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.359       1.0000         .10000E-03   10000.    
    13 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.7446       1.0000         .10000E-03   10000.    
    15 'norm      '    .80989       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7865       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.913       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.310       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12285E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    21.123       1.0000         .10000E-03   10000.    
    25 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2523       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .55537       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=   5668.644     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3342 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6803        .47647E-07** at limit **
   2  Prefactor     19.978        16.509       -.83213E-07    .45613E-04
   3  Prefactor     .10000E-03    9.2694       -.26829E-06** at limit **
   4  Prefactor     .10000E-03    11.167       -.35279E-06** at limit **
   5  norm          9.1245        3.2748        .44047E-07    .23187E-03
   6  Prefactor     .10000E-03    2.0925        .28263E-07** at limit **
   7  norm          2.0636        3.5263       -.28904E-07    .55220E-05
   8  Prefactor     5.5343        43.185        .10181E-05    .24952E-04
   9  Prefactor     .10000E-03    23.201       -.17806E-05** at limit **
  10  Prefactor     .10000E-03    8.9192        .51764E-06** at limit **
  11  norm          .10000E-03    2.4367        .12840E-07** at limit **
  12  norm          15.359        13.935        .49003E-07    .50214E-04
  13  norm          .10000E-03    1.6043        .30475E-06** at limit **
  14  norm          2.7459        3.4528       -.91670E-07   -.19714E-03
  15  norm          .81556        2.5298       -.46421E-05   -.18012E-03
  16  Prefactor     4.7853        3.1032       -.11522E-06   -.47255E-04
  17  Prefactor     .10000E-03    5.5247       -.43748E-08** at limit **
  18  Prefactor     5.0139        79.499       -.18051E-05    .41012E-04
  19  Prefactor     .10000E-03    16.076        .10012E-05** at limit **
  20  Prefactor     13.914        13.055        .29895E-06    .14270E-03
  21  Prefactor     46.316        43.411       -.18156E-06    .16231E-03
  22  norm          .10000E-03    1.7869       -.23955E-06** at limit **
  23  Prefactor     .10000E-03    52.371        .30505E-05** at limit **
  24  norm          21.123        3.1936        .15036E-08    .59919E-03
  25  norm          .10000E-03    17.093        .54030E-06** at limit **
  26  Normalizat    1.2524        .18234        .26593E-05    .19346E-03
  27  Prefactor     .55534        .21648       -.29757E-05    .17803E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.9781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.12446
  Prefactor  = 0.0001
  norm       = 2.0636
  Prefactor  = 5.53433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.3594
  norm       = 0.0001
  norm       = 2.7459
  norm       = 0.815562
  Prefactor  = 4.78528
  Prefactor  = 0.0001
  Prefactor  = 5.01387
  Prefactor  = 0.0001
  Prefactor  = 13.9137
  Prefactor  = 46.3157
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.1231
  norm       = 0.0001
  Normalizat = 1.25239
  Prefactor  = 0.555341
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.644     FROM HESSE     STATUS=OK           480 CALLS     3822 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6941        .12032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.978        16.511        .89585E-04   -1.4814    
   3  Prefactor     .10000E-03    9.2829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.1245        3.2748        .79085E-04   -1.5104    
   6  Prefactor     .10000E-03    2.0983        .10635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0636        3.4960        .17823E-03   -1.5421    
   8  Prefactor     5.5343        43.140        .17080E-03   -1.5237    
   9  Prefactor     .10000E-03    23.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4696        .11472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.359        13.929        .10220E-03   -1.4924    
  13  norm          .10000E-03    2.3363        .17314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7459        3.2371        .14311E-03   -1.5377    
  15  norm          .81556        2.5403        .20667E-03   -1.5527    
  16  Prefactor     4.7853        3.0951        .10208E-03   -1.5270    
  17  Prefactor     .10000E-03    5.5410        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0139        80.089        .17800E-03   -1.5260    
  19  Prefactor     .10000E-03    16.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.914        13.068        .10738E-03   -1.4962    
  21  Prefactor     46.316        43.183        .58919E-04   -1.4346    
  22  norm          .10000E-03    1.7993        .98190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          21.123        3.1993        .49546E-04   -1.4788    
  25  norm          .10000E-03    17.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2524        .20283        .20958E-03   -.84999    
  27  Prefactor     .55534        .23919        .36707E-03   -1.0950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2367e-10
Minuit parameter uncertainties:
  1  7.60314e-07
  2  16.5146
  3  8.55885e-06
  4  3.08182e-05
  5  3.27487
  6  2.80893e-06
  7  3.49633
  8  30.9339
  9  0.000146053
  10  3.01103e-06
  11  4.54639e-06
  12  13.9319
  13  2.78167e-05
  14  3.23731
  15  2.54067
  16  3.09517
  17  3.27368e-06
  18  40.1411
  19  5.65131e-05
  20  13.0706
  21  43.2118
  22  3.88819e-06
  23  0.000264477
  24  3.19937
  25  1.52727e-05
  26  0.202959
  27  0.23963
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.536e+01  1.393e+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.553e-01  2.396e-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.252e+00  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 1.77e-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) = 5668.5883375
delta logL = 0.0555405617688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5668.58606748
delta logL = 0.0578105824525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.534       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1139       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56183       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=   5668.586     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      241 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.531        14.373        .10506E-03    .40642E-03
   2  alpha         2.1150        1.0448        .14744E-01    .48077E-04
   3  Normalizat    1.2413        .20093        .21035E-03   -.66600E-03
   4  Prefactor     .56200        .23949        .36497E-03   -.54933E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5306
  alpha      = 2.11502
  Normalizat = 1.24131
  Prefactor  = 0.561997
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.586     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.531        13.895        .21012E-04   -1.4945    
   2  alpha         2.1150        1.0109        .58976E-03   -.15461    
   3  Normalizat    1.2413        .20052        .42070E-04   -.85336    
   4  Prefactor     .56200        .23936        .14599E-04   -1.0921    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26352e-09
Minuit parameter uncertainties:
  1  13.898
  2  1.04149
  3  0.200644
  4  0.239792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276891': 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) = 5668.58606671
delta logL = 0.0578113482379

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.453e+01  1.390e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.115e+00  1.041e+00  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.620e-01  2.398e-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.241e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.56
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.12 +/- 1.04
Photon Flux (Free Index): 2.51e-08 +/- 3.70e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.36e-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/276891/cmap_HighResolution_345859201_346118401_4FGL_J1309.4+4305_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='1.37e-05', photon_flux_error='1.46e-08', dlogl='5.78e-02', energy_flux='1.77e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-09-07 01:05:23.143115', photon_index_error2='1.04', photon_index2='2.12', ts='4.46', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.25', time_epoch_completed='1631001923.14', return_code='0', job_id='276891', GAL2='0.56', EG2='1.24', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='3.70e-08', ts2='4.56', photon_index='1.77' WHERE bin_id='411' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 276891: <4FGL_J1309.4+4305_daily_bin411> in cluster <slac> Done

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

Your job looked like:

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

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

