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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin849
RA = 197.363, Dec = 43.085
tmin = 459388801, tmax = 459648001
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='279884', job_status='RUN', time_executed='2021-09-07 01:03:03.139750', time_epoch_executed='1631001783.14' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='849'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279884/ft1_4FGL_J1309.4+4305_daily_bin849.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279884/ft2_4FGL_J1309.4+4305_daily_bin849.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279884/ft1_4FGL_J1309.4+4305_daily_bin849.fits outfile=/scratch/kocevski/279884/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin849.fits ra=197.363 dec=43.085 rad=12.0 tmin=459388801.0 tmax=459648001.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.99
user 3.28
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279884/ft1_filtered_4FGL_J1309.4+4305_daily_bin849.fits evtable="EVENTS" scfile=/scratch/kocevski/279884/ft2_4FGL_J1309.4+4305_daily_bin849.fits sctable="SC_DATA" expcube=/scratch/kocevski/279884/ltcube_459388801_459648001_4FGL_J1309.4+4305_daily_bin849.fits outfile=/scratch/kocevski/279884/expmap_459388801_459648001_4FGL_J1309.4+4305_daily_bin849.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/279884/ltcube_459388801_459648001_4FGL_J1309.4+4305_daily_bin849.fits
.....................!
real 193.98
user 186.23
sys 4.28

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/279884/ft1_filtered_4FGL_J1309.4+4305_daily_bin849.fits scfile=/scratch/kocevski/279884/ft2_4FGL_J1309.4+4305_daily_bin849.fits outfile=/scratch/kocevski/279884/cmap_459388801_459648001_4FGL_J1309.4+4305_daily_bin849.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 1.11
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279884/ft1_filtered_4FGL_J1309.4+4305_daily_bin849.fits scfile=/scratch/kocevski/279884/ft2_4FGL_J1309.4+4305_daily_bin849.fits outfile=/scratch/kocevski/279884/cmap_HighResolution_459388801_459648001_4FGL_J1309.4+4305_daily_bin849.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.98
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15449E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.879       1.0000         .10000E-03   10000.    
     5 'norm      '    .91155E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30053       1.0000         .10000E-03   10000.    
     7 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4582       1.0000         .10000E-03   10000.    
    13 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.4163       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3441       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9550       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11457E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.7054       1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2953       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70504       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=   5895.937     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3331 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7405       -.10105E-06** at limit **
   2  Prefactor     .10000E-03    204.61       -.82325E-04** at limit **
   3  Prefactor     9.8866        17.135       -.26686E-05   -.29827E-03
   4  Prefactor     24.840        24.422        .91698E-06    .95097E-04
   5  norm          .98755E-01    1.0581        .32545E-06    .86656E-04
   6  Prefactor     .29616        4.9441       -.13939E-06   -.49901E-04
   7  norm          .10000E-03    2.3282        .42277E-07** at limit **
   8  Prefactor     .10000E-03    15.864       -.13308E-05** at limit **
   9  Prefactor     .10000E-03    9.3907       -.75283E-06** at limit **
  10  Prefactor     .10000E-03    5.6410       -.27632E-07** at limit **
  11  norm          .10000E-03    1.2768       -.92414E-08** at limit **
  12  norm          3.4592        9.7845        .55224E-06   -.35278E-04
  13  norm          .10000E-03    3.6444       -.86644E-07** at limit **
  14  norm          9.4179        6.3501        .10302E-06    .96700E-04
  15  norm          .10000E-03    1.1802        .19269E-06** at limit **
  16  Prefactor     2.3449        2.8511        .15409E-06    .19246E-03
  17  Prefactor     1.2425        4.5586        .48249E-06   -.18310E-03
  18  Prefactor     .10000E-03    18.532        .63251E-06** at limit **
  19  Prefactor     .10000E-03    13.459        .12738E-05** at limit **
  20  Prefactor     .10000E-03    8.6438        .67605E-06** at limit **
  21  Prefactor     .10000E-03    32.382        .94430E-06** at limit **
  22  norm          3.9536        4.0930       -.11111E-06   -.58059E-03
  23  Prefactor     .10003E-03    114.37       -.50163E-05** at limit **
  24  norm          2.7055        1.3416        .58357E-07    .37212E-04
  25  norm          .10000E-03    4.1740        .71123E-07** at limit **
  26  Normalizat    1.2952        .16507       -.78289E-06   -.61161E-03
  27  Prefactor     .70522        .19707       -.58579E-06   -.38408E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 9.88657
  Prefactor  = 24.8401
  norm       = 0.0987552
  Prefactor  = 0.296162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.45923
  norm       = 0.0001
  norm       = 9.41791
  norm       = 0.0001
  Prefactor  = 2.34487
  Prefactor  = 1.24249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95364
  Prefactor  = 0.000100025
  norm       = 2.70548
  norm       = 0.0001
  Normalizat = 1.29518
  Prefactor  = 0.705221
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.937     FROM HESSE     STATUS=OK           494 CALLS     3825 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7832        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.014        .92583E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.8866        17.226        .12737E-03   -1.5079    
   4  Prefactor     24.840        24.357        .80310E-04   -1.4711    
   5  norm          .98755E-01    9.9330        .15171E-02   -1.5645    
   6  Prefactor     .29616        17.357        .31870E-02   -1.5599    
   7  norm          .10000E-03    2.3537        .11439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.6522        .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2785        .84724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4592        10.069        .10874E-02   -1.5336    
  13  norm          .10000E-03    3.6943        .28414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.4179        6.3820        .13060E-03   -1.5094    
  15  norm          .10000E-03    1.1853        .81487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3449        3.1627        .13387E-03   -1.5402    
  17  Prefactor     1.2425        51.837        .20033E-02   -1.5485    
  18  Prefactor     .10000E-03    18.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9536        4.0963        .15071E-03   -1.5310    
  23  Prefactor     .10003E-03    114.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.7055        1.3417        .60157E-04   -1.5379    
  25  norm          .10000E-03    4.1791        .15321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2952        .18944        .19848E-03   -.83710    
  27  Prefactor     .70522        .22431        .31832E-03   -1.0332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9379e-08
Minuit parameter uncertainties:
  1  3.82004e-05
  2  0.000579227
  3  17.235
  4  24.3669
  5  1.98017
  6  4.5351
  7  7.18875e-06
  8  9.2169e-05
  9  2.30014e-05
  10  2.27241e-06
  11  4.18357e-07
  12  10.0735
  13  1.68947e-05
  14  6.38249
  15  1.9867e-05
  16  3.16292
  17  16.0651
  18  0.000115459
  19  2.69115e-05
  20  3.46345e-05
  21  0.000185683
  22  4.09659
  23  0.00339902
  24  1.34175
  25  1.37239e-05
  26  0.189542
  27  0.224599
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.459e+00  1.007e+01  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:  7.052e-01  2.246e-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.295e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 3.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279884/likelihoodResults_459388801_459648001_4FGL_J1309.4+4305_daily_bin849.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) = 5895.84285471
delta logL = 0.0944288449837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5895.84240878
delta logL = 0.0948747804741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3962       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3373       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70435       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5895.842     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      276 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3931        9.3729        .10977E-02    .28066E-03
   2  alpha         2.3356        1.4275        .24243E-01    .12656E-03
   3  Normalizat    1.2924        .18240        .19866E-03    .15452E-05
   4  Prefactor     .70442        .22327        .31843E-03    .71405E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 3.39305
  alpha      = 2.33563
  Normalizat = 1.29236
  Prefactor  = 0.704421
 **********
 **   18 **HESSE 
 **********

 FCN=   5895.842     FROM HESSE     STATUS=OK            27 CALLS      303 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3931        8.3748        .21954E-03   -1.5340    
   2  alpha         2.3356        1.2923        .48487E-02   -.65795E-01
   3  Normalizat    1.2924        .18240        .79462E-05   -.83795    
   4  Prefactor     .70442        .22326        .12737E-04   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22921e-12
Minuit parameter uncertainties:
  1  8.37774
  2  1.35847
  3  0.182487
  4  0.223544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279884': 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) = 5895.84240679
delta logL = 0.0948767663367

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.393e+00  8.378e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.336e+00  1.358e+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:  7.044e-01  2.235e-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.292e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/279884/cmap_HighResolution_459388801_459648001_4FGL_J1309.4+4305_daily_bin849.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2021-09-07 01:17:12.115231', job_id='279884', GAL2='0.70', fit_tolerance='1e-08', EG2='1.29', EG='1.30', time_epoch_completed='1631002632.12', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='9.49e-02', ts2='0.33', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='849' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:17:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 279884: <4FGL_J1309.4+4305_daily_bin849> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin849> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:36 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:02:06 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:02:06 2021
Terminated at Tue Sep  7 01:17:15 2021
Results reported at Tue Sep  7 01:17:15 2021

Your job looked like:

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

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

