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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin967
RA = 197.363, Dec = 43.085
tmin = 489974401, tmax = 490233601
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='282911', job_status='RUN', time_executed='2021-09-07 01:08:38.030084', time_epoch_executed='1631002118.03' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282911

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282911/ft1_4FGL_J1309.4+4305_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282911/ft2_4FGL_J1309.4+4305_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282911/ft1_4FGL_J1309.4+4305_daily_bin967.fits outfile=/scratch/kocevski/282911/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin967.fits ra=197.363 dec=43.085 rad=12.0 tmin=489974401.0 tmax=490233601.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.84
user 3.54
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282911/ft2_4FGL_J1309.4+4305_daily_bin967.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/282911/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin967.fits evtable="EVENTS" outfile="/scratch/kocevski/282911/ft1_filtered_4FGL_J1309.4+4305_daily_bin967.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.73
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282911/ft1_filtered_4FGL_J1309.4+4305_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/282911/ft2_4FGL_J1309.4+4305_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/282911/ltcube_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.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/282911/ft2_4FGL_J1309.4+4305_daily_bin967.fits
.....................!
real 16.28
user 15.22
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282911/ft1_filtered_4FGL_J1309.4+4305_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/282911/ft2_4FGL_J1309.4+4305_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/282911/ltcube_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.fits outfile=/scratch/kocevski/282911/expmap_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.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/282911/ltcube_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.fits
.....................!
real 191.68
user 186.24
sys 4.77

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/282911/ft1_filtered_4FGL_J1309.4+4305_daily_bin967.fits scfile=/scratch/kocevski/282911/ft2_4FGL_J1309.4+4305_daily_bin967.fits outfile=/scratch/kocevski/282911/cmap_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282911/ft1_filtered_4FGL_J1309.4+4305_daily_bin967.fits scfile=/scratch/kocevski/282911/ft2_4FGL_J1309.4+4305_daily_bin967.fits outfile=/scratch/kocevski/282911/cmap_HighResolution_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.861       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10549       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .22400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.654       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3675       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5959       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6115       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6862       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3454       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.210       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.8171       1.0000         .10000E-03   10000.    
    25 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2108       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65973       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=   5106.971     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3396 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7218       -.33473E-06** at limit **
   2  Prefactor     19.857        20.095       -.13624E-06    .13417E-04
   3  Prefactor     .10000E-03    5.8646        .18101E-06** at limit **
   4  Prefactor     .10701E-03    274.59        .38865E-04** at limit **
   5  norm          3.1736        1.9362       -.41439E-07    .71115E-05
   6  Prefactor     .10000E-03    5.9475       -.14913E-06** at limit **
   7  norm          .20328        13.617       -.82931E-05   -.96232E-03
   8  Prefactor     .10000E-03    33.369       -.39750E-06** at limit **
   9  Prefactor     .10000E-03    16.322       -.46508E-07** at limit **
  10  Prefactor     11.654        15.745        .14665E-06   -.24836E-04
  11  norm          1.3676        2.8441       -.55221E-07   -.21081E-04
  12  norm          3.5942        17.623       -.55174E-06    .65778E-05
  13  norm          1.6127        2.3695        .15033E-06    .23532E-03
  14  norm          .10000E-03    4.1125       -.31175E-06** at limit **
  15  norm          .10000E-03    1.7966        .82202E-06** at limit **
  16  Prefactor     3.6521        3.2478        .34997E-08   -.85271E-04
  17  Prefactor     .10000E-03    7.1115       -.11152E-06** at limit **
  18  Prefactor     3.9585        248.92       -.38043E-05   -.14148E-04
  19  Prefactor     .10000E-03    27.061        .12506E-05** at limit **
  20  Prefactor     1.3512        40.874       -.83268E-05   -.37599E-05
  21  Prefactor     13.947        80.998       -.55967E-05   -.48831E-04
  22  norm          .10000E-03    2.5570       -.28033E-06** at limit **
  23  Prefactor     .10000E-03    35.423       -.79942E-06** at limit **
  24  norm          1.8178        1.5240        .68620E-07    .52142E-03
  25  norm          .10000E-03    21.202       -.10341E-05** at limit **
  26  Normalizat    1.2108        .18017       -.86184E-06    .14149E-04
  27  Prefactor     .65986        .21105        .39700E-05   -.46749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.8574
  Prefactor  = 0.0001
  Prefactor  = 0.000107006
  norm       = 3.1736
  Prefactor  = 0.0001
  norm       = 0.203282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6542
  norm       = 1.36764
  norm       = 3.59424
  norm       = 1.61267
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.65211
  Prefactor  = 0.0001
  Prefactor  = 3.95848
  Prefactor  = 0.0001
  Prefactor  = 1.35121
  Prefactor  = 13.9467
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81777
  norm       = 0.0001
  Normalizat = 1.21077
  Prefactor  = 0.659857
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.971     FROM HESSE     STATUS=OK           500 CALLS     3896 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8043        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.857        20.113        .89874E-04   -1.4816    
   3  Prefactor     .10000E-03    5.8726        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10701E-03    23.647        .94412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1736        1.9349        .75443E-04   -1.5352    
   6  Prefactor     .10000E-03    6.0151        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20328        22.224        .22654E-02   -1.5618    
   8  Prefactor     .10000E-03    33.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.654        15.688        .11735E-03   -1.5025    
  11  norm          1.3676        2.7810        .16659E-03   -1.5474    
  12  norm          3.5942        17.625        .21309E-03   -1.5329    
  13  norm          1.6127        2.1453        .11726E-03   -1.5454    
  14  norm          .10000E-03    9.0781        .25654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.8463        .94337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6521        3.2432        .11512E-03   -1.5326    
  17  Prefactor     .10000E-03    7.1248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9585        252.79        .21036E-03   -1.5310    
  19  Prefactor     .10000E-03    27.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3512        42.019        .18877E-02   -1.5475    
  21  Prefactor     13.947        83.167        .10625E-03   -1.4961    
  22  norm          .10000E-03    2.6109        .22254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    35.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.8178        1.5135        .75770E-04   -1.5438    
  25  norm          .10000E-03    21.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2108        .20860        .19675E-03   -.86271    
  27  Prefactor     .65986        .24163        .31230E-03   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37343e-09
Minuit parameter uncertainties:
  1  2.451e-05
  2  20.1202
  3  4.0857e-06
  4  0.0257524
  5  1.93491
  6  2.75236e-05
  7  4.25159
  8  2.2785e-05
  9  5.92668e-05
  10  15.6933
  11  2.78126
  12  15.9257
  13  2.14536
  14  3.28057e-05
  15  3.23371e-05
  16  3.24337
  17  1.33195e-05
  18  63.5481
  19  5.48568e-05
  20  15.081
  21  68.2573
  22  1.3233e-05
  23  5.83563e-05
  24  1.51354
  25  9.57706e-05
  26  0.208745
  27  0.242013
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.594e+00  1.593e+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:  6.599e-01  2.420e-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.211e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/282911/likelihoodResults_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.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) = 5106.54450841
delta logL = 0.426621482084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5106.39526146
delta logL = 0.575868428787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63372E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71694       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=   5106.395     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      304 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63245E-01    2.8859        .40203E-02    .27905E-02
   2  alpha         5.0000        3.8841        .46268    ** at limit **
   3  Normalizat    1.1435        .85246E-01    .36466E-01    .16194E-05
   4  Prefactor     .71642        .92470E-01    .67982E-01    .17704E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.063245
  alpha      = 5
  Normalizat = 1.14346
  Prefactor  = 0.716421
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.395     FROM HESSE     STATUS=OK            37 CALLS      341 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63245E-01    .76788E-01    .18470E-03   -1.5658    
   2  alpha         5.0000        1.1339        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1435        .20733        .20162E-03   -.88368    
   4  Prefactor     .71642        .24321        .30081E-03   -1.0289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72169e-12
Minuit parameter uncertainties:
  1  0.0767885
  2  7.29191e-06
  3  0.207475
  4  0.243576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282911': 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) = 5106.39525265
delta logL = 0.575877237628

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  6.324e-02  7.679e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  5.000e+00  7.292e-06  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:  7.164e-01  2.436e-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.143e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 197.363 43.085
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.08e-08 +/- 6.14e-08
Energy Flux (Free Index): 6.97e-06 +/- 8.44e-06

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/282911/cmap_HighResolution_489974401_490233601_4FGL_J1309.4+4305_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-05', comment='SUCCESS', energy_flux2='6.97e-06', dlogl='5.76e-01', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-07 01:21:32.499403', photon_index_error2='0.00', photon_index2='5.00', ts='0.06', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='5.02e-08', energy_flux_error2='8.44e-06', EG='1.21', time_epoch_completed='1631002892.5', return_code='0', job_id='282911', GAL2='0.72', EG2='1.14', return_code2='0', photon_flux_error2='6.14e-08', ts2='1.28', photon_index='1.77' WHERE bin_id='967' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:21:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 282911: <4FGL_J1309.4+4305_daily_bin967> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin967> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:28 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:07:34 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:07:34 2021
Terminated at Tue Sep  7 01:21:33 2021
Results reported at Tue Sep  7 01:21:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin967 197.363 43.085 489974401 490233601 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 :                                   761.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            845 sec.

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

