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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin30
RA = 207.757, Dec = 0.4873
tmin = 247104001, tmax = 247363201
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='10774', job_status='RUN', time_executed='2021-09-08 15:09:45.354078', time_epoch_executed='1631138985.35' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='30'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10774/ft1_4FGL_J1351.0+0029_daily_bin30.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10774/ft2_4FGL_J1351.0+0029_daily_bin30.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10774/ft1_4FGL_J1351.0+0029_daily_bin30.fits outfile=/scratch/kocevski/10774/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin30.fits ra=207.757 dec=0.4873 rad=12.0 tmin=247104001.0 tmax=247363201.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.31
user 1.14
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10774/ft1_filtered_4FGL_J1351.0+0029_daily_bin30.fits" evtable="EVENTS" scfile=/scratch/kocevski/10774/ft2_4FGL_J1351.0+0029_daily_bin30.fits sctable="SC_DATA" outfile=/scratch/kocevski/10774/ltcube_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.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/10774/ft2_4FGL_J1351.0+0029_daily_bin30.fits
.....................!
real 16.13
user 15.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10774/ft1_filtered_4FGL_J1351.0+0029_daily_bin30.fits evtable="EVENTS" scfile=/scratch/kocevski/10774/ft2_4FGL_J1351.0+0029_daily_bin30.fits sctable="SC_DATA" expcube=/scratch/kocevski/10774/ltcube_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.fits outfile=/scratch/kocevski/10774/expmap_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.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/10774/ltcube_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.fits
.....................!
real 158.16
user 153.50
sys 4.29

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/10774/ft1_filtered_4FGL_J1351.0+0029_daily_bin30.fits scfile=/scratch/kocevski/10774/ft2_4FGL_J1351.0+0029_daily_bin30.fits outfile=/scratch/kocevski/10774/cmap_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10774/ft1_filtered_4FGL_J1351.0+0029_daily_bin30.fits scfile=/scratch/kocevski/10774/ft2_4FGL_J1351.0+0029_daily_bin30.fits outfile=/scratch/kocevski/10774/cmap_HighResolution_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.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.51
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.7273       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.663       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.603       1.0000         .10000E-03   10000.    
     7 'norm      '    10.637       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11440E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.346       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2729       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.354       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7096       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97236       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1644       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=   10429.11     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2177 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3314        .90712E-02** at limit **
   2  norm          .10000E-03    3.1933        .90712E-02** at limit **
   3  Prefactor     7.7238        16.760        .36064E-02    .22075E-03
   4  Prefactor     28.662        10.695        .18708E-02   -.26465E-03
   5  norm          5.1122        1.4419        .44454E-02    .14916E-03
   6  Prefactor     44.603        31.822        .15008E-02   -.95069E-04
   7  norm          10.637        12.569        .30712E-02   -.74776E-05
   8  Prefactor     .10000E-03    1.0621        .56673E-01** at limit **
   9  Prefactor     28.346        18.001        .18812E-02    .14933E-03
  10  Prefactor     .10000E-03    1.2384        .90712E-02** at limit **
  11  norm          19.538        7.4522        .22653E-02    .44365E-03
  12  Prefactor     .10000E-03    6.3767        .90712E-02** at limit **
  13  norm          6.2725        2.6000        .40068E-02    .26817E-03
  14  Prefactor     22.354        15.143        .21179E-02    .10399E-03
  15  norm          .10000E-03    2.5022        .90712E-02** at limit **
  16  norm          1.7100        6.8841        .80380E-02    .80707E-03
  17  Prefactor     .10000E-03    17.950        .90712E-02** at limit **
  18  norm          .10000E-03    6.7976        .90712E-02** at limit **
  19  Prefactor     .10000E-03    53.277        .90712E-02** at limit **
  20  Normalizat    .97246        .17828        .72680E-01    .39408E-04
  21  Prefactor     1.1643        .12412        .35533E-01    .16996E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.72383
  Prefactor  = 28.6624
  norm       = 5.11219
  Prefactor  = 44.6035
  norm       = 10.6372
  Prefactor  = 0.000100002
  Prefactor  = 28.3458
  Prefactor  = 0.0001
  norm       = 19.5383
  Prefactor  = 0.000100003
  norm       = 6.27253
  Prefactor  = 22.3541
  norm       = 0.0001
  norm       = 1.71
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.972455
  Prefactor  = 1.16432
 **********
 **   18 **HESSE 
 **********

 FCN=   10429.11     FROM HESSE     STATUS=OK           317 CALLS     2494 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3383        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1953        .17823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7238        16.787        .14426E-03   -1.5152    
   4  Prefactor     28.662        10.710        .74833E-04   -1.4637    
   5  norm          5.1122        1.4423        .62235E-04   -1.5256    
   6  Prefactor     44.603        31.823        .60031E-04   -1.4371    
   7  norm          10.637        12.569        .12285E-03   -1.5056    
   8  Prefactor     .10000E-03    6.3034        .20270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.346        18.010        .75249E-04   -1.4643    
  10  Prefactor     .10000E-03    1.2590        .11097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.538        7.4507        .90612E-04   -1.4824    
  12  Prefactor     .10000E-03    6.4536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2725        2.5887        .99775E-04   -1.5207    
  14  Prefactor     22.354        15.149        .84718E-04   -1.4762    
  15  norm          .10000E-03    2.5034        .15776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7100        6.8468        .32152E-03   -1.5446    
  17  Prefactor     .10000E-03    18.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97246        .20664        .32158E-03   -.93959    
  21  Prefactor     1.1643        .14473        .21363E-03   -.87436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20598e-09
Minuit parameter uncertainties:
  1  1.22418e-06
  2  1.16161e-06
  3  16.7968
  4  10.7112
  5  1.44227
  6  31.8353
  7  12.5726
  8  0.000226231
  9  18.0136
  10  4.09699e-07
  11  7.45104
  12  0.000300148
  13  2.58871
  14  15.152
  15  9.19173e-08
  16  6.84455
  17  7.06205e-06
  18  8.34414e-05
  19  1.63858e-05
  20  0.206813
  21  0.144776
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.835e+01  1.801e+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.164e+00  1.448e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.725e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.91
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.07e-05

TS (Fixed Index): 3.91
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10774/likelihoodResults_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.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) = 10428.7127811
delta logL = 0.397079441545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10428.7110878
delta logL = 0.398772660577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.778       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0159       1.0000          .0000       10.000    
     3 'Normalizat'    .99304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1530       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=   10428.71     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      316 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.782        25.997        .62772E-04    .90555E-05
   2  Index         2.0159        .43210        .86242E-02    .21214E-03
   3  Normalizat    .99308        .19952        .31855E-03    .85654E-06
   4  Prefactor     1.1530        .14386        .21446E-03   -.12617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.7821
  Index      = 2.01587
  Normalizat = 0.993077
  Prefactor  = 1.153
 **********
 **   18 **HESSE 
 **********

 FCN=   10428.71     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.782        25.777        .25109E-05   -1.4430    
   2  Index         2.0159        .42821        .17248E-02   -.63954    
   3  Normalizat    .99308        .19967        .12742E-04   -.93263    
   4  Prefactor     1.1530        .14399        .85783E-05   -.87790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48172e-13
Minuit parameter uncertainties:
  1  25.7842
  2  0.429025
  3  0.199819
  4  0.144036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10774': 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) = 10428.7110878
delta logL = 0.398772712149

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.078e+01  2.578e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.016e+00  4.290e-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.153e+00  1.440e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.931e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.02 +/- 0.43
Photon Flux (Free Index): 4.16e-08 +/- 3.09e-08
Energy Flux (Free Index): 2.77e-05 +/- 2.41e-05

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/10774/cmap_HighResolution_247104001_247363201_4FGL_J1351.0+0029_daily_bin30.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.60e-03', comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='2.77e-05', photon_flux_error='3.43e-08', dlogl='3.99e-01', energy_flux='1.69e-05', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-08 15:20:23.356358', photon_index_error2='0.43', photon_index2='2.02', ts='3.91', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='2.41e-05', EG='0.97', time_epoch_completed='1631139623.36', return_code='0', job_id='10774', GAL2='1.15', EG2='0.99', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.09e-08', ts2='4.69', photon_index='2.44' WHERE bin_id='30' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:20:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 10774: <4FGL_J1351.0+0029_daily_bin30> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin30> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 15:06:10 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:08:26 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:08:26 2021
Terminated at Wed Sep  8 15:20:23 2021
Results reported at Wed Sep  8 15:20:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin30 207.757 0.4873 247104001 247363201 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            853 sec.

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

