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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin71
RA = 243.421, Dec = 34.1982
tmin = 257731201, tmax = 257990401
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='179621', job_status='RUN', time_executed='2021-09-13 17:15:07.124224', time_epoch_executed='1631578507.12' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179621/ft1_4FGL_J1613.6+3411_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179621/ft2_4FGL_J1613.6+3411_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179621/ft1_4FGL_J1613.6+3411_daily_bin71.fits outfile=/scratch/kocevski/179621/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin71.fits ra=243.421 dec=34.1982 rad=12.0 tmin=257731201.0 tmax=257990401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.41
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/179621/ft2_4FGL_J1613.6+3411_daily_bin71.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/179621/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/179621/ft1_filtered_4FGL_J1613.6+3411_daily_bin71.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179621/ft1_filtered_4FGL_J1613.6+3411_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/179621/ft2_4FGL_J1613.6+3411_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/179621/ltcube_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.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/179621/ft2_4FGL_J1613.6+3411_daily_bin71.fits
.....................!
real 16.04
user 15.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179621/ft1_filtered_4FGL_J1613.6+3411_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/179621/ft2_4FGL_J1613.6+3411_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/179621/ltcube_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.fits outfile=/scratch/kocevski/179621/expmap_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.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/179621/ltcube_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.fits
.....................!
real 192.09
user 187.18
sys 3.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/179621/ft1_filtered_4FGL_J1613.6+3411_daily_bin71.fits scfile=/scratch/kocevski/179621/ft2_4FGL_J1613.6+3411_daily_bin71.fits outfile=/scratch/kocevski/179621/cmap_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179621/ft1_filtered_4FGL_J1613.6+3411_daily_bin71.fits scfile=/scratch/kocevski/179621/ft2_4FGL_J1613.6+3411_daily_bin71.fits outfile=/scratch/kocevski/179621/cmap_HighResolution_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.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/179621/ft1_filtered_4FGL_J1613.6+3411_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/179621/ft2_4FGL_J1613.6+3411_daily_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/179621/Model_4FGL_J1613.6+3411_daily_bin71.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/179621/ft1_filtered_4FGL_J1613.6+3411_daily_bin71.fits.....................!
real 46.64
user 45.21
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    192.40       1.0000         .10000E-03   10000.    
     2 'norm      '    10.657       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.546       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.945       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2018       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .46844       1.0000         .10000E-03   10000.    
    13 'norm      '    27.778       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2564       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3420       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8222       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84242       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94230       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=   5544.403     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2392 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     192.41        135.08        .10103E-04   -.71006E-06
   2  norm          10.658        2.3023       -.45848E-07    .42969E-04
   3  Prefactor     .10000E-03    5.0995       -.20135E-06** at limit **
   4  Prefactor     15.931        26.412       -.47472E-06   -.11348E-03
   5  Prefactor     .10000E-03    22.411       -.18130E-06** at limit **
   6  norm          .10000E-03    5.8065        .33838E-07** at limit **
   7  Prefactor     .10000E-03    1.2586       -.65592E-07** at limit **
   8  Prefactor     16.547        30.723        .17138E-05   -.78713E-05
   9  Prefactor     12.944        9.1607        .12151E-06   -.68399E-05
  10  Prefactor     5.2022        4.4006       -.17770E-05   -.33487E-03
  11  Prefactor     .10000E-03    2.4255       -.18297E-06** at limit **
  12  norm          .46844        .18142       -.24467E-07   -.11819E-02
  13  norm          27.771        24.531       -.34332E-05   -.10934E-04
  14  Prefactor     .10000E-03    30.154        .17769E-05** at limit **
  15  norm          .10000E-03    54.303       -.11193E-05** at limit **
  16  Prefactor     3.6054        1.6522       -.17128E-06   -.46974E-03
  17  Prefactor     .10000E-03    1.2007        .64690E-07** at limit **
  18  Prefactor     4.2559        11.135       -.29431E-06   -.98958E-04
  19  Prefactor     2.3422        3.5692        .23415E-05   -.49400E-03
  20  norm          2.8226        2.0235       -.15702E-06   -.23917E-03
  21  Normalizat    .84221        .20661       -.58188E-06   -.97804E-05
  22  Prefactor     .94244        .15449        .44448E-06   -.49217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 192.41
  norm       = 10.6577
  Prefactor  = 0.0001
  Prefactor  = 15.9309
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5474
  Prefactor  = 12.9442
  Prefactor  = 5.20221
  Prefactor  = 0.0001
  norm       = 0.46844
  norm       = 27.771
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.60544
  Prefactor  = 0.0001
  Prefactor  = 4.25587
  Prefactor  = 2.34217
  norm       = 2.82259
  Normalizat = 0.842214
  Prefactor  = 0.942444
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.403     FROM HESSE     STATUS=OK           352 CALLS     2744 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     192.41        135.15        .14560E-03   -1.2925    
   2  norm          10.658        2.3042        .50093E-04   -1.5055    
   3  Prefactor     .10000E-03    5.1115        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.931        26.467        .50173E-03   -1.4909    
   5  Prefactor     .10000E-03    22.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.8125        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1665        .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.547        30.729        .98464E-04   -1.4894    
   9  Prefactor     12.944        9.1679        .11133E-03   -1.4988    
  10  Prefactor     5.2022        4.4972        .13730E-03   -1.5252    
  11  Prefactor     .10000E-03    2.4907        .22618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46844        .18140        .18045E-04   -1.5571    
  13  norm          27.771        24.476        .76012E-04   -1.4654    
  14  Prefactor     .10000E-03    31.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    54.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6054        1.4861        .52604E-04   -1.5328    
  17  Prefactor     .10000E-03    2.0974        .13773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2559        11.143        .19530E-03   -1.5295    
  19  Prefactor     2.3422        3.4407        .15915E-03   -1.5402    
  20  norm          2.8226        2.0182        .85998E-04   -1.5372    
  21  Normalizat    .84221        .24639        .29199E-03   -.98521    
  22  Prefactor     .94244        .18462        .21549E-03   -.94673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31715e-10
Minuit parameter uncertainties:
  1  135.369
  2  2.3042
  3  9.97607e-07
  4  26.4867
  5  6.17254e-05
  6  8.92888e-06
  7  1.04716e-05
  8  30.7586
  9  9.1689
  10  4.49754
  11  8.20938e-06
  12  0.181405
  13  24.4852
  14  7.49453e-05
  15  7.71448e-06
  16  1.48612
  17  2.53227e-05
  18  11.1483
  19  3.44096
  20  2.01824
  21  0.246722
  22  0.184739
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.202e+00  4.498e+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.424e-01  1.847e-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.422e-01  2.467e-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): 5.41e-08 +/- 4.68e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/179621/likelihoodResults_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.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) = 5544.29336877
delta logL = 0.109718210079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5544.28780463
delta logL = 0.115282357232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6812       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8496       1.0000          .0000       10.000    
     3 'Normalizat'    .81662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95676       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=   5544.288     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      299 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6814        6.2487        .10630E-03    .74864E-04
   2  Index         2.8495        1.1721        .70132E-02    .20939E-04
   3  Normalizat    .81663        .24375        .29614E-03    .87720E-04
   4  Prefactor     .95674        .18562        .21410E-03    .13949E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.68135
  Index      = 2.84953
  Normalizat = 0.816632
  Prefactor  = 0.956738
 **********
 **   18 **HESSE 
 **********

 FCN=   5544.288     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6814        5.1295        .42520E-05   -1.5324    
   2  Index         2.8495        .96382        .28053E-03   -.44460    
   3  Normalizat    .81663        .24282        .11846E-04   -.99455    
   4  Prefactor     .95674        .18482        .42821E-04   -.94186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74611e-11
Minuit parameter uncertainties:
  1  5.13011
  2  0.971298
  3  0.243147
  4  0.184944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179621': 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) = 5544.28780461
delta logL = 0.11528237699

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.681e+00  5.130e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.850e+00  9.713e-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.567e-01  1.849e-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.166e-01  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.85 +/- 0.97
Photon Flux (Free Index): 6.95e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.27e-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/179621/cmap_HighResolution_257731201_257990401_4FGL_J1613.6+3411_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='1.51e-05', photon_flux_error='4.68e-08', dlogl='1.15e-01', energy_flux='1.69e-05', photon_flux2='6.95e-08', job_status='DONE', time_completed='2021-09-13 17:25:47.755881', photon_index_error2='0.97', photon_index2='2.85', ts='1.86', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.27e-05', EG='0.84', time_epoch_completed='1631579147.76', return_code='0', job_id='179621', GAL2='0.96', EG2='0.82', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.02e-08', ts2='2.11', photon_index='2.44' WHERE bin_id='71' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 179621: <4FGL_J1613.6+3411_daily_bin71> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin71> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:10:23 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:11:59 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:11:59 2021
Terminated at Mon Sep 13 17:25:48 2021
Results reported at Mon Sep 13 17:25:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin71 243.421 34.1982 257731201 257990401 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 :                                   639.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            925 sec.

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

