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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1462
RA = 243.421, Dec = 34.1982
tmin = 618278401, tmax = 618537601
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='193009', job_status='RUN', time_executed='2021-09-13 17:58:48.850666', time_epoch_executed='1631581128.85' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193009

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193009/ft1_4FGL_J1613.6+3411_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193009/ft2_4FGL_J1613.6+3411_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193009/ft1_4FGL_J1613.6+3411_daily_bin1462.fits outfile=/scratch/kocevski/193009/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1462.fits ra=243.421 dec=34.1982 rad=12.0 tmin=618278401.0 tmax=618537601.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.94
user 3.60
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193009/ft1_filtered_4FGL_J1613.6+3411_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/193009/ft2_4FGL_J1613.6+3411_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/193009/ltcube_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.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/193009/ft2_4FGL_J1613.6+3411_daily_bin1462.fits
.....................!
real 13.67
user 13.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193009/ft1_filtered_4FGL_J1613.6+3411_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/193009/ft2_4FGL_J1613.6+3411_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/193009/ltcube_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.fits outfile=/scratch/kocevski/193009/expmap_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.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/193009/ltcube_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.fits
.....................!
real 190.43
user 184.92
sys 5.03

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/193009/ft1_filtered_4FGL_J1613.6+3411_daily_bin1462.fits scfile=/scratch/kocevski/193009/ft2_4FGL_J1613.6+3411_daily_bin1462.fits outfile=/scratch/kocevski/193009/cmap_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193009/ft1_filtered_4FGL_J1613.6+3411_daily_bin1462.fits scfile=/scratch/kocevski/193009/ft2_4FGL_J1613.6+3411_daily_bin1462.fits outfile=/scratch/kocevski/193009/cmap_HighResolution_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.587       1.0000         .10000E-03   10000.    
     2 'norm      '    .77815       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5497       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7143       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6635       1.0000         .10000E-03   10000.    
    12 'norm      '    .82155E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.718       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3375       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8466       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99117       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=   6798.325     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2376 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.566        108.45       -.27619E-04    .59937E-05
   2  norm          .77771        1.1842       -.20662E-06   -.10465E-02
   3  Prefactor     .10000E-03    2.3490        .26541E-07** at limit **
   4  Prefactor     11.783        19.669        .30173E-06   -.28954E-05
   5  Prefactor     .10000E-03    6.5860       -.24448E-05** at limit **
   6  norm          .10000E-03    5.5567        .16323E-05** at limit **
   7  Prefactor     4.5497        2.6891       -.18457E-06   -.11527E-03
   8  Prefactor     .10000E-03    8.0535        .14169E-05** at limit **
   9  Prefactor     .10000E-03    3.4560        .21204E-06** at limit **
  10  Prefactor     7.7145        5.4258       -.30156E-06   -.35451E-03
  11  Prefactor     4.6635        3.2242       -.18721E-06   -.18105E-03
  12  norm          .82174E-01    .20131        .23152E-06    .42380E-03
  13  norm          .10000E-03    3.9019       -.62852E-06** at limit **
  14  Prefactor     26.715        30.174       -.52185E-05   -.12623E-03
  15  norm          .10000E-03    16.907        .29304E-06** at limit **
  16  Prefactor     2.4229        2.7516        .24198E-06   -.86696E-03
  17  Prefactor     1.3385        2.7006       -.53536E-06   -.14287E-02
  18  Prefactor     10.374        17.259       -.32649E-05   -.35258E-04
  19  Prefactor     1.8460        3.1355       -.53582E-06   -.76868E-03
  20  norm          .10000E-03    .79700        .46611E-07** at limit **
  21  Normalizat    1.0006        .20386        .32433E-05   -.14815E-03
  22  Prefactor     .99119        .14467       -.42516E-06    .39597E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.5656
  norm       = 0.777712
  Prefactor  = 0.0001
  Prefactor  = 11.7826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.54972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.71451
  Prefactor  = 4.66353
  norm       = 0.0821744
  norm       = 0.0001
  Prefactor  = 26.715
  norm       = 0.0001
  Prefactor  = 2.42292
  Prefactor  = 1.33846
  Prefactor  = 10.3737
  Prefactor  = 1.84595
  norm       = 0.0001
  Normalizat = 1.0006
  Prefactor  = 0.991188
 **********
 **   18 **HESSE 
 **********

 FCN=   6798.325     FROM HESSE     STATUS=OK           352 CALLS     2728 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.566        106.46        .51975E-04   -1.4163    
   2  norm          .77771        1.0527        .10599E-02   -1.5532    
   3  Prefactor     .10000E-03    2.3508        .12338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.783        19.655        .11671E-03   -1.5021    
   5  Prefactor     .10000E-03    6.5751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.5706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5497        2.6880        .10018E-03   -1.5281    
   8  Prefactor     .10000E-03    8.0551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4594        .14969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7145        5.4477        .14438E-03   -1.5152    
  11  Prefactor     4.6635        3.2221        .11659E-03   -1.5276    
  12  norm          .82174E-01    .15883        .36935E-03   -1.5651    
  13  norm          .10000E-03    3.9013        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.715        27.082        .77502E-04   -1.4674    
  15  norm          .10000E-03    16.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4229        2.5049        .69976E-04   -1.5397    
  17  Prefactor     1.3385        2.4281        .93886E-04   -1.5477    
  18  Prefactor     10.374        17.316        .12439E-03   -1.5064    
  19  Prefactor     1.8460        3.0652        .17316E-03   -1.5436    
  20  norm          .10000E-03    1.6348        .14113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0006        .23590        .28713E-03   -.93010    
  22  Prefactor     .99119        .16903        .21931E-03   -.93024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46343e-10
Minuit parameter uncertainties:
  1  106.803
  2  1.05268
  3  2.17048e-06
  4  19.6659
  5  5.82244e-06
  6  4.39283e-06
  7  2.68809
  8  5.5074e-06
  9  3.29287e-06
  10  5.44802
  11  3.22217
  12  0.158829
  13  4.32687e-08
  14  27.0942
  15  6.99532e-06
  16  2.50496
  17  2.42827
  18  17.3239
  19  3.06548
  20  6.66798e-06
  21  0.236148
  22  0.169125
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  7.715e+00  5.448e+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.912e-01  1.691e-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.001e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 8.03e-08 +/- 5.67e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 1.77e-05

TS (Fixed Index): 2.74
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193009/likelihoodResults_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.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) = 6797.79978941
delta logL = 0.525148373587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6797.78501346
delta logL = 0.539924321055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5706       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0258       1.0000          .0000       10.000    
     3 'Normalizat'    .95991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0128       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=   6797.785     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      276 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5710        5.6554        .98023E-04   -.55091E-04
   2  Index         3.0259        .74503        .51891E-02    .49913E-03
   3  Normalizat    .96001        .22452        .29261E-03    .33122E-03
   4  Prefactor     1.0127        .16718        .21722E-03    .43014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.571
  Index      = 3.02595
  Normalizat = 0.960011
  Prefactor  = 1.01273
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.785     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5710        4.9964        .39209E-05   -1.5280    
   2  Index         3.0259        .65815        .10378E-02   -.40586    
   3  Normalizat    .96001        .22474        .11704E-04   -.94382    
   4  Prefactor     1.0127        .16715        .43444E-04   -.92307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72924e-10
Minuit parameter uncertainties:
  1  4.99686
  2  0.660426
  3  0.22496
  4  0.167235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193009': 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) = 6797.78501317
delta logL = 0.53992461639

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  4.571e+00  4.997e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  3.026e+00  6.604e-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:  1.013e+00  1.672e-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:  9.600e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 243.421 34.198
Photon Index (Free Index): 3.03 +/- 0.66
Photon Flux (Free Index): 1.13e-07 +/- 7.00e-08
Energy Flux (Free Index): 2.23e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/193009/cmap_HighResolution_618278401_618537601_4FGL_J1613.6+3411_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='8.03e-08', energy_flux2='2.23e-05', photon_flux_error='5.67e-08', dlogl='5.40e-01', energy_flux='2.51e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-13 18:10:57.577273', photon_index_error2='0.66', photon_index2='3.03', ts='2.74', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.42e-05', EG='1.00', time_epoch_completed='1631581857.58', return_code='0', job_id='193009', GAL2='1.01', EG2='0.96', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='7.00e-08', ts2='3.92', photon_index='2.44' WHERE bin_id='1462' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:10:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 193009: <4FGL_J1613.6+3411_daily_bin1462> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1462> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:55:27 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:56:37 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:56:37 2021
Terminated at Mon Sep 13 18:10:58 2021
Results reported at Mon Sep 13 18:10:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1462 243.421 34.1982 618278401 618537601 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 :                                   698.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            931 sec.

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

