/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 129 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1613.6+3411_daily_bin53
RA = 243.421, Dec = 34.1982
tmin = 253065601, tmax = 253324801
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='179586', job_status='RUN', time_executed='2021-09-13 17:14:08.488348', time_epoch_executed='1631578448.49' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179586/ft1_4FGL_J1613.6+3411_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179586/ft2_4FGL_J1613.6+3411_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179586/ft1_4FGL_J1613.6+3411_daily_bin53.fits outfile=/scratch/kocevski/179586/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin53.fits ra=243.421 dec=34.1982 rad=12.0 tmin=253065601.0 tmax=253324801.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 1.41
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179586/ft1_filtered_4FGL_J1613.6+3411_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/179586/ft2_4FGL_J1613.6+3411_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/179586/ltcube_253065601_253324801_4FGL_J1613.6+3411_daily_bin53.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/179586/ft2_4FGL_J1613.6+3411_daily_bin53.fits
.....................!
real 14.72
user 14.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179586/ft1_filtered_4FGL_J1613.6+3411_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/179586/ft2_4FGL_J1613.6+3411_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/179586/ltcube_253065601_253324801_4FGL_J1613.6+3411_daily_bin53.fits outfile=/scratch/kocevski/179586/expmap_253065601_253324801_4FGL_J1613.6+3411_daily_bin53.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/179586/ltcube_253065601_253324801_4FGL_J1613.6+3411_daily_bin53.fits
.....................!
real 190.90
user 185.63
sys 4.82

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/179586/ft1_filtered_4FGL_J1613.6+3411_daily_bin53.fits scfile=/scratch/kocevski/179586/ft2_4FGL_J1613.6+3411_daily_bin53.fits outfile=/scratch/kocevski/179586/cmap_253065601_253324801_4FGL_J1613.6+3411_daily_bin53.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179586/ft1_filtered_4FGL_J1613.6+3411_daily_bin53.fits scfile=/scratch/kocevski/179586/ft2_4FGL_J1613.6+3411_daily_bin53.fits outfile=/scratch/kocevski/179586/cmap_HighResolution_253065601_253324801_4FGL_J1613.6+3411_daily_bin53.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.9649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.319       1.0000         .10000E-03   10000.    
     6 'norm      '    .19774E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5317       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .30982       1.0000         .10000E-03   10000.    
    13 'norm      '    14.045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5269       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1803       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97104       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=   6215.810     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2373 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.982       -.48006E-06** at limit **
   2  norm          9.9655        2.1578       -.76430E-09   -.20265E-04
   3  Prefactor     .10000E-03    3.5250        .22875E-08** at limit **
   4  Prefactor     .10000E-03    28.740        .71874E-06** at limit **
   5  Prefactor     27.333        24.122        .18710E-05    .17987E-03
   6  norm          .10000E-03    18.415       -.87693E-07** at limit **
   7  Prefactor     2.5319        2.5702        .50069E-07   -.15045E-03
   8  Prefactor     .10000E-03    38.137       -.55296E-05** at limit **
   9  Prefactor     3.4121        9.1587       -.87474E-07   -.86262E-04
  10  Prefactor     5.4364        3.5717        .29049E-07   -.50813E-04
  11  Prefactor     .10000E-03    1.3797        .82098E-08** at limit **
  12  norm          .30985        .14179        .31564E-08   -.37981E-03
  13  norm          14.045        14.276       -.80269E-07    .87933E-04
  14  Prefactor     .10000E-03    5.7844        .64048E-08** at limit **
  15  norm          .10000E-03    42.073        .54720E-05** at limit **
  16  Prefactor     .68177        1.5833       -.22491E-06   -.65130E-03
  17  Prefactor     .24489        1.5456        .40778E-06   -.75280E-03
  18  Prefactor     6.1999        11.142        .12912E-05   -.53443E-03
  19  Prefactor     4.5279        4.0899        .49583E-08   -.18887E-03
  20  norm          5.1802        2.2659       -.71033E-08   -.41007E-04
  21  Normalizat    1.0745        .20128       -.49921E-06    .23739E-04
  22  Prefactor     .97138        .15175        .20094E-07   -.17930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.96553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.333
  norm       = 0.0001
  Prefactor  = 2.53189
  Prefactor  = 0.000100003
  Prefactor  = 3.41208
  Prefactor  = 5.43644
  Prefactor  = 0.0001
  norm       = 0.309855
  norm       = 14.0455
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.681771
  Prefactor  = 0.244891
  Prefactor  = 6.19988
  Prefactor  = 4.52792
  norm       = 5.18015
  Normalizat = 1.07455
  Prefactor  = 0.971382
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.810     FROM HESSE     STATUS=OK           346 CALLS     2719 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9655        2.1604        .51881E-04   -1.5076    
   3  Prefactor     .10000E-03    3.5305        .14450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.333        24.298        .76648E-04   -1.4662    
   6  norm          .10000E-03    18.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5319        2.5669        .12262E-03   -1.5390    
   8  Prefactor     .10000E-03    39.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4121        9.2095        .21894E-03   -1.5339    
  10  Prefactor     5.4364        3.5760        .11603E-03   -1.5242    
  11  Prefactor     .10000E-03    1.3881        .90386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .30985        .13880        .18571E-04   -1.5597    
  13  norm          14.045        14.314        .53438E-03   -1.4958    
  14  Prefactor     .10000E-03    5.7921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    43.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68177        1.2805        .92559E-03   -1.5543    
  17  Prefactor     .24489        1.3199        .12828E-03   -1.5609    
  18  Prefactor     6.1999        14.576        .80574E-03   -1.5210    
  19  Prefactor     4.5279        4.0668        .14292E-03   -1.5282    
  20  norm          5.1802        2.2602        .75347E-04   -1.5253    
  21  Normalizat    1.0745        .23598        .28155E-03   -.90573    
  22  Prefactor     .97138        .17964        .22824E-03   -.93690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4322e-09
Minuit parameter uncertainties:
  1  0.000117034
  2  2.16045
  3  1.3031e-07
  4  7.89683e-05
  5  24.3064
  6  0.000115677
  7  2.56704
  8  0.0006747
  9  9.2133
  10  3.57611
  11  7.50158e-07
  12  0.1388
  13  14.317
  14  1.39013e-06
  15  0.000732153
  16  1.28058
  17  1.13687
  18  14.5847
  19  4.06702
  20  2.2602
  21  0.236212
  22  0.179755
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.436e+00  3.576e+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.714e-01  1.798e-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.075e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.16e-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) = 6215.01268143
delta logL = 0.796961041923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6214.93120022
delta logL = 0.87844224836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1899       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8165       1.0000          .0000       10.000    
     3 'Normalizat'    1.1039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95544       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=   6214.931     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1904        4.2897        .16513E-05   -.17714E-02
   2  Index         1.8165        .31914       -.51073E-05   -.57388E-03
   3  Normalizat    1.1038        .19282        .70660E-07    .71585E-04
   4  Prefactor     .95545        .14963       -.23151E-06    .66040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.19038
  Index      = 1.81653
  Normalizat = 1.10384
  Prefactor  = 0.955449
 **********
 **   18 **HESSE 
 **********

 FCN=   6214.931     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1904        4.6822        .13191E-03   -1.5172    
   2  Index         1.8165        .41926        .72754E-02   -.69020    
   3  Normalizat    1.1038        .22578        .27815E-03   -.89629    
   4  Prefactor     .95545        .17528        .22974E-03   -.94230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60368e-09
Minuit parameter uncertainties:
  1  4.68247
  2  0.420093
  3  0.225976
  4  0.175383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179586': 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) = 6214.93120021
delta logL = 0.878442259872

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  7.190e+00  4.682e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  1.817e+00  4.201e-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.554e-01  1.754e-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.104e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 243.421 34.198
Photon Index (Free Index): 1.82 +/- 0.42
Photon Flux (Free Index): 3.66e-08 +/- 2.90e-08
Energy Flux (Free Index): 4.17e-05 +/- 4.23e-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/179586/cmap_HighResolution_253065601_253324801_4FGL_J1613.6+3411_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='4.17e-05', photon_flux_error='3.72e-08', dlogl='8.78e-01', energy_flux='1.77e-05', photon_flux2='3.66e-08', job_status='DONE', time_completed='2021-09-13 17:24:08.027146', photon_index_error2='0.42', photon_index2='1.82', ts='4.99', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='4.23e-05', EG='1.07', time_epoch_completed='1631579048.03', return_code='0', job_id='179586', GAL2='0.96', EG2='1.10', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.90e-08', ts2='6.73', photon_index='2.44' WHERE bin_id='53' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:24:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 179586: <4FGL_J1613.6+3411_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin53 243.421 34.1982 253065601 253324801 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 :                                   600.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            827 sec.

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

