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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin714
RA = 197.363, Dec = 43.085
tmin = 424396801, tmax = 424656001
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='279691', job_status='RUN', time_executed='2021-09-07 01:03:07.264822', time_epoch_executed='1631001787.26' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279691/ft1_4FGL_J1309.4+4305_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279691/ft2_4FGL_J1309.4+4305_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279691/ft1_4FGL_J1309.4+4305_daily_bin714.fits outfile=/scratch/kocevski/279691/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin714.fits ra=197.363 dec=43.085 rad=12.0 tmin=424396801.0 tmax=424656001.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 6.91
user 4.95
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279691/ft1_filtered_4FGL_J1309.4+4305_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/279691/ft2_4FGL_J1309.4+4305_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/279691/ltcube_424396801_424656001_4FGL_J1309.4+4305_daily_bin714.fits outfile=/scratch/kocevski/279691/expmap_424396801_424656001_4FGL_J1309.4+4305_daily_bin714.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/279691/ltcube_424396801_424656001_4FGL_J1309.4+4305_daily_bin714.fits
.....................!
real 195.67
user 186.25
sys 5.25

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/279691/ft1_filtered_4FGL_J1309.4+4305_daily_bin714.fits scfile=/scratch/kocevski/279691/ft2_4FGL_J1309.4+4305_daily_bin714.fits outfile=/scratch/kocevski/279691/cmap_424396801_424656001_4FGL_J1309.4+4305_daily_bin714.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.79
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279691/ft1_filtered_4FGL_J1309.4+4305_daily_bin714.fits scfile=/scratch/kocevski/279691/ft2_4FGL_J1309.4+4305_daily_bin714.fits outfile=/scratch/kocevski/279691/cmap_HighResolution_424396801_424656001_4FGL_J1309.4+4305_daily_bin714.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 2.67
user 0.41
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    116.95       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.6851       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26309E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.666       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    38.215       1.0000         .10000E-03   10000.    
    14 'norm      '    .47059E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14753E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.356       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.5194       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.1194       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4914       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0728       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=   1562.193     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3256 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.776        36.913        .32260E-06   -.13006E-06
   2  Prefactor     116.98        116.29       -.49401E-06   -.81013E-04
   3  Prefactor     .10000E-03    33.649       -.37996E-06** at limit **
   4  Prefactor     .10000E-03    63.521       -.11141E-05** at limit **
   5  norm          9.6861        8.5036        .22359E-06    .57962E-04
   6  Prefactor     .10001E-03    30.979       -.35595E-05** at limit **
   7  norm          .10000E-03    8.1145       -.49370E-07** at limit **
   8  Prefactor     .10000E-03    92.671       -.16344E-05** at limit **
   9  Prefactor     .10000E-03    35.192       -.98166E-07** at limit **
  10  Prefactor     .10000E-03    44.375        .13546E-05** at limit **
  11  norm          10.664        12.438       -.29895E-08   -.46933E-04
  12  norm          .10000E-03    20.627        .10529E-05** at limit **
  13  norm          38.138        17.441        .74292E-08    .29010E-03
  14  norm          .10027E-03    243.27       -.40803E-04** at limit **
  15  norm          .10000E-03    5.2977       -.23807E-06** at limit **
  16  Prefactor     .10000E-03    7.2355       -.69614E-07** at limit **
  17  Prefactor     .10000E-03    23.465       -.98182E-06** at limit **
  18  Prefactor     .10002E-03    288.25        .60525E-05** at limit **
  19  Prefactor     .10000E-03    58.171       -.25039E-06** at limit **
  20  Prefactor     20.356        38.777       -.81120E-06   -.28815E-03
  21  Prefactor     .10000E-03    37.777        .28842E-06** at limit **
  22  norm          7.5195        9.3881       -.35669E-06   -.72677E-03
  23  Prefactor     .10000E-03    107.49        .55280E-06** at limit **
  24  norm          6.1197        4.3250       -.61227E-07   -.82757E-03
  25  norm          .10000E-03    18.307       -.29267E-06** at limit **
  26  Normalizat    1.4919        .40632       -.68340E-05   -.70092E-03
  27  Prefactor     1.0721        .51805        .57864E-05   -.30079E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.7756
  Prefactor  = 116.976
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.68608
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 10.6642
  norm       = 0.000100001
  norm       = 38.1377
  norm       = 0.00010027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 20.3562
  Prefactor  = 0.0001
  norm       = 7.51945
  Prefactor  = 0.0001
  norm       = 6.11966
  norm       = 0.0001
  Normalizat = 1.49192
  Prefactor  = 1.07211
 **********
 **   18 **HESSE 
 **********

 FCN=   1562.193     FROM HESSE     STATUS=OK           474 CALLS     3730 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.776        36.923        .67951E-04   -1.4528    
   2  Prefactor     116.98        116.47        .18603E-03   -1.3541    
   3  Prefactor     .10000E-03    33.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.6861        8.5146        .10396E-03   -1.5085    
   6  Prefactor     .10001E-03    167.10        .40565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    8.1261        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    92.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.664        12.402        .12268E-03   -1.5055    
  12  norm          .10000E-03    20.683        .17561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          38.138        17.619        .64835E-04   -1.4472    
  14  norm          .10027E-03    261.92        .45685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3100        .88870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2938        .10388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    289.79        .20484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    58.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.356        38.820        .88774E-04   -1.4805    
  21  Prefactor     .10000E-03    37.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.5195        9.4020        .12117E-03   -1.5159    
  23  Prefactor     .10000E-03    107.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.1197        4.3235        .64168E-04   -1.5213    
  25  norm          .10000E-03    18.324        .16521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.4919        .49237        .25713E-03   -.78006    
  27  Prefactor     1.0721        .60934        .36948E-03   -.90363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63408e-09
Minuit parameter uncertainties:
  1  36.9475
  2  116.696
  3  0.000107625
  4  0.000554174
  5  8.51564
  6  0.0028661
  7  2.16214e-07
  8  0.00100284
  9  1.36346e-05
  10  0.000616728
  11  12.4047
  12  0.000309526
  13  17.6209
  14  0.0168824
  15  4.66559e-05
  16  1.56638e-05
  17  0.000273796
  18  0.00465308
  19  0.00010996
  20  38.8683
  21  6.63941e-05
  22  9.40383
  23  0.000394042
  24  4.32368
  25  7.2483e-05
  26  0.493966
  27  0.613352
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.095e-04  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.072e+00  6.134e-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.492e+00  4.940e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279691/likelihoodResults_424396801_424656001_4FGL_J1309.4+4305_daily_bin714.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) = 1562.19334038
delta logL = -0.000215359616277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1562.19312737
delta logL = -2.34822027778e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8306       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0725       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=   1562.193     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      272 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    905.01        .13038E-01** at limit **
   2  alpha         1.6617        3.4492        .16646        .60664E-07
   3  Normalizat    1.4919        .74312E-01    .25713E-03   -.14625E-03
   4  Prefactor     1.0721        .92889E-01    .36948E-03   -.10363E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.66167
  Normalizat = 1.49194
  Prefactor  = 1.07209
 **********
 **   18 **HESSE 
 **********

 FCN=   1562.193     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.128        .17631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6617        2.9540        .66585E-02   -.34196    
   3  Normalizat    1.4919        .48371        .51426E-04   -.78005    
   4  Prefactor     1.0721        .60269        .73896E-04   -.90363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08304e-10
Minuit parameter uncertainties:
  1  0.000447783
  2  583.8
  3  0.485217
  4  0.606566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279691': 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) = 1562.193125
delta logL = 2.06628101296e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.478e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.662e+00  5.838e+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.072e+00  6.066e-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.492e+00  4.852e-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/279691/cmap_HighResolution_424396801_424656001_4FGL_J1309.4+4305_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-04', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-07 01:11:24.115872', job_id='279691', GAL2='1.07', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1631002284.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='714' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 279691: <4FGL_J1309.4+4305_daily_bin714> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin714> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:23 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:29 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:00:29 2021
Terminated at Tue Sep  7 01:11:24 2021
Results reported at Tue Sep  7 01:11:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin714 197.363 43.085 424396801 424656001 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 :                                   472.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            661 sec.

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

