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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin308
RA = 197.363, Dec = 43.085
tmin = 319161601, tmax = 319420801
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='276726', job_status='RUN', time_executed='2021-09-07 00:53:03.332447', time_epoch_executed='1631001183.33' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276726/ft1_4FGL_J1309.4+4305_daily_bin308.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276726/ft2_4FGL_J1309.4+4305_daily_bin308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276726/ft1_4FGL_J1309.4+4305_daily_bin308.fits outfile=/scratch/kocevski/276726/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin308.fits ra=197.363 dec=43.085 rad=12.0 tmin=319161601.0 tmax=319420801.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.55
user 4.25
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276726/ft2_4FGL_J1309.4+4305_daily_bin308.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/276726/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin308.fits evtable="EVENTS" outfile="/scratch/kocevski/276726/ft1_filtered_4FGL_J1309.4+4305_daily_bin308.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.36
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276726/ft1_filtered_4FGL_J1309.4+4305_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/276726/ft2_4FGL_J1309.4+4305_daily_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/276726/ltcube_319161601_319420801_4FGL_J1309.4+4305_daily_bin308.fits outfile=/scratch/kocevski/276726/expmap_319161601_319420801_4FGL_J1309.4+4305_daily_bin308.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/276726/ltcube_319161601_319420801_4FGL_J1309.4+4305_daily_bin308.fits
.....................!
real 193.31
user 187.47
sys 5.04

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/276726/ft1_filtered_4FGL_J1309.4+4305_daily_bin308.fits scfile=/scratch/kocevski/276726/ft2_4FGL_J1309.4+4305_daily_bin308.fits outfile=/scratch/kocevski/276726/cmap_319161601_319420801_4FGL_J1309.4+4305_daily_bin308.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276726/ft1_filtered_4FGL_J1309.4+4305_daily_bin308.fits scfile=/scratch/kocevski/276726/ft2_4FGL_J1309.4+4305_daily_bin308.fits outfile=/scratch/kocevski/276726/cmap_HighResolution_319161601_319420801_4FGL_J1309.4+4305_daily_bin308.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2015       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9700       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.9187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    83.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8512       1.0000         .10000E-03   10000.    
    12 'norm      '    .94005E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10570E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1613       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .91862E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.029       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0126       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .14501E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    83.222       1.0000         .10000E-03   10000.    
    24 'norm      '    .16005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .21380E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97606       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0113       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=   5229.606     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     2782 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2012        1.5121       -.18980E-05   -.19813E-02
   2  Prefactor     27.288        1.1493       -.19794E-06    .61034E-03
   3  Prefactor     9.9656        1.2670        .39231E-06   -.81890E-03
   4  Prefactor     .10012E-03    17.393       -.10419E-04** at limit **
   5  norm          6.9185        2.7006       -.33912E-07    .19180E-03
   6  Prefactor     .10000E-03    1.9311        .11676E-06** at limit **
   7  norm          .10000E-03    1.8532        .52108E-07** at limit **
   8  Prefactor     83.523        2.2946        .34168E-06   -.36241E-02
   9  Prefactor     .10025E-03    10.255        .10356E-04** at limit **
  10  Prefactor     .10003E-03    7.0641        .12956E-04** at limit **
  11  norm          4.8511        3.8957        .13998E-05    .50883E-03
  12  norm          .10105E-03    242.16       -.15381E-04** at limit **
  13  norm          .10000E-03    2.9064       -.10400E-06** at limit **
  14  norm          .10000E-03    5.6106        .33171E-06** at limit **
  15  norm          1.1693        3.7370        .90823E-07    .42017E-04
  16  Prefactor     .91006E-01    .44572        .34236E-05    .86320E-03
  17  Prefactor     .10000E-03    3.7791        .81510E-06** at limit **
  18  Prefactor     23.968        9.5096        .18515E-06   -.45226E-02
  19  Prefactor     .10003E-03    16.308       -.10218E-05** at limit **
  20  Prefactor     1.0013        2.3885       -.64352E-05    .17415E-03
  21  Prefactor     .10002E-03    7.5477       -.10664E-04** at limit **
  22  norm          .10000E-03    3.8010       -.94706E-06** at limit **
  23  Prefactor     83.237        2.9793        .43888E-06   -.45703E-02
  24  norm          .10000E-03    7.6036       -.19939E-05** at limit **
  25  norm          .10000E-03    50.226        .24753E-05** at limit **
  26  Normalizat    .97578        .19699       -.13291E-05    .15670E-03
  27  Prefactor     1.0117        .25448        .28477E-05    .22313E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.20119
  Prefactor  = 27.288
  Prefactor  = 9.96561
  Prefactor  = 0.000100117
  norm       = 6.91851
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.5235
  Prefactor  = 0.000100252
  Prefactor  = 0.000100026
  norm       = 4.85108
  norm       = 0.000101054
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.16932
  Prefactor  = 0.0910063
  Prefactor  = 0.0001
  Prefactor  = 23.9679
  Prefactor  = 0.000100034
  Prefactor  = 1.00132
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 83.2366
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.97578
  Prefactor  = 1.01169
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.606     FROM HESSE     STATUS=OK           560 CALLS     3342 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2012        5.2075        .49151E-02   -1.5298    
   2  Prefactor     27.288        25.045        .19174E-02   -1.4663    
   3  Prefactor     9.9656        20.303        .31726E-02   -1.5076    
   4  Prefactor     .10012E-03    22.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9185        2.7029        .38132E-02   -1.5182    
   6  Prefactor     .10000E-03    1.9273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8376        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     83.523        57.118        .10989E-02   -1.3878    
   9  Prefactor     .10025E-03    20.193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    8.4404        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8511        3.9102        .45659E-02   -1.5267    
  12  norm          .10105E-03    11.413        .90943E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.5079        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1693        3.8919        .10686E-01   -1.5492    
  16  Prefactor     .91006E-01    1.6873        .29268E-01   -1.5648    
  17  Prefactor     .10000E-03    3.7782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.968        30.761        .20429E-02   -1.4728    
  19  Prefactor     .10003E-03    17.630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0013        10.557        .78153E-01   -1.5508    
  21  Prefactor     .10002E-03    8.7525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.7038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     83.237        75.135        .11008E-02   -1.3881    
  24  norm          .10000E-03    .60056        .33842E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    47.995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97578        .17107        .45866E-01   -.93846    
  27  Prefactor     1.0117        .21237        .62374E-01   -.92341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27849e-07
Minuit parameter uncertainties:
  1  5.20805
  2  25.0549
  3  20.3171
  4  0.00322599
  5  2.70299
  6  5.24608e-07
  7  2.06569e-06
  8  57.1559
  9  0.00451472
  10  0.000937813
  11  3.91039
  12  0.006938
  13  2.16771e-05
  14  2.21609e-05
  15  3.89274
  16  0.78331
  17  6.73451e-05
  18  30.7816
  19  0.00155347
  20  6.50362
  21  0.000888911
  22  2.39336e-05
  23  75.2208
  24  8.78638e-06
  25  0.000103217
  26  0.171168
  27  0.212546
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.011e-04  6.938e-03  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.012e+00  2.125e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.758e-01  1.712e-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: 4.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276726/likelihoodResults_319161601_319420801_4FGL_J1309.4+4305_daily_bin308.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): 102
logL (Free Index) = 5229.60646792
delta logL = -1.79008675332e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5229.56140993
delta logL = 0.0450400876034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28986E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7378       1.0000          .0000       5.0000    
     3 'Normalizat'    .95910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0244       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5229.561     FROM MIGRAD    STATUS=FAILED       102 CALLS      361 TOTAL
                     EDM=   .11E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27884E-01    12.994        .31192E-03    .74818E-03
   2  alpha         4.7549        2.7403        .50000        .40750E-03
   3  Normalizat    .95883        .84901E-01    .22057E-03   -.44739E-04
   4  Prefactor     1.0246        .10244        .27431E-03   -.20184E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5229.561     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      455 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27884E-01    12.994        .57173E-04    .74818E-03
   2  alpha         4.7549        2.7403        .71832E-02    .40750E-03
   3  Normalizat    .95883        .84901E-01    .96752E-04   -.44739E-04
   4  Prefactor     1.0246        .10244        .61124E-04   -.20184E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5229.561     FROM MIGRAD    STATUS=FAILED        74 CALLS      529 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27882E-01    14.079        .49908E-06    .24325E-02
   2  alpha         4.7549        3.9313        .50000        .24183E-04
   3  Normalizat    .95883        .96771E-01    .17646E-05    .82468E-04
   4  Prefactor     1.0246        .11791        .21944E-05    .44554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.027882
  alpha      = 4.75495
  Normalizat = 0.958827
  Prefactor  = 1.02465
 **********
 **   18 **HESSE 
 **********

 FCN=   5229.561     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      558 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27882E-01    14.073        .37371E-06   -1.5675    
   2  alpha         4.7549        3.9200        .50000        1.1243    
   3  Normalizat    .95883        .97806E-01    .35291E-06   -.94423    
   4  Prefactor     1.0246        .11806        .43889E-06   -.91912    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11265e-07
Minuit parameter uncertainties:
  1  1.25088
  2  28.5983
  3  0.0978245
  4  0.118092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276726': 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): 1
logL (Free Index) = 5229.56140352
delta logL = 0.0450465012682

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.788e-02  1.251e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  4.755e+00  2.860e+01  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.025e+00  1.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  9.588e-01  9.782e-02  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/276726/cmap_HighResolution_319161601_319420801_4FGL_J1309.4+4305_daily_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-05', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2021-09-07 01:06:47.541378', job_id='276726', GAL2='1.02', fit_tolerance='1e-08', EG2='0.96', EG='0.98', time_epoch_completed='1631002007.54', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.50e-02', ts2='0.10', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='308' 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 <lsf@bullet0199>
Subject: Job 276726: <4FGL_J1309.4+4305_daily_bin308> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin308> 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) <bullet0199>, 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:06:50 2021
Results reported at Tue Sep  7 01:06:50 2021

Your job looked like:

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

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

