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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1016
RA = 243.421, Dec = 34.1982
tmin = 502675201, tmax = 502934401
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='191196', job_status='RUN', time_executed='2021-09-13 17:52:58.624926', time_epoch_executed='1631580778.62' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191196

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191196/ft1_4FGL_J1613.6+3411_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191196/ft2_4FGL_J1613.6+3411_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191196/ft1_4FGL_J1613.6+3411_daily_bin1016.fits outfile=/scratch/kocevski/191196/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1016.fits ra=243.421 dec=34.1982 rad=12.0 tmin=502675201.0 tmax=502934401.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.62
user 3.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191196/ft1_filtered_4FGL_J1613.6+3411_daily_bin1016.fits" evtable="EVENTS" scfile=/scratch/kocevski/191196/ft2_4FGL_J1613.6+3411_daily_bin1016.fits sctable="SC_DATA" outfile=/scratch/kocevski/191196/ltcube_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.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/191196/ft2_4FGL_J1613.6+3411_daily_bin1016.fits
.....................!
real 14.91
user 14.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191196/ft1_filtered_4FGL_J1613.6+3411_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/191196/ft2_4FGL_J1613.6+3411_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/191196/ltcube_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.fits outfile=/scratch/kocevski/191196/expmap_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.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/191196/ltcube_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.fits
.....................!
real 191.92
user 187.19
sys 4.05

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/191196/ft1_filtered_4FGL_J1613.6+3411_daily_bin1016.fits scfile=/scratch/kocevski/191196/ft2_4FGL_J1613.6+3411_daily_bin1016.fits outfile=/scratch/kocevski/191196/cmap_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191196/ft1_filtered_4FGL_J1613.6+3411_daily_bin1016.fits scfile=/scratch/kocevski/191196/ft2_4FGL_J1613.6+3411_daily_bin1016.fits outfile=/scratch/kocevski/191196/cmap_HighResolution_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4574       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.969       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 '    2.4682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1043       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.386       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9769       1.0000         .10000E-03   10000.    
    12 'norm      '    .70068       1.0000         .10000E-03   10000.    
    13 'norm      '    8.1808       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.958       1.0000         .10000E-03   10000.    
    15 'norm      '    4.3115       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55848       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1449       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19667E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4947       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9404       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85664       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6928.918     FROM MIGRAD    STATUS=CONVERGED     75 CALLS     1989 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4558        1.1242       -.20947E-06    .50805E-03
   2  norm          3.2294        1.4111       -.15840E-06   -.24600E-04
   3  Prefactor     .10000E-03    12.295        .12805E-05** at limit **
   4  Prefactor     29.978        2.5423        .21516E-06   -.26086E-02
   5  Prefactor     .10000E-03    5.3566        .26517E-05** at limit **
   6  norm          .10000E-03    5.3902       -.29604E-05** at limit **
   7  Prefactor     2.4688        2.5281        .81779E-07    .29670E-04
   8  Prefactor     5.1018        1.1857        .54389E-07   -.28105E-03
   9  Prefactor     11.387        1.1359       -.17550E-06    .13269E-02
  10  Prefactor     5.1460        3.9016       -.12897E-05   -.31404E-03
  11  Prefactor     2.9767        2.7117        .37613E-06    .44008E-04
  12  norm          .70088        .18369        .59899E-07   -.75045E-04
  13  norm          8.1804        1.0082       -.11582E-07   -.31860E-04
  14  Prefactor     18.940        4.6369       -.41355E-06    .26151E-02
  15  norm          4.3174        1.9344        .55531E-06   -.12370E-02
  16  Prefactor     .55528        1.7262        .78036E-06   -.42684E-04
  17  Prefactor     2.1469        1.8028       -.31309E-06   -.72139E-04
  18  Prefactor     .10028E-03    116.55       -.37319E-05** at limit **
  19  Prefactor     3.4947        3.1790       -.19304E-05   -.27770E-03
  20  norm          1.9404        1.2620        .44396E-07   -.24644E-04
  21  Normalizat    .85693        .21929        .25980E-05    .20437E-05
  22  Prefactor     1.0238        .16535       -.66163E-06    .12707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.45577
  norm       = 3.22943
  Prefactor  = 0.0001
  Prefactor  = 29.9781
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.46876
  Prefactor  = 5.10176
  Prefactor  = 11.3871
  Prefactor  = 5.14604
  Prefactor  = 2.97673
  norm       = 0.700884
  norm       = 8.18036
  Prefactor  = 18.9401
  norm       = 4.31737
  Prefactor  = 0.555284
  Prefactor  = 2.14688
  Prefactor  = 0.000100278
  Prefactor  = 3.49472
  norm       = 1.9404
  Normalizat = 0.856934
  Prefactor  = 1.02383
 **********
 **   18 **HESSE 
 **********

 FCN=   6928.918     FROM HESSE     STATUS=OK           402 CALLS     2391 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4558        227.96        .47681E-02   -1.5286    
   2  norm          3.2294        1.4259        .56372E-02   -1.5349    
   3  Prefactor     .10000E-03    12.126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.978        27.918        .18297E-02   -1.4612    
   5  Prefactor     .10000E-03    5.3631        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4688        2.5466        .65071E-02   -1.5394    
   8  Prefactor     5.1018        17.683        .44490E-02   -1.5256    
   9  Prefactor     11.387        12.760        .29682E-02   -1.5033    
  10  Prefactor     5.1460        3.9148        .44300E-02   -1.5254    
  11  Prefactor     2.9767        2.7282        .58829E-02   -1.5363    
  12  norm          .70088        .20079        .37760E-02   -1.5541    
  13  norm          8.1804        12.986        .35043E-02   -1.5136    
  14  Prefactor     18.940        24.894        .22997E-02   -1.4837    
  15  norm          4.3174        102.35        .48503E-02   -1.5292    
  16  Prefactor     .55528        2.0970        .11507E-01   -1.5559    
  17  Prefactor     2.1469        2.0750        .70347E-02   -1.5415    
  18  Prefactor     .10028E-03    12.628        .10122       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4947        3.2818        .54071E-02   -1.5334    
  20  norm          1.9404        1.2597        .74511E-02   -1.5429    
  21  Normalizat    .85693        .19109        .67066E-01   -.97990    
  22  Prefactor     1.0238        .14327        .41762E-01   -.91939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04121e-07
Minuit parameter uncertainties:
  1  63.9995
  2  1.42588
  3  1.65181e-05
  4  27.9306
  5  8.32302e-05
  6  8.12436e-05
  7  2.54669
  8  17.7006
  9  12.763
  10  3.91497
  11  2.72836
  12  0.200786
  13  12.9907
  14  24.9074
  15  42.1231
  16  2.09731
  17  2.0751
  18  0.00374878
  19  3.28193
  20  1.25975
  21  0.191239
  22  0.143322
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.146e+00  3.915e+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.024e+00  1.433e-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:  8.569e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/191196/likelihoodResults_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.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) = 6928.82082485
delta logL = 0.0975667015691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6928.81519663
delta logL = 0.103194923256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4593       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1337       1.0000          .0000       10.000    
     3 'Normalizat'    .87466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0164       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=   6928.815     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4543        128.74        .42993E-02    .18751E-03
   2  Index         2.1326        5.8850        .25072        .18191E-04
   3  Normalizat    .87485        .95798E-01    .66450E-01   -.10933E-04
   4  Prefactor     1.0163        .58571E-01    .42518E-01   -.19042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.45428
  Index      = 2.13256
  Normalizat = 0.874851
  Prefactor  = 1.01626
 **********
 **   18 **HESSE 
 **********

 FCN=   6928.815     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4543        4.4588        .15071E-03   -1.5241    
   2  Index         2.1326        .67465        .88518E-02   -.61076    
   3  Normalizat    .87485        .21221        .29396E-03   -.97350    
   4  Prefactor     1.0163        .16414        .21549E-03   -.92190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71761e-11
Minuit parameter uncertainties:
  1  4.4591
  2  0.677737
  3  0.212408
  4  0.164219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191196': 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) = 6928.81519455
delta logL = 0.10319699797

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.454e+00  4.459e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.133e+00  6.777e-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.016e+00  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:  8.749e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.13 +/- 0.68
Photon Flux (Free Index): 3.85e-08 +/- 4.70e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.85e-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/191196/cmap_HighResolution_502675201_502934401_4FGL_J1613.6+3411_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='1.97e-05', photon_flux_error='4.07e-08', dlogl='1.03e-01', energy_flux='1.67e-05', photon_flux2='3.85e-08', job_status='DONE', time_completed='2021-09-13 18:04:39.274688', photon_index_error2='0.68', photon_index2='2.13', ts='2.87', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.85e-05', EG='0.86', time_epoch_completed='1631581479.27', return_code='0', job_id='191196', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.70e-08', ts2='3.04', photon_index='2.44' WHERE bin_id='1016' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:04:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 191196: <4FGL_J1613.6+3411_daily_bin1016> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1016 243.421 34.1982 502675201 502934401 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 :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            860 sec.

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

