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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1094
RA = 243.421, Dec = 34.1982
tmin = 522892801, tmax = 523152001
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='191322', job_status='RUN', time_executed='2021-09-13 17:54:18.703409', time_epoch_executed='1631580858.7' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191322/ft1_4FGL_J1613.6+3411_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191322/ft2_4FGL_J1613.6+3411_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191322/ft1_4FGL_J1613.6+3411_daily_bin1094.fits outfile=/scratch/kocevski/191322/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1094.fits ra=243.421 dec=34.1982 rad=12.0 tmin=522892801.0 tmax=523152001.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.80
user 3.53
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191322/ft2_4FGL_J1613.6+3411_daily_bin1094.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/191322/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1094.fits evtable="EVENTS" outfile="/scratch/kocevski/191322/ft1_filtered_4FGL_J1613.6+3411_daily_bin1094.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.51
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191322/ft1_filtered_4FGL_J1613.6+3411_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/191322/ft2_4FGL_J1613.6+3411_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/191322/ltcube_522892801_523152001_4FGL_J1613.6+3411_daily_bin1094.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/191322/ft2_4FGL_J1613.6+3411_daily_bin1094.fits
.....................!
real 13.75
user 13.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191322/ft1_filtered_4FGL_J1613.6+3411_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/191322/ft2_4FGL_J1613.6+3411_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/191322/ltcube_522892801_523152001_4FGL_J1613.6+3411_daily_bin1094.fits outfile=/scratch/kocevski/191322/expmap_522892801_523152001_4FGL_J1613.6+3411_daily_bin1094.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/191322/ltcube_522892801_523152001_4FGL_J1613.6+3411_daily_bin1094.fits
.....................!
real 191.09
user 185.98
sys 4.32

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/191322/ft1_filtered_4FGL_J1613.6+3411_daily_bin1094.fits scfile=/scratch/kocevski/191322/ft2_4FGL_J1613.6+3411_daily_bin1094.fits outfile=/scratch/kocevski/191322/cmap_522892801_523152001_4FGL_J1613.6+3411_daily_bin1094.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191322/ft1_filtered_4FGL_J1613.6+3411_daily_bin1094.fits scfile=/scratch/kocevski/191322/ft2_4FGL_J1613.6+3411_daily_bin1094.fits outfile=/scratch/kocevski/191322/cmap_HighResolution_522892801_523152001_4FGL_J1613.6+3411_daily_bin1094.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.660       1.0000         .10000E-03   10000.    
     2 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39574E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.375       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13895E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3422       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3898       1.0000         .10000E-03   10000.    
    12 'norm      '    .28388       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.873       1.0000         .10000E-03   10000.    
    15 'norm      '    14.744       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7437       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6196       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97341       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7623.558     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     1998 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.633        2.4737       -.38931E-06    .19700E-01
   2  norm          .10000E-03    .81654        .73169E-07** at limit **
   3  Prefactor     .10019E-03    215.83       -.43452E-04** at limit **
   4  Prefactor     24.352        2.0222       -.35906E-06   -.12741E-01
   5  Prefactor     .10000E-03    14.498       -.39544E-05** at limit **
   6  norm          18.366        1.9814       -.23995E-06   -.13455E-01
   7  Prefactor     .10000E-03    .70626       -.60463E-06** at limit **
   8  Prefactor     .10000E-03    5.6598        .70954E-06** at limit **
   9  Prefactor     1.9126        1.0820       -.55399E-07    .39750E-03
  10  Prefactor     6.3403        3.8062       -.29034E-06    .19002E-03
  11  Prefactor     1.3885        3.3682        .10896E-05    .11153E-03
  12  norm          .28389        .12551        .10310E-07    .51782E-03
  13  norm          .10004E-03    8.8631       -.15777E-05** at limit **
  14  Prefactor     14.864        1.2433       -.18632E-06   -.39369E-02
  15  norm          14.746        1.0130        .58637E-07    .10333E-03
  16  Prefactor     .10000E-03    .44599       -.83607E-07** at limit **
  17  Prefactor     2.2645        1.1351        .53129E-07    .97373E-04
  18  Prefactor     .10003E-03    8.4796        .12286E-05** at limit **
  19  Prefactor     1.7438        1.8910       -.15919E-05   -.17692E-03
  20  norm          4.6195        1.7635        .63536E-06    .23303E-03
  21  Normalizat    .97403        .22133        .96073E-05    .86518E-04
  22  Prefactor     1.1675        .17080       -.65854E-05   -.68227E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.6333
  norm       = 0.0001
  Prefactor  = 0.000100194
  Prefactor  = 24.3521
  Prefactor  = 0.000100004
  norm       = 18.366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91257
  Prefactor  = 6.34029
  Prefactor  = 1.38848
  norm       = 0.283893
  norm       = 0.000100039
  Prefactor  = 14.8641
  norm       = 14.7463
  Prefactor  = 0.0001
  Prefactor  = 2.26451
  Prefactor  = 0.000100028
  Prefactor  = 1.74376
  norm       = 4.61954
  Normalizat = 0.974026
  Prefactor  = 1.16755
 **********
 **   18 **HESSE 
 **********

 FCN=   7623.558     FROM HESSE     STATUS=OK           398 CALLS     2396 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.633        100.54        .11249E-02   -1.3921    
   2  norm          .10000E-03    .50283        .33647E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10019E-03    4.3812        .92191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.352        29.007        .20284E-02   -1.4721    
   5  Prefactor     .10000E-03    14.552        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.366        15.035        .23353E-02   -1.4851    
   7  Prefactor     .10000E-03    .70245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9126        12.281        .75210E-02   -1.5431    
  10  Prefactor     6.3403        3.8077        .39846E-02   -1.5204    
  11  Prefactor     1.3885        3.4210        .92167E-02   -1.5472    
  12  norm          .28389        .13102        .43638E-02   -1.5601    
  13  norm          .10004E-03    8.8944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.864        15.313        .25964E-02   -1.4937    
  15  norm          14.746        36.142        .26077E-02   -1.4940    
  16  Prefactor     .10000E-03    .43951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2645        1.1749        .68234E-02   -1.5407    
  18  Prefactor     .10003E-03    8.4981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7438        1.9181        .79412E-02   -1.5444    
  20  norm          4.6195        1.7641        .46816E-02   -1.5278    
  21  Normalizat    .97403        .19572        .67093E-01   -.93906    
  22  Prefactor     1.1675        .14793        .35436E-01   -.87336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89643e-06
Minuit parameter uncertainties:
  1  100.754
  2  2.47964e-07
  3  0.00184304
  4  29.024
  5  0.000486983
  6  15.0383
  7  2.81022e-06
  8  1.36208e-06
  9  9.69565
  10  3.80783
  11  3.42144
  12  0.131021
  13  0.00117598
  14  15.3173
  15  36.1955
  16  2.19687e-07
  17  1.17491
  18  0.000969838
  19  1.91821
  20  1.76412
  21  0.195866
  22  0.147982
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.340e+00  3.808e+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:  1.168e+00  1.480e-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.740e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.66
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.24e-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) = 7623.46607044
delta logL = 0.091604904921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7623.45726961
delta logL = 0.100405733989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7778       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1631       1.0000          .0000       10.000    
     3 'Normalizat'    .99571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1576       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=   7623.457     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7778        126.42        .38530E-02    .52883E-03
   2  Index         2.1632        5.6700        .17835        .78400E-04
   3  Normalizat    .99576        .16913        .66452E-01    .71704E-04
   4  Prefactor     1.1576        .85207E-01    .35720E-01   -.38006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.77784
  Index      = 2.16323
  Normalizat = 0.995758
  Prefactor  = 1.15757
 **********
 **   18 **HESSE 
 **********

 FCN=   7623.457     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7778        4.4155        .14191E-03   -1.5187    
   2  Index         2.1632        .61327        .96176E-02   -.60329    
   3  Normalizat    .99576        .21817        .29393E-03   -.93173    
   4  Prefactor     1.1576        .17052        .21908E-03   -.87647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14987e-10
Minuit parameter uncertainties:
  1  4.4157
  2  0.615562
  3  0.218368
  4  0.170602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191322': 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) = 7623.45726957
delta logL = 0.100405774255

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.778e+00  4.416e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.163e+00  6.156e-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:  1.158e+00  1.706e-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.958e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.16 +/- 0.62
Photon Flux (Free Index): 4.96e-08 +/- 4.92e-08
Energy Flux (Free Index): 2.39e-05 +/- 1.90e-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/191322/cmap_HighResolution_522892801_523152001_4FGL_J1613.6+3411_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='2.39e-05', photon_flux_error='3.96e-08', dlogl='1.00e-01', energy_flux='2.06e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-09-13 18:05:02.117303', photon_index_error2='0.62', photon_index2='2.16', ts='5.66', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.97', time_epoch_completed='1631581502.12', return_code='0', job_id='191322', GAL2='1.16', EG2='1.00', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.92e-08', ts2='5.82', photon_index='2.44' WHERE bin_id='1094' 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@bullet0262>
Subject: Job 191322: <4FGL_J1613.6+3411_daily_bin1094> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1094> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:29 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:50:47 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:47 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_bin1094 243.421 34.1982 522892801 523152001 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 :                                   637.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            873 sec.

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

