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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1137
RA = 243.421, Dec = 34.1982
tmin = 534038401, tmax = 534297601
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='191393', job_status='RUN', time_executed='2021-09-13 17:51:12.858903', time_epoch_executed='1631580672.86' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191393

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191393/ft1_4FGL_J1613.6+3411_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191393/ft2_4FGL_J1613.6+3411_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191393/ft1_4FGL_J1613.6+3411_daily_bin1137.fits outfile=/scratch/kocevski/191393/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1137.fits ra=243.421 dec=34.1982 rad=12.0 tmin=534038401.0 tmax=534297601.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.76
user 3.44
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191393/ft1_filtered_4FGL_J1613.6+3411_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/191393/ft2_4FGL_J1613.6+3411_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/191393/ltcube_534038401_534297601_4FGL_J1613.6+3411_daily_bin1137.fits outfile=/scratch/kocevski/191393/expmap_534038401_534297601_4FGL_J1613.6+3411_daily_bin1137.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/191393/ltcube_534038401_534297601_4FGL_J1613.6+3411_daily_bin1137.fits
.....................!
real 191.58
user 185.63
sys 5.57

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191393/ft1_filtered_4FGL_J1613.6+3411_daily_bin1137.fits scfile=/scratch/kocevski/191393/ft2_4FGL_J1613.6+3411_daily_bin1137.fits outfile=/scratch/kocevski/191393/cmap_HighResolution_534038401_534297601_4FGL_J1613.6+3411_daily_bin1137.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/191393/ft1_filtered_4FGL_J1613.6+3411_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/191393/ft2_4FGL_J1613.6+3411_daily_bin1137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191393/Model_4FGL_J1613.6+3411_daily_bin1137.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/191393/ft1_filtered_4FGL_J1613.6+3411_daily_bin1137.fits.....................!
real 54.57
user 53.20
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17842E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6529       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13464E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11283E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .35847       1.0000         .10000E-03   10000.    
    13 'norm      '    19.812       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20401       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6646       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12941E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1770       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3935       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70231       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=   7048.088     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2093 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.658       -.72635E-05** at limit **
   2  norm          4.6527        1.5005       -.74531E-08   -.68501E-04
   3  Prefactor     .10000E-03    9.2365       -.59324E-06** at limit **
   4  Prefactor     .10000E-03    28.856        .72819E-05** at limit **
   5  Prefactor     .10000E-03    10.971        .24571E-06** at limit **
   6  norm          .10000E-03    8.2531        .41138E-06** at limit **
   7  Prefactor     .10000E-03    1.2316       -.16759E-07** at limit **
   8  Prefactor     .10000E-03    6.0747        .20598E-06** at limit **
   9  Prefactor     .10000E-03    5.6030       -.28432E-07** at limit **
  10  Prefactor     1.4142        2.9534       -.69598E-06   -.10154E-02
  11  Prefactor     .10000E-03    1.1887       -.15105E-07** at limit **
  12  norm          .35887        .13928        .26471E-08    .12993E-02
  13  norm          19.822        15.999       -.24603E-05    .64645E-04
  14  Prefactor     .40443E-01    10.498       -.57816E-06    .10501E-03
  15  norm          1.4748        261.77        .28005E-04   -.10023E-04
  16  Prefactor     .10000E-03    .38718       -.56403E-07** at limit **
  17  Prefactor     1.0704        .88399       -.22228E-06   -.30729E-03
  18  Prefactor     .10000E-03    6.5024        .18776E-06** at limit **
  19  Prefactor     .10000E-03    1.3640       -.49086E-06** at limit **
  20  norm          2.1775        1.3294       -.11727E-07    .33324E-04
  21  Normalizat    1.3939        .17851        .16058E-06    .14632E-03
  22  Prefactor     .70209        .13442        .98134E-08    .81076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.65274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41416
  Prefactor  = 0.0001
  norm       = 0.358874
  norm       = 19.8224
  Prefactor  = 0.0404431
  norm       = 1.47484
  Prefactor  = 0.0001
  Prefactor  = 1.07044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1775
  Normalizat = 1.39394
  Prefactor  = 0.702088
 **********
 **   18 **HESSE 
 **********

 FCN=   7048.088     FROM HESSE     STATUS=OK           350 CALLS     2443 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6527        1.4991        .56188E-04   -1.5277    
   3  Prefactor     .10000E-03    9.3802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.2943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0689        .18037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4142        3.0951        .20712E-03   -1.5470    
  11  Prefactor     .10000E-03    1.2026        .89316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .35887        .13941        .17540E-04   -1.5588    
  13  norm          19.822        15.895        .89984E-04   -1.4817    
  14  Prefactor     .40443E-01    15.900        .76075E-01   -1.5668    
  15  norm          1.4748        238.48        .32689E-03   -1.5465    
  16  Prefactor     .10000E-03    .39590        .10094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0704        .86147        .63777E-04   -1.5501    
  18  Prefactor     .10000E-03    6.5289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4261        .18135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.1775        1.3231        .73139E-04   -1.5413    
  21  Normalizat    1.3939        .21116        .23198E-03   -.80804    
  22  Prefactor     .70209        .15900        .24465E-03   -1.0345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16233e-09
Minuit parameter uncertainties:
  1  0.000206896
  2  1.49909
  3  6.82579e-06
  4  0.000217951
  5  5.80411e-06
  6  7.9368e-06
  7  2.84737e-06
  8  3.06127e-06
  9  3.48494e-07
  10  3.09549
  11  2.04771e-06
  12  0.139414
  13  15.898
  14  1.60226
  15  37.6605
  16  3.76231e-06
  17  0.861483
  18  3.39919e-06
  19  2.14744e-06
  20  1.32314
  21  0.21129
  22  0.159099
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.414e+00  3.095e+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:  7.021e-01  1.591e-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.394e+00  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191393/likelihoodResults_534038401_534297601_4FGL_J1613.6+3411_daily_bin1137.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) = 7048.05496907
delta logL = 0.0333494482038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7048.01070542
delta logL = 0.0776130987751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43856       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6016       1.0000          .0000       10.000    
     3 'Normalizat'    1.3715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71511       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=   7048.011     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43485        10.928        .11017E-01    .15625E-02
   2  Index         3.6074        3.1491        .21026        .65088E-04
   3  Normalizat    1.3713        .28778E-01    .52834E-01   -.10801E-03
   4  Prefactor     .71525        .22493E-01    .42602E-01    .26506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.434852
  Index      = 3.60743
  Normalizat = 1.37127
  Prefactor  = 0.715249
 **********
 **   18 **HESSE 
 **********

 FCN=   7048.011     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43485        56.338        .86044E-04   -1.5576    
   2  Index         3.6074        5.5722        .93064E-02   -.28225    
   3  Normalizat    1.3713        .17552        .23360E-03   -.81463    
   4  Prefactor     .71525        .13733        .24263E-03   -1.0293    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.77139e-07
Minuit parameter uncertainties:
  1  9.90765
  2  13.4926
  3  0.175595
  4  0.137397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191393': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7048.01070305
delta logL = 0.0776154712739

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  4.349e-01  9.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  3.607e+00  1.349e+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:  7.152e-01  1.374e-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.371e+00  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 243.421 34.198

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/191393/cmap_HighResolution_534038401_534297601_4FGL_J1613.6+3411_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-13 18:03:02.007436', job_id='191393', GAL2='0.72', fit_tolerance='1e-08', EG2='1.37', EG='1.39', time_epoch_completed='1631581382.01', return_code2='102', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='7.76e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1137' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:03:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 191393: <4FGL_J1613.6+3411_daily_bin1137> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1137> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:34 2021
Job was executed on host(s) <bullet0252>, 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:03:02 2021
Results reported at Mon Sep 13 18:03:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1137 243.421 34.1982 534038401 534297601 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 :                                   703.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            748 sec.

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

