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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin797
RA = 207.757, Dec = 0.4873
tmin = 445910401, tmax = 446169601
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='17034', job_status='RUN', time_executed='2021-09-08 15:25:42.465455', time_epoch_executed='1631139942.47' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17034

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17034/ft1_4FGL_J1351.0+0029_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17034/ft1_4FGL_J1351.0+0029_daily_bin797.fits outfile=/scratch/kocevski/17034/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin797.fits ra=207.757 dec=0.4873 rad=12.0 tmin=445910401.0 tmax=446169601.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 4.01
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.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/17034/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/17034/ltcube_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.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/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits
.....................!
real 15.48
user 15.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/17034/ltcube_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.fits outfile=/scratch/kocevski/17034/expmap_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.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/17034/ltcube_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.fits
.....................!
real 191.97
user 186.69
sys 4.73

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.0+0029 @ 207.757 0.4873

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits scfile=/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits outfile=/scratch/kocevski/17034/cmap_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.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=207.757 yref=0.4873 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits scfile=/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits outfile=/scratch/kocevski/17034/cmap_HighResolution_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.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=207.757 yref=0.4873 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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17034/Model_4FGL_J1351.0+0029_daily_bin797.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/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits.....................!
real 52.15
user 50.88
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits', '/scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits', expMap='/scratch/kocevski/17034/expmap_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.fits', expCube='/scratch/kocevski/17034/ltcube_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17034/Model_4FGL_J1351.0+0029_daily_bin797.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.0+0029'

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.616e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17034/ft1_filtered_4FGL_J1351.0+0029_daily_bin797.fits
Spacecraft file(s): /scratch/kocevski/17034/ft2_4FGL_J1351.0+0029_daily_bin797.fits
Exposure map: /scratch/kocevski/17034/expmap_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.fits
Exposure cube: /scratch/kocevski/17034/ltcube_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17034/Model_4FGL_J1351.0+0029_daily_bin797.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) = 6829.33830603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3685       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52351       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2231       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4900       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    54.216       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.175       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.726       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98337       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1292       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6829.325     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2201 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3684        10.183       -.51243E-07   -.41972E-04
   2  norm          .10000E-03    8.8324        .22462E-05** at limit **
   3  Prefactor     .10000E-03    7.2330        .58816E-06** at limit **
   4  Prefactor     .10000E-03    7.0089        .84698E-06** at limit **
   5  norm          .10000E-03    .50957       -.18315E-07** at limit **
   6  Prefactor     .10000E-03    93.727       -.20447E-06** at limit **
   7  norm          .10000E-03    33.206        .14064E-06** at limit **
   8  Prefactor     .10000E-03    2.3956       -.83219E-09** at limit **
   9  Prefactor     .10000E-03    12.869       -.16872E-06** at limit **
  10  Prefactor     .52345        4.0377       -.42075E-07   -.34725E-04
  11  norm          1.7232        1.2028        .25711E-07   -.33463E-03
  12  Prefactor     5.2230        11.486       -.62184E-07   -.30753E-04
  13  norm          2.4902        2.5093       -.38635E-07   -.94653E-05
  14  Prefactor     .10000E-03    6.8604       -.88475E-06** at limit **
  15  norm          .10000E-03    4.9004        .64714E-08** at limit **
  16  norm          54.216        13.680       -.40170E-08    .30927E-05
  17  Prefactor     18.176        22.830        .23512E-06    .10519E-04
  18  norm          .10000E-03    8.4586       -.26345E-05** at limit **
  19  Prefactor     53.717        78.849       -.10522E-04    .18265E-05
  20  Normalizat    .98327        .20417        .98678E-07    .73904E-05
  21  Prefactor     1.1292        .14377        .27301E-06   -.11715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.36844
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.523451
  norm       = 1.72322
  Prefactor  = 5.223
  norm       = 2.49019
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 54.2159
  Prefactor  = 18.1763
  norm       = 0.0001
  Prefactor  = 53.7174
  Normalizat = 0.983272
  Prefactor  = 1.12923
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.325     FROM HESSE     STATUS=OK           315 CALLS     2516 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3684        10.239        .73877E-03   -1.5165    
   2  norm          .10000E-03    8.8485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .92156        .11446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    94.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    33.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4479        .12483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .52345        4.0772        .32367E-03   -1.5563    
  11  norm          1.7232        5.8481        .16001E-02   -1.5445    
  12  Prefactor     5.2230        11.620        .87943E-03   -1.5251    
  13  norm          2.4902        2.4960        .12481E-03   -1.5392    
  14  Prefactor     .10000E-03    6.8642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9100        .17866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          54.216        13.667        .54475E-04   -1.4234    
  17  Prefactor     18.176        22.864        .93947E-04   -1.4855    
  18  norm          .10000E-03    8.4540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.717        78.858        .54721E-04   -1.4241    
  20  Normalizat    .98327        .23823        .31027E-03   -.93593    
  21  Prefactor     1.1292        .16895        .20727E-03   -.88538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90958e-10
Minuit parameter uncertainties:
  1  10.2414
  2  3.11184e-06
  3  2.00164e-06
  4  3.80499e-06
  5  1.7713e-06
  6  1.9341e-05
  7  8.97683e-06
  8  1.74007e-06
  9  2.61454e-06
  10  2.92177
  11  5.85005
  12  11.6253
  13  2.49612
  14  1.03927e-06
  15  4.12719e-07
  16  13.6674
  17  22.8748
  18  3.43887e-06
  19  79.0118
  20  0.23849
  21  0.169027
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.615e-06  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.129e+00  1.690e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.833e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17034/likelihoodResults_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.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) = 6829.32525555
delta logL = -0.000369565614164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6829.32488649
delta logL = -5.09311576025e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4562       1.0000          .0000       10.000    
     3 'Normalizat'    .98306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6829.325     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    755.30        .90712E-02** at limit **
   2  Index         2.4762        6.0998        .50000       -.14125E-04
   3  Normalizat    .98327        .41752E-01    .70134E-01    .44609E-04
   4  Prefactor     1.1292        .29793E-01    .36564E-01    .31946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47616
  Normalizat = 0.983272
  Prefactor  = 1.12923
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.325     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1903.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4762        5.3691        .50000       -.52911    
   3  Normalizat    .98327        .82038E-01    .31027E-03   -.93593    
   4  Prefactor     1.1292        .58652E-01    .20727E-03   -.88538    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29394e-08
Minuit parameter uncertainties:
  1  0.00164148
  2  53.5324
  3  0.0820486
  4  0.0586552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17034': 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) = 6829.32488586
delta logL = 1.23180143419e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.641e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.476e+00  5.353e+01  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.129e+00  5.866e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.833e-01  8.205e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/17034/cmap_HighResolution_445910401_446169601_4FGL_J1351.0+0029_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-08 15:35:37.167894', job_id='17034', GAL2='1.13', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631140537.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='797' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:35:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 17034: <4FGL_J1351.0+0029_daily_bin797> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin797> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:21 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:25:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:25:30 2021
Terminated at Wed Sep  8 15:35:37 2021
Results reported at Wed Sep  8 15:35:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin797 207.757 0.4873 445910401 446169601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.0+0029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            616 sec.

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

