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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin760
RA = 207.757, Dec = 0.4873
tmin = 436320001, tmax = 436579201
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='15891', job_status='RUN', time_executed='2021-09-08 15:25:43.024665', time_epoch_executed='1631139943.02' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15891/ft1_4FGL_J1351.0+0029_daily_bin760.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15891/ft2_4FGL_J1351.0+0029_daily_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15891/ft1_4FGL_J1351.0+0029_daily_bin760.fits outfile=/scratch/kocevski/15891/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin760.fits ra=207.757 dec=0.4873 rad=12.0 tmin=436320001.0 tmax=436579201.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.37
user 5.03
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15891/ft2_4FGL_J1351.0+0029_daily_bin760.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/15891/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/15891/ft1_filtered_4FGL_J1351.0+0029_daily_bin760.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15891/ft1_filtered_4FGL_J1351.0+0029_daily_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/15891/ft2_4FGL_J1351.0+0029_daily_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/15891/ltcube_436320001_436579201_4FGL_J1351.0+0029_daily_bin760.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/15891/ft2_4FGL_J1351.0+0029_daily_bin760.fits
.....................!
real 15.27
user 14.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15891/ft1_filtered_4FGL_J1351.0+0029_daily_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/15891/ft2_4FGL_J1351.0+0029_daily_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/15891/ltcube_436320001_436579201_4FGL_J1351.0+0029_daily_bin760.fits outfile=/scratch/kocevski/15891/expmap_436320001_436579201_4FGL_J1351.0+0029_daily_bin760.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/15891/ltcube_436320001_436579201_4FGL_J1351.0+0029_daily_bin760.fits
.....................!
real 192.93
user 187.84
sys 4.70

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/15891/ft1_filtered_4FGL_J1351.0+0029_daily_bin760.fits scfile=/scratch/kocevski/15891/ft2_4FGL_J1351.0+0029_daily_bin760.fits outfile=/scratch/kocevski/15891/cmap_436320001_436579201_4FGL_J1351.0+0029_daily_bin760.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.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.786       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9285       1.0000         .10000E-03   10000.    
     5 'norm      '    .54144       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.014       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.596       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.959       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2110       1.0000         .10000E-03   10000.    
    16 'norm      '    60.124       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7747       1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.023       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96097       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1847       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=   8557.255     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2185 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.785        12.340       -.44488E-07   -.61672E-04
   2  norm          .10000E-03    5.3256        .34428E-07** at limit **
   3  Prefactor     21.465        14.893       -.54820E-07   -.44409E-04
   4  Prefactor     1.9272        16.297        .23741E-05   -.55260E-05
   5  norm          .54107        1.5188        .15056E-05   -.66142E-04
   6  Prefactor     .10000E-03    34.330        .30439E-06** at limit **
   7  norm          .10000E-03    15.800        .40501E-07** at limit **
   8  Prefactor     .10000E-03    1.6788        .22792E-06** at limit **
   9  Prefactor     .10000E-03    12.535        .47411E-06** at limit **
  10  Prefactor     .10000E-03    1.8566        .15125E-06** at limit **
  11  norm          18.014        7.4544        .48678E-07   -.43494E-04
  12  Prefactor     22.603        17.040        .17453E-06   -.52732E-05
  13  norm          3.6693        2.4853        .18564E-06   -.33903E-04
  14  Prefactor     14.933        24.691       -.14689E-06   -.76100E-04
  15  norm          7.2110        7.0112       -.56683E-06    .30582E-04
  16  norm          60.124        12.517        .85168E-07   -.28414E-04
  17  Prefactor     1.7305        86.397        .83212E-06   -.27547E-04
  18  norm          .10000E-03    6.1857       -.43706E-06** at limit **
  19  Prefactor     57.019        77.113        .16897E-06   -.66078E-05
  20  Normalizat    .96097        .21308       -.13329E-05   -.17226E-03
  21  Prefactor     1.1847        .14329       -.92992E-06   -.20383E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.7854
  norm       = 0.0001
  Prefactor  = 21.4646
  Prefactor  = 1.92718
  norm       = 0.541073
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0138
  Prefactor  = 22.6034
  norm       = 3.66928
  Prefactor  = 14.9329
  norm       = 7.21102
  norm       = 60.1237
  Prefactor  = 1.7305
  norm       = 0.0001
  Prefactor  = 57.0186
  Normalizat = 0.960967
  Prefactor  = 1.18474
 **********
 **   18 **HESSE 
 **********

 FCN=   8557.255     FROM HESSE     STATUS=OK           315 CALLS     2500 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.785        12.335        .85815E-04   -1.4774    
   2  norm          .10000E-03    5.3277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.465        14.902        .86455E-04   -1.4781    
   4  Prefactor     1.9272        16.397        .29912E-03   -1.5430    
   5  norm          .54107        1.5330        .17623E-03   -1.5561    
   6  Prefactor     .10000E-03    34.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    15.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7029        .11716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8694        .12315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.014        7.4540        .94366E-04   -1.4859    
  12  Prefactor     22.603        17.061        .84264E-04   -1.4757    
  13  norm          3.6693        2.4797        .11286E-03   -1.5325    
  14  Prefactor     14.933        24.638        .10356E-03   -1.4935    
  15  norm          7.2110        6.9941        .74686E-03   -1.5171    
  16  norm          60.124        12.507        .51744E-04   -1.4156    
  17  Prefactor     1.7305        87.763        .31427E-03   -1.5445    
  18  norm          .10000E-03    6.1807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     57.019        77.122        .53124E-04   -1.4196    
  20  Normalizat    .96097        .24793        .34338E-03   -.94350    
  21  Prefactor     1.1847        .16671        .21810E-03   -.86802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07313e-11
Minuit parameter uncertainties:
  1  12.3369
  2  5.04977e-07
  3  14.9045
  4  11.2468
  5  1.53313
  6  8.39635e-05
  7  2.40674e-05
  8  4.10905e-06
  9  2.39203e-05
  10  3.39994e-06
  11  7.45442
  12  17.0651
  13  2.47977
  14  24.6552
  15  6.99487
  16  12.5072
  17  24.685
  18  6.69082e-06
  19  77.2575
  20  0.248222
  21  0.166789
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.392e-05  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.185e+00  1.668e-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.610e-01  2.482e-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: 8.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15891/likelihoodResults_436320001_436579201_4FGL_J1351.0+0029_daily_bin760.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) = 8557.25548794
delta logL = -0.000379146729756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8557.25510983
delta logL = -1.0307849152e-06

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    620.62        .90712E-02** at limit **
   2  Index         2.4693        6.1430        .50000       -.11861E-04
   3  Normalizat    .96097        .37162E-01    .77584E-01    .42840E-04
   4  Prefactor     1.1847        .26020E-01    .34997E-01    .23448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46926
  Normalizat = 0.960968
  Prefactor  = 1.18474
 **********
 **   18 **HESSE 
 **********

 FCN=   8557.255     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1671.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4693        6.9016        .50000       -.53071    
   3  Normalizat    .96097        .73066E-01    .34337E-03   -.94350    
   4  Prefactor     1.1847        .51270E-01    .21810E-03   -.86802    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24631e-08
Minuit parameter uncertainties:
  1  0.000722888
  2  50.791
  3  0.0730739
  4  0.0512723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15891': 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) = 8557.25510871
delta logL = 8.54706740938e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  7.229e-04  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.469e+00  5.079e+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.185e+00  5.127e-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:  9.610e-01  7.307e-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/15891/cmap_HighResolution_436320001_436579201_4FGL_J1351.0+0029_daily_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-09-08 15:36:57.951841', job_id='15891', GAL2='1.18', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631140617.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='8.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='760' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 15891: <4FGL_J1351.0+0029_daily_bin760> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin760> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:43 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:22:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:22:01 2021
Terminated at Wed Sep  8 15:36:58 2021
Results reported at Wed Sep  8 15:36:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin760 207.757 0.4873 436320001 436579201 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            975 sec.

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

