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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin657
RA = 243.421, Dec = 34.1982
tmin = 409622401, tmax = 409881601
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='187047', job_status='RUN', time_executed='2021-09-13 17:36:49.843736', time_epoch_executed='1631579809.84' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187047

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187047/ft1_4FGL_J1613.6+3411_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187047/ft2_4FGL_J1613.6+3411_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187047/ft1_4FGL_J1613.6+3411_daily_bin657.fits outfile=/scratch/kocevski/187047/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin657.fits ra=243.421 dec=34.1982 rad=12.0 tmin=409622401.0 tmax=409881601.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.74
user 5.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187047/ft1_filtered_4FGL_J1613.6+3411_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/187047/ft2_4FGL_J1613.6+3411_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/187047/ltcube_409622401_409881601_4FGL_J1613.6+3411_daily_bin657.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/187047/ft2_4FGL_J1613.6+3411_daily_bin657.fits
.....................!
real 14.68
user 14.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187047/ft1_filtered_4FGL_J1613.6+3411_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/187047/ft2_4FGL_J1613.6+3411_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/187047/ltcube_409622401_409881601_4FGL_J1613.6+3411_daily_bin657.fits outfile=/scratch/kocevski/187047/expmap_409622401_409881601_4FGL_J1613.6+3411_daily_bin657.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/187047/ltcube_409622401_409881601_4FGL_J1613.6+3411_daily_bin657.fits
.....................!
real 191.93
user 186.49
sys 4.93

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187047/ft1_filtered_4FGL_J1613.6+3411_daily_bin657.fits scfile=/scratch/kocevski/187047/ft2_4FGL_J1613.6+3411_daily_bin657.fits outfile=/scratch/kocevski/187047/cmap_HighResolution_409622401_409881601_4FGL_J1613.6+3411_daily_bin657.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    7.5894       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0695       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .66827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95507       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4361       1.0000         .10000E-03   10000.    
    13 'norm      '    22.211       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2013       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13283E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .90043       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5470       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5024       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87571       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=   6457.921     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2471 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.196        .62809E-06** at limit **
   2  norm          7.5899        2.1390        .24867E-07   -.15226E-03
   3  Prefactor     .10000E-03    7.3618        .76460E-06** at limit **
   4  Prefactor     .10000E-03    12.513        .31592E-05** at limit **
   5  Prefactor     .10000E-03    9.3513       -.10421E-05** at limit **
   6  norm          .10000E-03    6.7828       -.30177E-06** at limit **
   7  Prefactor     7.0696        3.1810       -.14349E-07   -.42427E-04
   8  Prefactor     .10000E-03    13.721       -.24961E-05** at limit **
   9  Prefactor     .68913        3.4122        .10661E-05   -.13031E-02
  10  Prefactor     11.269        5.1754        .12797E-06   -.55291E-05
  11  Prefactor     .95476        8.3532        .42487E-05    .42420E-04
  12  norm          1.4361        .37125        .10230E-06    .74232E-03
  13  norm          22.193        35.877       -.13989E-04   -.20572E-03
  14  Prefactor     8.1936        36.713       -.88026E-05   -.14202E-04
  15  norm          .10000E-03    50.270        .80436E-07** at limit **
  16  Prefactor     .10000E-03    1.5475       -.38572E-06** at limit **
  17  Prefactor     .89590        2.5411        .40519E-07    .27183E-03
  18  Prefactor     20.520        16.184        .19343E-06   -.80315E-05
  19  Prefactor     9.5450        7.3716        .12088E-05   -.35907E-03
  20  norm          1.5032        2.2443        .83254E-07    .39228E-04
  21  Normalizat    1.0489        .22308       -.89096E-06    .19256E-04
  22  Prefactor     .87561        .14944       -.46830E-06   -.83923E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.58989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.06963
  Prefactor  = 0.0001
  Prefactor  = 0.689127
  Prefactor  = 11.2693
  Prefactor  = 0.95476
  norm       = 1.43614
  norm       = 22.1934
  Prefactor  = 8.19363
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.895904
  Prefactor  = 20.5197
  Prefactor  = 9.54499
  norm       = 1.50318
  Normalizat = 1.04891
  Prefactor  = 0.875608
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.921     FROM HESSE     STATUS=OK           358 CALLS     2829 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5899        2.1440        .59804E-04   -1.5157    
   3  Prefactor     .10000E-03    7.3913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0696        3.1834        .91843E-04   -1.5176    
   8  Prefactor     .10000E-03    13.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68913        5.0249        .11213       -1.5542    
  10  Prefactor     11.269        5.1928        .11731E-03   -1.5036    
  11  Prefactor     .95476        8.7570        .41972E-02   -1.5513    
  12  norm          1.4361        .36945        .18982E-04   -1.5468    
  13  norm          22.193        36.128        .84991E-04   -1.4765    
  14  Prefactor     8.1936        38.036        .13999E-03   -1.5135    
  15  norm          .10000E-03    50.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5261        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .89590        1.9952        .14372E-03   -1.5519    
  18  Prefactor     20.520        16.236        .88424E-04   -1.4802    
  19  Prefactor     9.5450        7.2306        .64849E-03   -1.5090    
  20  norm          1.5032        2.1891        .13655E-03   -1.5463    
  21  Normalizat    1.0489        .26757        .30555E-03   -.91410    
  22  Prefactor     .87561        .17989        .23164E-03   -.96999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90454e-09
Minuit parameter uncertainties:
  1  2.42231e-05
  2  2.14402
  3  1.70145e-05
  4  7.67585e-05
  5  1.91878e-05
  6  3.06751e-06
  7  3.18349
  8  5.89746e-05
  9  3.72187
  10  5.19299
  11  5.78382
  12  0.36945
  13  36.1635
  14  35.344
  15  5.11638e-05
  16  3.42095e-05
  17  1.99539
  18  16.2391
  19  7.23131
  20  2.18924
  21  0.267918
  22  0.180014
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.127e+01  5.193e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.756e-01  1.800e-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.049e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.63
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 5.40e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.69e-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) = 6457.91376877
delta logL = 0.0072058164651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6457.91069177
delta logL = 0.0102828110585

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.704       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3690       1.0000          .0000       10.000    
     3 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87135       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=   6457.911     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.704        6.1982        .11710E-03   -.82690E-03
   2  Index         2.3692        .47981        .60967E-02   -.18245E-03
   3  Normalizat    1.0574        .25908        .30449E-03    .96480E-04
   4  Prefactor     .87136        .17789        .23212E-03    .17734E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7045
  Index      = 2.36915
  Normalizat = 1.05739
  Prefactor  = 0.871365
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.911     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.704        6.0840        .46838E-05   -1.5024    
   2  Index         2.3692        .47032        .24387E-03   -.55409    
   3  Normalizat    1.0574        .25911        .12179E-04   -.91132    
   4  Prefactor     .87136        .17796        .92850E-05   -.97149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29967e-10
Minuit parameter uncertainties:
  1  6.08431
  2  0.47128
  3  0.259424
  4  0.178079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187047': 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) = 6457.91069163
delta logL = 0.0102829546095

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.170e+01  6.084e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.369e+00  4.713e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.714e-01  1.781e-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.057e+00  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.57
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.37 +/- 0.47
Photon Flux (Free Index): 1.11e-07 +/- 6.68e-08
Energy Flux (Free Index): 3.80e-05 +/- 2.03e-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/187047/cmap_HighResolution_409622401_409881601_4FGL_J1613.6+3411_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='3.80e-05', photon_flux_error='5.40e-08', dlogl='1.03e-02', energy_flux='3.66e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-13 17:47:30.738928', photon_index_error2='0.47', photon_index2='2.37', ts='9.63', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='1.05', time_epoch_completed='1631580450.74', return_code='0', job_id='187047', GAL2='0.87', EG2='1.06', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.68e-08', ts2='9.57', photon_index='2.44' WHERE bin_id='657' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 187047: <4FGL_J1613.6+3411_daily_bin657> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin657> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 13 17:35:14 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:36:32 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:36:32 2021
Terminated at Mon Sep 13 17:47:31 2021
Results reported at Mon Sep 13 17:47:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin657 243.421 34.1982 409622401 409881601 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 :                                 1094 MB
    Average Memory :                             334.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            737 sec.

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

