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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin309
RA = 197.363, Dec = 43.085
tmin = 319420801, tmax = 319680001
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='276728', job_status='RUN', time_executed='2021-09-07 00:52:54.906987', time_epoch_executed='1631001174.91' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276728/ft1_4FGL_J1309.4+4305_daily_bin309.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276728/ft2_4FGL_J1309.4+4305_daily_bin309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276728/ft1_4FGL_J1309.4+4305_daily_bin309.fits outfile=/scratch/kocevski/276728/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin309.fits ra=197.363 dec=43.085 rad=12.0 tmin=319420801.0 tmax=319680001.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.92
user 2.66
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276728/ft1_filtered_4FGL_J1309.4+4305_daily_bin309.fits" evtable="EVENTS" scfile=/scratch/kocevski/276728/ft2_4FGL_J1309.4+4305_daily_bin309.fits sctable="SC_DATA" outfile=/scratch/kocevski/276728/ltcube_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.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/276728/ft2_4FGL_J1309.4+4305_daily_bin309.fits
.....................!
real 12.36
user 12.02
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276728/ft1_filtered_4FGL_J1309.4+4305_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/276728/ft2_4FGL_J1309.4+4305_daily_bin309.fits sctable="SC_DATA" expcube=/scratch/kocevski/276728/ltcube_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.fits outfile=/scratch/kocevski/276728/expmap_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.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/276728/ltcube_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.fits
.....................!
real 155.26
user 150.95
sys 3.88

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/276728/ft1_filtered_4FGL_J1309.4+4305_daily_bin309.fits scfile=/scratch/kocevski/276728/ft2_4FGL_J1309.4+4305_daily_bin309.fits outfile=/scratch/kocevski/276728/cmap_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.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.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276728/ft1_filtered_4FGL_J1309.4+4305_daily_bin309.fits scfile=/scratch/kocevski/276728/ft2_4FGL_J1309.4+4305_daily_bin309.fits outfile=/scratch/kocevski/276728/cmap_HighResolution_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.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.49
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5750       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1036       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0514       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12519E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.2364       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2446       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7352       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15071E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.419       1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.889       1.0000         .10000E-03   10000.    
    22 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.765       1.0000         .10000E-03   10000.    
    24 'norm      '    .64479       1.0000         .10000E-03   10000.    
    25 'norm      '    23.000       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .65879       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4541       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=   6180.764     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3354 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9199       -.41693E-07** at limit **
   2  Prefactor     .10000E-03    6.8358       -.25674E-06** at limit **
   3  Prefactor     42.364        23.208       -.25287E-07    .48063E-05
   4  Prefactor     7.5674        18.251        .37835E-06    .10139E-04
   5  norm          5.4127        2.1747        .15613E-07    .47459E-05
   6  Prefactor     .10000E-03    2.8888       -.54995E-07** at limit **
   7  norm          4.1019        4.1045        .18660E-06    .96399E-04
   8  Prefactor     2.0568        254.67       -.13165E-05    .25539E-05
   9  Prefactor     .10000E-03    11.466       -.87568E-06** at limit **
  10  Prefactor     .10000E-03    27.697       -.30074E-06** at limit **
  11  norm          6.2205        6.2101       -.19816E-06    .25309E-03
  12  norm          .10000E-03    5.4964        .48974E-07** at limit **
  13  norm          2.2604        6.1553        .13401E-05    .21479E-03
  14  norm          2.7064        8.7690        .12020E-05    .55394E-04
  15  norm          .10000E-03    2.7511        .27681E-06** at limit **
  16  Prefactor     .10001E-03    1.8892       -.11889E-05** at limit **
  17  Prefactor     .10000E-03    8.3001       -.16545E-06** at limit **
  18  Prefactor     .10000E-03    12.633        .15605E-05** at limit **
  19  Prefactor     .10000E-03    41.273       -.40648E-06** at limit **
  20  Prefactor     21.425        15.790        .28270E-06   -.16050E-04
  21  Prefactor     48.922        34.722       -.36660E-05   -.35183E-04
  22  norm          .10000E-03    1.5781        .18152E-06** at limit **
  23  Prefactor     28.738        53.342        .51492E-05    .27200E-05
  24  norm          .64368        1.3046        .54916E-06    .45235E-03
  25  norm          23.008        16.216       -.23203E-06   -.11341E-04
  26  Normalizat    .65815        .16478       -.71412E-06    .87711E-04
  27  Prefactor     1.4549        .20260        .22132E-06    .69586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.3645
  Prefactor  = 7.56744
  norm       = 5.41269
  Prefactor  = 0.0001
  norm       = 4.10195
  Prefactor  = 2.05679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.22045
  norm       = 0.0001
  norm       = 2.26043
  norm       = 2.70641
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4246
  Prefactor  = 48.9219
  norm       = 0.0001
  Prefactor  = 28.738
  norm       = 0.643685
  norm       = 23.0079
  Normalizat = 0.658155
  Prefactor  = 1.45487
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.764     FROM HESSE     STATUS=OK           490 CALLS     3844 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.364        23.214        .61593E-04   -1.4405    
   4  Prefactor     7.5674        18.237        .14571E-03   -1.5158    
   5  norm          5.4127        2.1749        .71403E-04   -1.5243    
   6  Prefactor     .10000E-03    2.9092        .13036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1019        4.0989        .15271E-03   -1.5303    
   8  Prefactor     2.0568        254.40        .28862E-03   -1.5421    
   9  Prefactor     .10000E-03    11.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.2205        6.0749        .16075E-03   -1.5209    
  12  norm          .10000E-03    5.5032        .17999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2604        6.4815        .86385E-03   -1.5407    
  14  norm          2.7064        9.2652        .11487E-02   -1.5379    
  15  norm          .10000E-03    2.8371        .25465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    7.5668        .18960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.425        15.775        .86545E-04   -1.4782    
  21  Prefactor     48.922        34.907        .57351E-04   -1.4308    
  22  norm          .10000E-03    1.5900        .96362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.738        53.446        .74700E-04   -1.4635    
  24  norm          .64368        1.2719        .11964E-03   -1.5548    
  25  norm          23.008        16.224        .83521E-04   -1.4748    
  26  Normalizat    .65815        .19394        .26790E-03   -1.0557    
  27  Prefactor     1.4549        .24139        .24705E-03   -.78812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42311e-09
Minuit parameter uncertainties:
  1  1.5843e-06
  2  2.20684e-06
  3  23.2188
  4  18.2501
  5  2.17493
  6  1.32137e-06
  7  4.09915
  8  45.9494
  9  1.43883e-07
  10  3.88596e-05
  11  6.07553
  12  5.14328e-06
  13  6.48353
  14  9.27015
  15  1.90448e-05
  16  0.000544935
  17  1.23725e-05
  18  7.74168e-05
  19  9.48345e-07
  20  15.7778
  21  34.9215
  22  8.1293e-06
  23  53.5351
  24  1.272
  25  16.2267
  26  0.194146
  27  0.241584
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.143e-06  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.455e+00  2.416e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  6.582e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/276728/likelihoodResults_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.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) = 6180.76484011
delta logL = -0.000858393061208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6180.7639817
delta logL = 1.63172444445e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7765       1.0000          .0000       5.0000    
     3 'Normalizat'    .65816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4549       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=   6180.713     FROM MIGRAD    STATUS=CONVERGED    143 CALLS      291 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15333E-01    1.3420        .65386E-02    .51176E-02
   2  alpha         5.0000        2.5366        .50000    ** at limit **
   3  Normalizat    .64068        .32350E-01    .26790E-03   -.57585E-04
   4  Prefactor     1.4682        .41776E-01    .24705E-03    .14186E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0153329
  alpha      = 5
  Normalizat = 0.640675
  Prefactor  = 1.46822
 **********
 **   18 **HESSE 
 **********

 FCN=   6180.713     FROM HESSE     STATUS=OK            33 CALLS      324 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15333E-01    .56160E-01    .23493E-03   -1.5683    
   2  alpha         5.0000        4.9786        .50000        7.8539    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64068        .19041        .10716E-04   -1.0628    
   4  Prefactor     1.4682        .24328        .49410E-04   -.78434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.198e-08
Minuit parameter uncertainties:
  1  0.0561603
  2  0.000378836
  3  0.190604
  4  0.243472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276728': 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) = 6180.71258953
delta logL = 0.0513921910333

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.533e-02  5.616e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  5.000e+00  3.788e-04  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.468e+00  2.435e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  6.407e-01  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/276728/cmap_HighResolution_319420801_319680001_4FGL_J1309.4+4305_daily_bin309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', job_status='DONE', photon_flux_upper_limit='2.79e-08', time_completed='2021-09-07 01:05:39.105400', job_id='276728', GAL2='1.47', fit_tolerance='1e-08', EG2='0.64', EG='0.66', time_epoch_completed='1631001939.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='5.14e-02', ts2='0.11', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='309' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:05:39 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin309 197.363 43.085 319420801 319680001 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 :                                   692.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            909 sec.

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

