/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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin47
RA = 207.757, Dec = 0.4873
tmin = 251510401, tmax = 251769601
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='11851', job_status='RUN', time_executed='2021-09-08 15:10:51.344993', time_epoch_executed='1631139051.35' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11851/ft1_4FGL_J1351.0+0029_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11851/ft2_4FGL_J1351.0+0029_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11851/ft1_4FGL_J1351.0+0029_daily_bin47.fits outfile=/scratch/kocevski/11851/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin47.fits ra=207.757 dec=0.4873 rad=12.0 tmin=251510401.0 tmax=251769601.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 1.48
user 1.29
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/11851/ft2_4FGL_J1351.0+0029_daily_bin47.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/11851/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin47.fits evtable="EVENTS" outfile="/scratch/kocevski/11851/ft1_filtered_4FGL_J1351.0+0029_daily_bin47.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11851/ft1_filtered_4FGL_J1351.0+0029_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/11851/ft2_4FGL_J1351.0+0029_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/11851/ltcube_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.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/11851/ft2_4FGL_J1351.0+0029_daily_bin47.fits
.....................!
real 15.74
user 15.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11851/ft1_filtered_4FGL_J1351.0+0029_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/11851/ft2_4FGL_J1351.0+0029_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/11851/ltcube_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.fits outfile=/scratch/kocevski/11851/expmap_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.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/11851/ltcube_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.fits
.....................!
real 193.88
user 186.47
sys 5.22

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/11851/ft1_filtered_4FGL_J1351.0+0029_daily_bin47.fits scfile=/scratch/kocevski/11851/ft2_4FGL_J1351.0+0029_daily_bin47.fits outfile=/scratch/kocevski/11851/cmap_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11851/ft1_filtered_4FGL_J1351.0+0029_daily_bin47.fits scfile=/scratch/kocevski/11851/ft2_4FGL_J1351.0+0029_daily_bin47.fits outfile=/scratch/kocevski/11851/cmap_HighResolution_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.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/11851/ft1_filtered_4FGL_J1351.0+0029_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/11851/ft2_4FGL_J1351.0+0029_daily_bin47.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/11851/Model_4FGL_J1351.0+0029_daily_bin47.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/11851/ft1_filtered_4FGL_J1351.0+0029_daily_bin47.fits.....................!
real 68.81
user 66.86
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   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 '    .18106E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.803       1.0000         .10000E-03   10000.    
     7 'norm      '    27.956       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35394E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.9261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6551       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0863       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5162       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.777       1.0000         .10000E-03   10000.    
    18 'norm      '    .10729E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3940       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71415       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=   9271.940     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2212 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3209       -.33613E-07** at limit **
   2  norm          .10000E-03    7.1483       -.35942E-05** at limit **
   3  Prefactor     .10000E-03    4.0690        .32614E-06** at limit **
   4  Prefactor     .10000E-03    4.6006       -.63341E-06** at limit **
   5  norm          5.5759        1.4837       -.49395E-07   -.98014E-04
   6  Prefactor     44.807        40.636        .46722E-05    .23486E-04
   7  norm          27.955        24.244       -.15392E-05   -.78748E-06
   8  Prefactor     .10000E-03    1.3550       -.35319E-06** at limit **
   9  Prefactor     .10000E-03    5.0379        .47893E-06** at limit **
  10  Prefactor     .10000E-03    1.5840       -.29434E-06** at limit **
  11  norm          8.9251        6.6551       -.23363E-06   -.14455E-03
  12  Prefactor     7.6546        9.8458       -.33670E-06   -.30909E-04
  13  norm          4.0860        2.1660       -.11231E-06   -.27170E-03
  14  Prefactor     .10000E-03    10.907       -.44027E-05** at limit **
  15  norm          .10000E-03    7.7793        .56092E-05** at limit **
  16  norm          9.5155        6.8138       -.15486E-06   -.89796E-04
  17  Prefactor     11.768        15.648       -.41960E-05   -.26951E-04
  18  norm          .10000E-03    15.109        .40085E-05** at limit **
  19  Prefactor     10.578        72.132       -.42019E-04   -.14617E-05
  20  Normalizat    1.3941        .17183        .53621E-06    .25081E-03
  21  Prefactor     .71418        .11745        .10111E-05    .15516E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.57586
  Prefactor  = 44.807
  norm       = 27.9549
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.92509
  Prefactor  = 7.65464
  norm       = 4.086
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.51551
  Prefactor  = 11.7677
  norm       = 0.0001
  Prefactor  = 10.5775
  Normalizat = 1.39413
  Prefactor  = 0.714177
 **********
 **   18 **HESSE 
 **********

 FCN=   9271.940     FROM HESSE     STATUS=OK           317 CALLS     2529 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3261        .14326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.2134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.824        .39667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5759        1.4835        .57853E-04   -1.5236    
   6  Prefactor     44.807        40.652        .59898E-04   -1.4368    
   7  norm          27.955        24.264        .75770E-04   -1.4650    
   8  Prefactor     .10000E-03    15.604        .21233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.0427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6612        .23667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9251        6.6506        .13416E-03   -1.5110    
  12  Prefactor     7.6546        9.8507        .14494E-03   -1.5155    
  13  norm          4.0860        2.1626        .98168E-04   -1.5304    
  14  Prefactor     .10000E-03    10.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.0172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5155        6.8098        .12991E-03   -1.5091    
  17  Prefactor     11.768        15.677        .11673E-03   -1.5022    
  18  norm          .10000E-03    15.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.578        72.441        .12310E-03   -1.5057    
  20  Normalizat    1.3941        .20308        .25324E-03   -.80799    
  21  Prefactor     .71418        .14033        .23723E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08841e-10
Minuit parameter uncertainties:
  1  1.78635e-06
  2  1.87882e-06
  3  3.67445e-06
  4  0.000699842
  5  1.48353
  6  40.6773
  7  24.2724
  8  0.000275612
  9  2.30932e-06
  10  2.96866e-06
  11  6.65117
  12  9.85277
  13  2.16259
  14  1.1622e-05
  15  7.73106e-05
  16  6.81035
  17  15.6826
  18  8.3151e-05
  19  55.4586
  20  0.203193
  21  0.140401
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.309e-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:  7.142e-01  1.404e-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.394e+00  2.032e-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: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11851/likelihoodResults_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.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) = 9271.94096029
delta logL = -0.000943469489357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9271.94001694
delta logL = -1.16473529488e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4189       1.0000          .0000       10.000    
     3 'Normalizat'    1.3942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71411       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=   9271.940     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    65.268        .18142E-02** at limit **
   2  Index         2.3440        5.4073        .50000        .24636E-04
   3  Normalizat    1.3941        .14665E-01    .25324E-03    .29270E-04
   4  Prefactor     .71418        .10251E-01    .23723E-03    .24920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101839
  Index      = 2.344
  Normalizat = 1.39413
  Prefactor  = 0.714178
 **********
 **   18 **HESSE 
 **********

 FCN=   9271.940     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10184E-03    269.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3440        5.8576        .50000       -.56002    
   3  Normalizat    1.3941        .31281E-01    .10129E-04   -.80799    
   4  Prefactor     .71418        .21865E-01    .94892E-05   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97e-08
Minuit parameter uncertainties:
  1  0.0447008
  2  720.794
  3  0.0312813
  4  0.021865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11851': 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) = 9271.94001639
delta logL = 4.32728484157e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.018e-04  4.470e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.344e+00  7.208e+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:  7.142e-01  2.187e-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.394e+00  3.128e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/11851/cmap_HighResolution_251510401_251769601_4FGL_J1351.0+0029_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-08 15:22:39.153004', job_id='11851', GAL2='0.71', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631139759.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='47' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:22:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 11851: <4FGL_J1351.0+0029_daily_bin47> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin47> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:17 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:10: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:10:38 2021
Terminated at Wed Sep  8 15:22:39 2021
Results reported at Wed Sep  8 15:22:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin47 207.757 0.4873 251510401 251769601 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            742 sec.

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

