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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin397
RA = 207.757, Dec = 0.4873
tmin = 342230401, tmax = 342489601
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='13553', job_status='RUN', time_executed='2021-09-08 15:18:59.462308', time_epoch_executed='1631139539.46' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13553/ft1_4FGL_J1351.0+0029_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13553/ft2_4FGL_J1351.0+0029_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13553/ft1_4FGL_J1351.0+0029_daily_bin397.fits outfile=/scratch/kocevski/13553/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin397.fits ra=207.757 dec=0.4873 rad=12.0 tmin=342230401.0 tmax=342489601.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.59
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13553/ft2_4FGL_J1351.0+0029_daily_bin397.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/13553/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/13553/ft1_filtered_4FGL_J1351.0+0029_daily_bin397.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.51
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13553/ft1_filtered_4FGL_J1351.0+0029_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/13553/ft2_4FGL_J1351.0+0029_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/13553/ltcube_342230401_342489601_4FGL_J1351.0+0029_daily_bin397.fits outfile=/scratch/kocevski/13553/expmap_342230401_342489601_4FGL_J1351.0+0029_daily_bin397.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/13553/ltcube_342230401_342489601_4FGL_J1351.0+0029_daily_bin397.fits
.....................!
real 194.06
user 187.27
sys 4.63

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/13553/ft1_filtered_4FGL_J1351.0+0029_daily_bin397.fits scfile=/scratch/kocevski/13553/ft2_4FGL_J1351.0+0029_daily_bin397.fits outfile=/scratch/kocevski/13553/cmap_342230401_342489601_4FGL_J1351.0+0029_daily_bin397.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13553/ft1_filtered_4FGL_J1351.0+0029_daily_bin397.fits scfile=/scratch/kocevski/13553/ft2_4FGL_J1351.0+0029_daily_bin397.fits outfile=/scratch/kocevski/13553/cmap_HighResolution_342230401_342489601_4FGL_J1351.0+0029_daily_bin397.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.982       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .29265       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.845       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9108       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.115       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.131       1.0000         .10000E-03   10000.    
    18 'norm      '    16.666       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4784       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83516       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1977       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=   6470.087     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2201 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2454       -.46841E-06** at limit **
   2  norm          .10000E-03    4.3797       -.88190E-08** at limit **
   3  Prefactor     22.971        25.828        .18212E-05    .13208E-04
   4  Prefactor     .10000E-03    8.1692        .63529E-07** at limit **
   5  norm          .29320        1.0880        .30295E-06   -.17450E-03
   6  Prefactor     46.812        64.974        .44028E-05    .25312E-04
   7  norm          .10000E-03    12.042        .87299E-07** at limit **
   8  Prefactor     3.6771        4.3956        .42896E-06    .18212E-04
   9  Prefactor     22.074        23.421       -.11262E-05   -.50183E-04
  10  Prefactor     .10000E-03    1.4539       -.51058E-07** at limit **
  11  norm          1.9061        8.1062        .69897E-05    .48957E-04
  12  Prefactor     .10000E-03    24.227        .18995E-06** at limit **
  13  norm          .10000E-03    1.3240        .18903E-06** at limit **
  14  Prefactor     .10000E-03    6.6859        .13288E-06** at limit **
  15  norm          10.114        9.2209        .44505E-07   -.95375E-05
  16  norm          7.6014        8.6010        .56510E-06   -.78802E-05
  17  Prefactor     18.132        18.282       -.43673E-08   -.22392E-04
  18  norm          16.666        16.431       -.99579E-07   -.24280E-04
  19  Prefactor     2.3631        437.05        .47545E-04   -.14518E-04
  20  Normalizat    .83487        .22632       -.12777E-05   -.98976E-04
  21  Prefactor     1.1980        .15280       -.66942E-06   -.11383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.971
  Prefactor  = 0.0001
  norm       = 0.293197
  Prefactor  = 46.8118
  norm       = 0.0001
  Prefactor  = 3.67713
  Prefactor  = 22.0744
  Prefactor  = 0.0001
  norm       = 1.90606
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.114
  norm       = 7.60143
  Prefactor  = 18.1322
  norm       = 16.666
  Prefactor  = 2.36305
  Normalizat = 0.834865
  Prefactor  = 1.19798
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.087     FROM HESSE     STATUS=OK           321 CALLS     2522 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.3811        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.971        25.994        .83554E-04   -1.4749    
   4  Prefactor     .10000E-03    8.2158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .29320        1.6766        .14906E-02   -1.5600    
   6  Prefactor     46.812        65.138        .58583E-04   -1.4339    
   7  norm          .10000E-03    12.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6771        4.3938        .17383E-03   -1.5324    
   9  Prefactor     22.074        23.485        .85279E-04   -1.4768    
  10  Prefactor     .10000E-03    1.4573        .94716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9061        8.1324        .15037E-02   -1.5432    
  12  Prefactor     .10000E-03    25.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3500        .90275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.114        9.2279        .12599E-03   -1.5072    
  16  norm          7.6014        8.5970        .72716E-03   -1.5156    
  17  Prefactor     18.132        18.284        .94060E-04   -1.4856    
  18  norm          16.666        16.430        .98107E-04   -1.4891    
  19  Prefactor     2.3631        439.18        .25970E-02   -1.5401    
  20  Normalizat    .83487        .26329        .33081E-03   -.98788    
  21  Prefactor     1.1980        .17933        .19924E-03   -.86393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20281e-08
Minuit parameter uncertainties:
  1  1.03475e-05
  2  9.97846e-08
  3  26.0072
  4  2.29917e-07
  5  1.40206
  6  65.2375
  7  4.33495e-06
  8  4.3942
  9  23.495
  10  1.2745e-06
  11  7.87587
  12  0.000111536
  13  1.93007e-06
  14  2.89277e-06
  15  9.22923
  16  8.59839
  17  18.2896
  18  16.4344
  19  64.9179
  20  0.263691
  21  0.179416
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.207e+01  2.349e+01  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.198e+00  1.794e-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:  8.349e-01  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.40e-05

TS (Fixed Index): 1.26
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13553/likelihoodResults_342230401_342489601_4FGL_J1351.0+0029_daily_bin397.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): 0
logL (Free Index) = 6469.49090952
delta logL = 0.596176707084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.47439643
delta logL = 0.612689798882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5307       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3654       1.0000          .0000       10.000    
     3 'Normalizat'    .77169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2251       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=   6469.474     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      281 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5321        22.032        .12981E-03    .18725E-03
   2  Index         3.3654        1.3077        .55509E-02    .91329E-04
   3  Normalizat    .77171        .25980        .34293E-03    .10350E-03
   4  Prefactor     1.2251        .17971        .19725E-03    .18422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.53207
  Index      = 3.3654
  Normalizat = 0.771713
  Prefactor  = 1.22511
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.474     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5321        15.164        .51924E-05   -1.5090    
   2  Index         3.3654        .90402        .22204E-03   -.33304    
   3  Normalizat    .77171        .25841        .13717E-04   -1.0113    
   4  Prefactor     1.2251        .17885        .39450E-04   -.85562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04873e-11
Minuit parameter uncertainties:
  1  15.1705
  2  0.909627
  3  0.258825
  4  0.178939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13553': 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): 0
logL (Free Index) = 6469.47439641
delta logL = 0.612689818732

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  9.532e+00  1.517e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.365e+00  9.096e-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.225e+00  1.789e-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:  7.717e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 207.757 0.487
Photon Index (Free Index): 3.37 +/- 0.91
Photon Flux (Free Index): 9.36e-08 +/- 7.48e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.20e-05

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/13553/cmap_HighResolution_342230401_342489601_4FGL_J1351.0+0029_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='1.62e-05', photon_flux_error='4.47e-08', dlogl='6.13e-01', energy_flux='1.31e-05', photon_flux2='9.36e-08', job_status='DONE', time_completed='2021-09-08 15:28:51.346437', photon_index_error2='0.91', photon_index2='3.37', ts='1.26', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.20e-05', EG='0.83', time_epoch_completed='1631140131.35', return_code='0', job_id='13553', GAL2='1.23', EG2='0.77', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='7.48e-08', ts2='2.59', photon_index='2.44' WHERE bin_id='397' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 13553: <4FGL_J1351.0+0029_daily_bin397> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin397> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:21 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:24 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:15:24 2021
Terminated at Wed Sep  8 15:28:52 2021
Results reported at Wed Sep  8 15:28:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin397 207.757 0.4873 342230401 342489601 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 :                                   586.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            811 sec.

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

