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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin233
RA = 197.363, Dec = 43.085
tmin = 299721601, tmax = 299980801
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='275493', job_status='RUN', time_executed='2021-09-07 00:50:33.133745', time_epoch_executed='1631001033.13' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275493/ft1_4FGL_J1309.4+4305_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275493/ft2_4FGL_J1309.4+4305_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275493/ft1_4FGL_J1309.4+4305_daily_bin233.fits outfile=/scratch/kocevski/275493/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin233.fits ra=197.363 dec=43.085 rad=12.0 tmin=299721601.0 tmax=299980801.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 2.82
user 2.59
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275493/ft2_4FGL_J1309.4+4305_daily_bin233.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/275493/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin233.fits evtable="EVENTS" outfile="/scratch/kocevski/275493/ft1_filtered_4FGL_J1309.4+4305_daily_bin233.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.44
user 0.27
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275493/ft1_filtered_4FGL_J1309.4+4305_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/275493/ft2_4FGL_J1309.4+4305_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/275493/ltcube_299721601_299980801_4FGL_J1309.4+4305_daily_bin233.fits outfile=/scratch/kocevski/275493/expmap_299721601_299980801_4FGL_J1309.4+4305_daily_bin233.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/275493/ltcube_299721601_299980801_4FGL_J1309.4+4305_daily_bin233.fits
.....................!
real 157.05
user 151.69
sys 4.83

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/275493/ft1_filtered_4FGL_J1309.4+4305_daily_bin233.fits scfile=/scratch/kocevski/275493/ft2_4FGL_J1309.4+4305_daily_bin233.fits outfile=/scratch/kocevski/275493/cmap_299721601_299980801_4FGL_J1309.4+4305_daily_bin233.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275493/ft1_filtered_4FGL_J1309.4+4305_daily_bin233.fits scfile=/scratch/kocevski/275493/ft2_4FGL_J1309.4+4305_daily_bin233.fits outfile=/scratch/kocevski/275493/cmap_HighResolution_299721601_299980801_4FGL_J1309.4+4305_daily_bin233.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.452       1.0000         .10000E-03   10000.    
     5 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    116.15       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6250       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10795E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.916       1.0000         .10000E-03   10000.    
    15 'norm      '    20.141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14579E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12293E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6560       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.728       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .74231       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1602       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88290       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=   5493.879     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3277 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5497        .13100E-07** at limit **
   2  Prefactor     .10000E-03    5.5415        .12546E-07** at limit **
   3  Prefactor     .10000E-03    12.245        .22552E-07** at limit **
   4  Prefactor     15.459        18.809       -.82398E-07   -.19813E-04
   5  norm          .10001E-03    2.6049        .22309E-06** at limit **
   6  Prefactor     .10000E-03    3.2392        .47760E-07** at limit **
   7  norm          .10000E-03    .93388        .11081E-07** at limit **
   8  Prefactor     116.13        63.278       -.13143E-06    .41267E-04
   9  Prefactor     .10000E-03    5.9399        .69414E-07** at limit **
  10  Prefactor     5.6273        14.541       -.59985E-06   -.54975E-04
  11  norm          .10000E-03    1.6301        .36996E-07** at limit **
  12  norm          .10000E-03    4.8067        .53838E-07** at limit **
  13  norm          .10000E-03    3.0036       -.69306E-06** at limit **
  14  norm          12.940        6.9370        .71710E-06    .33702E-04
  15  norm          20.140        6.7660       -.35605E-07    .37594E-04
  16  Prefactor     .10000E-03    1.9967       -.16938E-06** at limit **
  17  Prefactor     .10000E-03    17.528        .71458E-06** at limit **
  18  Prefactor     .10001E-03    36.369       -.50041E-05** at limit **
  19  Prefactor     .10000E-03    26.124       -.18635E-06** at limit **
  20  Prefactor     7.6481        17.185       -.50948E-06   -.17157E-04
  21  Prefactor     25.761        39.198       -.25045E-06    .11641E-04
  22  norm          .10000E-03    1.6673       -.73462E-07** at limit **
  23  Prefactor     .10000E-03    33.921       -.19031E-06** at limit **
  24  norm          .10000E-03    .44541       -.45806E-06** at limit **
  25  norm          .62578        73.998       -.79110E-05    .14971E-03
  26  Normalizat    1.1604        .17813        .14960E-05   -.60581E-04
  27  Prefactor     .88291        .21434       -.14015E-05   -.22113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4593
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 116.13
  Prefactor  = 0.0001
  Prefactor  = 5.62732
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 12.9395
  norm       = 20.1395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 7.64809
  Prefactor  = 25.7605
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.62578
  Normalizat = 1.16038
  Prefactor  = 0.882909
 **********
 **   18 **HESSE 
 **********

 FCN=   5493.879     FROM HESSE     STATUS=OK           486 CALLS     3763 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5508        .90110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5455        .17041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.459        18.790        .10189E-03   -1.4921    
   5  norm          .10001E-03    4.3528        .18665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2530        .13015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .93430        .69951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     116.13        63.313        .18667E-03   -1.3549    
   9  Prefactor     .10000E-03    5.9435        .17643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6273        14.521        .16938E-03   -1.5233    
  11  norm          .10000E-03    1.6343        .92403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.8091        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.6875        .23625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.940        7.2558        .11146E-03   -1.4988    
  15  norm          20.140        6.7627        .89247E-04   -1.4810    
  16  Prefactor     .10000E-03    3.6375        .20008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    38.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6481        17.165        .14493E-03   -1.5155    
  21  Prefactor     25.761        39.268        .78977E-04   -1.4692    
  22  norm          .10000E-03    1.6714        .93361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .46396        .48899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .62578        85.868        .43023E-02   -1.5550    
  26  Normalizat    1.1604        .20114        .21133E-03   -.87836    
  27  Prefactor     .88291        .24339        .29974E-03   -.96741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6136e-09
Minuit parameter uncertainties:
  1  3.24992e-07
  2  2.26069e-06
  3  1.94672e-05
  4  18.7976
  5  0.000360027
  6  5.59644e-06
  7  2.59539e-07
  8  63.3501
  9  1.06367e-05
  10  14.5296
  11  2.41687e-06
  12  2.69308e-06
  13  0.000202239
  14  7.2563
  15  6.76296
  16  4.98023e-05
  17  0.000147008
  18  0.00121103
  19  0.000112894
  20  17.1763
  21  39.3074
  22  3.11105e-06
  23  0.000112783
  24  1.19014e-05
  25  14.6811
  26  0.201271
  27  0.243694
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  2.693e-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:  8.829e-01  2.437e-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.160e+00  2.013e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275493/likelihoodResults_299721601_299980801_4FGL_J1309.4+4305_daily_bin233.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) = 5493.87967641
delta logL = -0.00096450982619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5493.8787119
delta logL = -1.25419319374e-09

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.7688       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88291       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=   5493.879     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      193 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    147.76        .90712E-02** at limit **
   2  alpha         1.7687        4.1121        .43632        .52346E-07
   3  Normalizat    1.1604        .23904E-01    .35945E-01    .38819E-05
   4  Prefactor     .88291        .30165E-01    .67757E-01    .15514E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76875
  Normalizat = 1.16038
  Prefactor  = 0.882909
 **********
 **   18 **HESSE 
 **********

 FCN=   5493.879     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      224 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1099.3        .15872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7687        2.9828        .17453       -.29684    
   3  Normalizat    1.1604        .14362        .21133E-03   -.87836    
   4  Prefactor     .88291        .18093        .29974E-03   -.96741    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20243e-08
Minuit parameter uncertainties:
  1  2.51274e-06
  2  4588.42
  3  0.14367
  4  0.181055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275493': 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) = 5493.8787119
delta logL = 5.45696821064e-12

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  2.513e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  4.588e+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:  8.829e-01  1.811e-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.160e+00  1.437e-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/275493/cmap_HighResolution_299721601_299980801_4FGL_J1309.4+4305_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-05', job_status='DONE', photon_flux_upper_limit='2.81e-08', time_completed='2021-09-07 01:01:23.436973', job_id='275493', GAL2='0.88', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631001683.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.46e-12', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='233' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 275493: <4FGL_J1309.4+4305_daily_bin233> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin233> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:34 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:48: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:48:07 2021
Terminated at Tue Sep  7 01:01:24 2021
Results reported at Tue Sep  7 01:01:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin233 197.363 43.085 299721601 299980801 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 :                                   644.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            950 sec.

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

