/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7717
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1613.6+3411_daily_bin764
RA = 243.421, Dec = 34.1982
tmin = 437356801, tmax = 437616001
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='187203', job_status='RUN', time_executed='2021-09-13 17:37:21.667685', time_epoch_executed='1631579841.67' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187203

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187203/ft1_4FGL_J1613.6+3411_daily_bin764.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187203/ft2_4FGL_J1613.6+3411_daily_bin764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187203/ft1_4FGL_J1613.6+3411_daily_bin764.fits outfile=/scratch/kocevski/187203/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin764.fits ra=243.421 dec=34.1982 rad=12.0 tmin=437356801.0 tmax=437616001.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.60
user 5.34
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187203/ft2_4FGL_J1613.6+3411_daily_bin764.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/187203/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin764.fits evtable="EVENTS" outfile="/scratch/kocevski/187203/ft1_filtered_4FGL_J1613.6+3411_daily_bin764.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/187203/ft1_filtered_4FGL_J1613.6+3411_daily_bin764.fits" evtable="EVENTS" scfile=/scratch/kocevski/187203/ft2_4FGL_J1613.6+3411_daily_bin764.fits sctable="SC_DATA" outfile=/scratch/kocevski/187203/ltcube_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.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/187203/ft2_4FGL_J1613.6+3411_daily_bin764.fits
.....................!
real 14.56
user 14.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187203/ft1_filtered_4FGL_J1613.6+3411_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/187203/ft2_4FGL_J1613.6+3411_daily_bin764.fits sctable="SC_DATA" expcube=/scratch/kocevski/187203/ltcube_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.fits outfile=/scratch/kocevski/187203/expmap_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.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/187203/ltcube_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.fits
.....................!
real 191.33
user 186.27
sys 4.64

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/187203/ft1_filtered_4FGL_J1613.6+3411_daily_bin764.fits scfile=/scratch/kocevski/187203/ft2_4FGL_J1613.6+3411_daily_bin764.fits outfile=/scratch/kocevski/187203/cmap_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187203/ft1_filtered_4FGL_J1613.6+3411_daily_bin764.fits scfile=/scratch/kocevski/187203/ft2_4FGL_J1613.6+3411_daily_bin764.fits outfile=/scratch/kocevski/187203/cmap_HighResolution_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.381       1.0000         .10000E-03   10000.    
     2 'norm      '    7.2706       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3740       1.0000         .10000E-03   10000.    
     6 'norm      '    39.624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4265       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1009       1.0000         .10000E-03   10000.    
    12 'norm      '    .46706       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.018       1.0000         .10000E-03   10000.    
    15 'norm      '    48.915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2305       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83287       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9431       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .69183       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99721       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=   6109.096     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2447 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 20.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.274        119.97       -.12651E-06   -.42728E-04
   2  norm          7.2707        2.3503        .23362E-07   -.38474E-04
   3  Prefactor     17.557        13.151        .10456E-07   -.27667E-04
   4  Prefactor     .10000E-03    12.515       -.22388E-07** at limit **
   5  Prefactor     2.0677        434.28       -.26236E-04   -.10760E-04
   6  norm          39.802        44.259        .45070E-05    .22978E-04
   7  Prefactor     4.4261        3.2688        .66283E-07   -.13407E-03
   8  Prefactor     .10000E-03    13.556        .83791E-08** at limit **
   9  Prefactor     8.6526        9.1935        .66345E-07   -.17328E-04
  10  Prefactor     2.5881        5.1068        .44121E-06   -.38491E-03
  11  Prefactor     2.1009        3.5772        .13796E-06   -.18677E-03
  12  norm          .46714        .23143       -.14239E-07    .72433E-03
  13  norm          .10000E-03    13.650       -.38971E-07** at limit **
  14  Prefactor     27.014        27.454        .31308E-06    .52325E-04
  15  norm          48.927        67.450       -.87710E-07   -.25111E-05
  16  Prefactor     .10000E-03    1.0025       -.71944E-07** at limit **
  17  Prefactor     1.2316        1.4892        .10152E-06   -.33978E-03
  18  Prefactor     .82330        11.063        .26615E-06   -.48269E-04
  19  Prefactor     .10000E-03    1.8324       -.15215E-07** at limit **
  20  norm          2.9431        1.8321        .73587E-07   -.66146E-03
  21  Normalizat    .69199        .21792       -.81869E-06    .12464E-03
  22  Prefactor     .99716        .14277        .16636E-06    .44731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.2739
  norm       = 7.27073
  Prefactor  = 17.5569
  Prefactor  = 0.0001
  Prefactor  = 2.06775
  norm       = 39.8023
  Prefactor  = 4.4261
  Prefactor  = 0.0001
  Prefactor  = 8.6526
  Prefactor  = 2.58814
  Prefactor  = 2.10093
  norm       = 0.467142
  norm       = 0.0001
  Prefactor  = 27.0141
  norm       = 48.9265
  Prefactor  = 0.0001
  Prefactor  = 1.2316
  Prefactor  = 0.823303
  Prefactor  = 0.0001
  norm       = 2.94309
  Normalizat = 0.691986
  Prefactor  = 0.997163
 **********
 **   18 **HESSE 
 **********

 FCN=   6109.096     FROM HESSE     STATUS=OK           354 CALLS     2801 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.274        119.90        .26032E-03   -1.4167    
   2  norm          7.2707        2.3631        .59079E-04   -1.5169    
   3  Prefactor     17.557        13.239        .95584E-04   -1.4870    
   4  Prefactor     .10000E-03    12.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0677        440.48        .26590E-03   -1.5420    
   6  norm          39.802        44.571        .63676E-04   -1.4445    
   7  Prefactor     4.4261        3.2579        .11404E-03   -1.5287    
   8  Prefactor     .10000E-03    13.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.6526        9.1898        .13626E-03   -1.5120    
  10  Prefactor     2.5881        5.0666        .21947E-03   -1.5386    
  11  Prefactor     2.1009        3.5393        .18361E-03   -1.5418    
  12  norm          .46714        .22714        .21461E-04   -1.5571    
  13  norm          .10000E-03    13.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.014        27.642        .77072E-04   -1.4668    
  15  norm          48.927        66.586        .57336E-04   -1.4308    
  16  Prefactor     .10000E-03    5.9079        .12486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2316        1.2933        .83984E-04   -1.5486    
  18  Prefactor     .82330        47.691        .47274E-02   -1.5526    
  19  Prefactor     .10000E-03    1.8567        .10325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9431        1.8235        .40073E-03   -1.5365    
  21  Normalizat    .69199        .25565        .32782E-03   -1.0421    
  22  Prefactor     .99716        .17164        .19839E-03   -.92824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45702e-08
Minuit parameter uncertainties:
  1  120.394
  2  2.36311
  3  13.2414
  4  9.10432e-06
  5  60.8163
  6  44.6082
  7  3.25799
  8  8.48763e-06
  9  9.19126
  10  5.06743
  11  3.53966
  12  0.227139
  13  2.67714e-06
  14  27.6553
  15  66.6878
  16  5.64325e-06
  17  1.29329
  18  12.5419
  19  1.83686e-06
  20  1.8235
  21  0.256092
  22  0.17173
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.588e+00  5.067e+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:  9.972e-01  1.717e-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:  6.920e-01  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187203/likelihoodResults_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.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) = 6107.49656844
delta logL = 1.59960970038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6107.44677782
delta logL = 1.64940031953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87170       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1471       1.0000          .0000       10.000    
     3 'Normalizat'    .52823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0748       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=   6107.447     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86844        6.8480        .88368E-02    .79059E-03
   2  Index         4.1497        2.6266        .10862        .14826E-03
   3  Normalizat    .52858        .56984E-01    .83992E-01    .38797E-04
   4  Prefactor     1.0745        .40906E-01    .38634E-01   -.17422E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.868435
  Index      = 4.14968
  Normalizat = 0.528578
  Prefactor  = 1.07449
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.447     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86844        29.724        .39739E-04   -1.5522    
   2  Index         4.1497        7.0695        .42676E-02   -.17090    
   3  Normalizat    .52858        .26023        .37204E-03   -1.1111    
   4  Prefactor     1.0745        .17523        .19185E-03   -.90286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33978e-07
Minuit parameter uncertainties:
  1  10.1663
  2  6.57561
  3  0.26083
  4  0.175322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187203': 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) = 6107.44677177
delta logL = 1.64940637553

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  8.684e-01  1.017e+01  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  4.150e+00  6.576e+00  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:  1.074e+00  1.753e-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:  5.286e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.26
Ra Dec: 243.421 34.198
Photon Index (Free Index): 4.15 +/- 6.58
Photon Flux (Free Index): 1.39e-07 +/- 9.29e-08
Energy Flux (Free Index): 2.04e-05 +/- 2.82e-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/187203/cmap_HighResolution_437356801_437616001_4FGL_J1613.6+3411_daily_bin764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='2.04e-05', dlogl='1.65e+00', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-13 17:48:42.214186', photon_index_error2='6.58', photon_index2='4.15', ts='0.32', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='2.82e-05', EG='0.69', time_epoch_completed='1631580522.21', return_code='0', job_id='187203', GAL2='1.07', EG2='0.53', return_code2='0', photon_flux_error2='9.29e-08', ts2='4.26', photon_index='2.44' WHERE bin_id='764' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:48:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 187203: <4FGL_J1613.6+3411_daily_bin764> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin764> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 17:35:24 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:37:11 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:37:11 2021
Terminated at Mon Sep 13 17:48:42 2021
Results reported at Mon Sep 13 17:48:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin764 243.421 34.1982 437356801 437616001 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 :                                   674.00 sec.
    Max Memory :                                 1023 MB
    Average Memory :                             293.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            798 sec.

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

