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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin113
RA = 197.363, Dec = 43.085
tmin = 268617601, tmax = 268876801
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='275307', job_status='RUN', time_executed='2021-09-07 00:48:27.657281', time_epoch_executed='1631000907.66' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275307

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275307/ft1_4FGL_J1309.4+4305_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275307/ft2_4FGL_J1309.4+4305_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275307/ft1_4FGL_J1309.4+4305_daily_bin113.fits outfile=/scratch/kocevski/275307/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin113.fits ra=197.363 dec=43.085 rad=12.0 tmin=268617601.0 tmax=268876801.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.53
user 1.35
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275307/ft1_filtered_4FGL_J1309.4+4305_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/275307/ft2_4FGL_J1309.4+4305_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/275307/ltcube_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.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/275307/ft2_4FGL_J1309.4+4305_daily_bin113.fits
.....................!
real 15.87
user 15.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275307/ft1_filtered_4FGL_J1309.4+4305_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/275307/ft2_4FGL_J1309.4+4305_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/275307/ltcube_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.fits outfile=/scratch/kocevski/275307/expmap_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.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/275307/ltcube_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.fits
.....................!
real 192.39
user 186.58
sys 5.16

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/275307/ft1_filtered_4FGL_J1309.4+4305_daily_bin113.fits scfile=/scratch/kocevski/275307/ft2_4FGL_J1309.4+4305_daily_bin113.fits outfile=/scratch/kocevski/275307/cmap_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.14

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

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/275307/ft1_filtered_4FGL_J1309.4+4305_daily_bin113.fits', '/scratch/kocevski/275307/ft2_4FGL_J1309.4+4305_daily_bin113.fits', expMap='/scratch/kocevski/275307/expmap_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.fits', expCube='/scratch/kocevski/275307/ltcube_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/275307/Model_4FGL_J1309.4+4305_daily_bin113.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/275307/ft1_filtered_4FGL_J1309.4+4305_daily_bin113.fits
Spacecraft file(s): /scratch/kocevski/275307/ft2_4FGL_J1309.4+4305_daily_bin113.fits
Exposure map: /scratch/kocevski/275307/expmap_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.fits
Exposure cube: /scratch/kocevski/275307/ltcube_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/275307/Model_4FGL_J1309.4+4305_daily_bin113.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5847.4500322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45120E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.414       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10929E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6671       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16741E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11575E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42974E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4010       1.0000         .10000E-03   10000.    
    12 'norm      '    .10674E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .91217       1.0000         .10000E-03   10000.    
    14 'norm      '    .10900E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7141       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9639       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26527E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11230E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.043       1.0000         .10000E-03   10000.    
    22 'norm      '    .95223       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .34145E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    4.6725       1.0000         .10000E-03   10000.    
    25 'norm      '    .15079E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86323       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5847.351     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     2390 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1467       -.44893E-06** at limit **
   2  Prefactor     .10000E-03    6.5428       -.18358E-05** at limit **
   3  Prefactor     20.523        16.139        .11994E-04    .88571E-02
   4  Prefactor     14.443        12.399       -.16493E-04   -.21780E-02
   5  norm          2.0111        1.6660       -.10806E-05   -.10504E-03
   6  Prefactor     .10000E-03    2.4436       -.33454E-06** at limit **
   7  norm          1.6698        3.7273        .57484E-06    .29717E-04
   8  Prefactor     .11576E-03    73.133       -.58102E-04** at limit **
   9  Prefactor     .10000E-03    15.207        .21487E-06** at limit **
  10  Prefactor     .10000E-03    9.2111       -.92548E-05** at limit **
  11  norm          4.4024        5.0858        .12173E-05    .24713E-04
  12  norm          .10000E-03    3.9841        .60798E-06** at limit **
  13  norm          .91185        2.5418       -.19371E-05   -.63549E-04
  14  norm          .10000E-03    2.2510        .87579E-06** at limit **
  15  norm          4.7282        4.2146       -.48611E-05   -.66661E-05
  16  Prefactor     1.9660        3.0006       -.44836E-06   -.13270E-04
  17  Prefactor     .10000E-03    4.1779       -.16615E-05** at limit **
  18  Prefactor     14.162        40.788        .82847E-04   -.31729E-02
  19  Prefactor     .10000E-03    16.764       -.91973E-05** at limit **
  20  Prefactor     .10284E-03    44.662        .10401E-03** at limit **
  21  Prefactor     72.471        42.762       -.53968E-05   -.42823E-02
  22  norm          .95829        3.4197       -.11626E-04   -.78186E-04
  23  Prefactor     .10026E-03    44.140       -.52495E-04** at limit **
  24  norm          4.6764        1.6782        .35346E-06    .16779E-03
  25  norm          .10000E-03    12.518        .22894E-05** at limit **
  26  Normalizat    .86319        .18988       -.14098E-04   -.31014E-04
  27  Prefactor     1.0215        .23430        .11224E-04   -.16075E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5233
  Prefactor  = 14.443
  norm       = 2.01106
  Prefactor  = 0.0001
  norm       = 1.66984
  Prefactor  = 0.000115756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.40236
  norm       = 0.0001
  norm       = 0.911854
  norm       = 0.0001
  norm       = 4.72821
  Prefactor  = 1.96601
  Prefactor  = 0.0001
  Prefactor  = 14.1623
  Prefactor  = 0.0001
  Prefactor  = 0.000102838
  Prefactor  = 72.4709
  norm       = 0.95829
  Prefactor  = 0.000100259
  norm       = 4.67637
  norm       = 0.0001
  Normalizat = 0.863193
  Prefactor  = 1.02154
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.351     FROM HESSE     STATUS=OK           542 CALLS     2932 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5263        .10604E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.523        19.461        .22229E-02   -1.4802    
   4  Prefactor     14.443        12.473        .26375E-02   -1.4948    
   5  norm          2.0111        1.6616        .72964E-02   -1.5424    
   6  Prefactor     .10000E-03    2.4284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6698        3.7861        .81647E-02   -1.5450    
   8  Prefactor     .11576E-03    105.62        .91065E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1739        .97020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4024        5.1231        .47994E-02   -1.5288    
  12  norm          .10000E-03    3.9816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .91185        2.6440        .12852E-01   -1.5517    
  14  norm          .10000E-03    2.2483        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7282        4.2498        .46333E-02   -1.5273    
  16  Prefactor     1.9660        3.0486        .73991E-02   -1.5428    
  17  Prefactor     .10000E-03    4.1698        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.162        44.590        .26765E-02   -1.4955    
  19  Prefactor     .10000E-03    16.758        .10720E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10284E-03    49.395        .90791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.471        42.999        .11744E-02   -1.4003    
  22  norm          .95829        3.4871        .12996E-01   -1.5512    
  23  Prefactor     .10026E-03    44.596        .91924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.6764        1.6790        .46544E-02   -1.5275    
  25  norm          .10000E-03    12.400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .86319        .15789        .44430E-01   -.97766    
  27  Prefactor     1.0215        .19463        .60005E-01   -.92015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68638e-07
Minuit parameter uncertainties:
  1  5.48455e-06
  2  6.14844e-06
  3  19.4667
  4  12.4748
  5  1.66159
  6  3.3756e-06
  7  3.7866
  8  0.0817305
  9  2.60462e-05
  10  2.17046e-05
  11  5.12358
  12  6.70347e-07
  13  2.64429
  14  5.63543e-06
  15  4.25011
  16  3.04883
  17  4.15299e-06
  18  44.6953
  19  0.00014086
  20  0.0237012
  21  43.0175
  22  3.48782
  23  0.00680184
  24  1.67899
  25  1.52971e-05
  26  0.157978
  27  0.194762
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  6.703e-07  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.022e+00  1.948e-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:  8.632e-01  1.580e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275307/likelihoodResults_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.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) = 5847.35191901
delta logL = -0.00117625254006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5847.35074275
delta logL = 4.89853846375e-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.7657       1.0000          .0000       5.0000    
     3 'Normalizat'    .86319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0215       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=   5847.351     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      233 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    867.41        .14908E-02** at limit **
   2  alpha         1.6732        2.7623        .17462       -.10677E-07
   3  Normalizat    .86319        .10731        .22521E-03    .75720E-05
   4  Prefactor     1.0215        .13708        .26535E-03    .68550E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6732
  Normalizat = 0.863193
  Prefactor  = 1.02154
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.351     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0083        .29816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6732        3.3270        .69850E-02   -.33707    
   3  Normalizat    .86319        .18306        .90084E-05   -.97766    
   4  Prefactor     1.0215        .23380        .10614E-04   -.92015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11989e-12
Minuit parameter uncertainties:
  1  5.13806e-07
  2  240.388
  3  0.183187
  4  0.234031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275307': 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) = 5847.35074268
delta logL = 7.7074219007e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.138e-07  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.673e+00  2.404e+02  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.022e+00  2.340e-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:  8.632e-01  1.832e-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/275307/cmap_HighResolution_268617601_268876801_4FGL_J1309.4+4305_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='2.34e-08', time_completed='2021-09-07 01:01:01.106305', job_id='275307', GAL2='1.02', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631001661.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='113' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:01:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 275307: <4FGL_J1309.4+4305_daily_bin113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin113 197.363 43.085 268617601 268876801 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 :                                   751.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            942 sec.

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

