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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin278
RA = 197.363, Dec = 43.085
tmin = 311385601, tmax = 311644801
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='276677', job_status='RUN', time_executed='2021-09-07 00:50:41.852183', time_epoch_executed='1631001041.85' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276677/ft1_4FGL_J1309.4+4305_daily_bin278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276677/ft2_4FGL_J1309.4+4305_daily_bin278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276677/ft1_4FGL_J1309.4+4305_daily_bin278.fits outfile=/scratch/kocevski/276677/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin278.fits ra=197.363 dec=43.085 rad=12.0 tmin=311385601.0 tmax=311644801.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.52
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276677/ft2_4FGL_J1309.4+4305_daily_bin278.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/276677/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin278.fits evtable="EVENTS" outfile="/scratch/kocevski/276677/ft1_filtered_4FGL_J1309.4+4305_daily_bin278.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.59
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276677/ft1_filtered_4FGL_J1309.4+4305_daily_bin278.fits" evtable="EVENTS" scfile=/scratch/kocevski/276677/ft2_4FGL_J1309.4+4305_daily_bin278.fits sctable="SC_DATA" outfile=/scratch/kocevski/276677/ltcube_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.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/276677/ft2_4FGL_J1309.4+4305_daily_bin278.fits
.....................!
real 14.77
user 14.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276677/ft1_filtered_4FGL_J1309.4+4305_daily_bin278.fits evtable="EVENTS" scfile=/scratch/kocevski/276677/ft2_4FGL_J1309.4+4305_daily_bin278.fits sctable="SC_DATA" expcube=/scratch/kocevski/276677/ltcube_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.fits outfile=/scratch/kocevski/276677/expmap_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.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/276677/ltcube_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.fits
.....................!
real 191.84
user 186.20
sys 5.03

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/276677/ft1_filtered_4FGL_J1309.4+4305_daily_bin278.fits scfile=/scratch/kocevski/276677/ft2_4FGL_J1309.4+4305_daily_bin278.fits outfile=/scratch/kocevski/276677/cmap_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276677/ft1_filtered_4FGL_J1309.4+4305_daily_bin278.fits scfile=/scratch/kocevski/276677/ft2_4FGL_J1309.4+4305_daily_bin278.fits outfile=/scratch/kocevski/276677/cmap_HighResolution_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.6458       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6046       1.0000         .10000E-03   10000.    
     7 'norm      '    9.6463       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.124       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27311E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4464       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9942       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0433       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.343       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.695       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.4050       1.0000         .10000E-03   10000.    
    25 'norm      '    8.9712       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2183       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76502       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=   5762.760     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3255 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6817        4.2843        .12610E-05   -.17498E-02
   2  Prefactor     .10000E-03    5.2815       -.27515E-07** at limit **
   3  Prefactor     .10000E-03    18.180       -.13254E-05** at limit **
   4  Prefactor     .10000E-03    8.0995        .55826E-07** at limit **
   5  norm          5.6457        2.3295       -.28646E-07    .26986E-04
   6  Prefactor     8.6024        6.4789       -.84291E-07   -.12123E-03
   7  norm          9.6456        5.3887       -.44611E-07   -.11766E-04
   8  Prefactor     10.117        74.387       -.86715E-05   -.49351E-04
   9  Prefactor     .10000E-03    62.335        .23163E-07** at limit **
  10  Prefactor     .10004E-03    15.411        .69723E-06** at limit **
  11  norm          6.4445        5.3155       -.92607E-07   -.14844E-03
  12  norm          .10000E-03    6.8773        .85335E-07** at limit **
  13  norm          .10000E-03    2.5695       -.67596E-07** at limit **
  14  norm          5.9946        5.4472       -.48136E-07    .62691E-04
  15  norm          2.0428        2.4163        .78830E-07    .48609E-04
  16  Prefactor     .10000E-03    1.7760        .19443E-07** at limit **
  17  Prefactor     .10000E-03    6.8944       -.14290E-07** at limit **
  18  Prefactor     .10000E-03    17.749        .13058E-05** at limit **
  19  Prefactor     51.342        49.879       -.50296E-06   -.13138E-04
  20  Prefactor     .10000E-03    5.7462       -.60237E-07** at limit **
  21  Prefactor     18.681        29.826       -.72220E-05   -.24329E-03
  22  norm          .10000E-03    1.3842        .26498E-07** at limit **
  23  Prefactor     .10000E-03    24.458       -.20421E-07** at limit **
  24  norm          1.4047        1.2588        .77993E-07    .25638E-04
  25  norm          8.9715        10.745       -.71755E-07   -.41135E-05
  26  Normalizat    1.2182        .17604        .56308E-06   -.64230E-04
  27  Prefactor     .76502        .21104        .36536E-06   -.12752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.68171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.64572
  Prefactor  = 8.60241
  norm       = 9.6456
  Prefactor  = 10.1166
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  norm       = 6.44453
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.99456
  norm       = 2.04282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3417
  Prefactor  = 0.0001
  Prefactor  = 18.6807
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40465
  norm       = 8.97154
  Normalizat = 1.21823
  Prefactor  = 0.765019
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.760     FROM HESSE     STATUS=OK           484 CALLS     3739 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6817        6.0865        .92990E-03   -1.5275    
   2  Prefactor     .10000E-03    5.2842        .17039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6457        2.3301        .72319E-04   -1.5233    
   6  Prefactor     8.6024        6.3012        .13665E-03   -1.5121    
   7  norm          9.6456        5.3614        .12696E-03   -1.5087    
   8  Prefactor     10.117        75.857        .12593E-03   -1.5072    
   9  Prefactor     .10000E-03    64.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    81.209        .53631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4445        5.1825        .14929E-03   -1.5200    
  12  norm          .10000E-03    6.8844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0661        .21255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9946        4.9505        .14910E-03   -1.5218    
  15  norm          2.0428        2.4110        .12462E-03   -1.5422    
  16  Prefactor     .10000E-03    1.8052        .98630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     51.342        49.845        .55970E-04   -1.4274    
  20  Prefactor     .10000E-03    5.7626        .17772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.681        30.921        .92632E-04   -1.4843    
  22  norm          .10000E-03    1.3921        .87207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.4047        1.2416        .77186E-04   -1.5471    
  25  norm          8.9715        10.745        .13382E-03   -1.5109    
  26  Normalizat    1.2182        .20301        .21177E-03   -.86041    
  27  Prefactor     .76502        .24525        .31746E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34037e-09
Minuit parameter uncertainties:
  1  6.08727
  2  3.08286e-06
  3  8.83699e-05
  4  2.82134e-07
  5  2.33015
  6  6.3017
  7  5.3617
  8  55.5027
  9  6.75596e-05
  10  0.00348645
  11  5.18284
  12  1.33437e-05
  13  1.3972e-05
  14  4.95082
  15  2.41108
  16  1.03178e-06
  17  3.43142e-06
  18  0.000167684
  19  49.8853
  20  1.19387e-06
  21  30.9477
  22  2.91197e-06
  23  6.76244e-06
  24  1.24164
  25  10.7471
  26  0.203141
  27  0.245594
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.334e-05  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:  7.650e-01  2.456e-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.218e+00  2.031e-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: 3.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276677/likelihoodResults_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.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) = 5762.76061307
delta logL = -0.00068922650371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5762.759924
delta logL = -1.6333979147e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10525E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7956       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76504       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=   5762.760     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    17.603        .90712E-02** at limit **
   2  alpha         1.8244        3.3715        .43434       -.19593E-04
   3  Normalizat    1.2182        .17082        .34459E-01    .25990E-03
   4  Prefactor     .76501        .20872        .71734E-01   -.47120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 1.8244
  Normalizat = 1.21823
  Prefactor  = 0.765014
 **********
 **   18 **HESSE 
 **********

 FCN=   5762.760     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    7.6154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8244        3.3647        .50000       -.27364    
   3  Normalizat    1.2182        .19826        .21177E-03   -.86041    
   4  Prefactor     .76501        .24177        .31746E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20024e-09
Minuit parameter uncertainties:
  1  0.000481546
  2  2.45681
  3  0.198382
  4  0.242102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276677': 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) = 5762.7599234
delta logL = 4.41943484475e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.815e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.824e+00  2.457e+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:  7.650e-01  2.421e-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.218e+00  1.984e-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/276677/cmap_HighResolution_311385601_311644801_4FGL_J1309.4+4305_daily_bin278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', job_status='DONE', photon_flux_upper_limit='3.53e-08', time_completed='2021-09-07 01:03:44.933699', job_id='276677', GAL2='0.77', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631001824.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='278' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:03:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 276677: <4FGL_J1309.4+4305_daily_bin278> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin278 197.363 43.085 311385601 311644801 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            799 sec.

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

