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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1410
RA = 243.421, Dec = 34.1982
tmin = 604800001, tmax = 605059201
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='192920', job_status='RUN', time_executed='2021-09-13 17:57:40.571844', time_epoch_executed='1631581060.57' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192920/ft1_4FGL_J1613.6+3411_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192920/ft1_4FGL_J1613.6+3411_daily_bin1410.fits outfile=/scratch/kocevski/192920/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1410.fits ra=243.421 dec=34.1982 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.12
user 4.84
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192920/ft1_filtered_4FGL_J1613.6+3411_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/192920/ltcube_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.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/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits
.....................!
real 14.73
user 14.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192920/ft1_filtered_4FGL_J1613.6+3411_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/192920/ltcube_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.fits outfile=/scratch/kocevski/192920/expmap_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.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/192920/ltcube_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.fits
.....................!
real 193.53
user 188.11
sys 4.59

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/192920/ft1_filtered_4FGL_J1613.6+3411_daily_bin1410.fits scfile=/scratch/kocevski/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits outfile=/scratch/kocevski/192920/cmap_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192920/ft1_filtered_4FGL_J1613.6+3411_daily_bin1410.fits scfile=/scratch/kocevski/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits outfile=/scratch/kocevski/192920/cmap_HighResolution_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.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.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192920/ft1_filtered_4FGL_J1613.6+3411_daily_bin1410.fits', '/scratch/kocevski/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits', expMap='/scratch/kocevski/192920/expmap_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.fits', expCube='/scratch/kocevski/192920/ltcube_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192920/Model_4FGL_J1613.6+3411_daily_bin1410.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/192920/ft1_filtered_4FGL_J1613.6+3411_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/192920/ft2_4FGL_J1613.6+3411_daily_bin1410.fits
Exposure map: /scratch/kocevski/192920/expmap_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.fits
Exposure cube: /scratch/kocevski/192920/ltcube_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192920/Model_4FGL_J1613.6+3411_daily_bin1410.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7264.27194782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.361       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36801E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3785       1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0156       1.0000         .10000E-03   10000.    
    15 'norm      '    .18348E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.3283       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4297       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83845       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=   7264.203     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2226 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.122        .56694E-06** at limit **
   2  norm          .10000E-03    .71088        .11863E-05** at limit **
   3  Prefactor     1.2866        17.912       -.33168E-05   -.71805E-04
   4  Prefactor     16.362        27.772        .73244E-06    .20282E-04
   5  Prefactor     .10000E-03    8.2013        .12549E-07** at limit **
   6  norm          .10000E-03    6.4875       -.61241E-07** at limit **
   7  Prefactor     .10000E-03    1.4549       -.80942E-07** at limit **
   8  Prefactor     .10000E-03    10.698       -.14483E-06** at limit **
   9  Prefactor     6.6897        10.119       -.29995E-05    .33258E-03
  10  Prefactor     .10001E-03    23.250        .94313E-05** at limit **
  11  Prefactor     2.3779        3.7124       -.45911E-06   -.68338E-04
  12  norm          .10000E-03    .65865E-01    .44262E-06** at limit **
  13  norm          .10000E-03    3.9621       -.91786E-08** at limit **
  14  Prefactor     5.0223        15.604       -.40615E-05   -.39544E-03
  15  norm          .10024E-03    29.096       -.47472E-05** at limit **
  16  Prefactor     .10000E-03    .79546       -.56017E-06** at limit **
  17  Prefactor     .18635        1.1892        .29850E-06    .44044E-03
  18  Prefactor     .10001E-03    23.428        .90696E-06** at limit **
  19  Prefactor     .10000E-03    1.3755       -.29211E-06** at limit **
  20  norm          6.3284        2.1474       -.65028E-07   -.21290E-03
  21  Normalizat    1.4298        .19127        .34467E-06   -.17427E-03
  22  Prefactor     .83838        .13626        .13339E-05   -.17944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 1.28662
  Prefactor  = 16.3624
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.68971
  Prefactor  = 0.000100007
  Prefactor  = 2.37788
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.02232
  norm       = 0.000100244
  Prefactor  = 0.000100001
  Prefactor  = 0.186351
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 6.32845
  Normalizat = 1.42982
  Prefactor  = 0.838383
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.203     FROM HESSE     STATUS=OK           352 CALLS     2578 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .90986        .12506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2866        18.116        .39026E-03   -1.5481    
   4  Prefactor     16.362        27.455        .99019E-04   -1.4899    
   5  Prefactor     .10000E-03    8.2083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.5042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4653        .19586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6897        10.023        .77569E-03   -1.5191    
  10  Prefactor     .10001E-03    23.699        .20180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3779        3.6735        .18727E-03   -1.5400    
  12  norm          .10000E-03    .84362E-01    .37236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9629        .16569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.0223        15.655        .17956E-03   -1.5260    
  15  norm          .10024E-03    175.56        .76299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7629        .11235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18635        1.3561        .12814E-02   -1.5622    
  18  Prefactor     .10001E-03    23.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4153        .19516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3284        2.1346        .67851E-04   -1.5205    
  21  Normalizat    1.4298        .22414        .24603E-03   -.79770    
  22  Prefactor     .83838        .16165        .23664E-03   -.98329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25838e-09
Minuit parameter uncertainties:
  1  0.000850643
  2  1.38911e-05
  3  9.65899
  4  27.4764
  5  4.14654e-05
  6  1.78053e-06
  7  0.000118635
  8  6.1767e-05
  9  10.0258
  10  0.000793384
  11  3.67385
  12  3.25857e-07
  13  1.22276e-06
  14  15.6677
  15  0.013124
  16  6.56407e-05
  17  1.00516
  18  0.00100736
  19  1.50205e-05
  20  2.13459
  21  0.224294
  22  0.161737
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  7.934e-04  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:  8.384e-01  1.617e-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.430e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/192920/likelihoodResults_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.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): 102
logL (Free Index) = 7264.20301525
delta logL = -0.000200797358957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7264.20271014
delta logL = 0.000104308677692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29821E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5998       1.0000          .0000       10.000    
     3 'Normalizat'    1.4299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83831       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=   7263.646     FROM MIGRAD    STATUS=CONVERGED    205 CALLS      382 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .33051E-02    .38659E-03** at limit **
   2  Index         8.4240        7.3583        .23199        .13150E-03
   3  Normalizat    1.3749        .39312E-01    .56541E-01   -.49188E-04
   4  Prefactor     .86581        .29845E-01    .44214E-01   -.26905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.42405
  Normalizat = 1.37493
  Prefactor  = 0.865814
 **********
 **   18 **HESSE 
 **********

 FCN=   7263.646     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      423 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .23704E-01    .20367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4240        9.0708        .10756E-01    .75434    
   3  Normalizat    1.3749        .89296E-01    .25002E-03   -.81356    
   4  Prefactor     .86581        .67960E-01    .23331E-03   -.97346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54918e-09
Minuit parameter uncertainties:
  1  5.53419e-08
  2  7.24126
  3  0.0893064
  4  0.0679665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192920': 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) = 7263.64575053
delta logL = 0.557063924124

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  5.534e-08  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  8.424e+00  7.241e+00  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:  8.658e-01  6.797e-02  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.375e+00  8.931e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 243.421 34.198
Photon Index (Free Index): 8.42 +/- 7.24
Photon Flux (Free Index): 4.51e-08 +/- 6.14e-07
Energy Flux (Free Index): 5.19e-06 +/- 7.02e-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/192920/cmap_HighResolution_604800001_605059201_4FGL_J1613.6+3411_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', comment='SUCCESS', energy_flux2='5.19e-06', dlogl='5.57e-01', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-09-13 18:10:17.593163', photon_index_error2='7.24', photon_index2='8.42', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.30e-08', energy_flux_error2='7.02e-05', EG='1.43', time_epoch_completed='1631581817.59', return_code='0', job_id='192920', GAL2='0.87', EG2='1.37', return_code2='102', photon_flux_error2='6.14e-07', ts2='1.16', photon_index='2.44' WHERE bin_id='1410' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 192920: <4FGL_J1613.6+3411_daily_bin1410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1410 243.421 34.1982 604800001 605059201 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 :                                   747.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            897 sec.

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

