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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin657
RA = 207.757, Dec = 0.4873
tmin = 409622401, tmax = 409881601
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='15724', job_status='RUN', time_executed='2021-09-08 15:24:05.099726', time_epoch_executed='1631139845.1' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15724/ft1_4FGL_J1351.0+0029_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15724/ft2_4FGL_J1351.0+0029_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15724/ft1_4FGL_J1351.0+0029_daily_bin657.fits outfile=/scratch/kocevski/15724/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin657.fits ra=207.757 dec=0.4873 rad=12.0 tmin=409622401.0 tmax=409881601.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 5.78
user 5.47
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15724/ft1_filtered_4FGL_J1351.0+0029_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/15724/ft2_4FGL_J1351.0+0029_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/15724/ltcube_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.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/15724/ft2_4FGL_J1351.0+0029_daily_bin657.fits
.....................!
real 14.52
user 14.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15724/ft1_filtered_4FGL_J1351.0+0029_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/15724/ft2_4FGL_J1351.0+0029_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/15724/ltcube_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.fits outfile=/scratch/kocevski/15724/expmap_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.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/15724/ltcube_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.fits
.....................!
real 192.29
user 187.14
sys 4.34

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/15724/ft1_filtered_4FGL_J1351.0+0029_daily_bin657.fits scfile=/scratch/kocevski/15724/ft2_4FGL_J1351.0+0029_daily_bin657.fits outfile=/scratch/kocevski/15724/cmap_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15724/ft1_filtered_4FGL_J1351.0+0029_daily_bin657.fits scfile=/scratch/kocevski/15724/ft2_4FGL_J1351.0+0029_daily_bin657.fits outfile=/scratch/kocevski/15724/cmap_HighResolution_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.689       1.0000         .10000E-03   10000.    
     2 'norm      '    .11566E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9039       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .55910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    85.916       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7970       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.209       1.0000         .10000E-03   10000.    
    15 'norm      '    17.838       1.0000         .10000E-03   10000.    
    16 'norm      '    11.355       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6185       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83256       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=   7611.046     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2166 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.689        23.194        .31422E-05    .12492E-03
   2  norm          .10000E-03    54.119        .30661E-05** at limit **
   3  Prefactor     6.8783        28.307       -.38836E-04   -.65481E-05
   4  Prefactor     .10000E-03    8.9227       -.20503E-06** at limit **
   5  norm          .55957        1.4618       -.48303E-06   -.15520E-02
   6  Prefactor     85.912        71.077       -.34020E-05    .48217E-05
   7  norm          .10000E-03    14.415        .51412E-06** at limit **
   8  Prefactor     5.7975        5.1836       -.46178E-06   -.28290E-03
   9  Prefactor     9.5245        19.926       -.13365E-05    .10024E-05
  10  Prefactor     .10000E-03    2.7152       -.31933E-07** at limit **
  11  norm          .10000E-03    2.8470       -.36114E-07** at limit **
  12  Prefactor     .10000E-03    4.7334        .14009E-07** at limit **
  13  norm          3.2667        2.3439       -.25819E-06   -.28841E-03
  14  Prefactor     26.210        17.024       -.58568E-06    .20433E-04
  15  norm          17.838        11.495       -.18095E-06    .59952E-05
  16  norm          11.355        7.2549       -.21497E-06    .72425E-05
  17  Prefactor     .10000E-03    5.2059       -.17594E-06** at limit **
  18  norm          .10000E-03    5.6283        .10916E-06** at limit **
  19  Prefactor     .10000E-03    22.471       -.10488E-05** at limit **
  20  Normalizat    1.6183        .22768        .40981E-05   -.51810E-04
  21  Prefactor     .83266        .14602       -.60058E-06    .29043E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 46.6889
  norm       = 0.000100001
  Prefactor  = 6.87828
  Prefactor  = 0.0001
  norm       = 0.559574
  Prefactor  = 85.9123
  norm       = 0.0001
  Prefactor  = 5.79754
  Prefactor  = 9.52451
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.26669
  Prefactor  = 26.2103
  norm       = 17.838
  norm       = 11.3549
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.61834
  Prefactor  = 0.832663
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.046     FROM HESSE     STATUS=OK           315 CALLS     2481 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.689        23.210        .58680E-04   -1.4340    
   2  norm          .10000E-03    55.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.8783        28.004        .15269E-03   -1.5183    
   4  Prefactor     .10000E-03    8.9658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55957        1.4340        .16036E-03   -1.5558    
   6  Prefactor     85.912        71.087        .43342E-04   -1.3852    
   7  norm          .10000E-03    14.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7975        5.2050        .16681E-03   -1.5226    
   9  Prefactor     9.5245        19.943        .12985E-03   -1.5091    
  10  Prefactor     .10000E-03    2.7340        .14037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8651        .14374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2667        2.3409        .10737E-03   -1.5346    
  14  Prefactor     26.210        17.028        .78250E-04   -1.4684    
  15  norm          17.838        11.508        .94829E-04   -1.4863    
  16  norm          11.355        7.2500        .11889E-03   -1.5034    
  17  Prefactor     .10000E-03    5.2105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.6333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.6183        .27384        .28106E-03   -.74505    
  21  Prefactor     .83266        .17567        .25033E-03   -.98535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40031e-09
Minuit parameter uncertainties:
  1  23.215
  2  0.000379531
  3  27.7796
  4  1.34893e-05
  5  1.43408
  6  71.1571
  7  3.28194e-06
  8  5.20545
  9  19.9573
  10  4.30424e-06
  11  6.16419e-06
  12  5.59063e-06
  13  2.34096
  14  17.0315
  15  11.5098
  16  7.2506
  17  6.86864e-06
  18  4.1758e-06
  19  1.65545e-05
  20  0.274092
  21  0.175789
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  9.525e+00  1.996e+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:  8.327e-01  1.758e-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.618e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/15724/likelihoodResults_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.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) = 7611.04241326
delta logL = 0.00384818057682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7611.04161845
delta logL = 0.00464298896077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.320       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3203       1.0000          .0000       10.000    
     3 'Normalizat'    1.6207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83147       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=   7611.042     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      250 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.351        1069.4        .31182E-02    .38526E-04
   2  Index         2.3269        5.5061        .24222        .82349E-04
   3  Normalizat    1.6207        .68490E-01    .63511E-01   -.29699E-03
   4  Prefactor     .83156        .43044E-01    .44125E-01   -.26695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3508
  Index      = 2.32688
  Normalizat = 1.62066
  Prefactor  = 0.831561
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.042     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.351        23.036        .12473E-03   -1.5064    
   2  Index         2.3269        1.1447        .14616E-01   -.56406    
   3  Normalizat    1.6207        .26031        .28089E-03   -.74442    
   4  Prefactor     .83156        .17362        .25047E-03   -.98575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52152e-10
Minuit parameter uncertainties:
  1  23.0556
  2  1.15915
  3  0.260529
  4  0.17373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15724': 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) = 7611.0415955
delta logL = 0.00466594397312

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.035e+01  2.306e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.327e+00  1.159e+00  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:  8.316e-01  1.737e-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.621e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/15724/cmap_HighResolution_409622401_409881601_4FGL_J1351.0+0029_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-08 15:34:50.915498', job_id='15724', GAL2='0.83', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1631140490.92', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.67e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='657' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:34:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 15724: <4FGL_J1351.0+0029_daily_bin657> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin657> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:29 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:21:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:21:41 2021
Terminated at Wed Sep  8 15:34:51 2021
Results reported at Wed Sep  8 15:34:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin657 207.757 0.4873 409622401 409881601 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 :                                   644.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            862 sec.

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

