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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1153
RA = 243.421, Dec = 34.1982
tmin = 538185601, tmax = 538444801
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='191419', job_status='RUN', time_executed='2021-09-13 17:53:46.402137', time_epoch_executed='1631580826.4' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191419

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191419/ft1_4FGL_J1613.6+3411_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191419/ft1_4FGL_J1613.6+3411_daily_bin1153.fits outfile=/scratch/kocevski/191419/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1153.fits ra=243.421 dec=34.1982 rad=12.0 tmin=538185601.0 tmax=538444801.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 5.39
user 5.06
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.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/191419/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1153.fits evtable="EVENTS" outfile="/scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.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.53
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/191419/ltcube_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.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/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits
.....................!
real 15.37
user 14.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/191419/ltcube_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.fits outfile=/scratch/kocevski/191419/expmap_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.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/191419/ltcube_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.fits
.....................!
real 194.45
user 187.96
sys 5.73

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1613.6+3411 @ 243.421 34.1982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits scfile=/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits outfile=/scratch/kocevski/191419/cmap_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.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=243.421 yref=34.1982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits scfile=/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits outfile=/scratch/kocevski/191419/cmap_HighResolution_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.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=243.421 yref=34.1982 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191419/Model_4FGL_J1613.6+3411_daily_bin1153.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/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits.....................!
real 33.79
user 32.40
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits', '/scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits', expMap='/scratch/kocevski/191419/expmap_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.fits', expCube='/scratch/kocevski/191419/ltcube_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191419/Model_4FGL_J1613.6+3411_daily_bin1153.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1613.6+3411'

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.261e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191419/ft1_filtered_4FGL_J1613.6+3411_daily_bin1153.fits
Spacecraft file(s): /scratch/kocevski/191419/ft2_4FGL_J1613.6+3411_daily_bin1153.fits
Exposure map: /scratch/kocevski/191419/expmap_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.fits
Exposure cube: /scratch/kocevski/191419/ltcube_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191419/Model_4FGL_J1613.6+3411_daily_bin1153.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) = 3211.20238676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.8363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11202E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11165E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .29335E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9136       1.0000         .10000E-03   10000.    
    12 'norm      '    .75242       1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.107       1.0000         .10000E-03   10000.    
    15 'norm      '    .10841E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20471E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2684       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98811       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3211.067     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2045 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.317       -.59257E-05** at limit **
   2  norm          7.8417        3.1236       -.72861E-07    .24817E-03
   3  Prefactor     .10000E-03    22.567       -.23623E-05** at limit **
   4  Prefactor     .10000E-03    31.959       -.10624E-04** at limit **
   5  Prefactor     .10000E-03    65.935       -.19925E-04** at limit **
   6  norm          .10000E-03    54.891        .19214E-05** at limit **
   7  Prefactor     .10000E-03    2.4399        .22990E-07** at limit **
   8  Prefactor     .10000E-03    39.527        .94913E-05** at limit **
   9  Prefactor     .10000E-03    17.785        .31051E-05** at limit **
  10  Prefactor     2.2910        2.9312       -.82061E-07   -.34400E-04
  11  Prefactor     6.9130        5.3023       -.43727E-05   -.11870E-03
  12  norm          .75220        .26657        .57498E-07    .19277E-03
  13  norm          .10000E-03    8.9379        .66270E-07** at limit **
  14  Prefactor     32.106        27.311       -.34343E-06    .10721E-04
  15  norm          .10000E-03    13.155       -.79069E-06** at limit **
  16  Prefactor     1.9898        1.3803        .17095E-06    .13969E-03
  17  Prefactor     .36323        .94493       -.74546E-07   -.41014E-03
  18  Prefactor     .10000E-03    51.231        .21305E-04** at limit **
  19  Prefactor     .10000E-03    .92789        .17405E-07** at limit **
  20  norm          2.2683        1.6575       -.19837E-08    .94683E-04
  21  Normalizat    .98772        .26360        .34936E-05   -.12641E-03
  22  Prefactor     .85972        .19520       -.12799E-05   -.44002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.84174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29105
  Prefactor  = 6.913
  norm       = 0.752195
  norm       = 0.0001
  Prefactor  = 32.1063
  norm       = 0.0001
  Prefactor  = 1.98985
  Prefactor  = 0.363234
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.26825
  Normalizat = 0.987716
  Prefactor  = 0.85972
 **********
 **   18 **HESSE 
 **********

 FCN=   3211.067     FROM HESSE     STATUS=OK           340 CALLS     2385 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.8417        3.1219        .61019E-04   -1.5148    
   3  Prefactor     .10000E-03    22.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    56.804        .42798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5007        .17283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2910        2.9223        .10649E-03   -1.5405    
  11  Prefactor     6.9130        5.3269        .10778E-03   -1.5182    
  12  norm          .75220        .26717        .15335E-04   -1.5535    
  13  norm          .10000E-03    8.9439        .16548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.106        27.507        .70715E-04   -1.4574    
  15  norm          .10000E-03    13.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9898        1.3962        .49200E-04   -1.5426    
  17  Prefactor     .36323        .79224        .79603E-03   -1.5587    
  18  Prefactor     .10000E-03    51.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .93085        .53305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2683        1.6598        .60574E-04   -1.5407    
  21  Normalizat    .98772        .30533        .27029E-03   -.93443    
  22  Prefactor     .85972        .22674        .22094E-03   -.97563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71172e-10
Minuit parameter uncertainties:
  1  3.41339e-06
  2  3.12195
  3  5.65473e-06
  4  3.75105e-06
  5  4.83805e-05
  6  8.90267e-05
  7  4.15149e-06
  8  3.23251e-05
  9  3.54582e-05
  10  2.92249
  11  5.32728
  12  0.267172
  13  5.8457e-06
  14  27.5182
  15  8.69301e-06
  16  1.39623
  17  0.792262
  18  0.000563875
  19  1.5065e-06
  20  1.65983
  21  0.305867
  22  0.226992
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.291e+00  2.922e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.597e-01  2.270e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.877e-01  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 7.45e-06 +/- 9.50e-06

TS (Fixed Index): 1.36
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191419/likelihoodResults_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.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) = 3210.46823414
delta logL = 0.59868805566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3210.43908102
delta logL = 0.627841177191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9974       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5234       1.0000          .0000       10.000    
     3 'Normalizat'    1.0046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85017       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3210.439     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9996        3.3695        .58615E-02   -.66176E-04
   2  Index         1.5227        .54516        .21551       -.28360E-04
   3  Normalizat    1.0047        .25117        .46224E-01    .48667E-05
   4  Prefactor     .85008        .19377        .44367E-01    .31801E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99959
  Index      = 1.52266
  Normalizat = 1.0047
  Prefactor  = 0.850084
 **********
 **   18 **HESSE 
 **********

 FCN=   3210.439     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9996        3.5949        .10677E-03   -1.5362    
   2  Index         1.5227        .66235        .83573E-02   -.76907    
   3  Normalizat    1.0047        .29019        .26813E-03   -.92873    
   4  Prefactor     .85008        .22396        .22186E-03   -.97908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15116e-12
Minuit parameter uncertainties:
  1  3.59519
  2  0.666163
  3  0.290647
  4  0.224203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191419': 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) = 3210.43907976
delta logL = 0.627842437359

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.000e+00  3.595e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  1.523e+00  6.662e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.501e-01  2.242e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.005e+00  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 243.421 34.198
Photon Index (Free Index): 1.52 +/- 0.67
Photon Flux (Free Index): 1.27e-08 +/- 1.65e-08
Energy Flux (Free Index): 3.74e-05 +/- 7.21e-05

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/191419/cmap_HighResolution_538185601_538444801_4FGL_J1613.6+3411_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.51e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='3.74e-05', photon_flux_error='3.04e-08', dlogl='6.28e-01', energy_flux='7.45e-06', photon_flux2='1.27e-08', job_status='DONE', time_completed='2021-09-13 18:02:22.365503', photon_index_error2='0.67', photon_index2='1.52', ts='1.36', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='7.21e-05', EG='0.99', time_epoch_completed='1631581342.37', return_code='0', job_id='191419', GAL2='0.85', EG2='1.00', return_code2='0', energy_flux_error='9.50e-06', photon_flux_error2='1.65e-08', ts2='2.62', photon_index='2.44' WHERE bin_id='1153' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:02:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 191419: <4FGL_J1613.6+3411_daily_bin1153> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1153> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:36 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:51:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 17:51:04 2021
Terminated at Mon Sep 13 18:02:23 2021
Results reported at Mon Sep 13 18:02:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1153 243.421 34.1982 538185601 538444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1613.6+3411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   512.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            707 sec.

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

