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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1381
RA = 243.421, Dec = 34.1982
tmin = 597283201, tmax = 597542401
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='192873', job_status='RUN', time_executed='2021-09-13 17:58:54.075077', time_epoch_executed='1631581134.08' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192873/ft1_4FGL_J1613.6+3411_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192873/ft2_4FGL_J1613.6+3411_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192873/ft1_4FGL_J1613.6+3411_daily_bin1381.fits outfile=/scratch/kocevski/192873/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1381.fits ra=243.421 dec=34.1982 rad=12.0 tmin=597283201.0 tmax=597542401.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.53
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192873/ft1_filtered_4FGL_J1613.6+3411_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/192873/ft2_4FGL_J1613.6+3411_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/192873/ltcube_597283201_597542401_4FGL_J1613.6+3411_daily_bin1381.fits outfile=/scratch/kocevski/192873/expmap_597283201_597542401_4FGL_J1613.6+3411_daily_bin1381.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/192873/ltcube_597283201_597542401_4FGL_J1613.6+3411_daily_bin1381.fits
.....................!
real 191.85
user 186.01
sys 5.38

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/192873/ft1_filtered_4FGL_J1613.6+3411_daily_bin1381.fits scfile=/scratch/kocevski/192873/ft2_4FGL_J1613.6+3411_daily_bin1381.fits outfile=/scratch/kocevski/192873/cmap_597283201_597542401_4FGL_J1613.6+3411_daily_bin1381.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192873/ft1_filtered_4FGL_J1613.6+3411_daily_bin1381.fits scfile=/scratch/kocevski/192873/ft2_4FGL_J1613.6+3411_daily_bin1381.fits outfile=/scratch/kocevski/192873/cmap_HighResolution_597283201_597542401_4FGL_J1613.6+3411_daily_bin1381.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4992       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2797       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8017       1.0000         .10000E-03   10000.    
    12 'norm      '    .14905       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.635       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.088       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12299E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.8261       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3280       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .51933       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=   5781.237     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2069 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.720        .90712E-02** at limit **
   2  norm          1.4992        1.1219        .87445E-03    .23495E-02
   3  Prefactor     6.2795        6.5099        .40046E-02   -.46252E-04
   4  Prefactor     .10002E-03    14.225        .90712E-02** at limit **
   5  Prefactor     .10000E-03    12.721        .90712E-02** at limit **
   6  norm          .10000E-03    6.6911        .90712E-02** at limit **
   7  Prefactor     4.0188        3.2070        .50291E-02    .33955E-03
   8  Prefactor     1.4578        76.285        .89058E-02    .24280E-03
   9  Prefactor     15.041        10.019        .25818E-02    .52434E-03
  10  Prefactor     .10000E-03    1.1509        .90712E-02** at limit **
  11  Prefactor     3.8015        3.4407        .51755E-02    .17204E-03
  12  norm          .14901        .13258        .49789E-02    .13045E-02
  13  norm          .10000E-03    4.7810        .90712E-02** at limit **
  14  Prefactor     10.635        13.961        .30715E-02    .74467E-04
  15  norm          .10001E-03    15.316        .90712E-02** at limit **
  16  Prefactor     .10000E-03    .90771        .31012E-01** at limit **
  17  Prefactor     1.9825        1.4814        .73576E-02    .44015E-03
  18  Prefactor     23.088        15.204        .20840E-02    .13578E-03
  19  Prefactor     .10000E-03    1.4446        .57546E-01** at limit **
  20  norm          7.8262        2.4427        .35834E-02   -.96016E-04
  21  Normalizat    1.3281        .18491        .50029E-01    .13477E-04
  22  Prefactor     .51928        .13604        .57891E-01    .35871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.49915
  Prefactor  = 6.27946
  Prefactor  = 0.000100023
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 4.01876
  Prefactor  = 1.45781
  Prefactor  = 15.0413
  Prefactor  = 0.0001
  Prefactor  = 3.80149
  norm       = 0.149015
  norm       = 0.0001
  Prefactor  = 10.635
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 1.9825
  Prefactor  = 23.0883
  Prefactor  = 0.0001
  norm       = 7.82615
  Normalizat = 1.32806
  Prefactor  = 0.519277
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.237     FROM HESSE     STATUS=OK           352 CALLS     2421 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4992        1.1211        .17489E-03   -1.5463    
   3  Prefactor     6.2795        6.5039        .16018E-03   -1.5207    
   4  Prefactor     .10002E-03    14.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0188        3.2042        .11484E-03   -1.5307    
   8  Prefactor     1.4578        77.392        .35623E-03   -1.5466    
   9  Prefactor     15.041        10.021        .51637E-03   -1.4932    
  10  Prefactor     .10000E-03    1.1580        .79627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8015        3.4239        .12535E-03   -1.5318    
  12  norm          .14901        .12345        .22772E-03   -1.5631    
  13  norm          .10000E-03    4.7812        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.635        13.876        .12286E-03   -1.5056    
  15  norm          .10001E-03    15.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9056        .11307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9825        1.2583        .61299E-04   -1.5426    
  18  Prefactor     23.088        15.202        .83362E-04   -1.4747    
  19  Prefactor     .10000E-03    12.894        .17362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.8262        2.4395        .31508E-03   -1.5148    
  21  Normalizat    1.3281        .21880        .22118E-03   -.82733    
  22  Prefactor     .51928        .16003        .25609E-03   -1.1110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84328e-09
Minuit parameter uncertainties:
  1  7.89698e-05
  2  1.12114
  3  6.50468
  4  0.00114348
  5  0.000455898
  6  3.88501e-06
  7  3.20437
  8  21.272
  9  10.0222
  10  3.53919e-07
  11  3.42409
  12  0.123454
  13  9.28178e-07
  14  13.8798
  15  0.000828828
  16  7.65891e-07
  17  1.25828
  18  15.2049
  19  9.64738e-05
  20  2.43948
  21  0.218949
  22  0.160172
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  3.539e-07  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:  5.193e-01  1.602e-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.328e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192873/likelihoodResults_597283201_597542401_4FGL_J1613.6+3411_daily_bin1381.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): 102
logL (Free Index) = 5781.24138069
delta logL = -0.00403805532187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5781.23734252
delta logL = 1.13210262498e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4259       1.0000          .0000       10.000    
     3 'Normalizat'    1.3281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51929       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=   5781.237     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.4360        .80078E-02** at limit **
   2  Index         2.0994        6.6008        .50000        .35168E-05
   3  Normalizat    1.3281        .10208E-01    .22118E-03   -.13016E-03
   4  Prefactor     .51928        .77469E-02    .25609E-03   -.11631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.09941
  Normalizat = 1.32806
  Prefactor  = 0.519276
 **********
 **   18 **HESSE 
 **********

 FCN=   5781.237     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    74.760        .83438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0994        5.8054        .50000       -.61887    
   3  Normalizat    1.3281        .37112E-01    .44235E-04   -.82733    
   4  Prefactor     .51928        .28165E-01    .10244E-04   -1.1110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37676e-08
Minuit parameter uncertainties:
  1  0.00150841
  2  513.847
  3  0.0371131
  4  0.0281662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192873': 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): 102
logL (Free Index) = 5781.23733897
delta logL = 3.66448875866e-06

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.508e-03  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.099e+00  5.138e+02  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:  5.193e-01  2.817e-02  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.328e+00  3.711e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 243.421 34.198

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/192873/cmap_HighResolution_597283201_597542401_4FGL_J1613.6+3411_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-13 18:09:53.858562', job_id='192873', GAL2='0.52', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631581793.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='3.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1381' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:09:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 192873: <4FGL_J1613.6+3411_daily_bin1381> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1381> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:55:17 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:55:40 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:55:40 2021
Terminated at Mon Sep 13 18:09:54 2021
Results reported at Mon Sep 13 18:09:54 2021

Your job looked like:

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

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

