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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1056
RA = 243.421, Dec = 34.1982
tmin = 513043201, tmax = 513302401
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='191262', job_status='RUN', time_executed='2021-09-13 17:53:14.601847', time_epoch_executed='1631580794.6' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191262/ft1_4FGL_J1613.6+3411_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191262/ft2_4FGL_J1613.6+3411_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191262/ft1_4FGL_J1613.6+3411_daily_bin1056.fits outfile=/scratch/kocevski/191262/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1056.fits ra=243.421 dec=34.1982 rad=12.0 tmin=513043201.0 tmax=513302401.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.40
user 6.11
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191262/ft2_4FGL_J1613.6+3411_daily_bin1056.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/191262/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/191262/ft1_filtered_4FGL_J1613.6+3411_daily_bin1056.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.50
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191262/ft1_filtered_4FGL_J1613.6+3411_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/191262/ft2_4FGL_J1613.6+3411_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/191262/ltcube_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.fits outfile=/scratch/kocevski/191262/expmap_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.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/191262/ltcube_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.fits
.....................!
real 191.76
user 185.98
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 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/191262/ft1_filtered_4FGL_J1613.6+3411_daily_bin1056.fits scfile=/scratch/kocevski/191262/ft2_4FGL_J1613.6+3411_daily_bin1056.fits outfile=/scratch/kocevski/191262/cmap_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191262/ft1_filtered_4FGL_J1613.6+3411_daily_bin1056.fits scfile=/scratch/kocevski/191262/ft2_4FGL_J1613.6+3411_daily_bin1056.fits outfile=/scratch/kocevski/191262/cmap_HighResolution_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.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.57
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191262/ft1_filtered_4FGL_J1613.6+3411_daily_bin1056.fits', '/scratch/kocevski/191262/ft2_4FGL_J1613.6+3411_daily_bin1056.fits', expMap='/scratch/kocevski/191262/expmap_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.fits', expCube='/scratch/kocevski/191262/ltcube_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191262/Model_4FGL_J1613.6+3411_daily_bin1056.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/191262/ft1_filtered_4FGL_J1613.6+3411_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/191262/ft2_4FGL_J1613.6+3411_daily_bin1056.fits
Exposure map: /scratch/kocevski/191262/expmap_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.fits
Exposure cube: /scratch/kocevski/191262/ltcube_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191262/Model_4FGL_J1613.6+3411_daily_bin1056.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) = 7837.99115717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.735       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.292       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4013       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6040       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1542       1.0000         .10000E-03   10000.    
    12 'norm      '    .25877       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7267       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.401       1.0000         .10000E-03   10000.    
    15 'norm      '    74.755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.3635       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92883       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89918       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=   7837.982     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2460 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.729        42.827       -.95723E-05   -.37061E-04
   2  norm          3.1140        1.3749        .13963E-07   -.99361E-05
   3  Prefactor     13.291        9.1277       -.52366E-07   -.52468E-03
   4  Prefactor     .10000E-03    13.410       -.70333E-07** at limit **
   5  Prefactor     .10000E-03    3.7589       -.43361E-07** at limit **
   6  norm          .10000E-03    2.7068       -.25751E-07** at limit **
   7  Prefactor     .10000E-03    .90183       -.30631E-07** at limit **
   8  Prefactor     .10000E-03    4.3827       -.33511E-07** at limit **
   9  Prefactor     8.3980        12.241       -.10974E-05   -.38671E-04
  10  Prefactor     9.6036        4.7201       -.65275E-07   -.67054E-04
  11  Prefactor     8.1550        4.6795        .10423E-06   -.18019E-03
  12  norm          .25891        .21745        .17957E-07   -.16980E-02
  13  norm          2.7261        4.7629        .82503E-06   -.92558E-03
  14  Prefactor     62.400        33.306       -.25612E-06   -.90922E-04
  15  norm          74.749        54.459       -.52834E-05   -.10618E-03
  16  Prefactor     .10000E-03    .68413        .11510E-06** at limit **
  17  Prefactor     .10000E-03    .81738        .11239E-06** at limit **
  18  Prefactor     .10000E-03    21.086        .46703E-07** at limit **
  19  Prefactor     .10000E-03    3.1699        .53857E-07** at limit **
  20  norm          4.3643        2.6119        .49724E-07   -.25881E-03
  21  Normalizat    .92888        .18215        .48508E-06   -.59626E-04
  22  Prefactor     .89915        .13047        .22646E-06   -.33248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7294
  norm       = 3.11401
  Prefactor  = 13.2906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.39796
  Prefactor  = 9.60356
  Prefactor  = 8.15501
  norm       = 0.258909
  norm       = 2.72607
  Prefactor  = 62.4004
  norm       = 74.7488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.36429
  Normalizat = 0.928884
  Prefactor  = 0.899146
 **********
 **   18 **HESSE 
 **********

 FCN=   7837.982     FROM HESSE     STATUS=OK           350 CALLS     2810 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.729        42.673        .10434E-03   -1.4940    
   2  norm          3.1140        1.3911        .56176E-04   -1.5355    
   3  Prefactor     13.291        9.4405        .54934E-03   -1.4979    
   4  Prefactor     .10000E-03    13.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7606        .16763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7101        .14224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4738        .16191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3880        .18101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3980        12.260        .13831E-03   -1.5128    
  10  Prefactor     9.6036        4.7336        .12625E-03   -1.5088    
  11  Prefactor     8.1550        4.6660        .13525E-03   -1.5137    
  12  norm          .25891        .19658        .29126E-03   -1.5606    
  13  norm          2.7261        9.8171        .12331E-02   -1.5378    
  14  Prefactor     62.400        32.806        .50797E-04   -1.4126    
  15  norm          74.749        54.630        .23219E-03   -1.3977    
  16  Prefactor     .10000E-03    .99173        .12923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1364        .14424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2265        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.3643        2.5599        .10438E-03   -1.5290    
  21  Normalizat    .92888        .22003        .28659E-03   -.95453    
  22  Prefactor     .89915        .15818        .21935E-03   -.96171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24346e-09
Minuit parameter uncertainties:
  1  42.7617
  2  1.39113
  3  9.4416
  4  2.49548e-06
  5  6.38286e-07
  6  3.03477e-07
  7  5.41636e-06
  8  1.12376e-06
  9  12.2634
  10  4.73378
  11  4.66619
  12  0.196577
  13  9.82291
  14  32.8155
  15  54.6666
  16  1.27025e-05
  17  1.40202e-05
  18  1.61552e-05
  19  1.91895e-05
  20  2.55995
  21  0.220242
  22  0.158262
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  9.604e+00  4.734e+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.991e-01  1.583e-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.289e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.96
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 4.92e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.54e-05

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) = 7837.75490896
delta logL = 0.226688415485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7837.75446123
delta logL = 0.227136141083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7634       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0580       1.0000          .0000       10.000    
     3 'Normalizat'    .96624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88367       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7837.754     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7624        5.6333        .12825E-03    .33783E-03
   2  Index         2.0567        .54811        .88806E-02    .93435E-04
   3  Normalizat    .96669        .21085        .28136E-03    .81491E-03
   4  Prefactor     .88340        .15486        .22117E-03    .95731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.76244
  Index      = 2.05673
  Normalizat = 0.966689
  Prefactor  = 0.883401
 **********
 **   18 **HESSE 
 **********

 FCN=   7837.754     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7624        5.7369        .51299E-05   -1.5083    
   2  Index         2.0567        .55760        .35522E-03   -.62939    
   3  Normalizat    .96669        .21130        .56273E-04   -.94155    
   4  Prefactor     .88340        .15501        .44234E-04   -.96724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71223e-10
Minuit parameter uncertainties:
  1  5.73725
  2  0.559386
  3  0.21148
  4  0.15509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191262': 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) = 7837.75445706
delta logL = 0.227140316364

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  9.762e+00  5.737e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.057e+00  5.594e-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.834e-01  1.551e-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.667e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.31
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.06 +/- 0.56
Photon Flux (Free Index): 6.32e-08 +/- 6.41e-08
Energy Flux (Free Index): 3.82e-05 +/- 2.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/191262/cmap_HighResolution_513043201_513302401_4FGL_J1613.6+3411_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='3.82e-05', photon_flux_error='4.92e-08', dlogl='2.27e-01', energy_flux='3.12e-05', photon_flux2='6.32e-08', job_status='DONE', time_completed='2021-09-13 18:05:02.158506', photon_index_error2='0.56', photon_index2='2.06', ts='8.96', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.59e-05', EG='0.93', time_epoch_completed='1631581502.16', return_code='0', job_id='191262', GAL2='0.88', EG2='0.97', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='6.41e-08', ts2='9.31', photon_index='2.44' WHERE bin_id='1056' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 191262: <4FGL_J1613.6+3411_daily_bin1056> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1056> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:25 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:50:38 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:50:38 2021
Terminated at Mon Sep 13 18:05:02 2021
Results reported at Mon Sep 13 18:05:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1056 243.421 34.1982 513043201 513302401 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 :                                   696.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            877 sec.

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

