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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin748
RA = 207.757, Dec = 0.4873
tmin = 433209601, tmax = 433468801
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='15872', job_status='RUN', time_executed='2021-09-08 15:23:53.538522', time_epoch_executed='1631139833.54' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15872

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15872/ft1_4FGL_J1351.0+0029_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15872/ft2_4FGL_J1351.0+0029_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15872/ft1_4FGL_J1351.0+0029_daily_bin748.fits outfile=/scratch/kocevski/15872/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin748.fits ra=207.757 dec=0.4873 rad=12.0 tmin=433209601.0 tmax=433468801.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 6.10
user 5.76
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15872/ft1_filtered_4FGL_J1351.0+0029_daily_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/15872/ft2_4FGL_J1351.0+0029_daily_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/15872/ltcube_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.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/15872/ft2_4FGL_J1351.0+0029_daily_bin748.fits
.....................!
real 16.61
user 16.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15872/ft1_filtered_4FGL_J1351.0+0029_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/15872/ft2_4FGL_J1351.0+0029_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/15872/ltcube_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.fits outfile=/scratch/kocevski/15872/expmap_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.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/15872/ltcube_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.fits
.....................!
real 192.41
user 185.84
sys 5.64

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/15872/ft1_filtered_4FGL_J1351.0+0029_daily_bin748.fits scfile=/scratch/kocevski/15872/ft2_4FGL_J1351.0+0029_daily_bin748.fits outfile=/scratch/kocevski/15872/cmap_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15872/ft1_filtered_4FGL_J1351.0+0029_daily_bin748.fits scfile=/scratch/kocevski/15872/ft2_4FGL_J1351.0+0029_daily_bin748.fits outfile=/scratch/kocevski/15872/cmap_HighResolution_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.685       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10571       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57883E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6491       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13372E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2172       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.822       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5578       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8923.760     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1572 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.684        2.0947       -.41721E-05   -.24233E-02
   2  norm          .10000E-03    5.2053       -.47575E-05** at limit **
   3  Prefactor     .10003E-03    771.52        .14348E-03** at limit **
   4  Prefactor     .10000E-03    34.465        .33267E-04** at limit **
   5  norm          2.9728        1.8233        .89235E-06   -.88355E-03
   6  Prefactor     .10002E-03    158.25        .25084E-03** at limit **
   7  norm          .10000E-03    11.436       -.97797E-06** at limit **
   8  Prefactor     1.6465        3.6478        .25025E-06    .10630E-04
   9  Prefactor     .10000E-03    10.090       -.54181E-05** at limit **
  10  Prefactor     .10000E-03    2.3205        .27941E-05** at limit **
  11  norm          14.251        1.0359       -.53004E-06   -.22651E-02
  12  Prefactor     .10000E-03    48.822       -.95543E-05** at limit **
  13  norm          3.2169        2.2448        .31164E-06   -.12834E-03
  14  Prefactor     .10000E-03    5.9993        .26548E-05** at limit **
  15  norm          .10000E-03    5.8093        .11035E-05** at limit **
  16  norm          11.822        1.0204       -.35972E-06   -.13904E-02
  17  Prefactor     .10000E-03    7.3371       -.21182E-06** at limit **
  18  norm          .10000E-03    4.1573        .38997E-06** at limit **
  19  Prefactor     .10000E-03    28.184        .15091E-04** at limit **
  20  Normalizat    1.5581        .23862        .12007E-05   -.76218E-03
  21  Prefactor     .99954        .16142       -.11141E-05   -.71090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6837
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.000100001
  norm       = 2.97281
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 1.64653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2514
  Prefactor  = 0.0001
  norm       = 3.21694
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.8216
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.55806
  Prefactor  = 0.999539
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.760     FROM HESSE     STATUS=OK           365 CALLS     1937 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.684        13.656        .29298E-02   -1.5024    
   2  norm          .10000E-03    5.2075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    19.781        .12000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9728        1.8347        .58871E-02   -1.5363    
   6  Prefactor     .10002E-03    158.09        .10541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6465        3.6780        .82205E-02   -1.5451    
   9  Prefactor     .10000E-03    10.074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.251        6.8901        .26525E-02   -1.4953    
  12  Prefactor     .10000E-03    5.9698        .90898E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2169        2.2833        .56465E-02   -1.5349    
  14  Prefactor     .10000E-03    5.9944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.7758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.822        6.7375        .29128E-02   -1.5020    
  17  Prefactor     .10000E-03    7.3258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5581        .20226        .64420E-01   -.76160    
  21  Prefactor     .99954        .13483        .46263E-01   -.92745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30526e-08
Minuit parameter uncertainties:
  1  13.6599
  2  2.41087e-06
  3  0.00154147
  4  0.000370193
  5  1.83478
  6  0.00326486
  7  9.71223e-05
  8  3.67855
  9  0.00012383
  10  1.68696e-05
  11  6.89044
  12  2.93161e-05
  13  2.28339
  14  3.29288e-05
  15  5.72707e-05
  16  6.73789
  17  5.86976e-05
  18  1.53803e-05
  19  0.000295796
  20  0.202362
  21  0.134871
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.238e-04  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.995e-01  1.349e-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.558e+00  2.024e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15872/likelihoodResults_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.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) = 8923.76081251
delta logL = -0.000471679697512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8923.76034135
delta logL = -5.21466063219e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4463       1.0000          .0000       10.000    
     3 'Normalizat'    1.5579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99965       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=   8923.760     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1071.0        .90712E-02** at limit **
   2  Index         2.4556        8.7713        .50000       -.82236E-05
   3  Normalizat    1.5581        .61038E-01    .64420E-01    .10262E-04
   4  Prefactor     .99954        .42005E-01    .46263E-01    .17366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45559
  Normalizat = 1.55807
  Prefactor  = 0.999538
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.760     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    1891.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4556        5.8848        .50000       -.53389    
   3  Normalizat    1.5581        .11171        .28493E-03   -.76159    
   4  Prefactor     .99954        .77006E-01    .23672E-03   -.92745    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28581e-08
Minuit parameter uncertainties:
  1  5.78563e-05
  2  60.8322
  3  0.111724
  4  0.0770144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15872': 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) = 8923.7603408
delta logL = 3.57285898644e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  5.786e-05  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.456e+00  6.083e+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:  9.995e-01  7.701e-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.558e+00  1.117e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/15872/cmap_HighResolution_433209601_433468801_4FGL_J1351.0+0029_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-08 15:34:52.016658', job_id='15872', GAL2='1.00', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1631140492.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='748' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 15872: <4FGL_J1351.0+0029_daily_bin748> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin748> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:42 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:22:00 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:22:00 2021
Terminated at Wed Sep  8 15:34:52 2021
Results reported at Wed Sep  8 15:34:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin748 207.757 0.4873 433209601 433468801 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            850 sec.

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

