/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 4 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 = 7396
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1079
RA = 197.363, Dec = 43.085
tmin = 519004801, tmax = 519264001
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='283103', job_status='RUN', time_executed='2021-09-07 01:08:48.256662', time_epoch_executed='1631002128.26' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283103/ft1_4FGL_J1309.4+4305_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283103/ft2_4FGL_J1309.4+4305_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283103/ft1_4FGL_J1309.4+4305_daily_bin1079.fits outfile=/scratch/kocevski/283103/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1079.fits ra=197.363 dec=43.085 rad=12.0 tmin=519004801.0 tmax=519264001.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 3.71
user 3.33
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283103/ft1_filtered_4FGL_J1309.4+4305_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/283103/ft2_4FGL_J1309.4+4305_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/283103/ltcube_519004801_519264001_4FGL_J1309.4+4305_daily_bin1079.fits outfile=/scratch/kocevski/283103/expmap_519004801_519264001_4FGL_J1309.4+4305_daily_bin1079.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/283103/ltcube_519004801_519264001_4FGL_J1309.4+4305_daily_bin1079.fits
.....................!
real 191.06
user 185.52
sys 5.02

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/283103/ft1_filtered_4FGL_J1309.4+4305_daily_bin1079.fits scfile=/scratch/kocevski/283103/ft2_4FGL_J1309.4+4305_daily_bin1079.fits outfile=/scratch/kocevski/283103/cmap_519004801_519264001_4FGL_J1309.4+4305_daily_bin1079.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283103/ft1_filtered_4FGL_J1309.4+4305_daily_bin1079.fits scfile=/scratch/kocevski/283103/ft2_4FGL_J1309.4+4305_daily_bin1079.fits outfile=/scratch/kocevski/283103/cmap_HighResolution_519004801_519264001_4FGL_J1309.4+4305_daily_bin1079.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16547E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8205       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5797       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    81.282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.911       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5158       1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10277E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7987       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11753E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7298       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .93900E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5482       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.5589       1.0000         .10000E-03   10000.    
    25 'norm      '    14.530       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1262       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81267       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=   6331.172     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3317 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9277        7.0290        .26760E-06   -.84188E-04
   2  Prefactor     .10000E-03    45.253       -.14071E-06** at limit **
   3  Prefactor     .10000E-03    7.8581        .69436E-07** at limit **
   4  Prefactor     .10000E-03    5.8467        .14818E-07** at limit **
   5  norm          1.8206        2.0337       -.94027E-07   -.47903E-03
   6  Prefactor     .10000E-03    2.6744        .99085E-07** at limit **
   7  norm          7.5788        5.4035        .88110E-07   -.48824E-04
   8  Prefactor     .10000E-03    13.143        .52210E-07** at limit **
   9  Prefactor     81.300        34.083       -.62750E-05    .58570E-06
  10  Prefactor     13.910        14.694       -.23755E-06   -.70580E-03
  11  norm          2.5147        3.6181        .28665E-06   -.14155E-03
  12  norm          .10000E-03    10.819       -.97132E-07** at limit **
  13  norm          .10000E-03    1.1414        .89215E-07** at limit **
  14  norm          .10000E-03    1.5575        .45371E-07** at limit **
  15  norm          .10000E-03    2.0085        .53304E-08** at limit **
  16  Prefactor     1.7942        2.6517       -.13431E-05   -.79232E-03
  17  Prefactor     .10000E-03    9.5362       -.30252E-07** at limit **
  18  Prefactor     .10000E-03    8.7446       -.23681E-06** at limit **
  19  Prefactor     11.098        57.378        .43422E-04    .70626E-05
  20  Prefactor     6.7298        23.751        .40703E-05   -.77955E-04
  21  Prefactor     .11171E-03    21.195        .37396E-05** at limit **
  22  norm          5.5475        6.0564       -.10525E-05   -.75071E-03
  23  Prefactor     .10000E-03    82.136       -.93356E-06** at limit **
  24  norm          6.5588        1.8220       -.45683E-08   -.93122E-03
  25  norm          14.531        13.526        .11814E-05   -.27571E-04
  26  Normalizat    1.1264        .16532       -.58294E-06   -.23987E-03
  27  Prefactor     .81241        .19638        .11919E-06   -.20482E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.92771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8206
  Prefactor  = 0.0001
  norm       = 7.57882
  Prefactor  = 0.0001
  Prefactor  = 81.3001
  Prefactor  = 13.9095
  norm       = 2.51471
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.79418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0979
  Prefactor  = 6.72976
  Prefactor  = 0.00011171
  norm       = 5.54749
  Prefactor  = 0.0001
  norm       = 6.55879
  norm       = 14.5307
  Normalizat = 1.12642
  Prefactor  = 0.812412
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.172     FROM HESSE     STATUS=OK           494 CALLS     3811 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9277        7.0034        .12709E-03   -1.5078    
   2  Prefactor     .10000E-03    46.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8206        2.0188        .11556E-03   -1.5438    
   6  Prefactor     .10000E-03    2.6834        .12696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5788        5.3999        .14375E-03   -1.5157    
   8  Prefactor     .10000E-03    13.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     81.300        33.762        .44549E-04   -1.3902    
  10  Prefactor     13.910        14.718        .53695E-03   -1.4962    
  11  norm          2.5147        3.5951        .17226E-03   -1.5391    
  12  norm          .10000E-03    10.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1488        .82994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5589        .96978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0442        .11007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7942        2.6337        .14649E-03   -1.5440    
  17  Prefactor     .10000E-03    9.5856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.098        57.007        .12124E-03   -1.5042    
  20  Prefactor     6.7298        23.337        .15467E-03   -1.5189    
  21  Prefactor     .11171E-03    23.881        .10820       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5475        5.9531        .15566E-03   -1.5237    
  23  Prefactor     .10000E-03    82.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.5588        1.8249        .53743E-04   -1.5196    
  25  norm          14.531        13.535        .10507E-03   -1.4945    
  26  Normalizat    1.1264        .19266        .21619E-03   -.88908    
  27  Prefactor     .81241        .22715        .30997E-03   -.99272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68811e-09
Minuit parameter uncertainties:
  1  7.00395
  2  4.97243e-05
  3  1.80037e-06
  4  6.60616e-06
  5  2.01885
  6  1.51961e-05
  7  5.40022
  8  1.52617e-06
  9  33.7705
  10  14.722
  11  3.59537
  12  3.7871e-06
  13  1.03076e-05
  14  5.00377e-06
  15  1.49402e-07
  16  2.63386
  17  7.5389e-05
  18  6.85959e-06
  19  50.381
  20  23.3685
  21  0.0334585
  22  5.95377
  23  0.000126635
  24  1.82494
  25  13.538
  26  0.192779
  27  0.227409
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.787e-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.124e-01  2.274e-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.126e+00  1.928e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283103/likelihoodResults_519004801_519264001_4FGL_J1309.4+4305_daily_bin1079.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) = 6331.17212046
delta logL = -0.000438093203229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6331.17168266
delta logL = -2.97203769151e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12033E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8228       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81247       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=   6331.172     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    16.243        .18142E-02** at limit **
   2  alpha         1.8882        3.3967        .50000       -.26127E-04
   3  Normalizat    1.1264        .18101        .21619E-03   -.37599E-04
   4  Prefactor     .81241        .22470        .30997E-03   -.15514E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 1.88818
  Normalizat = 1.12642
  Prefactor  = 0.812413
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.172     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    14.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8882        3.3799        .50000       -.24724    
   3  Normalizat    1.1264        .18118        .86477E-05   -.88908    
   4  Prefactor     .81241        .22491        .12399E-04   -.99272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30752e-09
Minuit parameter uncertainties:
  1  0.000791617
  2  2.42837
  3  0.181276
  4  0.225162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283103': 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) = 6331.17168112
delta logL = 1.2427162801e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  8.124e-01  2.252e-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.126e+00  1.813e-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/283103/cmap_HighResolution_519004801_519264001_4FGL_J1309.4+4305_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='3.55e-08', time_completed='2021-09-07 01:23:14.884510', job_id='283103', GAL2='0.81', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631002994.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1079' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:23:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 283103: <4FGL_J1309.4+4305_daily_bin1079> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1079> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:43 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:08:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:08:09 2021
Terminated at Tue Sep  7 01:23:15 2021
Results reported at Tue Sep  7 01:23:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1079 197.363 43.085 519004801 519264001 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 :                                   860.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            932 sec.

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

