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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1434
RA = 243.421, Dec = 34.1982
tmin = 611020801, tmax = 611280001
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='192966', job_status='RUN', time_executed='2021-09-13 17:59:53.265293', time_epoch_executed='1631581193.27' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192966/ft1_4FGL_J1613.6+3411_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192966/ft1_4FGL_J1613.6+3411_daily_bin1434.fits outfile=/scratch/kocevski/192966/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1434.fits ra=243.421 dec=34.1982 rad=12.0 tmin=611020801.0 tmax=611280001.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.72
user 3.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.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/192966/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1434.fits evtable="EVENTS" outfile="/scratch/kocevski/192966/ft1_filtered_4FGL_J1613.6+3411_daily_bin1434.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.60
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192966/ft1_filtered_4FGL_J1613.6+3411_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/192966/ltcube_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.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/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.fits
.....................!
real 14.63
user 14.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192966/ft1_filtered_4FGL_J1613.6+3411_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/192966/ltcube_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.fits outfile=/scratch/kocevski/192966/expmap_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.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/192966/ltcube_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.fits
.....................!
real 192.50
user 186.28
sys 5.20

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/192966/ft1_filtered_4FGL_J1613.6+3411_daily_bin1434.fits scfile=/scratch/kocevski/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.fits outfile=/scratch/kocevski/192966/cmap_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192966/ft1_filtered_4FGL_J1613.6+3411_daily_bin1434.fits scfile=/scratch/kocevski/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.fits outfile=/scratch/kocevski/192966/cmap_HighResolution_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.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/192966/ft1_filtered_4FGL_J1613.6+3411_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/192966/ft2_4FGL_J1613.6+3411_daily_bin1434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192966/Model_4FGL_J1613.6+3411_daily_bin1434.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/192966/ft1_filtered_4FGL_J1613.6+3411_daily_bin1434.fits.....................!
real 47.22
user 45.84
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.3579       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11956E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33496E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30341E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4298       1.0000         .10000E-03   10000.    
    12 'norm      '    .16977       1.0000         .10000E-03   10000.    
    13 'norm      '    10.287       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53696       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5584       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0179       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78622       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=   5709.513     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2472 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.291        .25921E-05** at limit **
   2  norm          3.3578        1.8316       -.22094E-06   -.20988E-04
   3  Prefactor     11.702        13.359        .13296E-05   -.26996E-04
   4  Prefactor     .10000E-03    109.30       -.41816E-05** at limit **
   5  Prefactor     .10000E-03    4.2844       -.74351E-07** at limit **
   6  norm          .10000E-03    2.8675        .11920E-07** at limit **
   7  Prefactor     .10000E-03    1.2548       -.78750E-07** at limit **
   8  Prefactor     .10001E-03    58.184        .29616E-04** at limit **
   9  Prefactor     .10000E-03    4.9638        .28023E-07** at limit **
  10  Prefactor     .84560        2.1571       -.54871E-06   -.11020E-02
  11  Prefactor     6.4292        4.1786       -.18577E-06   -.10224E-03
  12  norm          .16976        .10608        .33890E-08   -.20283E-04
  13  norm          10.283        20.888        .13658E-05    .35270E-04
  14  Prefactor     .10000E-03    4.1616        .75757E-07** at limit **
  15  norm          .10000E-03    26.372       -.45102E-05** at limit **
  16  Prefactor     .10000E-03    .47229        .33735E-07** at limit **
  17  Prefactor     1.9691        1.0925        .36006E-07    .20469E-03
  18  Prefactor     43.963        21.448        .31788E-06   -.16025E-06
  19  Prefactor     .53482        2.5503       -.94662E-06   -.44378E-03
  20  norm          4.5583        2.0087        .39821E-07    .21194E-03
  21  Normalizat    1.0180        .18810        .14508E-06   -.35036E-04
  22  Prefactor     .78623        .14144       -.20953E-06   -.38592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.35781
  Prefactor  = 11.7017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.845598
  Prefactor  = 6.42918
  norm       = 0.169762
  norm       = 10.2828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96914
  Prefactor  = 43.9628
  Prefactor  = 0.534818
  norm       = 4.55834
  Normalizat = 1.01797
  Prefactor  = 0.786234
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.513     FROM HESSE     STATUS=OK           350 CALLS     2822 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3578        1.8545        .58784E-04   -1.5341    
   3  Prefactor     11.702        13.469        .11708E-03   -1.5024    
   4  Prefactor     .10000E-03    110.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2852        .15275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8681        .12496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2199        .16167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    56.174        .42770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0058        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .84560        2.0684        .17258E-02   -1.5524    
  11  Prefactor     6.4292        4.1756        .11603E-03   -1.5201    
  12  norm          .16976        .10489        .18492E-04   -1.5626    
  13  norm          10.283        20.811        .12493E-03   -1.5067    
  14  Prefactor     .10000E-03    4.1649        .15053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    26.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .62739        .94260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9691        1.0302        .52246E-04   -1.5427    
  18  Prefactor     43.963        21.430        .60462E-04   -1.4381    
  19  Prefactor     .53482        4.7782        .22270E-02   -1.5562    
  20  norm          4.5583        2.0054        .68051E-04   -1.5281    
  21  Normalizat    1.0180        .21652        .24871E-03   -.92431    
  22  Prefactor     .78623        .16413        .21890E-03   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57438e-10
Minuit parameter uncertainties:
  1  9.09496e-07
  2  1.85455
  3  13.4726
  4  0.000416071
  5  4.14905e-07
  6  3.62617e-07
  7  2.78771e-05
  8  0.00107355
  9  3.87745e-07
  10  2.06857
  11  4.17584
  12  0.104887
  13  20.8254
  14  9.4224e-07
  15  1.1874e-05
  16  2.65132e-06
  17  1.03022
  18  21.4337
  19  3.19719
  20  2.00544
  21  0.216703
  22  0.164236
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  8.456e-01  2.069e+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.862e-01  1.642e-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.018e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/192966/likelihoodResults_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.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) = 5709.40319967
delta logL = 0.110011591634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5709.39721997
delta logL = 0.11599128574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2731       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8592       1.0000          .0000       10.000    
     3 'Normalizat'    1.0228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78293       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=   5709.397     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      233 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2731        2.4259        .98519E-02    .12411E-02
   2  Index         1.8592        1.0276        .26668E-01   -.43948E-04
   3  Normalizat    1.0227        .17797        .42976E-01   -.51496E-04
   4  Prefactor     .78294        .13995        .43495E-01    .51959E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27313
  Index      = 1.85923
  Normalizat = 1.02275
  Prefactor  = 0.782939
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.397     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2731        2.3923        .15747E-03   -1.5482    
   2  Index         1.8592        1.0384        .10667E-02   -.67918    
   3  Normalizat    1.0227        .20547        .24815E-03   -.92272    
   4  Prefactor     .78294        .16163        .21926E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6208e-10
Minuit parameter uncertainties:
  1  2.39245
  2  1.05114
  3  0.205632
  4  0.161724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192966': 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) = 5709.39721997
delta logL = 0.115991289225

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.273e+00  2.392e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  1.859e+00  1.051e+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:  7.829e-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.023e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/192966/cmap_HighResolution_611020801_611280001_4FGL_J1613.6+3411_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.23e-08', time_completed='2021-09-13 18:11:02.251724', job_id='192966', GAL2='0.78', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631581862.25', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.16e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1434' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 192966: <4FGL_J1613.6+3411_daily_bin1434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1434 243.421 34.1982 611020801 611280001 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 :                                   662.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            939 sec.

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

