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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1414
RA = 243.421, Dec = 34.1982
tmin = 605836801, tmax = 606096001
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='192927', job_status='RUN', time_executed='2021-09-13 17:58:31.674222', time_epoch_executed='1631581111.67' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192927/ft1_4FGL_J1613.6+3411_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192927/ft2_4FGL_J1613.6+3411_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192927/ft1_4FGL_J1613.6+3411_daily_bin1414.fits outfile=/scratch/kocevski/192927/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1414.fits ra=243.421 dec=34.1982 rad=12.0 tmin=605836801.0 tmax=606096001.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192927/ft1_filtered_4FGL_J1613.6+3411_daily_bin1414.fits" evtable="EVENTS" scfile=/scratch/kocevski/192927/ft2_4FGL_J1613.6+3411_daily_bin1414.fits sctable="SC_DATA" outfile=/scratch/kocevski/192927/ltcube_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.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/192927/ft2_4FGL_J1613.6+3411_daily_bin1414.fits
.....................!
real 14.67
user 14.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192927/ft1_filtered_4FGL_J1613.6+3411_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/192927/ft2_4FGL_J1613.6+3411_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/192927/ltcube_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.fits outfile=/scratch/kocevski/192927/expmap_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.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/192927/ltcube_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.fits
.....................!
real 191.84
user 186.57
sys 4.12

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/192927/ft1_filtered_4FGL_J1613.6+3411_daily_bin1414.fits scfile=/scratch/kocevski/192927/ft2_4FGL_J1613.6+3411_daily_bin1414.fits outfile=/scratch/kocevski/192927/cmap_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192927/ft1_filtered_4FGL_J1613.6+3411_daily_bin1414.fits scfile=/scratch/kocevski/192927/ft2_4FGL_J1613.6+3411_daily_bin1414.fits outfile=/scratch/kocevski/192927/cmap_HighResolution_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6343       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5764       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64010E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5161       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4051       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5796       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .42420       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=   6565.527     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2050 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.602        .18856E-04** at limit **
   2  norm          1.6342        .97421        .66473E-08   -.10256E-03
   3  Prefactor     .10000E-03    3.6293        .85280E-07** at limit **
   4  Prefactor     8.5737        20.183       -.19042E-05   -.16720E-04
   5  Prefactor     .10000E-03    13.457       -.41624E-05** at limit **
   6  norm          .10000E-03    8.4304       -.77744E-05** at limit **
   7  Prefactor     1.9941        2.5398       -.25193E-06   -.76982E-03
   8  Prefactor     .10000E-03    6.8598        .15541E-05** at limit **
   9  Prefactor     22.982        12.763       -.35741E-08   -.76079E-05
  10  Prefactor     .10000E-03    3.0125        .17667E-07** at limit **
  11  Prefactor     .10000E-03    .93355        .11694E-07** at limit **
  12  norm          .10000E-03    .54757E-01   -.20216E-07** at limit **
  13  norm          .10000E-03    4.2675       -.95923E-07** at limit **
  14  Prefactor     .10000E-03    9.8100        .98658E-05** at limit **
  15  norm          .10000E-03    45.048       -.10018E-04** at limit **
  16  Prefactor     .63177E-01    .79639       -.17619E-06    .75834E-04
  17  Prefactor     3.0682        1.4533        .52085E-07    .88133E-03
  18  Prefactor     .10000E-03    20.400       -.10919E-04** at limit **
  19  Prefactor     1.5160        2.1171       -.10661E-06   -.30250E-03
  20  norm          3.4051        1.5149       -.17699E-09    .15682E-03
  21  Normalizat    1.5796        .17178        .19484E-06    .25487E-03
  22  Prefactor     .42423        .12731        .15256E-06    .15213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.63417
  Prefactor  = 0.0001
  Prefactor  = 8.57366
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.99415
  Prefactor  = 0.0001
  Prefactor  = 22.9823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0631773
  Prefactor  = 3.06822
  Prefactor  = 0.0001
  Prefactor  = 1.51596
  norm       = 3.4051
  Normalizat = 1.57959
  Prefactor  = 0.424232
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.527     FROM HESSE     STATUS=OK           342 CALLS     2392 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6342        .97162        .59686E-04   -1.5452    
   3  Prefactor     .10000E-03    3.6502        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5737        20.172        .13688E-03   -1.5122    
   5  Prefactor     .10000E-03    13.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.4739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9941        2.5325        .13910E-03   -1.5426    
   8  Prefactor     .10000E-03    6.8659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.982        12.766        .83553E-04   -1.4749    
  10  Prefactor     .10000E-03    3.1326        .27421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .94040        .76406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .10243        .35090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2700        .16348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    45.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .63177E-01    20.409        .10214E-02   -1.5658    
  17  Prefactor     3.0682        2.2676        .48965E-04   -1.5358    
  18  Prefactor     .10000E-03    20.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5160        2.0877        .13345E-03   -1.5462    
  20  norm          3.4051        1.5144        .64440E-04   -1.5339    
  21  Normalizat    1.5796        .19714        .20661E-03   -.75566    
  22  Prefactor     .42423        .14541        .27993E-03   -1.1559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73651e-10
Minuit parameter uncertainties:
  1  1.67906e-06
  2  0.971628
  3  3.8163e-06
  4  20.1882
  5  3.72318e-05
  6  2.16847e-05
  7  2.53268
  8  8.746e-07
  9  12.7672
  10  4.09046e-06
  11  1.78866e-07
  12  6.72681e-07
  13  5.33553e-08
  14  3.10323e-05
  15  4.99006e-05
  16  2.26998
  17  2.26763
  18  0.000129009
  19  2.08781
  20  1.51445
  21  0.197241
  22  0.145534
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  4.090e-06  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:  4.242e-01  1.455e-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.580e+00  1.972e-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: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192927/likelihoodResults_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.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) = 6565.52851683
delta logL = -0.00152480937777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6565.52699254
delta logL = -5.24678398506e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4645       1.0000          .0000       10.000    
     3 'Normalizat'    1.5794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42439       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=   6565.494     FROM MIGRAD    STATUS=CONVERGED    204 CALLS      364 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .58380E-02    .45390E-03** at limit **
   2  Index         7.7014        2.7529        .45000        .83571E-04
   3  Normalizat    1.5646        .18606E-01    .20661E-03    .60913E-03
   4  Prefactor     .43163        .13945E-01    .27993E-03    .46026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.7014
  Normalizat = 1.56458
  Prefactor  = 0.431626
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.494     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      401 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .33572E-01    .40526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.7014        5.0462        .13127E-01    .57077    
   3  Normalizat    1.5646        .45698E-01    .41321E-04   -.75980    
   4  Prefactor     .43163        .34022E-01    .11197E-04   -1.1522    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.65155e-08
Minuit parameter uncertainties:
  1  1.92069e-07
  2  17.9292
  3  0.0456992
  4  0.0340233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192927': 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) = 6565.49430911
delta logL = 0.0326829119467

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.921e-07  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  7.701e+00  1.793e+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:  4.316e-01  3.402e-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.565e+00  4.570e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/192927/cmap_HighResolution_605836801_606096001_4FGL_J1613.6+3411_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-13 18:10:17.124812', job_id='192927', GAL2='0.43', fit_tolerance='1e-08', EG2='1.56', EG='1.58', time_epoch_completed='1631581817.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='3.27e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1414' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 192927: <4FGL_J1613.6+3411_daily_bin1414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1414 243.421 34.1982 605836801 606096001 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 :                                   684.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            896 sec.

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

