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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin653
RA = 197.363, Dec = 43.085
tmin = 408585601, tmax = 408844801
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='278418', job_status='RUN', time_executed='2021-09-07 00:58:22.864432', time_epoch_executed='1631001502.86' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278418/ft1_4FGL_J1309.4+4305_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278418/ft2_4FGL_J1309.4+4305_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278418/ft1_4FGL_J1309.4+4305_daily_bin653.fits outfile=/scratch/kocevski/278418/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin653.fits ra=197.363 dec=43.085 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.35
user 4.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278418/ft1_filtered_4FGL_J1309.4+4305_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/278418/ft2_4FGL_J1309.4+4305_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/278418/ltcube_408585601_408844801_4FGL_J1309.4+4305_daily_bin653.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/278418/ft2_4FGL_J1309.4+4305_daily_bin653.fits
.....................!
real 16.80
user 16.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278418/ft1_filtered_4FGL_J1309.4+4305_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/278418/ft2_4FGL_J1309.4+4305_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/278418/ltcube_408585601_408844801_4FGL_J1309.4+4305_daily_bin653.fits outfile=/scratch/kocevski/278418/expmap_408585601_408844801_4FGL_J1309.4+4305_daily_bin653.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/278418/ltcube_408585601_408844801_4FGL_J1309.4+4305_daily_bin653.fits
.....................!
real 192.42
user 186.74
sys 4.92

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/278418/ft1_filtered_4FGL_J1309.4+4305_daily_bin653.fits scfile=/scratch/kocevski/278418/ft2_4FGL_J1309.4+4305_daily_bin653.fits outfile=/scratch/kocevski/278418/cmap_408585601_408844801_4FGL_J1309.4+4305_daily_bin653.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.93
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.406       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12801E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10952E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12680E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5055       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8685       1.0000         .10000E-03   10000.    
     7 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    280.43       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.025       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.5409       1.0000         .10000E-03   10000.    
    12 'norm      '    19.306       1.0000         .10000E-03   10000.    
    13 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4771       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13500E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.890       1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.539       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16973E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0185       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.577       1.0000         .10000E-03   10000.    
    24 'norm      '    13.817       1.0000         .10000E-03   10000.    
    25 'norm      '    67.493       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .47703       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5885       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1970.200     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     3428 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.400        1.9134       -.22020E-05    .10315E-02
   2  Prefactor     .10059E-03    36.565        .58046E-04** at limit **
   3  Prefactor     .10000E-03    21.480        .10590E-05** at limit **
   4  Prefactor     .10002E-03    44.179       -.29857E-04** at limit **
   5  norm          5.5055        6.3149       -.83493E-05   -.19301E-02
   6  Prefactor     6.8654        1.4146        .23575E-05    .92352E-03
   7  norm          .10000E-03    3.4810       -.14569E-05** at limit **
   8  Prefactor     280.44        1.5066        .34374E-06   -.10246E-02
   9  Prefactor     68.077        12.806        .88095E-06    .76886E-02
  10  Prefactor     .10000E-03    11.209       -.21660E-06** at limit **
  11  norm          3.5416        3.3290       -.90281E-05   -.71271E-02
  12  norm          19.291        3.8740       -.12398E-06   -.13337E-02
  13  norm          .10000E-03    4.1747       -.30755E-05** at limit **
  14  norm          .10000E-03    5.2815       -.14190E-05** at limit **
  15  norm          4.4765        6.3146        .21765E-06   -.25815E-04
  16  Prefactor     .91317E-01    41.004       -.86255E-04    .11037E-02
  17  Prefactor     .10000E-03    16.259        .11484E-05** at limit **
  18  Prefactor     .10069E-03    47.916       -.48526E-04** at limit **
  19  Prefactor     41.928        10.309        .43501E-05    .29225E-03
  20  Prefactor     64.220        77.497       -.32146E-04    .22475E-02
  21  Prefactor     .10129E-03    150.18        .13900E-04** at limit **
  22  norm          1.0587        57.681        .53067E-04    .18223E-03
  23  Prefactor     38.612        8.9346        .55866E-05   -.14415E-02
  24  norm          13.816        5.5916       -.59979E-06   -.64256E-03
  25  norm          67.495        1.0738       -.26129E-06    .12318E-02
  26  Normalizat    .47664        .42052        .37026E-04   -.20022E-04
  27  Prefactor     1.5889        .52819       -.13904E-04    .24997E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.4001
  Prefactor  = 0.000100591
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 5.50546
  Prefactor  = 6.86536
  norm       = 0.0001
  Prefactor  = 280.436
  Prefactor  = 68.0768
  Prefactor  = 0.0001
  norm       = 3.54157
  norm       = 19.2912
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.47651
  Prefactor  = 0.0913173
  Prefactor  = 0.0001
  Prefactor  = 0.000100685
  Prefactor  = 41.9278
  Prefactor  = 64.2197
  Prefactor  = 0.000101291
  norm       = 1.05866
  Prefactor  = 38.6123
  norm       = 13.8161
  norm       = 67.4953
  Normalizat = 0.47664
  Prefactor  = 1.58892
 **********
 **   18 **HESSE 
 **********

 FCN=   1970.200     FROM HESSE     STATUS=OK           550 CALLS     3978 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.400        19.338        .19869E-02   -1.4700    
   2  Prefactor     .10059E-03    51.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    45.834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5055        6.4168        .42809E-02   -1.5239    
   6  Prefactor     6.8654        10.087        .38272E-02   -1.5184    
   7  norm          .10000E-03    3.4768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     280.44        173.86        .60571E-03   -1.2343    
   9  Prefactor     68.077        52.438        .12166E-02   -1.4056    
  10  Prefactor     .10000E-03    11.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.5416        9.8734        .53702E-02   -1.5332    
  12  norm          19.291        49.202        .22789E-02   -1.4829    
  13  norm          .10000E-03    4.1521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.2743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4765        6.3261        .47573E-02   -1.5285    
  16  Prefactor     .91317E-01    6.4460        .70553E-01   -1.5648    
  17  Prefactor     .10000E-03    16.241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10069E-03    56.335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.928        86.650        .15484E-02   -1.4412    
  20  Prefactor     64.220        124.86        .12488E-02   -1.4104    
  21  Prefactor     .10129E-03    155.06        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0587        132.19        .12850E-01   -1.5502    
  23  Prefactor     38.612        215.54        .16133E-02   -1.4464    
  24  norm          13.816        5.6210        .26939E-02   -1.4964    
  25  norm          67.495        63.241        .12214E-02   -1.4063    
  26  Normalizat    .47664        .39777        .83988E-01   -1.1351    
  27  Prefactor     1.5889        .47206        .61378E-01   -.75079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32363e-07
Minuit parameter uncertainties:
  1  19.3423
  2  0.0110162
  3  0.000146758
  4  0.0017831
  5  6.41764
  6  10.0897
  7  1.24321e-05
  8  174.182
  9  52.474
  10  2.08348e-05
  11  9.87797
  12  49.3053
  13  2.65885e-05
  14  1.59356e-05
  15  6.32703
  16  1.53378
  17  8.88259e-05
  18  0.0124395
  19  86.9115
  20  125.377
  21  0.0283662
  22  23.7121
  23  183.478
  24  5.62123
  25  63.3042
  26  0.400171
  27  0.473381
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.929e+01  4.931e+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.589e+00  4.734e-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:  4.766e-01  4.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.69e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278418/likelihoodResults_408585601_408844801_4FGL_J1309.4+4305_daily_bin653.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) = 1970.14376084
delta logL = 0.0563396742371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1970.14316249
delta logL = 0.0569380265238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.291       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1184       1.0000          .0000       5.0000    
     3 'Normalizat'    .47561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5822       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=   1970.143     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      242 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.240        42.507        .91190E-04   -.87269E-06
   2  alpha         2.1183        1.0178        .12757E-01    .19345E-05
   3  Normalizat    .47553        .41457        .37228E-03    .83980E-07
   4  Prefactor     1.5824        .53191        .27170E-03   -.42052E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 19.2402
  alpha      = 2.11831
  Normalizat = 0.475533
  Prefactor  = 1.5824
 **********
 **   18 **HESSE 
 **********

 FCN=   1970.143     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .19E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.240        41.502        .36476E-05   -1.4830    
   2  alpha         2.1183        .99501        .51029E-03   -.15327    
   3  Normalizat    .47553        .41466        .14891E-04   -1.1356    
   4  Prefactor     1.5824        .53203        .54340E-04   -.75258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89076e-14
Minuit parameter uncertainties:
  1  41.5641
  2  1.02409
  3  0.417386
  4  0.533935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278418': 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) = 1970.14316155
delta logL = 0.056938966191

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.924e+01  4.156e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.118e+00  1.024e+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:  1.582e+00  5.339e-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:  4.755e-01  4.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/278418/cmap_HighResolution_408585601_408844801_4FGL_J1309.4+4305_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-04', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-07 01:06:47.646420', job_id='278418', GAL2='1.58', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631002007.65', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.59', dlogl='5.69e-02', ts2='0.31', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='653' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 278418: <4FGL_J1309.4+4305_daily_bin653> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin653> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:39 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:56:00 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:56:00 2021
Terminated at Tue Sep  7 01:06:48 2021
Results reported at Tue Sep  7 01:06:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin653 197.363 43.085 408585601 408844801 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 :                                   500.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            669 sec.

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

