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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1340
RA = 243.421, Dec = 34.1982
tmin = 586656001, tmax = 586915201
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='191691', job_status='RUN', time_executed='2021-09-13 17:54:05.512274', time_epoch_executed='1631580845.51' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191691

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191691/ft1_4FGL_J1613.6+3411_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191691/ft2_4FGL_J1613.6+3411_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191691/ft1_4FGL_J1613.6+3411_daily_bin1340.fits outfile=/scratch/kocevski/191691/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1340.fits ra=243.421 dec=34.1982 rad=12.0 tmin=586656001.0 tmax=586915201.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.68
user 3.45
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191691/ft1_filtered_4FGL_J1613.6+3411_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/191691/ft2_4FGL_J1613.6+3411_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/191691/ltcube_586656001_586915201_4FGL_J1613.6+3411_daily_bin1340.fits outfile=/scratch/kocevski/191691/expmap_586656001_586915201_4FGL_J1613.6+3411_daily_bin1340.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/191691/ltcube_586656001_586915201_4FGL_J1613.6+3411_daily_bin1340.fits
.....................!
real 190.64
user 185.50
sys 4.47

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/191691/ft1_filtered_4FGL_J1613.6+3411_daily_bin1340.fits scfile=/scratch/kocevski/191691/ft2_4FGL_J1613.6+3411_daily_bin1340.fits outfile=/scratch/kocevski/191691/cmap_586656001_586915201_4FGL_J1613.6+3411_daily_bin1340.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191691/ft1_filtered_4FGL_J1613.6+3411_daily_bin1340.fits scfile=/scratch/kocevski/191691/ft2_4FGL_J1613.6+3411_daily_bin1340.fits outfile=/scratch/kocevski/191691/cmap_HighResolution_586656001_586915201_4FGL_J1613.6+3411_daily_bin1340.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5310       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.296       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.120       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1458       1.0000         .10000E-03   10000.    
     6 'norm      '    .12436E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69813       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41326       1.0000         .10000E-03   10000.    
    12 'norm      '    .89734E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.806       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58324       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19921       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7253       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8039       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0301       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0436       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=   6968.095     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2467 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.29       -.79297E-06** at limit **
   2  norm          3.5322        2.4031       -.16382E-06   -.32721E-04
   3  Prefactor     14.286        17.649        .93339E-06    .94761E-04
   4  Prefactor     13.122        22.728        .20044E-06    .28201E-04
   5  Prefactor     4.1347        15.979        .22638E-05    .84902E-04
   6  norm          .10000E-03    11.409        .44376E-06** at limit **
   7  Prefactor     .69837        1.9275        .48373E-06   -.45025E-03
   8  Prefactor     .10000E-03    6.6930        .62159E-07** at limit **
   9  Prefactor     .10000E-03    11.384       -.31059E-06** at limit **
  10  Prefactor     6.4208        4.4106        .43464E-07   -.20622E-03
  11  Prefactor     .41189        1.9405        .86158E-07   -.28522E-03
  12  norm          .89641E-01    .18752        .63332E-07   -.21692E-02
  13  norm          .10000E-03    4.6765        .20237E-07** at limit **
  14  Prefactor     40.814        27.131       -.31232E-06   -.84150E-04
  15  norm          .10000E-03    10.732        .29497E-06** at limit **
  16  Prefactor     .58009        1.5065       -.65731E-06   -.80286E-03
  17  Prefactor     .20136        2.1212        .72802E-06   -.68004E-03
  18  Prefactor     .10000E-03    23.686        .11641E-06** at limit **
  19  Prefactor     1.7246        3.1579        .97384E-07   -.45392E-03
  20  norm          3.8036        1.9046       -.73305E-07   -.26420E-03
  21  Normalizat    1.0301        .19822       -.10494E-05   -.80699E-04
  22  Prefactor     1.0435        .14428        .15745E-06   -.13542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.53225
  Prefactor  = 14.2861
  Prefactor  = 13.1219
  Prefactor  = 4.13468
  norm       = 0.0001
  Prefactor  = 0.698372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.4208
  Prefactor  = 0.411894
  norm       = 0.0896407
  norm       = 0.0001
  Prefactor  = 40.8144
  norm       = 0.0001
  Prefactor  = 0.580086
  Prefactor  = 0.201361
  Prefactor  = 0.0001
  Prefactor  = 1.72458
  norm       = 3.80359
  Normalizat = 1.03011
  Prefactor  = 1.04347
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.095     FROM HESSE     STATUS=OK           352 CALLS     2819 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    105.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5322        2.4573        .74632E-04   -1.5332    
   3  Prefactor     14.286        18.068        .10593E-03   -1.4952    
   4  Prefactor     13.122        22.734        .11058E-03   -1.4983    
   5  Prefactor     4.1347        16.036        .19796E-03   -1.5301    
   6  norm          .10000E-03    11.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .69837        1.9150        .18854E-03   -1.5541    
   8  Prefactor     .10000E-03    6.6967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4208        4.4315        .13740E-03   -1.5201    
  11  Prefactor     .41189        3.5352        .21899E-02   -1.5580    
  12  norm          .89641E-01    .16224        .35329E-04   -1.5648    
  13  norm          .10000E-03    4.6781        .17631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.814        25.612        .62751E-04   -1.4429    
  15  norm          .10000E-03    10.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58009        1.6355        .46424E-04   -1.5556    
  17  Prefactor     .20136        3.4061        .12612E-02   -1.5618    
  18  Prefactor     .10000E-03    24.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7246        3.0847        .18429E-03   -1.5445    
  20  norm          3.8036        1.9038        .77215E-04   -1.5318    
  21  Normalizat    1.0301        .22994        .28592E-03   -.92028    
  22  Prefactor     1.0435        .16871        .22081E-03   -.91294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01787e-08
Minuit parameter uncertainties:
  1  0.00034516
  2  2.45739
  3  18.0745
  4  22.7491
  5  16.0528
  6  7.28627e-05
  7  1.91518
  8  5.9024e-06
  9  2.62946e-05
  10  4.43175
  11  2.4133
  12  0.162237
  13  2.5665e-06
  14  25.6184
  15  3.77046e-05
  16  1.63564
  17  1.65602
  18  3.10077e-05
  19  3.08502
  20  1.90381
  21  0.230165
  22  0.168792
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.421e+00  4.432e+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.043e+00  1.688e-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.030e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.17
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.68e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/191691/likelihoodResults_586656001_586915201_4FGL_J1613.6+3411_daily_bin1340.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) = 6968.09477886
delta logL = 0.000292936916594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6968.09460044
delta logL = 0.000471361861855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5163       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4175       1.0000          .0000       10.000    
     3 'Normalizat'    1.0313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0428       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=   6968.095     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5163        109.99        .39304E-02    .75726E-03
   2  Index         2.4175        6.1555        .15428        .93417E-04
   3  Normalizat    1.0313        .94806E-01    .64608E-01    .15313E-04
   4  Prefactor     1.0428        .63706E-01    .40350E-01    .55015E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.51629
  Index      = 2.4175
  Normalizat = 1.03127
  Prefactor  = 1.04282
 **********
 **   18 **HESSE 
 **********

 FCN=   6968.095     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5163        5.6871        .13872E-03   -1.5197    
   2  Index         2.4175        .67879        .81155E-02   -.54276    
   3  Normalizat    1.0313        .21906        .28578E-03   -.91990    
   4  Prefactor     1.0428        .16808        .22086E-03   -.91316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89347e-09
Minuit parameter uncertainties:
  1  5.68757
  2  0.681668
  3  0.219253
  4  0.168163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191691': 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) = 6968.09460044
delta logL = 0.000471362132885

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.516e+00  5.688e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.418e+00  6.817e-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.043e+00  1.682e-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.031e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.42 +/- 0.68
Photon Flux (Free Index): 6.60e-08 +/- 5.19e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.79e-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/191691/cmap_HighResolution_586656001_586915201_4FGL_J1613.6+3411_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='6.68e-08', energy_flux2='2.11e-05', photon_flux_error='4.61e-08', dlogl='4.71e-04', energy_flux='2.09e-05', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-09-13 18:06:12.758029', photon_index_error2='0.68', photon_index2='2.42', ts='3.17', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.79e-05', EG='1.03', time_epoch_completed='1631581572.76', return_code='0', job_id='191691', GAL2='1.04', EG2='1.03', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.19e-08', ts2='3.15', photon_index='2.44' WHERE bin_id='1340' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:06:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 191691: <4FGL_J1613.6+3411_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1340 243.421 34.1982 586656001 586915201 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 :                                   721.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            916 sec.

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

