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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin360
RA = 197.363, Dec = 43.085
tmin = 332640001, tmax = 332899201
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='276810', job_status='RUN', time_executed='2021-09-07 00:54:30.226472', time_epoch_executed='1631001270.23' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276810/ft1_4FGL_J1309.4+4305_daily_bin360.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276810/ft2_4FGL_J1309.4+4305_daily_bin360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276810/ft1_4FGL_J1309.4+4305_daily_bin360.fits outfile=/scratch/kocevski/276810/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin360.fits ra=197.363 dec=43.085 rad=12.0 tmin=332640001.0 tmax=332899201.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.81
user 3.18
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276810/ft1_filtered_4FGL_J1309.4+4305_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/276810/ft2_4FGL_J1309.4+4305_daily_bin360.fits sctable="SC_DATA" expcube=/scratch/kocevski/276810/ltcube_332640001_332899201_4FGL_J1309.4+4305_daily_bin360.fits outfile=/scratch/kocevski/276810/expmap_332640001_332899201_4FGL_J1309.4+4305_daily_bin360.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/276810/ltcube_332640001_332899201_4FGL_J1309.4+4305_daily_bin360.fits
.....................!
real 194.36
user 187.32
sys 5.20

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/276810/ft1_filtered_4FGL_J1309.4+4305_daily_bin360.fits scfile=/scratch/kocevski/276810/ft2_4FGL_J1309.4+4305_daily_bin360.fits outfile=/scratch/kocevski/276810/cmap_332640001_332899201_4FGL_J1309.4+4305_daily_bin360.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276810/ft1_filtered_4FGL_J1309.4+4305_daily_bin360.fits scfile=/scratch/kocevski/276810/ft2_4FGL_J1309.4+4305_daily_bin360.fits outfile=/scratch/kocevski/276810/cmap_HighResolution_332640001_332899201_4FGL_J1309.4+4305_daily_bin360.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.7310       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9531       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4850       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.907       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.964       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3483       1.0000         .10000E-03   10000.    
    14 'norm      '    .29947E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.1443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7957       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0309       1.0000         .10000E-03   10000.    
    22 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.0030       1.0000         .10000E-03   10000.    
    25 'norm      '    4.6938       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93554       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0161       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=   6033.385     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3272 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94646        6.2908        .11471E-05    .54949E-04
   2  Prefactor     .10000E-03    10.204        .10623E-07** at limit **
   3  Prefactor     .10000E-03    25.080        .91272E-06** at limit **
   4  Prefactor     .10000E-03    23.475       -.61111E-06** at limit **
   5  norm          5.7310        2.1096       -.13857E-08   -.29707E-04
   6  Prefactor     1.9531        5.1698        .21008E-06    .34229E-04
   7  norm          2.4867        4.6516       -.56153E-06   -.15701E-03
   8  Prefactor     .10000E-03    13.158        .47220E-06** at limit **
   9  Prefactor     48.883        32.579        .24572E-05   -.90927E-04
  10  Prefactor     .10000E-03    4.9942       -.13537E-08** at limit **
  11  norm          .10000E-03    1.2614       -.79114E-07** at limit **
  12  norm          15.964        10.915        .27752E-07   -.13089E-05
  13  norm          3.3616        5.1041       -.13297E-06   -.61071E-03
  14  norm          .10000E-03    6.3568        .23531E-05** at limit **
  15  norm          8.1442        3.9659        .48573E-08    .69910E-05
  16  Prefactor     .10000E-03    1.9102       -.78395E-06** at limit **
  17  Prefactor     11.618        13.782        .24090E-06    .21879E-05
  18  Prefactor     .10000E-03    21.860       -.13245E-05** at limit **
  19  Prefactor     .10000E-03    26.170        .14498E-05** at limit **
  20  Prefactor     2.7946        16.792        .48900E-05    .11924E-03
  21  Prefactor     4.0331        33.260       -.10814E-07    .18426E-04
  22  norm          .10000E-03    1.6590        .34160E-06** at limit **
  23  Prefactor     .10000E-03    23.620       -.58465E-06** at limit **
  24  norm          6.0029        1.7945        .26161E-07    .22656E-04
  25  norm          4.6933        12.210        .29303E-06    .63030E-05
  26  Normalizat    .93558        .15853       -.74812E-07    .15084E-04
  27  Prefactor     1.0160        .19633       -.86242E-06   -.60380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.946456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73098
  Prefactor  = 1.95311
  norm       = 2.48671
  Prefactor  = 0.0001
  Prefactor  = 48.8832
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.9644
  norm       = 3.36159
  norm       = 0.000100003
  norm       = 8.14418
  Prefactor  = 0.0001
  Prefactor  = 11.6182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79458
  Prefactor  = 4.03314
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.0029
  norm       = 4.69329
  Normalizat = 0.935581
  Prefactor  = 1.01603
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.385     FROM HESSE     STATUS=OK           492 CALLS     3764 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94646        6.3723        .37560E-03   -1.5513    
   2  Prefactor     .10000E-03    10.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.7310        2.1104        .66705E-04   -1.5229    
   6  Prefactor     1.9531        5.1488        .27550E-03   -1.5428    
   7  norm          2.4867        4.6053        .19968E-03   -1.5393    
   8  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.883        32.894        .57340E-04   -1.4308    
  10  Prefactor     .10000E-03    5.0016        .16946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2640        .85200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.964        10.916        .10024E-03   -1.4909    
  13  norm          3.3616        4.5796        .16671E-03   -1.5341    
  14  norm          .10000E-03    9.4252        .30765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.1442        3.9669        .10415E-03   -1.5137    
  16  Prefactor     .10000E-03    3.0114        .19582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.618        13.435        .11748E-03   -1.5026    
  18  Prefactor     .10000E-03    21.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7946        18.313        .12166E-02   -1.5374    
  21  Prefactor     4.0331        33.086        .20085E-03   -1.5306    
  22  norm          .10000E-03    1.6843        .97817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.0029        1.7952        .54109E-04   -1.5218    
  25  norm          4.6933        12.208        .18574E-03   -1.5275    
  26  Normalizat    .93558        .18903        .22494E-03   -.95221    
  27  Prefactor     1.0160        .23332        .27634E-03   -.92197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88702e-10
Minuit parameter uncertainties:
  1  4.91216
  2  7.08541e-06
  3  5.75682e-05
  4  2.30985e-05
  5  2.11046
  6  5.14993
  7  4.60596
  8  1.20239e-05
  9  32.9058
  10  6.78043e-06
  11  3.314e-06
  12  10.9177
  13  4.58005
  14  0.000340873
  15  3.96708
  16  2.74953e-05
  17  13.4384
  18  9.38139e-05
  19  6.69969e-05
  20  14.3139
  21  23.1205
  22  5.424e-07
  23  2.85814e-05
  24  1.79521
  25  12.2146
  26  0.189168
  27  0.233551
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.596e+01  1.092e+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.016e+00  2.336e-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:  9.356e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.00
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.67e-08 +/- 1.14e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.26e-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) = 6032.60279635
delta logL = 0.782034191551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6032.55697015
delta logL = 0.827860388991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.502       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1237       1.0000          .0000       5.0000    
     3 'Normalizat'    .94122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0153       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=   6032.557     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      205 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.502        9.4879        .27252E-02    .51325E-03
   2  alpha         1.1237        .38802        .33445       -.18505E-04
   3  Normalizat    .94122        .15175        .45426E-01    .10732E-04
   4  Prefactor     1.0153        .19443        .62502E-01    .10083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5021
  alpha      = 1.12373
  Normalizat = 0.941223
  Prefactor  = 1.01534
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.557     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.502        10.996        .10901E-03   -1.4973    
   2  alpha         1.1237        .46997        .14115E-01   -.58297    
   3  Normalizat    .94122        .18038        .22428E-03   -.95026    
   4  Prefactor     1.0153        .23105        .27642E-03   -.92220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82506e-10
Minuit parameter uncertainties:
  1  10.9977
  2  0.474035
  3  0.180496
  4  0.23128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276810': 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) = 6032.55697015
delta logL = 0.827860389059

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.350e+01  1.100e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.124e+00  4.740e-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.015e+00  2.313e-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:  9.412e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.65
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.12 +/- 0.47
Photon Flux (Free Index): 9.14e-09 +/- 7.32e-09
Energy Flux (Free Index): 5.48e-05 +/- 5.99e-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/276810/cmap_HighResolution_332640001_332899201_4FGL_J1309.4+4305_daily_bin360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-08', energy_flux2='5.48e-05', photon_flux_error='1.14e-08', dlogl='8.28e-01', energy_flux='1.84e-05', photon_flux2='9.14e-09', job_status='DONE', time_completed='2021-09-07 01:06:49.992133', photon_index_error2='0.47', photon_index2='1.12', ts='14.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='5.99e-05', EG='0.94', time_epoch_completed='1631002009.99', return_code='0', job_id='276810', GAL2='1.02', EG2='0.94', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='7.32e-09', ts2='15.65', photon_index='1.77' WHERE bin_id='360' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 276810: <4FGL_J1309.4+4305_daily_bin360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin360 197.363 43.085 332640001 332899201 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 :                                   736.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            973 sec.

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

