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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1054
RA = 243.421, Dec = 34.1982
tmin = 512524801, tmax = 512784001
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='191259', job_status='RUN', time_executed='2021-09-13 17:52:39.827607', time_epoch_executed='1631580759.83' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1054'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191259

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191259/ft1_4FGL_J1613.6+3411_daily_bin1054.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191259/ft2_4FGL_J1613.6+3411_daily_bin1054.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191259/ft1_4FGL_J1613.6+3411_daily_bin1054.fits outfile=/scratch/kocevski/191259/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1054.fits ra=243.421 dec=34.1982 rad=12.0 tmin=512524801.0 tmax=512784001.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.64
user 3.41
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191259/ft1_filtered_4FGL_J1613.6+3411_daily_bin1054.fits" evtable="EVENTS" scfile=/scratch/kocevski/191259/ft2_4FGL_J1613.6+3411_daily_bin1054.fits sctable="SC_DATA" outfile=/scratch/kocevski/191259/ltcube_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.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/191259/ft2_4FGL_J1613.6+3411_daily_bin1054.fits
.....................!
real 12.42
user 12.10
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191259/ft1_filtered_4FGL_J1613.6+3411_daily_bin1054.fits evtable="EVENTS" scfile=/scratch/kocevski/191259/ft2_4FGL_J1613.6+3411_daily_bin1054.fits sctable="SC_DATA" expcube=/scratch/kocevski/191259/ltcube_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.fits outfile=/scratch/kocevski/191259/expmap_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.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/191259/ltcube_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.fits
.....................!
real 189.98
user 185.55
sys 4.07

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/191259/ft1_filtered_4FGL_J1613.6+3411_daily_bin1054.fits scfile=/scratch/kocevski/191259/ft2_4FGL_J1613.6+3411_daily_bin1054.fits outfile=/scratch/kocevski/191259/cmap_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191259/ft1_filtered_4FGL_J1613.6+3411_daily_bin1054.fits scfile=/scratch/kocevski/191259/ft2_4FGL_J1613.6+3411_daily_bin1054.fits outfile=/scratch/kocevski/191259/cmap_HighResolution_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.977       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1373       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72226E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8434       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6832       1.0000         .10000E-03   10000.    
    12 'norm      '    .50454       1.0000         .10000E-03   10000.    
    13 'norm      '    .11185E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46559E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    73.900       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11238E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4315       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2531       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .49936       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2760       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=   7360.066     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2458 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.945        71.393        .69178E-06    .72230E-05
   2  norm          3.1377        1.5413        .29149E-07   -.20716E-04
   3  Prefactor     7.0322        8.9582       -.14014E-07   -.12189E-04
   4  Prefactor     .10000E-03    18.685       -.61589E-07** at limit **
   5  Prefactor     .19581E-02    9.2952       -.74215E-06** at limit **
   6  norm          .10000E-03    13.180        .11585E-06** at limit **
   7  Prefactor     .10000E-03    .67345       -.17936E-07** at limit **
   8  Prefactor     11.485        19.527        .25639E-05   -.91858E-04
   9  Prefactor     4.8444        5.9909        .46159E-07   -.12516E-04
  10  Prefactor     .10000E-03    2.6840        .10405E-07** at limit **
  11  Prefactor     1.6841        3.0943       -.36615E-06   -.12750E-03
  12  norm          .50434        .18690       -.78439E-07    .67354E-02
  13  norm          .10000E-03    5.2136        .13146E-06** at limit **
  14  Prefactor     .10001E-03    13.933       -.36532E-06** at limit **
  15  norm          73.805        54.471        .19658E-05    .12580E-03
  16  Prefactor     .65747        1.3645        .21201E-05    .79953E-03
  17  Prefactor     .10000E-03    .68320       -.16256E-05** at limit **
  18  Prefactor     .10000E-03    10.230       -.85509E-08** at limit **
  19  Prefactor     3.4304        3.9416       -.46921E-06    .41550E-03
  20  norm          1.2530        .98076       -.18480E-06    .27618E-02
  21  Normalizat    .49920        .19376       -.10824E-05    .31875E-03
  22  Prefactor     1.2759        .14283        .93679E-07    .49871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.9453
  norm       = 3.1377
  Prefactor  = 7.03215
  Prefactor  = 0.0001
  Prefactor  = 0.00195808
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4849
  Prefactor  = 4.84439
  Prefactor  = 0.0001
  Prefactor  = 1.6841
  norm       = 0.504345
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 73.8054
  Prefactor  = 0.657471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43044
  norm       = 1.25302
  Normalizat = 0.499198
  Prefactor  = 1.27593
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.066     FROM HESSE     STATUS=OK           356 CALLS     2814 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.945        71.348        .55629E-04   -1.4265    
   2  norm          3.1377        1.5479        .64032E-04   -1.5354    
   3  Prefactor     7.0322        9.0053        .15131E-03   -1.5178    
   4  Prefactor     .10000E-03    18.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19581E-02    14.252        .93996E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .68148        .68732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.485        19.399        .11819E-03   -1.5030    
   9  Prefactor     4.8444        5.9878        .18279E-03   -1.5268    
  10  Prefactor     .10000E-03    2.7794        .27384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6841        3.0440        .18760E-03   -1.5448    
  12  norm          .50434        .17330        .18081E-04   -1.5566    
  13  norm          .10000E-03    5.2146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    59.342        .56592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          73.805        54.965        .23352E-03   -1.3988    
  16  Prefactor     .65747        1.4324        .11746E-03   -1.5546    
  17  Prefactor     .10000E-03    1.2333        .12984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4304        3.8719        .16214E-03   -1.5338    
  20  norm          1.2530        .98815        .36414E-03   -1.5484    
  21  Normalizat    .49920        .20786        .36342E-03   -1.1245    
  22  Prefactor     1.2759        .15707        .18746E-03   -.84026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05927e-09
Minuit parameter uncertainties:
  1  71.4656
  2  1.54793
  3  9.00702
  4  2.25811e-05
  5  0.325543
  6  2.27944e-05
  7  1.63223e-06
  8  19.41
  9  5.9885
  10  1.20329e-05
  11  3.04427
  12  0.173303
  13  2.90409e-05
  14  0.0014163
  15  55.0032
  16  1.43246
  17  3.55981e-06
  18  1.84104e-05
  19  3.87215
  20  0.988168
  21  0.208187
  22  0.157126
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.203e-05  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.276e+00  1.571e-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:  4.992e-01  2.082e-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: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191259/likelihoodResults_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.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) = 7360.06774384
delta logL = -0.00171639806103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7360.06602933
delta logL = -1.89257298189e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12587E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4953       1.0000          .0000       10.000    
     3 'Normalizat'    .49900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2761       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=   7359.329     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      282 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64575E-01    .10686        .42686E-02   -.42729E-02
   2  Index         5.0971        .73096        .13036        .17088E-03
   3  Normalizat    .41959        .19617        .89294E-01    .51898E-04
   4  Prefactor     1.3150        .15020        .33040E-01   -.19450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0645751
  Index      = 5.09711
  Normalizat = 0.419594
  Prefactor  = 1.31503
 **********
 **   18 **HESSE 
 **********

 FCN=   7359.329     FROM HESSE     STATUS=OK            35 CALLS      317 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64575E-01    .26756        .19758E-03   -1.5759    
   2  Index         5.0971        2.1127        .65851E-02    .19423E-01
   3  Normalizat    .41959        .20361        .39557E-03   -1.1630    
   4  Prefactor     1.3150        .15862        .18505E-03   -.82861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72429e-11
Minuit parameter uncertainties:
  1  0.262689
  2  2.18123
  3  0.203973
  4  0.158683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191259': 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) = 7359.32875997
delta logL = 0.737267472757

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.458e-02  2.627e-01  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  5.097e+00  2.181e+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:  1.315e+00  1.587e-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:  4.196e-01  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 243.421 34.198
Photon Index (Free Index): 5.10 +/- 2.18
Photon Flux (Free Index): 5.60e-08 +/- 4.43e-07
Energy Flux (Free Index): 7.38e-06 +/- 5.73e-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/191259/cmap_HighResolution_512524801_512784001_4FGL_J1613.6+3411_daily_bin1054.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', comment='SUCCESS', energy_flux2='7.38e-06', dlogl='7.37e-01', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-13 18:04:55.793111', photon_index_error2='2.18', photon_index2='5.10', ts='-0.00', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='7.01e-08', energy_flux_error2='5.73e-05', EG='0.50', time_epoch_completed='1631581495.79', return_code='0', job_id='191259', GAL2='1.32', EG2='0.42', return_code2='0', photon_flux_error2='4.43e-07', ts2='1.63', photon_index='2.44' WHERE bin_id='1054' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 191259: <4FGL_J1613.6+3411_daily_bin1054> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1054 243.421 34.1982 512524801 512784001 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 :                                   732.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            872 sec.

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

