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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin89
RA = 197.363, Dec = 43.085
tmin = 262396801, tmax = 262656001
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='275271', job_status='RUN', time_executed='2021-09-07 00:46:01.609285', time_epoch_executed='1631000761.61' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275271

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275271/ft1_4FGL_J1309.4+4305_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275271/ft2_4FGL_J1309.4+4305_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275271/ft1_4FGL_J1309.4+4305_daily_bin89.fits outfile=/scratch/kocevski/275271/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin89.fits ra=197.363 dec=43.085 rad=12.0 tmin=262396801.0 tmax=262656001.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 1.47
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275271/ft1_filtered_4FGL_J1309.4+4305_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/275271/ft2_4FGL_J1309.4+4305_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/275271/ltcube_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.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/275271/ft2_4FGL_J1309.4+4305_daily_bin89.fits
.....................!
real 17.42
user 17.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275271/ft1_filtered_4FGL_J1309.4+4305_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/275271/ft2_4FGL_J1309.4+4305_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/275271/ltcube_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.fits outfile=/scratch/kocevski/275271/expmap_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.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/275271/ltcube_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.fits
.....................!
real 192.34
user 186.62
sys 5.06

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/275271/ft1_filtered_4FGL_J1309.4+4305_daily_bin89.fits scfile=/scratch/kocevski/275271/ft2_4FGL_J1309.4+4305_daily_bin89.fits outfile=/scratch/kocevski/275271/cmap_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275271/ft1_filtered_4FGL_J1309.4+4305_daily_bin89.fits scfile=/scratch/kocevski/275271/ft2_4FGL_J1309.4+4305_daily_bin89.fits outfile=/scratch/kocevski/275271/cmap_HighResolution_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7720       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4978       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1308       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.807       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.603       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26972E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    17.917       1.0000         .10000E-03   10000.    
    15 'norm      '    19.901       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4241       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1075       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0859       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0305       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=   5554.737     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3304 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9827        9.1252        .14351E-06    .10361E-04
   2  Prefactor     48.486        32.338        .40968E-07   -.15554E-04
   3  Prefactor     .10000E-03    7.8152        .19890E-06** at limit **
   4  Prefactor     .10000E-03    6.9411        .24828E-06** at limit **
   5  norm          3.7718        2.7206        .12688E-06    .57908E-04
   6  Prefactor     6.4975        4.7910       -.14713E-06   -.44706E-04
   7  norm          5.1326        5.8404        .71923E-06    .16515E-03
   8  Prefactor     24.801        30.575       -.18980E-06   -.10855E-04
   9  Prefactor     16.601        22.679       -.35700E-06    .23566E-04
  10  Prefactor     .10000E-03    7.4013        .15029E-06** at limit **
  11  norm          .10000E-03    1.7591        .12452E-06** at limit **
  12  norm          .10000E-03    4.9145        .58322E-07** at limit **
  13  norm          .10000E-03    77.308       -.57623E-05** at limit **
  14  norm          17.932        8.3745        .23995E-06    .14526E-03
  15  norm          19.899        6.5026       -.27196E-07   -.72174E-04
  16  Prefactor     .10000E-03    2.2831       -.13167E-05** at limit **
  17  Prefactor     .10000E-03    48.677        .28838E-05** at limit **
  18  Prefactor     .10000E-03    12.361        .17912E-06** at limit **
  19  Prefactor     .10000E-03    20.084       -.43782E-06** at limit **
  20  Prefactor     5.4241        17.377        .11378E-05    .52298E-05
  21  Prefactor     .10000E-03    51.585        .24982E-05** at limit **
  22  norm          .10000E-03    2.3737        .10430E-06** at limit **
  23  Prefactor     6.0127        171.52       -.12289E-04   -.20107E-04
  24  norm          .10000E-03    .35710        .38510E-07** at limit **
  25  norm          .10000E-03    12.119       -.83510E-06** at limit **
  26  Normalizat    1.0860        .20849       -.27223E-05   -.13020E-03
  27  Prefactor     1.0303        .25356        .26710E-05    .21783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.98273
  Prefactor  = 48.486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.77183
  Prefactor  = 6.49752
  norm       = 5.13257
  Prefactor  = 24.8008
  Prefactor  = 16.6011
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 17.9319
  norm       = 19.8995
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42405
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.01267
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.08604
  Prefactor  = 1.03026
 **********
 **   18 **HESSE 
 **********

 FCN=   5554.737     FROM HESSE     STATUS=OK           488 CALLS     3792 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9827        9.1116        .12682E-03   -1.5076    
   2  Prefactor     48.486        32.284        .57584E-04   -1.4314    
   3  Prefactor     .10000E-03    7.8255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7718        2.7172        .10099E-03   -1.5320    
   6  Prefactor     6.4975        4.7920        .13607E-03   -1.5198    
   7  norm          5.1326        5.8519        .17198E-03   -1.5255    
   8  Prefactor     24.801        30.577        .80427E-04   -1.4712    
   9  Prefactor     16.601        22.646        .98295E-04   -1.4893    
  10  Prefactor     .10000E-03    7.4246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7670        .96569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9173        .16137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    76.285        .21731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.932        8.4783        .94620E-04   -1.4861    
  15  norm          19.899        6.5017        .89784E-04   -1.4815    
  16  Prefactor     .10000E-03    3.4073        .18676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4241        17.337        .17254E-03   -1.5242    
  21  Prefactor     .10000E-03    52.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.3779        .11179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0127        174.14        .16246E-03   -1.5218    
  24  norm          .10000E-03    .35988        .43499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    12.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0860        .21245        .23238E-03   -.90201    
  27  Prefactor     1.0303        .25979        .29958E-03   -.91727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64924e-10
Minuit parameter uncertainties:
  1  9.11288
  2  32.2955
  3  9.09476e-06
  4  1.02501e-05
  5  2.7173
  6  4.79227
  7  5.85256
  8  30.5963
  9  22.6576
  10  1.32588e-05
  11  4.34268e-06
  12  3.31612e-06
  13  0.000280667
  14  8.47882
  15  6.50196
  16  0.000178206
  17  0.000493082
  18  9.178e-06
  19  1.153e-05
  20  17.3533
  21  0.000234973
  22  2.26109e-06
  23  64.9253
  24  8.18388e-07
  25  6.46204e-06
  26  0.21262
  27  0.260106
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.030e+00  2.601e-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.086e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275271/likelihoodResults_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.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) = 5554.73794918
delta logL = -0.000943839239881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5554.73700534
delta logL = 2.16459739022e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7703       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0303       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5554.704     FROM MIGRAD    STATUS=FAILED       154 CALLS      298 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14466E-01    .46061E-01    .55942E-02   -.64216E-02
   2  alpha         4.9883        4.7522        .50000       -.10608E-02
   3  Normalizat    1.0714        .20792        .23238E-03    .20401E-04
   4  Prefactor     1.0410        .25997        .29958E-03    .89558E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5554.704     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      365 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14466E-01    .46061E-01    .41676E-04   -1.5732    
   2  alpha         4.9883        4.7522        .10780        7.7572    
   3  Normalizat    1.0714        .20792        .26766E-03   -.90674    
   4  Prefactor     1.0410        .25997        .34503E-03   -.91375    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5554.704     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      413 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14466E-01    .63090E-01     .0000       -.25589E-01
   2  alpha         4.9883        4.6763         .0000       -.10608E-02
   3  Normalizat    1.0714        .21307         .0000        .73385E-06
   4  Prefactor     1.0410        .26237         .0000        .37948E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0144657
  alpha      = 4.98831
  Normalizat = 1.07145
  Prefactor  = 1.041
 **********
 **   18 **HESSE 
 **********

 FCN=   5554.704     FROM HESSE     STATUS=OK            29 CALLS      442 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14466E-01    .68260E-01    .55614E-04   -1.5732    
   2  alpha         4.9883        4.5561        .50000        7.7572    
   3  Normalizat    1.0714        .21280        .18590E-05   -.90674    
   4  Prefactor     1.0410        .26205        .23967E-05   -.91375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71784e-05
Minuit parameter uncertainties:
  1  0.062629
  2  0.94385
  3  0.21297
  4  0.26237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275271': 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) = 5554.70437445
delta logL = 0.0326308894773

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.447e-02  6.263e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  4.988e+00  9.438e-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.041e+00  2.624e-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.071e+00  2.130e-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/275271/cmap_HighResolution_262396801_262656001_4FGL_J1309.4+4305_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='2.82e-08', time_completed='2021-09-07 00:59:14.567982', job_id='275271', GAL2='1.04', fit_tolerance='1e-08', EG2='1.07', EG='1.09', time_epoch_completed='1631001554.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.26e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='89' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 275271: <4FGL_J1309.4+4305_daily_bin89> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin89> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:17 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45:20 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:45:20 2021
Terminated at Tue Sep  7 00:59:14 2021
Results reported at Tue Sep  7 00:59:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin89 197.363 43.085 262396801 262656001 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 :                                   790.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

