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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1126
RA = 243.421, Dec = 34.1982
tmin = 531187201, tmax = 531446401
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='191375', job_status='RUN', time_executed='2021-09-13 17:54:25.651712', time_epoch_executed='1631580865.65' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191375/ft1_4FGL_J1613.6+3411_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191375/ft2_4FGL_J1613.6+3411_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191375/ft1_4FGL_J1613.6+3411_daily_bin1126.fits outfile=/scratch/kocevski/191375/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1126.fits ra=243.421 dec=34.1982 rad=12.0 tmin=531187201.0 tmax=531446401.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 4.00
user 3.76
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191375/ft1_filtered_4FGL_J1613.6+3411_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/191375/ft2_4FGL_J1613.6+3411_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/191375/ltcube_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.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/191375/ft2_4FGL_J1613.6+3411_daily_bin1126.fits
.....................!
real 14.16
user 13.74
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191375/ft1_filtered_4FGL_J1613.6+3411_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/191375/ft2_4FGL_J1613.6+3411_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/191375/ltcube_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.fits outfile=/scratch/kocevski/191375/expmap_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.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/191375/ltcube_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.fits
.....................!
real 193.05
user 185.48
sys 5.78

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/191375/ft1_filtered_4FGL_J1613.6+3411_daily_bin1126.fits scfile=/scratch/kocevski/191375/ft2_4FGL_J1613.6+3411_daily_bin1126.fits outfile=/scratch/kocevski/191375/cmap_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191375/ft1_filtered_4FGL_J1613.6+3411_daily_bin1126.fits scfile=/scratch/kocevski/191375/ft2_4FGL_J1613.6+3411_daily_bin1126.fits outfile=/scratch/kocevski/191375/cmap_HighResolution_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12357E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9509       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3928       1.0000         .10000E-03   10000.    
    12 'norm      '    .44346       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.050       1.0000         .10000E-03   10000.    
    15 'norm      '    26.168       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3355       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47584E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1315       1.0000         .10000E-03   10000.    
    20 'norm      '    .64613       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89233       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1887       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=   7531.390     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2496 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.092       -.68446E-06** at limit **
   2  norm          3.4793        2.4863        .41054E-06    .36676E-03
   3  Prefactor     1.9600        35.224       -.45957E-06    .84834E-04
   4  Prefactor     .10000E-03    15.112        .34604E-06** at limit **
   5  Prefactor     .10000E-03    8.7071       -.79261E-07** at limit **
   6  norm          15.507        12.865        .32347E-06    .20954E-04
   7  Prefactor     .10000E-03    1.2394        .23274E-06** at limit **
   8  Prefactor     .10000E-03    8.0920       -.29955E-06** at limit **
   9  Prefactor     .10000E-03    8.3777        .12112E-06** at limit **
  10  Prefactor     5.9518        4.8591        .13459E-06   -.14782E-04
  11  Prefactor     1.3927        2.4213        .20126E-06    .18274E-03
  12  norm          .44341        .21727        .37623E-07    .16914E-02
  13  norm          .10026E-03    14.768       -.23200E-05** at limit **
  14  Prefactor     47.045        28.634       -.57336E-06   -.25367E-04
  15  norm          26.160        38.120       -.13678E-05   -.12020E-05
  16  Prefactor     .10000E-03    1.0639       -.33948E-06** at limit **
  17  Prefactor     3.3325        1.7393        .19751E-07    .99165E-03
  18  Prefactor     .10007E-03    15.325        .85204E-06** at limit **
  19  Prefactor     1.1300        3.9059        .15163E-05    .15053E-03
  20  norm          .64762        1.3773        .41110E-06    .73653E-03
  21  Normalizat    .89239        .21169       -.66529E-06    .80736E-04
  22  Prefactor     1.1887        .15372        .53881E-06    .50479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.4793
  Prefactor  = 1.95999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.95176
  Prefactor  = 1.39265
  norm       = 0.443412
  norm       = 0.000100258
  Prefactor  = 47.0451
  norm       = 26.1598
  Prefactor  = 0.0001
  Prefactor  = 3.33251
  Prefactor  = 0.000100072
  Prefactor  = 1.12998
  norm       = 0.647618
  Normalizat = 0.892389
  Prefactor  = 1.18865
 **********
 **   18 **HESSE 
 **********

 FCN=   7531.390     FROM HESSE     STATUS=OK           354 CALLS     2850 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4793        2.3763        .77450E-04   -1.5335    
   3  Prefactor     1.9600        32.451        .29373E-03   -1.5428    
   4  Prefactor     .10000E-03    15.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.507        12.850        .50853E-03   -1.4920    
   7  Prefactor     .10000E-03    1.2477        .94121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9518        4.8473        .16149E-03   -1.5220    
  11  Prefactor     1.3927        2.3693        .16964E-03   -1.5472    
  12  norm          .44341        .21468        .22771E-04   -1.5575    
  13  norm          .10026E-03    79.356        .59762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.045        28.870        .58456E-04   -1.4335    
  15  norm          26.160        37.763        .78311E-04   -1.4685    
  16  Prefactor     .10000E-03    1.5689        .15003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3325        1.5447        .63890E-04   -1.5343    
  18  Prefactor     .10007E-03    102.08        .63664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1300        3.7700        .28004E-03   -1.5495    
  20  norm          .64762        1.1424        .14423E-02   -1.5547    
  21  Normalizat    .89239        .24232        .32483E-03   -.96728    
  22  Prefactor     1.1887        .17653        .22025E-03   -.86681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09224e-09
Minuit parameter uncertainties:
  1  0.000194207
  2  2.37635
  3  15.9601
  4  1.5469e-05
  5  1.12809e-05
  6  12.8525
  7  1.31739e-06
  8  2.50464e-05
  9  9.97619e-06
  10  4.84764
  11  2.36948
  12  0.214675
  13  0.00906633
  14  28.8784
  15  37.7978
  16  1.31502e-05
  17  1.54467
  18  0.00543443
  19  3.77081
  20  1.1424
  21  0.242612
  22  0.176615
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.952e+00  4.848e+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.189e+00  1.766e-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.924e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.19e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/191375/likelihoodResults_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.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) = 7531.37474195
delta logL = 0.0156796731471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7531.3701012
delta logL = 0.0203204274158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4742       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3333       1.0000          .0000       10.000    
     3 'Normalizat'    .89724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1856       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=   7531.370     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4745        5.7533        .15773E-03   -.11671E-02
   2  Index         2.3330        .51461        .73515E-02   -.24265E-03
   3  Normalizat    .89723        .22819        .32402E-03    .19178E-03
   4  Prefactor     1.1856        .17537        .22048E-03    .31639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.47453
  Index      = 2.33301
  Normalizat = 0.897233
  Prefactor  = 1.18562
 **********
 **   18 **HESSE 
 **********

 FCN=   7531.370     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4745        5.6378        .63092E-05   -1.5199    
   2  Index         2.3330        .50411        .29406E-03   -.56261    
   3  Normalizat    .89723        .22837        .12961E-04   -.96557    
   4  Prefactor     1.1856        .17546        .44096E-04   -.86775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16247e-09
Minuit parameter uncertainties:
  1  5.63825
  2  0.505308
  3  0.228618
  4  0.17555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191375': 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) = 7531.37010108
delta logL = 0.0203205426933

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.475e+00  5.638e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.333e+00  5.053e-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.186e+00  1.756e-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.972e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.33 +/- 0.51
Photon Flux (Free Index): 5.86e-08 +/- 5.10e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.92e-05

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/191375/cmap_HighResolution_531187201_531446401_4FGL_J1613.6+3411_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='6.19e-08', energy_flux2='2.11e-05', photon_flux_error='5.04e-08', dlogl='2.03e-02', energy_flux='1.94e-05', photon_flux2='5.86e-08', job_status='DONE', time_completed='2021-09-13 18:07:10.549988', photon_index_error2='0.51', photon_index2='2.33', ts='2.03', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.92e-05', EG='0.89', time_epoch_completed='1631581630.55', return_code='0', job_id='191375', GAL2='1.19', EG2='0.90', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.10e-08', ts2='2.05', photon_index='2.44' WHERE bin_id='1126' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:07:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 191375: <4FGL_J1613.6+3411_daily_bin1126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1126 243.421 34.1982 531187201 531446401 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 :                                   757.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            997 sec.

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

