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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin14
RA = 243.421, Dec = 34.1982
tmin = 242956801, tmax = 243216001
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='178109', job_status='RUN', time_executed='2021-09-13 17:06:19.182134', time_epoch_executed='1631577979.18' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178109/ft1_4FGL_J1613.6+3411_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178109/ft2_4FGL_J1613.6+3411_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178109/ft1_4FGL_J1613.6+3411_daily_bin14.fits outfile=/scratch/kocevski/178109/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin14.fits ra=243.421 dec=34.1982 rad=12.0 tmin=242956801.0 tmax=243216001.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.46
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/178109/ft2_4FGL_J1613.6+3411_daily_bin14.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/178109/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin14.fits evtable="EVENTS" outfile="/scratch/kocevski/178109/ft1_filtered_4FGL_J1613.6+3411_daily_bin14.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/178109/ft1_filtered_4FGL_J1613.6+3411_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/178109/ft2_4FGL_J1613.6+3411_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/178109/ltcube_242956801_243216001_4FGL_J1613.6+3411_daily_bin14.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/178109/ft2_4FGL_J1613.6+3411_daily_bin14.fits
.....................!
real 15.60
user 15.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178109/ft1_filtered_4FGL_J1613.6+3411_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/178109/ft2_4FGL_J1613.6+3411_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/178109/ltcube_242956801_243216001_4FGL_J1613.6+3411_daily_bin14.fits outfile=/scratch/kocevski/178109/expmap_242956801_243216001_4FGL_J1613.6+3411_daily_bin14.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/178109/ltcube_242956801_243216001_4FGL_J1613.6+3411_daily_bin14.fits
.....................!
real 191.87
user 185.93
sys 5.37

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/178109/ft1_filtered_4FGL_J1613.6+3411_daily_bin14.fits scfile=/scratch/kocevski/178109/ft2_4FGL_J1613.6+3411_daily_bin14.fits outfile=/scratch/kocevski/178109/cmap_242956801_243216001_4FGL_J1613.6+3411_daily_bin14.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.56
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12842E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3062       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.368       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8222       1.0000         .10000E-03   10000.    
     6 'norm      '    .11526E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6597       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59015       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0320       1.0000         .10000E-03   10000.    
    12 'norm      '    .76734       1.0000         .10000E-03   10000.    
    13 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11660E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6118       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .58359       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.659       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1185       1.0000         .10000E-03   10000.    
    20 'norm      '    7.5503       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0869       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82269       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=   7591.469     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2391 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.42        .35075E-06** at limit **
   2  norm          6.6878        1.9727        .23261E-07   -.82812E-05
   3  Prefactor     5.3335        10.688       -.88195E-07    .24537E-04
   4  Prefactor     10.275        29.999       -.32969E-07   -.85066E-04
   5  Prefactor     9.8329        14.852        .80571E-07   -.67420E-04
   6  norm          .10000E-03    7.1614       -.61098E-06** at limit **
   7  Prefactor     .10000E-03    .87987       -.65065E-07** at limit **
   8  Prefactor     2.0772        32.787        .13565E-05   -.14329E-04
   9  Prefactor     7.6598        6.7287        .28882E-07    .34919E-05
  10  Prefactor     .59027        2.8303        .17101E-05   -.40099E-03
  11  Prefactor     3.0315        3.4615        .17338E-06   -.25943E-03
  12  norm          .76723        .18901       -.10308E-07   -.37495E-02
  13  norm          .10000E-03    10.753       -.20432E-06** at limit **
  14  Prefactor     .10000E-03    11.200        .16405E-06** at limit **
  15  norm          .10000E-03    15.120       -.54612E-07** at limit **
  16  Prefactor     3.6109        1.9723       -.52031E-06   -.11856E-02
  17  Prefactor     .58430        1.7141        .14292E-05   -.16315E-04
  18  Prefactor     15.651        15.326        .21358E-06    .28974E-04
  19  Prefactor     2.1179        2.5951        .27273E-07   -.27534E-03
  20  norm          7.5499        2.2810       -.85420E-07   -.35328E-03
  21  Normalizat    1.0870        .17523       -.73239E-06   -.16630E-03
  22  Prefactor     .82262        .12893        .89899E-08   -.18690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.68779
  Prefactor  = 5.33347
  Prefactor  = 10.2751
  Prefactor  = 9.83293
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.07719
  Prefactor  = 7.65983
  Prefactor  = 0.590271
  Prefactor  = 3.03151
  norm       = 0.767228
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.61093
  Prefactor  = 0.584305
  Prefactor  = 15.6506
  Prefactor  = 2.11788
  norm       = 7.5499
  Normalizat = 1.08699
  Prefactor  = 0.822615
 **********
 **   18 **HESSE 
 **********

 FCN=   7591.469     FROM HESSE     STATUS=OK           352 CALLS     2743 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    123.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6878        1.9758        .56034E-04   -1.5191    
   3  Prefactor     5.3335        10.643        .17448E-03   -1.5246    
   4  Prefactor     10.275        29.924        .12443E-03   -1.5067    
   5  Prefactor     9.8329        14.846        .12786E-03   -1.5081    
   6  norm          .10000E-03    7.1406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .89348        .79733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0772        32.771        .28627E-03   -1.5420    
   9  Prefactor     7.6598        6.7315        .14489E-03   -1.5154    
  10  Prefactor     .59027        2.6569        .26865E-03   -1.5554    
  11  Prefactor     3.0315        3.4490        .16280E-03   -1.5360    
  12  norm          .76723        .18989        .17215E-04   -1.5533    
  13  norm          .10000E-03    10.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6109        1.9327        .58933E-04   -1.5328    
  17  Prefactor     .58430        1.6810        .12964E-03   -1.5555    
  18  Prefactor     15.651        15.338        .10121E-03   -1.4917    
  19  Prefactor     2.1179        2.5710        .14862E-03   -1.5417    
  20  norm          7.5499        2.2783        .69358E-04   -1.5158    
  21  Normalizat    1.0870        .20408        .27062E-03   -.90171    
  22  Prefactor     .82262        .15057        .23376E-03   -.98900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51439e-10
Minuit parameter uncertainties:
  1  0.000442981
  2  1.97581
  3  10.6468
  4  29.9672
  5  14.8514
  6  3.96912e-05
  7  2.80149e-06
  8  16.5113
  9  6.73216
  10  2.50462
  11  3.44922
  12  0.189887
  13  2.91169e-05
  14  3.77043e-05
  15  1.27812e-05
  16  1.93276
  17  1.68115
  18  15.3423
  19  2.57118
  20  2.27835
  21  0.204232
  22  0.150641
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.903e-01  2.505e+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.226e-01  1.506e-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.087e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178109/likelihoodResults_242956801_243216001_4FGL_J1613.6+3411_daily_bin14.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7591.35226135
delta logL = 0.116893958744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7591.34540264
delta logL = 0.123752666905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0875       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7025       1.0000          .0000       10.000    
     3 'Normalizat'    1.0924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81809       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=   7591.345     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      294 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0873        2.4819        .22078E-02    .21490E-03
   2  Index         1.7027        1.0683        .17515E-01   -.11338E-04
   3  Normalizat    1.0925        .19273        .26998E-03    .47583E-05
   4  Prefactor     .81806        .14767        .23429E-03   -.64537E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08726
  Index      = 1.70265
  Normalizat = 1.09249
  Prefactor  = 0.818061
 **********
 **   18 **HESSE 
 **********

 FCN=   7591.345     FROM HESSE     STATUS=OK            27 CALLS      321 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0873        2.5021        .88314E-04   -1.5499    
   2  Index         1.7027        1.0793        .70059E-03   -.72011    
   3  Normalizat    1.0925        .19289        .10799E-04   -.89993    
   4  Prefactor     .81806        .14781        .93716E-05   -.99066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3669e-12
Minuit parameter uncertainties:
  1  2.50239
  2  1.09474
  3  0.193012
  4  0.147886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178109': 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) = 7591.34540251
delta logL = 0.123752798263

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  8.181e-01  1.479e-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.092e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 243.421 34.198

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/178109/cmap_HighResolution_242956801_243216001_4FGL_J1613.6+3411_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-13 17:18:52.047668', job_id='178109', GAL2='0.82', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631578732.05', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.24e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='14' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:18:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 178109: <4FGL_J1613.6+3411_daily_bin14> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin14> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep 13 17:05:17 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:06:04 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:06:04 2021
Terminated at Mon Sep 13 17:18:52 2021
Results reported at Mon Sep 13 17:18:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin14 243.421 34.1982 242956801 243216001 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 :                                   751.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            815 sec.

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

