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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1081
RA = 243.421, Dec = 34.1982
tmin = 519523201, tmax = 519782401
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='191301', job_status='RUN', time_executed='2021-09-13 17:52:41.276618', time_epoch_executed='1631580761.28' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191301

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191301/ft1_4FGL_J1613.6+3411_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191301/ft2_4FGL_J1613.6+3411_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191301/ft1_4FGL_J1613.6+3411_daily_bin1081.fits outfile=/scratch/kocevski/191301/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1081.fits ra=243.421 dec=34.1982 rad=12.0 tmin=519523201.0 tmax=519782401.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.01
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191301/ft1_filtered_4FGL_J1613.6+3411_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/191301/ft2_4FGL_J1613.6+3411_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/191301/ltcube_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.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/191301/ft2_4FGL_J1613.6+3411_daily_bin1081.fits
.....................!
real 11.78
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191301/ft1_filtered_4FGL_J1613.6+3411_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/191301/ft2_4FGL_J1613.6+3411_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/191301/ltcube_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.fits outfile=/scratch/kocevski/191301/expmap_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.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/191301/ltcube_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.fits
.....................!
real 190.50
user 185.98
sys 3.85

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/191301/ft1_filtered_4FGL_J1613.6+3411_daily_bin1081.fits scfile=/scratch/kocevski/191301/ft2_4FGL_J1613.6+3411_daily_bin1081.fits outfile=/scratch/kocevski/191301/cmap_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191301/ft1_filtered_4FGL_J1613.6+3411_daily_bin1081.fits scfile=/scratch/kocevski/191301/ft2_4FGL_J1613.6+3411_daily_bin1081.fits outfile=/scratch/kocevski/191301/cmap_HighResolution_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.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/191301/ft1_filtered_4FGL_J1613.6+3411_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/191301/ft2_4FGL_J1613.6+3411_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191301/Model_4FGL_J1613.6+3411_daily_bin1081.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/191301/ft1_filtered_4FGL_J1613.6+3411_daily_bin1081.fits.....................!
real 44.68
user 43.28
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .71640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0604       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.510       1.0000         .10000E-03   10000.    
     6 'norm      '    16.569       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44930       1.0000         .10000E-03   10000.    
    12 'norm      '    .42244       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2320       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59706E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .98421       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8890       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0410       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90682       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=   5334.521     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2482 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.868        .65000E-06** at limit **
   2  norm          .71641        1.0964       -.29257E-06   -.11849E-03
   3  Prefactor     5.0603        6.1184        .18290E-05   -.12743E-02
   4  Prefactor     .10000E-03    11.644       -.12393E-07** at limit **
   5  Prefactor     28.520        51.711        .28096E-05    .13292E-03
   6  norm          16.576        36.916       -.12797E-05    .54832E-04
   7  Prefactor     .10000E-03    .89593        .66714E-08** at limit **
   8  Prefactor     3.3392        46.982       -.14468E-04   -.19151E-03
   9  Prefactor     16.129        12.535        .91860E-07    .17859E-04
  10  Prefactor     .10000E-03    2.3607        .33096E-07** at limit **
  11  Prefactor     .44945        2.2886        .96151E-07   -.15375E-03
  12  norm          .42244        .18307       -.35699E-07    .10430E-03
  13  norm          .10000E-03    17.894       -.16259E-05** at limit **
  14  Prefactor     6.2312        17.372        .25897E-05   -.33503E-03
  15  norm          .10000E-03    18.402        .15866E-05** at limit **
  16  Prefactor     1.9761        1.5185       -.13530E-07   -.40451E-04
  17  Prefactor     .10000E-03    .78346       -.38585E-07** at limit **
  18  Prefactor     11.859        13.367        .12874E-08   -.10704E-04
  19  Prefactor     .98453        2.9078        .35077E-06   -.28817E-03
  20  norm          1.8891        1.2266       -.12316E-07    .47139E-04
  21  Normalizat    1.0410        .20623       -.82580E-07    .25977E-04
  22  Prefactor     .90680        .15581        .15160E-07    .30783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.71641
  Prefactor  = 5.06031
  Prefactor  = 0.0001
  Prefactor  = 28.5204
  norm       = 16.5756
  Prefactor  = 0.0001
  Prefactor  = 3.33916
  Prefactor  = 16.1287
  Prefactor  = 0.0001
  Prefactor  = 0.449452
  norm       = 0.422443
  norm       = 0.0001
  Prefactor  = 6.2312
  norm       = 0.0001
  Prefactor  = 1.97607
  Prefactor  = 0.0001
  Prefactor  = 11.8595
  Prefactor  = 0.984526
  norm       = 1.88909
  Normalizat = 1.041
  Prefactor  = 0.906797
 **********
 **   18 **HESSE 
 **********

 FCN=   5334.521     FROM HESSE     STATUS=OK           352 CALLS     2834 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .71641        1.1062        .48498E-04   -1.5539    
   3  Prefactor     5.0603        7.0115        .89372E-03   -1.5258    
   4  Prefactor     .10000E-03    11.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.520        51.487        .75032E-04   -1.4639    
   6  norm          16.576        36.667        .98394E-04   -1.4893    
   7  Prefactor     .10000E-03    .91176        .67493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3392        54.243        .22092E-03   -1.5342    
   9  Prefactor     16.129        12.547        .99727E-04   -1.4905    
  10  Prefactor     .10000E-03    2.4214        .21895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44945        7.0372        .20152E-02   -1.5574    
  12  norm          .42244        .18413        .17637E-04   -1.5578    
  13  norm          .10000E-03    18.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2312        18.386        .80402E-03   -1.5209    
  15  norm          .10000E-03    18.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9761        1.2992        .60276E-04   -1.5427    
  17  Prefactor     .10000E-03    8.4944        .10314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.859        13.373        .11633E-03   -1.5019    
  19  Prefactor     .98453        2.8904        .20153E-03   -1.5510    
  20  norm          1.8891        1.2292        .63423E-04   -1.5433    
  21  Normalizat    1.0410        .24117        .25802E-03   -.91669    
  22  Prefactor     .90680        .18194        .21747E-03   -.95904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51845e-08
Minuit parameter uncertainties:
  1  0.000114438
  2  1.10625
  3  7.01261
  4  3.48153e-06
  5  51.5673
  6  36.7173
  7  7.39541e-07
  8  26.945
  9  12.5489
  10  2.43077e-06
  11  3.557
  12  0.18413
  13  0.000174213
  14  18.4027
  15  0.000181853
  16  1.29918
  17  5.58948e-06
  18  13.3766
  19  2.89081
  20  1.22921
  21  0.241425
  22  0.182063
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  2.431e-06  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:  9.068e-01  1.821e-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.041e+00  2.414e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191301/likelihoodResults_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.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) = 5334.52303428
delta logL = -0.00197067914542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5334.52106392
delta logL = -3.18679667544e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4366       1.0000          .0000       10.000    
     3 'Normalizat'    1.0410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90687       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=   5334.521     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7870        .90712E-02** at limit **
   2  Index         2.4358        8.5798        .50000        .28952E-05
   3  Normalizat    1.0410        .62392E-02    .41206E-01   -.25960E-04
   4  Prefactor     .90680        .49686E-02    .45093E-01   -.28577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43581
  Normalizat = 1.04099
  Prefactor  = 0.906797
 **********
 **   18 **HESSE 
 **********

 FCN=   5334.521     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    188.81        .21896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4358        5.7293        .50000       -.53849    
   3  Normalizat    1.0410        .47994E-01    .25801E-03   -.91669    
   4  Prefactor     .90680        .38212E-01    .21747E-03   -.95904    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.94412e-08
Minuit parameter uncertainties:
  1  0.000152558
  2  514.134
  3  0.0479959
  4  0.0382136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191301': 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) = 5334.5210636
delta logL = 1.04864739114e-09

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.000e-04  1.526e-04  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.436e+00  5.141e+02  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:  9.068e-01  3.821e-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.041e+00  4.800e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/191301/cmap_HighResolution_519523201_519782401_4FGL_J1613.6+3411_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-13 18:03:14.407131', job_id='191301', GAL2='0.91', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631581394.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.05e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1081' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:03:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1081 243.421 34.1982 519523201 519782401 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 :                                   628.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            768 sec.

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

