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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin640
RA = 207.757, Dec = 0.4873
tmin = 405216001, tmax = 405475201
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='15697', job_status='RUN', time_executed='2021-09-08 15:25:44.808930', time_epoch_executed='1631139944.81' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15697/ft1_4FGL_J1351.0+0029_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15697/ft2_4FGL_J1351.0+0029_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15697/ft1_4FGL_J1351.0+0029_daily_bin640.fits outfile=/scratch/kocevski/15697/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin640.fits ra=207.757 dec=0.4873 rad=12.0 tmin=405216001.0 tmax=405475201.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.52
user 3.21
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15697/ft1_filtered_4FGL_J1351.0+0029_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/15697/ft2_4FGL_J1351.0+0029_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/15697/ltcube_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.fits outfile=/scratch/kocevski/15697/expmap_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.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/15697/ltcube_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.fits
.....................!
real 196.32
user 185.94
sys 5.26

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/15697/ft1_filtered_4FGL_J1351.0+0029_daily_bin640.fits scfile=/scratch/kocevski/15697/ft2_4FGL_J1351.0+0029_daily_bin640.fits outfile=/scratch/kocevski/15697/cmap_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15697/ft1_filtered_4FGL_J1351.0+0029_daily_bin640.fits scfile=/scratch/kocevski/15697/ft2_4FGL_J1351.0+0029_daily_bin640.fits outfile=/scratch/kocevski/15697/cmap_HighResolution_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.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.58
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15697/ft1_filtered_4FGL_J1351.0+0029_daily_bin640.fits', '/scratch/kocevski/15697/ft2_4FGL_J1351.0+0029_daily_bin640.fits', expMap='/scratch/kocevski/15697/expmap_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.fits', expCube='/scratch/kocevski/15697/ltcube_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15697/Model_4FGL_J1351.0+0029_daily_bin640.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/15697/ft1_filtered_4FGL_J1351.0+0029_daily_bin640.fits
Spacecraft file(s): /scratch/kocevski/15697/ft2_4FGL_J1351.0+0029_daily_bin640.fits
Exposure map: /scratch/kocevski/15697/expmap_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.fits
Exposure cube: /scratch/kocevski/15697/ltcube_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15697/Model_4FGL_J1351.0+0029_daily_bin640.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) = 5370.73548578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.950       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4816       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5328       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22688E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.117       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.064       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2049       1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    131.27       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2299       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98683       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5370.716     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     2600 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2006        .18142E-02** at limit **
   2  norm          .10000E-03    5.3452        .16547E-02** at limit **
   3  Prefactor     2.7751        50.950        .24202E-03    .15751E-03
   4  Prefactor     13.948        11.366        .10724E-03   -.46963E-04
   5  norm          2.4812        2.0265        .88852E-04    .24797E-03
   6  Prefactor     .10000E-03    25.091        .18142E-02** at limit **
   7  norm          .10001E-03    52.743        .18142E-02** at limit **
   8  Prefactor     2.5312        4.5925        .19828E-03   -.91165E-04
   9  Prefactor     .10000E-03    7.6068        .18142E-02** at limit **
  10  Prefactor     .33659E-01    6.1228        .48627E-01    .12822E-03
  11  norm          .10000E-03    2.0040        .10129E-02** at limit **
  12  Prefactor     21.116        15.147        .87161E-04   -.75651E-04
  13  norm          1.8837        3.1495        .16026E-03    .15536E-04
  14  Prefactor     26.060        29.851        .78467E-04   -.47812E-05
  15  norm          5.2070        9.5327        .17620E-03   -.24002E-04
  16  norm          .10000E-03    5.7886        .17186E-02** at limit **
  17  Prefactor     .10000E-03    9.1014        .18142E-02** at limit **
  18  norm          .10000E-03    13.170        .18142E-02** at limit **
  19  Prefactor     131.23        124.64        .17572E-03    .87924E-04
  20  Normalizat    1.2304        .29322        .28657E-03   -.18959E-03
  21  Prefactor     .98638        .19782        .22266E-03   -.66025E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.77512
  Prefactor  = 13.9485
  norm       = 2.4812
  Prefactor  = 0.000100001
  norm       = 0.000100007
  Prefactor  = 2.53121
  Prefactor  = 0.0001
  Prefactor  = 0.0336586
  norm       = 0.0001
  Prefactor  = 21.1159
  norm       = 1.88371
  Prefactor  = 26.0604
  norm       = 5.20699
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 131.233
  Normalizat = 1.23042
  Prefactor  = 0.986375
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.716     FROM HESSE     STATUS=OK           305 CALLS     2905 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.2075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.3452        .33093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7751        50.935        .96807E-05   -1.5375    
   4  Prefactor     13.948        11.365        .42896E-05   -1.4961    
   5  norm          2.4812        2.0264        .35541E-05   -1.5393    
   6  Prefactor     .10000E-03    25.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    52.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5312        4.5918        .79312E-05   -1.5390    
   9  Prefactor     .10000E-03    7.6074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33659E-01    5.9292        .49692E-01   -1.5671    
  11  norm          .10000E-03    2.0040        .20258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.116        15.146        .34864E-05   -1.4789    
  13  norm          1.8837        3.1491        .64104E-05   -1.5433    
  14  Prefactor     26.060        29.857        .31387E-05   -1.4687    
  15  norm          5.2070        9.5329        .70479E-05   -1.5252    
  16  norm          .10000E-03    5.7892        .34373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     131.23        124.63        .35144E-04   -1.3412    
  20  Normalizat    1.2304        .29344        .57314E-04   -.85668    
  21  Prefactor     .98638        .19798        .44531E-04   -.93185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13965e-09
Minuit parameter uncertainties:
  1  0.000200773
  2  5.53289e-06
  3  23.8014
  4  11.3672
  5  2.02645
  6  0.000260316
  7  0.00122584
  8  4.59241
  9  9.36761e-06
  10  0.892226
  11  7.63016e-07
  12  15.1492
  13  3.14936
  14  29.8739
  15  9.53569
  16  4.10814e-05
  17  7.61618e-05
  18  7.96154e-06
  19  124.884
  20  0.293836
  21  0.198127
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  9.368e-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:  9.864e-01  1.981e-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:  1.230e+00  2.938e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15697/likelihoodResults_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.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) = 5370.71647822
delta logL = -0.000622199418103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5370.71585602
delta logL = 3.23780113831e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4199       1.0000          .0000       10.000    
     3 'Normalizat'    1.2304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98642       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5370.716     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    102.30        .18142E-02** at limit **
   2  Index         2.3410        8.3077        .50000        .15915E-04
   3  Normalizat    1.2304        .21085E-01    .28657E-03   -.67839E-05
   4  Prefactor     .98638        .14942E-01    .22266E-03    .96501E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101956
  Index      = 2.34098
  Normalizat = 1.23041
  Prefactor  = 0.986381
 **********
 **   18 **HESSE 
 **********

 FCN=   5370.716     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10196E-03    416.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3410        8.7618        .50000       -.56073    
   3  Normalizat    1.2304        .44851E-01    .11463E-04   -.85668    
   4  Prefactor     .98638        .31783E-01    .89063E-05   -.93185    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.83588e-08
Minuit parameter uncertainties:
  1  0.0575058
  2  947.771
  3  0.0448525
  4  0.0317835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15697': 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) = 5370.71585574
delta logL = 2.77619619737e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.020e-04  5.751e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.341e+00  9.478e+02  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:  9.864e-01  3.178e-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:  1.230e+00  4.485e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/15697/cmap_HighResolution_405216001_405475201_4FGL_J1351.0+0029_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-08 15:35:15.059559', job_id='15697', GAL2='0.99', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631140515.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='640' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:35:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 15697: <4FGL_J1351.0+0029_daily_bin640> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin640> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:27 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:21:38 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:21:38 2021
Terminated at Wed Sep  8 15:35:15 2021
Results reported at Wed Sep  8 15:35:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin640 207.757 0.4873 405216001 405475201 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 :                                   564.54 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            888 sec.

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

