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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1071
RA = 243.421, Dec = 34.1982
tmin = 516931201, tmax = 517190401
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='191286', job_status='RUN', time_executed='2021-09-13 17:50:49.373720', time_epoch_executed='1631580649.37' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191286/ft1_4FGL_J1613.6+3411_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191286/ft2_4FGL_J1613.6+3411_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191286/ft1_4FGL_J1613.6+3411_daily_bin1071.fits outfile=/scratch/kocevski/191286/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1071.fits ra=243.421 dec=34.1982 rad=12.0 tmin=516931201.0 tmax=517190401.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.93
user 3.69
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191286/ft1_filtered_4FGL_J1613.6+3411_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/191286/ft2_4FGL_J1613.6+3411_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/191286/ltcube_516931201_517190401_4FGL_J1613.6+3411_daily_bin1071.fits outfile=/scratch/kocevski/191286/expmap_516931201_517190401_4FGL_J1613.6+3411_daily_bin1071.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/191286/ltcube_516931201_517190401_4FGL_J1613.6+3411_daily_bin1071.fits
.....................!
real 190.53
user 186.02
sys 4.09

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/191286/ft1_filtered_4FGL_J1613.6+3411_daily_bin1071.fits scfile=/scratch/kocevski/191286/ft2_4FGL_J1613.6+3411_daily_bin1071.fits outfile=/scratch/kocevski/191286/cmap_516931201_517190401_4FGL_J1613.6+3411_daily_bin1071.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191286/ft1_filtered_4FGL_J1613.6+3411_daily_bin1071.fits scfile=/scratch/kocevski/191286/ft2_4FGL_J1613.6+3411_daily_bin1071.fits outfile=/scratch/kocevski/191286/cmap_HighResolution_516931201_517190401_4FGL_J1613.6+3411_daily_bin1071.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11209E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .26876E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2076       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5109       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15213       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9510       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13482       1.0000         .10000E-03   10000.    
    13 'norm      '    9.8527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .54397       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1126       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.906       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9318       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1872       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99522       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=   7108.584     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2103 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    228.74        .92554E-05** at limit **
   2  norm          .10000E-03    4.4091        .58230E-06** at limit **
   3  Prefactor     12.729        4.2737       -.18759E-05    .48041E-02
   4  Prefactor     .10000E-03    10.765       -.34609E-06** at limit **
   5  Prefactor     8.2058        6.0899       -.95005E-06    .23555E-02
   6  norm          6.5072        9.4370        .57224E-05   -.15835E-02
   7  Prefactor     .15153        8.2676        .16449E-04    .11003E-02
   8  Prefactor     .10000E-03    7.6263       -.71393E-06** at limit **
   9  Prefactor     4.9513        1.7431        .78636E-06   -.25411E-03
  10  Prefactor     10.533        4.4706        .41695E-06    .12890E-03
  11  Prefactor     .10000E-03    4.5501       -.11538E-05** at limit **
  12  norm          .13482        .11251        .52777E-07   -.14206E-03
  13  norm          9.8350        12.602        .82199E-05    .15750E-03
  14  Prefactor     .10000E-03    7.4616       -.14634E-05** at limit **
  15  norm          .93609        482.55       -.77087E-04   -.77415E-04
  16  Prefactor     .10000E-03    3.1907        .22358E-06** at limit **
  17  Prefactor     2.1078        1.5256        .17300E-05   -.58665E-04
  18  Prefactor     34.910        2.3829        .78737E-06   -.39720E-02
  19  Prefactor     .10000E-03    1.0614       -.14557E-06** at limit **
  20  norm          2.9322        1.8339       -.50928E-06    .22253E-03
  21  Normalizat    1.1869        .23855        .21775E-05   -.41781E-04
  22  Prefactor     .99531        .17542       -.28224E-05   -.21750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100515
  norm       = 0.0001
  Prefactor  = 12.7285
  Prefactor  = 0.0001
  Prefactor  = 8.20577
  norm       = 6.5072
  Prefactor  = 0.15153
  Prefactor  = 0.0001
  Prefactor  = 4.95132
  Prefactor  = 10.5329
  Prefactor  = 0.0001
  norm       = 0.134817
  norm       = 9.83496
  Prefactor  = 0.0001
  norm       = 0.936093
  Prefactor  = 0.0001
  Prefactor  = 2.10784
  Prefactor  = 34.9097
  Prefactor  = 0.0001
  norm       = 2.93217
  Normalizat = 1.18695
  Prefactor  = 0.995305
 **********
 **   18 **HESSE 
 **********

 FCN=   7108.584     FROM HESSE     STATUS=OK           420 CALLS     2523 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10051E-03    233.40        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .66569        .36755E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.729        8.5301        .28069E-02   -1.4994    
   4  Prefactor     .10000E-03    10.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2058        20.165        .34985E-02   -1.5135    
   6  norm          6.5072        14.828        .39320E-02   -1.5198    
   7  Prefactor     .15153        1.1976        .59401E-01   -1.5630    
   8  Prefactor     .10000E-03    7.6259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9513        10.060        .45187E-02   -1.5263    
  10  Prefactor     10.533        4.4599        .30866E-02   -1.5059    
  11  Prefactor     .10000E-03    4.3641        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13482        .11641        .54695E-02   -1.5635    
  13  norm          9.8350        12.844        .31915E-02   -1.5081    
  14  Prefactor     .10000E-03    7.4510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .93609        44.551        .16510       -1.5514    
  16  Prefactor     .10000E-03    .95704        .39698E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1078        1.8736        .70955E-02   -1.5418    
  18  Prefactor     34.910        21.431        .16957E-02   -1.4526    
  19  Prefactor     .10000E-03    1.0578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9322        1.8376        .59308E-02   -1.5365    
  21  Normalizat    1.1869        .20180        .63961E-01   -.87007    
  22  Prefactor     .99531        .14764        .46207E-01   -.92886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04853e-08
Minuit parameter uncertainties:
  1  0.0220097
  2  6.70792e-06
  3  8.53095
  4  1.34052e-05
  5  20.1814
  6  14.8362
  7  0.851732
  8  3.51343e-05
  9  10.0636
  10  4.46008
  11  2.10182e-06
  12  0.116412
  13  12.8474
  14  2.69505e-05
  15  12.9252
  16  3.76564e-06
  17  1.87367
  18  21.4354
  19  3.6745e-07
  20  1.83761
  21  0.201936
  22  0.147701
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.053e+01  4.460e+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.953e-01  1.477e-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.187e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.16
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 4.64e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 1.45e-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) = 7107.92494933
delta logL = 0.659273819639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7107.89997675
delta logL = 0.684246398878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.210       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9308       1.0000          .0000       10.000    
     3 'Normalizat'    1.2455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96872       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=   7107.900     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.213        6.4479        .29914E-02    .16551E-04
   2  Index         1.9310        .41274        .18492       -.46274E-04
   3  Normalizat    1.2455        .19538        .62695E-01    .54278E-05
   4  Prefactor     .96874        .14563        .45875E-01    .10795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2129
  Index      = 1.93096
  Normalizat = 1.24545
  Prefactor  = 0.968736
 **********
 **   18 **HESSE 
 **********

 FCN=   7107.900     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.213        5.6347        .11966E-03   -1.5038    
   2  Index         1.9310        .42088        .69411E-02   -.66088    
   3  Normalizat    1.2455        .23242        .27731E-03   -.85210    
   4  Prefactor     .96874        .17274        .23324E-03   -.93779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01022e-12
Minuit parameter uncertainties:
  1  5.63497
  2  0.42168
  3  0.232615
  4  0.17284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191286': 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) = 7107.89997655
delta logL = 0.68424659801

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.121e+01  5.635e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  1.931e+00  4.217e-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:  9.687e-01  1.728e-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.245e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.42
Ra Dec: 243.421 34.198
Photon Index (Free Index): 1.93 +/- 0.42
Photon Flux (Free Index): 6.35e-08 +/- 4.75e-08
Energy Flux (Free Index): 5.24e-05 +/- 3.80e-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/191286/cmap_HighResolution_516931201_517190401_4FGL_J1613.6+3411_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='5.24e-05', photon_flux_error='4.64e-08', dlogl='6.84e-01', energy_flux='3.42e-05', photon_flux2='6.35e-08', job_status='DONE', time_completed='2021-09-13 18:01:12.617174', photon_index_error2='0.42', photon_index2='1.93', ts='17.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.80e-05', EG='1.19', time_epoch_completed='1631581272.62', return_code='0', job_id='191286', GAL2='0.97', EG2='1.25', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.75e-08', ts2='18.42', photon_index='2.44' WHERE bin_id='1071' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:01:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 191286: <4FGL_J1613.6+3411_daily_bin1071> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1071> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:26 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:50:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 17:50:40 2021
Terminated at Mon Sep 13 18:01:13 2021
Results reported at Mon Sep 13 18:01:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1071 243.421 34.1982 516931201 517190401 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 :                                   621.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            647 sec.

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

