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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1300
RA = 243.421, Dec = 34.1982
tmin = 576288001, tmax = 576547201
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='191651', job_status='RUN', time_executed='2021-09-13 17:54:56.552142', time_epoch_executed='1631580896.55' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191651

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191651/ft1_4FGL_J1613.6+3411_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191651/ft2_4FGL_J1613.6+3411_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191651/ft1_4FGL_J1613.6+3411_daily_bin1300.fits outfile=/scratch/kocevski/191651/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1300.fits ra=243.421 dec=34.1982 rad=12.0 tmin=576288001.0 tmax=576547201.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.37
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191651/ft1_filtered_4FGL_J1613.6+3411_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/191651/ft2_4FGL_J1613.6+3411_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/191651/ltcube_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.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/191651/ft2_4FGL_J1613.6+3411_daily_bin1300.fits
.....................!
real 13.29
user 12.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191651/ft1_filtered_4FGL_J1613.6+3411_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/191651/ft2_4FGL_J1613.6+3411_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/191651/ltcube_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.fits outfile=/scratch/kocevski/191651/expmap_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.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/191651/ltcube_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.fits
.....................!
real 195.35
user 190.06
sys 4.74

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/191651/ft1_filtered_4FGL_J1613.6+3411_daily_bin1300.fits scfile=/scratch/kocevski/191651/ft2_4FGL_J1613.6+3411_daily_bin1300.fits outfile=/scratch/kocevski/191651/cmap_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.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/191651/ft1_filtered_4FGL_J1613.6+3411_daily_bin1300.fits scfile=/scratch/kocevski/191651/ft2_4FGL_J1613.6+3411_daily_bin1300.fits outfile=/scratch/kocevski/191651/cmap_HighResolution_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6869       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.614       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12322E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1702       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .35975       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8926       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12768E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10612E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11538E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3088       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8659       1.0000         .10000E-03   10000.    
    20 'norm      '    .24603       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0086       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96351       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=   6654.825     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2417 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.836       -.52530E-06** at limit **
   2  norm          2.6880        1.4733       -.12630E-07   -.18382E-04
   3  Prefactor     3.5582        9.4577        .54761E-06   -.62662E-04
   4  Prefactor     22.453        46.755       -.39856E-06   -.20966E-05
   5  Prefactor     .10000E-03    9.7717       -.85649E-07** at limit **
   6  norm          5.1656        12.065       -.12531E-05   -.15284E-03
   7  Prefactor     2.4584        2.3630        .35470E-07   -.15875E-03
   8  Prefactor     .10000E-03    30.112       -.12958E-05** at limit **
   9  Prefactor     11.741        9.1848        .99829E-07    .32863E-04
  10  Prefactor     4.1909        3.8434        .70057E-07   -.95907E-04
  11  Prefactor     .10000E-03    1.2085        .70692E-08** at limit **
  12  norm          .35958        .16116       -.10121E-07    .24977E-02
  13  norm          3.8534        10.120        .30274E-06   -.25633E-04
  14  Prefactor     .10000E-03    18.996       -.12637E-05** at limit **
  15  norm          .10000E-03    20.159        .19111E-05** at limit **
  16  Prefactor     .10000E-03    .62134       -.38869E-06** at limit **
  17  Prefactor     .42788        1.2330        .67616E-06    .98077E-05
  18  Prefactor     8.3642        15.357        .20754E-07   -.25328E-04
  19  Prefactor     2.8708        2.8953       -.48249E-07   -.93507E-04
  20  norm          .24548        1.0237        .28138E-06   -.10094E-02
  21  Normalizat    1.0090        .19026       -.57932E-08    .98133E-04
  22  Prefactor     .96324        .14036       -.13074E-06    .10701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.68804
  Prefactor  = 3.55816
  Prefactor  = 22.4529
  Prefactor  = 0.0001
  norm       = 5.16563
  Prefactor  = 2.45838
  Prefactor  = 0.0001
  Prefactor  = 11.7412
  Prefactor  = 4.19093
  Prefactor  = 0.0001
  norm       = 0.359582
  norm       = 3.8534
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.427877
  Prefactor  = 8.36424
  Prefactor  = 2.87084
  norm       = 0.245485
  Normalizat = 1.00903
  Prefactor  = 0.963241
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.825     FROM HESSE     STATUS=OK           350 CALLS     2767 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6880        1.4671        .66131E-04   -1.5380    
   3  Prefactor     3.5582        9.2997        .21420E-03   -1.5331    
   4  Prefactor     22.453        46.284        .84230E-04   -1.4760    
   5  Prefactor     .10000E-03    9.7776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1656        12.427        .17680E-03   -1.5253    
   7  Prefactor     2.4584        2.3563        .11792E-03   -1.5394    
   8  Prefactor     .10000E-03    30.513        .21029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.741        9.1842        .11693E-03   -1.5023    
  10  Prefactor     4.1909        3.8529        .14468E-03   -1.5299    
  11  Prefactor     .10000E-03    1.2174        .87506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .35958        .15544        .18979E-04   -1.5588    
  13  norm          3.8534        10.089        .20450E-03   -1.5315    
  14  Prefactor     .10000E-03    19.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3876        .10112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .42788        1.1688        .12403E-03   -1.5577    
  18  Prefactor     8.3642        15.386        .13908E-03   -1.5129    
  19  Prefactor     2.8708        2.8541        .13052E-03   -1.5369    
  20  norm          .24548        1.0040        .15893E-03   -1.5609    
  21  Normalizat    1.0090        .22138        .27337E-03   -.92729    
  22  Prefactor     .96324        .16405        .21423E-03   -.93965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40626e-10
Minuit parameter uncertainties:
  1  6.04825e-05
  2  1.46709
  3  9.30351
  4  46.3584
  5  4.15507e-05
  6  12.4334
  7  2.35641
  8  0.000161757
  9  9.18531
  10  3.85312
  11  5.6728e-07
  12  0.155443
  13  10.093
  14  0.00013952
  15  0.000213192
  16  5.54203e-05
  17  1.16885
  18  15.3931
  19  2.85421
  20  0.99273
  21  0.221581
  22  0.164138
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  4.191e+00  3.853e+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.632e-01  1.641e-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.009e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.36e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/191651/likelihoodResults_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.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) = 6654.54958089
delta logL = 0.275229462061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6654.54461277
delta logL = 0.28019758292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0546       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9449       1.0000          .0000       10.000    
     3 'Normalizat'    .98200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97549       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=   6654.545     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0532        54.426        .58031E-02    .47276E-03
   2  Index         2.9445        6.4456        .14200        .12025E-03
   3  Normalizat    .98186        .67954E-01    .45941E-01    .16265E-04
   4  Prefactor     .97556        .50147E-01    .45960E-01    .91221E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05321
  Index      = 2.94454
  Normalizat = 0.981858
  Prefactor  = 0.975561
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.545     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0532        3.7184        .10382E-03   -1.5358    
   2  Index         2.9445        .77487        .70223E-02   -.42365    
   3  Normalizat    .98186        .21689        .27665E-03   -.93641    
   4  Prefactor     .97556        .16345        .21301E-03   -.93549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09911e-11
Minuit parameter uncertainties:
  1  3.71868
  2  0.778647
  3  0.217089
  4  0.163528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191651': 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) = 6654.54461141
delta logL = 0.28019894129

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.053e+00  3.719e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.945e+00  7.786e-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.756e-01  1.635e-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.819e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.94 +/- 0.78
Photon Flux (Free Index): 6.66e-08 +/- 5.48e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.09e-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/191651/cmap_HighResolution_576288001_576547201_4FGL_J1613.6+3411_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.36e-08', energy_flux2='1.37e-05', photon_flux_error='4.01e-08', dlogl='2.80e-01', energy_flux='1.36e-05', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-13 18:06:35.309528', photon_index_error2='0.78', photon_index2='2.94', ts='1.86', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.09e-05', EG='1.01', time_epoch_completed='1631581595.31', return_code='0', job_id='191651', GAL2='0.98', EG2='0.98', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.48e-08', ts2='2.46', photon_index='2.44' WHERE bin_id='1300' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:06:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 191651: <4FGL_J1613.6+3411_daily_bin1300> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1300> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:54 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:51: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:51:49 2021
Terminated at Mon Sep 13 18:06:36 2021
Results reported at Mon Sep 13 18:06:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1300 243.421 34.1982 576288001 576547201 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 :                                   696.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             281.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            942 sec.

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

