/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 78 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 = 7389
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin961
RA = 197.363, Dec = 43.085
tmin = 488419201, tmax = 488678401
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='282900', job_status='RUN', time_executed='2021-09-07 01:09:08.695870', time_epoch_executed='1631002148.7' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282900/ft1_4FGL_J1309.4+4305_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282900/ft2_4FGL_J1309.4+4305_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282900/ft1_4FGL_J1309.4+4305_daily_bin961.fits outfile=/scratch/kocevski/282900/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin961.fits ra=197.363 dec=43.085 rad=12.0 tmin=488419201.0 tmax=488678401.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 5.97
user 5.66
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282900/ft1_filtered_4FGL_J1309.4+4305_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/282900/ft2_4FGL_J1309.4+4305_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/282900/ltcube_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.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/282900/ft2_4FGL_J1309.4+4305_daily_bin961.fits
.....................!
real 14.91
user 14.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282900/ft1_filtered_4FGL_J1309.4+4305_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/282900/ft2_4FGL_J1309.4+4305_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/282900/ltcube_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.fits outfile=/scratch/kocevski/282900/expmap_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.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/282900/ltcube_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.fits
.....................!
real 158.16
user 153.10
sys 4.27

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/282900/ft1_filtered_4FGL_J1309.4+4305_daily_bin961.fits scfile=/scratch/kocevski/282900/ft2_4FGL_J1309.4+4305_daily_bin961.fits outfile=/scratch/kocevski/282900/cmap_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282900/ft1_filtered_4FGL_J1309.4+4305_daily_bin961.fits scfile=/scratch/kocevski/282900/ft2_4FGL_J1309.4+4305_daily_bin961.fits outfile=/scratch/kocevski/282900/cmap_HighResolution_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.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.50
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9437       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6682       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4942       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .94109       1.0000         .10000E-03   10000.    
    12 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2456       1.0000         .10000E-03   10000.    
    15 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.883       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25216       1.0000         .10000E-03   10000.    
    24 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .89894       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3099       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .54789       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=   3301.948     FROM MIGRAD    STATUS=CONVERGED   1173 CALLS     4269 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9451        7.4085        .13402E-03    .71678E-05
   2  Prefactor     .10000E-03    7.8839        .15755E-02** at limit **
   3  Prefactor     .10000E-03    7.7908        .15663E-02** at limit **
   4  Prefactor     .10000E-03    9.2662        .17084E-02** at limit **
   5  norm          2.6688        2.9381        .50095E-03   -.22761E-03
   6  Prefactor     4.4949        6.2004        .81389E-03   -.15624E-03
   7  norm          1.3986        4.3114        .20362E-03   -.11473E-04
   8  Prefactor     .10000E-03    84.452        .18142E-02** at limit **
   9  Prefactor     .10000E-03    10.286        .17989E-02** at limit **
  10  Prefactor     .10000E-03    10.734        .18142E-02** at limit **
  11  norm          .94277        3.3150        .20025E-02    .52530E-03
  12  norm          .10000E-03    20.037        .18142E-02** at limit **
  13  norm          .10000E-03    2.0289        .79300E-03** at limit **
  14  norm          3.2476        4.6476        .14441E-03    .96043E-05
  15  norm          .10000E-03    2.7941        .93452E-03** at limit **
  16  Prefactor     .10000E-03    1.2475        .62498E-03** at limit **
  17  Prefactor     .10000E-03    7.3078        .15152E-02** at limit **
  18  Prefactor     65.859        48.762        .49445E-04   -.94867E-04
  19  Prefactor     .10000E-03    44.516        .18142E-02** at limit **
  20  Prefactor     .10000E-03    24.933        .36285E-03** at limit **
  21  Prefactor     .10000E-03    16.762        .18142E-02** at limit **
  22  norm          .10000E-03    4.3521        .11583E-02** at limit **
  23  Prefactor     .10022E-03    116.81        .16007    ** at limit **
  24  norm          .10000E-03    .59390        .85345E-04** at limit **
  25  norm          .91729        92.772        .49417E-02    .14776E-03
  26  Normalizat    1.3096        .25614        .18344E-03   -.64010E-03
  27  Prefactor     .54803        .30733        .33821E-03   -.41280E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.9451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.66878
  Prefactor  = 4.49494
  norm       = 1.39859
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.942772
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 3.24756
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.8588
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.00010022
  norm       = 0.0001
  norm       = 0.917291
  Normalizat = 1.30959
  Prefactor  = 0.548033
 **********
 **   18 **HESSE 
 **********

 FCN=   3301.948     FROM HESSE     STATUS=OK           474 CALLS     4743 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9451        7.4082        .53609E-05   -1.5110    
   2  Prefactor     .10000E-03    7.8840        .31511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7909        .31326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2663        .34167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6688        2.9377        .20038E-04   -1.5381    
   6  Prefactor     4.4949        6.1991        .32556E-04   -1.5284    
   7  norm          1.3986        4.3107        .81449E-05   -1.5471    
   8  Prefactor     .10000E-03    84.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.286        .35978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .94277        3.3117        .80099E-04   -1.5514    
  12  norm          .10000E-03    20.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0289        .15860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2476        4.6473        .57765E-05   -1.5348    
  15  norm          .10000E-03    2.7943        .18690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2476        .12500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3083        .30304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     65.859        48.746        .98890E-05   -1.4083    
  19  Prefactor     .10000E-03    44.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.934        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.3535        .23166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10022E-03    121.88        .15580       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .59390        .17069E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .91729        92.503        .19767E-03   -1.5516    
  26  Normalizat    1.3096        .25579        .36688E-04   -.83281    
  27  Prefactor     .54803        .30755        .67642E-04   -1.0982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37629e-09
Minuit parameter uncertainties:
  1  7.40895
  2  7.71339e-05
  3  9.09896e-05
  4  0.000153993
  5  2.93786
  6  6.19994
  7  4.31169
  8  0.00118951
  9  4.30467e-05
  10  0.000246729
  11  3.31229
  12  0.000321653
  13  5.54951e-06
  14  4.64784
  15  5.74247e-05
  16  3.75724e-06
  17  7.01023e-05
  18  48.7757
  19  0.000293405
  20  0.000333551
  21  0.000261158
  22  4.50505e-05
  23  0.0103883
  24  2.51715e-06
  25  18.4514
  26  0.256042
  27  0.30849
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.217e-04  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:  5.480e-01  3.085e-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.310e+00  2.560e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282900/likelihoodResults_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.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) = 3301.94828275
delta logL = -0.000237477343944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3301.94804569
delta logL = -4.22825905844e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7146       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54804       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=   3301.948     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      221 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    55.031        .90712E-02** at limit **
   2  alpha         1.7806        3.3097        .44069       -.18422E-04
   3  Normalizat    1.3096        .21286        .32635E-01   -.73333E-03
   4  Prefactor     .54804        .26505        .76388E-01   -.36836E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.78061
  Normalizat = 1.30959
  Prefactor  = 0.548036
 **********
 **   18 **HESSE 
 **********

 FCN=   3301.948     FROM HESSE     STATUS=OK            27 CALLS      248 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7806        3.3436        .17627       -.29188    
   3  Normalizat    1.3096        .24235        .18343E-03   -.83281    
   4  Prefactor     .54804        .30090        .33823E-03   -1.0982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20418e-09
Minuit parameter uncertainties:
  1  0.000623031
  2  2.40517
  3  0.24256
  4  0.301779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282900': 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) = 3301.94804518
delta logL = 8.98899088497e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  6.230e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.781e+00  2.405e+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:  5.480e-01  3.018e-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.310e+00  2.426e-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/282900/cmap_HighResolution_488419201_488678401_4FGL_J1309.4+4305_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-05', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-09-07 01:18:32.083352', job_id='282900', GAL2='0.55', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631002712.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='8.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='961' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:18:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 282900: <4FGL_J1309.4+4305_daily_bin961> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin961 197.363 43.085 488419201 488678401 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 :                                   556.28 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             286.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            664 sec.

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

