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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin53
RA = 197.363, Dec = 43.085
tmin = 253065601, tmax = 253324801
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='274124', job_status='RUN', time_executed='2021-09-07 00:42:47.006205', time_epoch_executed='1631000567.01' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274124/ft1_4FGL_J1309.4+4305_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274124/ft2_4FGL_J1309.4+4305_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274124/ft1_4FGL_J1309.4+4305_daily_bin53.fits outfile=/scratch/kocevski/274124/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin53.fits ra=197.363 dec=43.085 rad=12.0 tmin=253065601.0 tmax=253324801.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.43
user 1.24
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274124/ft2_4FGL_J1309.4+4305_daily_bin53.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/274124/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/274124/ft1_filtered_4FGL_J1309.4+4305_daily_bin53.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274124/ft1_filtered_4FGL_J1309.4+4305_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/274124/ft2_4FGL_J1309.4+4305_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/274124/ltcube_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.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/274124/ft2_4FGL_J1309.4+4305_daily_bin53.fits
.....................!
real 16.34
user 15.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274124/ft1_filtered_4FGL_J1309.4+4305_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/274124/ft2_4FGL_J1309.4+4305_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/274124/ltcube_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.fits outfile=/scratch/kocevski/274124/expmap_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.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/274124/ltcube_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.fits
.....................!
real 191.53
user 185.82
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/274124/ft1_filtered_4FGL_J1309.4+4305_daily_bin53.fits scfile=/scratch/kocevski/274124/ft2_4FGL_J1309.4+4305_daily_bin53.fits outfile=/scratch/kocevski/274124/cmap_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274124/ft1_filtered_4FGL_J1309.4+4305_daily_bin53.fits scfile=/scratch/kocevski/274124/ft2_4FGL_J1309.4+4305_daily_bin53.fits outfile=/scratch/kocevski/274124/cmap_HighResolution_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.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.59
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4119       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1737       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.4527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8726       1.0000         .10000E-03   10000.    
    14 'norm      '    .10268E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .59599E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    61.461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.349       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7860       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.6191       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3718       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .37978       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=   5531.923     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3336 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.714        7.7706       -.34498E-06   -.67363E-03
   2  Prefactor     17.505        17.841        .14299E-05    .11689E-04
   3  Prefactor     16.252        25.229       -.15793E-04   -.64875E-04
   4  Prefactor     7.4121        10.588       -.34152E-06   -.12947E-04
   5  norm          2.1738        1.8491        .76984E-07    .88104E-04
   6  Prefactor     .10000E-03    2.3016       -.38242E-07** at limit **
   7  norm          8.4549        5.2636       -.23905E-06    .27078E-04
   8  Prefactor     54.743        51.114       -.23450E-04    .18593E-05
   9  Prefactor     .10000E-03    20.589       -.19522E-05** at limit **
  10  Prefactor     .10000E-03    5.1871        .34962E-05** at limit **
  11  norm          .10000E-03    1.9890       -.54549E-07** at limit **
  12  norm          .10000E-03    6.6261       -.32924E-05** at limit **
  13  norm          5.8741        3.8857        .10519E-06    .29987E-03
  14  norm          .10000E-03    4.8155       -.24010E-05** at limit **
  15  norm          .10003E-03    2.4402        .18001E-05** at limit **
  16  Prefactor     .10000E-03    1.3579       -.12118E-06** at limit **
  17  Prefactor     .10000E-03    3.6276        .87235E-07** at limit **
  18  Prefactor     61.456        37.785       -.46603E-05   -.11376E-03
  19  Prefactor     .10000E-03    15.978       -.20701E-05** at limit **
  20  Prefactor     11.346        20.291       -.25070E-05   -.50535E-04
  21  Prefactor     .10000E-03    22.673        .42242E-05** at limit **
  22  norm          4.7860        4.2265        .18994E-06   -.77709E-04
  23  Prefactor     .10000E-03    35.038        .85297E-07** at limit **
  24  norm          6.6192        2.0160       -.98204E-07   -.36582E-04
  25  norm          .10000E-03    7.3398        .17555E-05** at limit **
  26  Normalizat    1.3719        .18642        .40417E-05   -.36905E-03
  27  Prefactor     .37970        .21392       -.14335E-06   -.46892E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.714
  Prefactor  = 17.5051
  Prefactor  = 16.2517
  Prefactor  = 7.41213
  norm       = 2.17378
  Prefactor  = 0.0001
  norm       = 8.45487
  Prefactor  = 54.7427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.87415
  norm       = 0.0001
  norm       = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.4555
  Prefactor  = 0.0001
  Prefactor  = 11.346
  Prefactor  = 0.0001
  norm       = 4.78598
  Prefactor  = 0.0001
  norm       = 6.61918
  norm       = 0.0001
  Normalizat = 1.3719
  Prefactor  = 0.3797
 **********
 **   18 **HESSE 
 **********

 FCN=   5531.923     FROM HESSE     STATUS=OK           486 CALLS     3822 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.714        7.7777        .56170E-03   -1.4995    
   2  Prefactor     17.505        17.849        .95729E-04   -1.4871    
   3  Prefactor     16.252        25.249        .99304E-04   -1.4901    
   4  Prefactor     7.4121        10.581        .14732E-03   -1.5163    
   5  norm          2.1738        1.8541        .90563E-04   -1.5413    
   6  Prefactor     .10000E-03    2.3133        .11018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.4549        5.2617        .12853E-03   -1.5126    
   8  Prefactor     54.743        51.010        .54203E-04   -1.4227    
   9  Prefactor     .10000E-03    20.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1910        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0007        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.6233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8741        3.8643        .11297E-03   -1.5223    
  14  norm          .10000E-03    4.8381        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10003E-03    11.962        .22364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3772        .84564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6311        .13834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     61.456        37.753        .51182E-04   -1.4138    
  19  Prefactor     .10000E-03    15.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.346        20.248        .11892E-03   -1.5034    
  21  Prefactor     .10000E-03    22.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7860        4.2141        .12891E-03   -1.5270    
  23  Prefactor     .10000E-03    35.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.6192        2.0169        .55660E-04   -1.5193    
  25  norm          .10000E-03    7.4480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3719        .19587        .19312E-03   -.81445    
  27  Prefactor     .37970        .22105        .41230E-03   -1.1786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24408e-09
Minuit parameter uncertainties:
  1  7.77829
  2  17.8546
  3  25.2654
  4  10.5841
  5  1.85416
  6  8.28357e-06
  7  5.262
  8  51.0512
  9  7.13084e-05
  10  1.39874e-05
  11  9.03947e-06
  12  3.9688e-05
  13  3.86446
  14  1.41339e-05
  15  0.00124043
  16  1.12119e-05
  17  8.1638e-06
  18  37.7677
  19  1.75282e-05
  20  20.2598
  21  0.000123558
  22  4.21432
  23  7.31771e-05
  24  2.01694
  25  3.0913e-05
  26  0.195972
  27  0.221542
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.969e-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:  3.797e-01  2.215e-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.372e+00  1.960e-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: 3.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274124/likelihoodResults_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.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) = 5531.9233751
delta logL = -0.000711865374797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5531.9226632
delta logL = 3.36995071848e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7863       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37964       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=   5531.897     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      313 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35181        9.1674        .36588E-01    .73700E-03
   2  alpha         3.5512        4.1350        .50000        .32024E-04
   3  Normalizat    1.3606        .14407E-01    .19312E-03    .29906E-04
   4  Prefactor     .38583        .17093E-01    .41230E-03    .11829E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.351812
  alpha      = 3.55125
  Normalizat = 1.36058
  Prefactor  = 0.385829
 **********
 **   18 **HESSE 
 **********

 FCN=   5531.897     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      344 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35181        312.35        .12595E-02   -1.5589    
   2  alpha         3.5512        2.9185        .31730E-01    .43400    
   3  Normalizat    1.3606        .13160        .77247E-05   -.81776    
   4  Prefactor     .38583        .14353        .16492E-04   -1.1754    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27608e-08
Minuit parameter uncertainties:
  1  21.0736
  2  22.5565
  3  0.131633
  4  0.143665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274124': 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) = 5531.89688493
delta logL = 0.02577830052

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  3.858e-01  1.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.361e+00  1.316e-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/274124/cmap_HighResolution_253065601_253324801_4FGL_J1309.4+4305_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-05', job_status='DONE', photon_flux_upper_limit='3.28e-08', time_completed='2021-09-07 00:55:59.409066', job_id='274124', GAL2='0.39', fit_tolerance='1e-08', EG2='1.36', EG='1.37', time_epoch_completed='1631001359.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.38', dlogl='2.58e-02', ts2='0.05', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='53' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:55:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 274124: <4FGL_J1309.4+4305_daily_bin53> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin53> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:46 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:41:24 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:41:24 2021
Terminated at Tue Sep  7 00:56:00 2021
Results reported at Tue Sep  7 00:56:00 2021

Your job looked like:

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

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

