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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1017
RA = 243.421, Dec = 34.1982
tmin = 502934401, tmax = 503193601
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='191198', job_status='RUN', time_executed='2021-09-13 17:52:31.867695', time_epoch_executed='1631580751.87' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191198/ft1_4FGL_J1613.6+3411_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191198/ft2_4FGL_J1613.6+3411_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191198/ft1_4FGL_J1613.6+3411_daily_bin1017.fits outfile=/scratch/kocevski/191198/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1017.fits ra=243.421 dec=34.1982 rad=12.0 tmin=502934401.0 tmax=503193601.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.64
user 3.37
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191198/ft1_filtered_4FGL_J1613.6+3411_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/191198/ft2_4FGL_J1613.6+3411_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/191198/ltcube_502934401_503193601_4FGL_J1613.6+3411_daily_bin1017.fits outfile=/scratch/kocevski/191198/expmap_502934401_503193601_4FGL_J1613.6+3411_daily_bin1017.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/191198/ltcube_502934401_503193601_4FGL_J1613.6+3411_daily_bin1017.fits
.....................!
real 193.71
user 188.01
sys 5.14

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/191198/ft1_filtered_4FGL_J1613.6+3411_daily_bin1017.fits scfile=/scratch/kocevski/191198/ft2_4FGL_J1613.6+3411_daily_bin1017.fits outfile=/scratch/kocevski/191198/cmap_502934401_503193601_4FGL_J1613.6+3411_daily_bin1017.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2537       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12261E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .57663       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5396       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7656       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9462       1.0000         .10000E-03   10000.    
    20 'norm      '    3.0530       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81150       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0720       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=   6474.498     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2135 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.066       -.25314E-05** at limit **
   2  norm          3.2580        2.2854        .33461E-07    .16426E-03
   3  Prefactor     6.7308        18.502        .38948E-06    .28090E-04
   4  Prefactor     .10002E-03    36.847        .54229E-05** at limit **
   5  Prefactor     .10000E-03    6.6187       -.65965E-06** at limit **
   6  norm          .10000E-03    4.0754        .32454E-07** at limit **
   7  Prefactor     .10142E-03    1.5376       -.88714E-06** at limit **
   8  Prefactor     .10000E-03    5.8518        .92508E-06** at limit **
   9  Prefactor     6.6484        12.702        .34729E-05   -.25319E-03
  10  Prefactor     .87230        3.1462        .83728E-06   -.26667E-03
  11  Prefactor     .10000E-03    1.4248        .67041E-07** at limit **
  12  norm          .57679        .17453       -.32601E-07   -.34895E-02
  13  norm          .10000E-03    8.1908        .36554E-06** at limit **
  14  Prefactor     .10000E-03    5.5692       -.49117E-06** at limit **
  15  norm          8.5446        28.963        .65088E-06    .19452E-04
  16  Prefactor     .15398        2.0854        .56223E-06    .18200E-03
  17  Prefactor     1.5248        2.1347       -.57208E-06   -.14177E-02
  18  Prefactor     3.7646        27.745        .47725E-06   -.43801E-04
  19  Prefactor     1.9453        2.8900        .16031E-06   -.29017E-03
  20  norm          3.0526        1.7598        .10941E-07   -.20778E-03
  21  Normalizat    .81192        .19445       -.13404E-05    .33968E-05
  22  Prefactor     1.0717        .14172       -.99248E-07    .40753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 3.25797
  Prefactor  = 6.73077
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101416
  Prefactor  = 0.000100001
  Prefactor  = 6.64835
  Prefactor  = 0.872295
  Prefactor  = 0.0001
  norm       = 0.576788
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.54457
  Prefactor  = 0.153979
  Prefactor  = 1.52483
  Prefactor  = 3.76461
  Prefactor  = 1.94528
  norm       = 3.05263
  Normalizat = 0.811918
  Prefactor  = 1.07171
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.498     FROM HESSE     STATUS=OK           350 CALLS     2485 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2580        2.3363        .66622E-04   -1.5347    
   3  Prefactor     6.7308        18.942        .15416E-03   -1.5189    
   4  Prefactor     .10002E-03    38.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0789        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10142E-03    33.288        .17714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6484        12.589        .77828E-03   -1.5192    
  10  Prefactor     .87230        4.5529        .24135E-02   -1.5521    
  11  Prefactor     .10000E-03    1.4855        .18740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .57679        .18374        .16365E-04   -1.5556    
  13  norm          .10000E-03    8.2334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5446        28.963        .13718E-03   -1.5123    
  16  Prefactor     .15398        23.645        .11822E-02   -1.5630    
  17  Prefactor     1.5248        3.6605        .76837E-04   -1.5461    
  18  Prefactor     3.7646        27.808        .20805E-03   -1.5320    
  19  Prefactor     1.9453        2.8501        .15439E-03   -1.5429    
  20  norm          3.0526        1.7613        .77376E-04   -1.5359    
  21  Normalizat    .81192        .22365        .29453E-03   -.99628    
  22  Prefactor     1.0717        .16585        .20288E-03   -.90376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62407e-08
Minuit parameter uncertainties:
  1  0.00102628
  2  2.33633
  3  18.9593
  4  0.00172415
  5  8.37626e-05
  6  3.01905e-06
  7  0.0137393
  8  0.000109268
  9  12.5937
  10  3.98596
  11  4.19001e-06
  12  0.183739
  13  3.85234e-05
  14  5.37003e-05
  15  29.0104
  16  3.81646
  17  3.66105
  18  20.4764
  19  2.85034
  20  1.76132
  21  0.223905
  22  0.165928
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.072e+00  1.659e-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:  8.119e-01  2.239e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191198/likelihoodResults_502934401_503193601_4FGL_J1613.6+3411_daily_bin1017.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): 102
logL (Free Index) = 6473.08733144
delta logL = 1.41048568398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6472.9031467
delta logL = 1.59467042587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17664E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.1322       1.0000          .0000       10.000    
     3 'Normalizat'    .69327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1310       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=   6472.903     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      280 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17555E-01    .16273        .14871E-02    .23002E-02
   2  Index         6.1354        2.6290        .12172        .10908E-03
   3  Normalizat    .69331        .49028E-01    .71522E-01    .35187E-04
   4  Prefactor     1.1310        .38298E-01    .36513E-01    .15399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0175547
  Index      = 6.13536
  Normalizat = 0.69331
  Prefactor  = 1.13096
 **********
 **   18 **HESSE 
 **********

 FCN=   6472.903     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      313 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17555E-01    .35221        .66861E-04   -1.5682    
   2  Index         6.1354        4.0571        .47245E-02    .22907    
   3  Normalizat    .69331        .16825        .31655E-03   -1.0416    
   4  Prefactor     1.1310        .12932        .19809E-03   -.88483    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37016e-07
Minuit parameter uncertainties:
  1  0.156816
  2  4.79563
  3  0.168372
  4  0.129358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191198': 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): 102
logL (Free Index) = 6472.90314589
delta logL = 1.59467123791

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.755e-02  1.568e-01  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  6.135e+00  4.796e+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:  1.131e+00  1.294e-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:  6.933e-01  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.58
Ra Dec: 243.421 34.198
Photon Index (Free Index): 6.14 +/- 4.80
Photon Flux (Free Index): 1.03e-07 +/- 6.36e-08
Energy Flux (Free Index): 1.27e-05 +/- 8.37e-06

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/191198/cmap_HighResolution_502934401_503193601_4FGL_J1613.6+3411_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='1.59e+00', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-13 18:03:44.955779', photon_index_error2='4.80', photon_index2='6.14', ts='0.06', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='8.37e-06', EG='0.81', time_epoch_completed='1631581424.96', return_code='0', job_id='191198', GAL2='1.13', EG2='0.69', return_code2='102', photon_flux_error2='6.36e-08', ts2='3.58', photon_index='2.44' WHERE bin_id='1017' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:03:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 191198: <4FGL_J1613.6+3411_daily_bin1017> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1017> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:20 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:50:27 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:27 2021
Terminated at Mon Sep 13 18:03:45 2021
Results reported at Mon Sep 13 18:03:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1017 243.421 34.1982 502934401 503193601 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 :                                   671.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            805 sec.

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

