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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin375
RA = 197.363, Dec = 43.085
tmin = 336528001, tmax = 336787201
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='276835', job_status='RUN', time_executed='2021-09-07 00:55:10.667920', time_epoch_executed='1631001310.67' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276835

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276835/ft1_4FGL_J1309.4+4305_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276835/ft2_4FGL_J1309.4+4305_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276835/ft1_4FGL_J1309.4+4305_daily_bin375.fits outfile=/scratch/kocevski/276835/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin375.fits ra=197.363 dec=43.085 rad=12.0 tmin=336528001.0 tmax=336787201.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.84
user 5.52
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276835/ft1_filtered_4FGL_J1309.4+4305_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/276835/ft2_4FGL_J1309.4+4305_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/276835/ltcube_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.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/276835/ft2_4FGL_J1309.4+4305_daily_bin375.fits
.....................!
real 15.27
user 14.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276835/ft1_filtered_4FGL_J1309.4+4305_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/276835/ft2_4FGL_J1309.4+4305_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/276835/ltcube_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.fits outfile=/scratch/kocevski/276835/expmap_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.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/276835/ltcube_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.fits
.....................!
real 191.85
user 185.89
sys 4.99

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/276835/ft1_filtered_4FGL_J1309.4+4305_daily_bin375.fits scfile=/scratch/kocevski/276835/ft2_4FGL_J1309.4+4305_daily_bin375.fits outfile=/scratch/kocevski/276835/cmap_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276835/ft1_filtered_4FGL_J1309.4+4305_daily_bin375.fits scfile=/scratch/kocevski/276835/ft2_4FGL_J1309.4+4305_daily_bin375.fits outfile=/scratch/kocevski/276835/cmap_HighResolution_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2190       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.4884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    118.87       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10298E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11569E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10369E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12392E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5420       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .71129E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.957       1.0000         .10000E-03   10000.    
    25 'norm      '    .14734E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0850       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0148       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=   3615.559     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3213 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2134        5.6370        .16935E-05    .57708E-03
   2  Prefactor     .10000E-03    9.0800        .29462E-06** at limit **
   3  Prefactor     7.2073        23.417        .13882E-05    .28941E-04
   4  Prefactor     .10000E-03    10.486       -.92208E-06** at limit **
   5  norm          8.4872        3.7215       -.26817E-07   -.56109E-04
   6  Prefactor     .10000E-03    3.4810       -.43770E-06** at limit **
   7  norm          .10000E-03    3.0888       -.95199E-08** at limit **
   8  Prefactor     118.85        75.822        .12764E-05    .36382E-04
   9  Prefactor     .10000E-03    78.522        .26051E-06** at limit **
  10  Prefactor     .10000E-03    8.6293        .53988E-06** at limit **
  11  norm          .10000E-03    4.5764        .45770E-07** at limit **
  12  norm          .10000E-03    8.8374        .37842E-06** at limit **
  13  norm          .10000E-03    1.9005        .14396E-07** at limit **
  14  norm          .10000E-03    2.5121        .39383E-08** at limit **
  15  norm          .10000E-03    1.5747       -.12695E-07** at limit **
  16  Prefactor     .10000E-03    .99383       -.29175E-07** at limit **
  17  Prefactor     .10000E-03    6.9649       -.45152E-06** at limit **
  18  Prefactor     .10000E-03    19.690        .27752E-05** at limit **
  19  Prefactor     8.5260        62.632        .57736E-05    .37254E-04
  20  Prefactor     .10000E-03    12.906       -.49970E-06** at limit **
  21  Prefactor     .10000E-03    25.644       -.27631E-05** at limit **
  22  norm          .10000E-03    3.3851        .43977E-06** at limit **
  23  Prefactor     .10000E-03    86.020        .71203E-06** at limit **
  24  norm          16.956        4.0299        .92392E-08    .15683E-03
  25  norm          .10027E-03    33.992       -.57437E-05** at limit **
  26  Normalizat    1.0851        .22500       -.43401E-06    .54728E-04
  27  Prefactor     1.0151        .28134       -.63386E-06    .31197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.21337
  Prefactor  = 0.0001
  Prefactor  = 7.20732
  Prefactor  = 0.0001
  norm       = 8.48724
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 118.855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.52602
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9556
  norm       = 0.000100269
  Normalizat = 1.08512
  Prefactor  = 1.01509
 **********
 **   18 **HESSE 
 **********

 FCN=   3615.559     FROM HESSE     STATUS=OK           478 CALLS     3691 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2134        5.8568        .95441E-03   -1.5349    
   2  Prefactor     .10000E-03    9.0927        .17698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2073        23.428        .14929E-03   -1.5171    
   4  Prefactor     .10000E-03    10.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.4872        3.7215        .74425E-04   -1.5125    
   6  Prefactor     .10000E-03    3.4900        .10955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1034        .10319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     118.85        75.857        .18455E-03   -1.3523    
   9  Prefactor     .10000E-03    81.148        .41486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6502        .17259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6416        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.8405        .17459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9195        .80939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5141        .93078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5770        .73688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .99626        .58538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.0245        .15506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.5260        63.384        .13716E-03   -1.5124    
  20  Prefactor     .10000E-03    12.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4385        .10811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    86.201        .20971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.956        4.0380        .55803E-04   -1.4884    
  25  norm          .10027E-03    88.116        .49360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0851        .26738        .22942E-03   -.90231    
  27  Prefactor     1.0151        .33466        .29881E-03   -.92228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44891e-09
Minuit parameter uncertainties:
  1  5.85786
  2  1.39559e-05
  3  23.4581
  4  4.76659e-05
  5  3.72163
  6  1.16846e-05
  7  1.96785e-06
  8  75.919
  9  0.000147673
  10  2.99184e-05
  11  3.39013e-06
  12  1.62578e-05
  13  1.1904e-06
  14  3.44772e-07
  15  5.83348e-07
  16  1.19171e-06
  17  2.44149e-05
  18  0.000211318
  19  46.5624
  20  2.56555e-05
  21  0.000228923
  22  1.55847e-05
  23  0.00016787
  24  4.03802
  25  0.00974882
  26  0.267713
  27  0.335348
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.626e-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:  1.015e+00  3.353e-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.085e+00  2.677e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276835/likelihoodResults_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.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) = 3615.55997473
delta logL = -0.000532677735009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3615.55944204
delta logL = 6.82621248416e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7625       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0151       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=   3615.559     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10032E-03    460.40        .17485E-02** at limit **
   2  alpha         1.7105        4.1235        .50000        .17807E-05
   3  Normalizat    1.0851        .41498E-01    .22942E-03    .11398E-05
   4  Prefactor     1.0151        .52668E-01    .29881E-03   -.10273E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010032
  alpha      = 1.71046
  Normalizat = 1.08512
  Prefactor  = 1.01509
 **********
 **   18 **HESSE 
 **********

 FCN=   3615.559     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10032E-03    1514.5        .34971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7105        2.6860        .50000       -.32132    
   3  Normalizat    1.0851        .10338        .91767E-05   -.90231    
   4  Prefactor     1.0151        .13118        .11952E-04   -.92228    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.64646e-08
Minuit parameter uncertainties:
  1  0.0451953
  2  3105.58
  3  0.103395
  4  0.131226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276835': 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): 102
logL (Free Index) = 3615.55944201
delta logL = 4.55738700111e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.003e-04  4.520e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.710e+00  3.106e+03  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.015e+00  1.312e-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.085e+00  1.034e-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/276835/cmap_HighResolution_336528001_336787201_4FGL_J1309.4+4305_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-05', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-07 01:05:58.779326', job_id='276835', GAL2='1.02', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631001958.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='375' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:05:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 276835: <4FGL_J1309.4+4305_daily_bin375> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin375> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:39 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:51:07 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:51:07 2021
Terminated at Tue Sep  7 01:06:00 2021
Results reported at Tue Sep  7 01:06:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin375 197.363 43.085 336528001 336787201 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 :                                   643.45 sec.
    Max Memory :                                 1081 MB
    Average Memory :                             253.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            921 sec.

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

