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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin535
RA = 207.757, Dec = 0.4873
tmin = 378000001, tmax = 378259201
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='13804', job_status='RUN', time_executed='2021-09-08 15:18:39.546515', time_epoch_executed='1631139519.55' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13804

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13804/ft1_4FGL_J1351.0+0029_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13804/ft2_4FGL_J1351.0+0029_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13804/ft1_4FGL_J1351.0+0029_daily_bin535.fits outfile=/scratch/kocevski/13804/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin535.fits ra=207.757 dec=0.4873 rad=12.0 tmin=378000001.0 tmax=378259201.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.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13804/ft1_filtered_4FGL_J1351.0+0029_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/13804/ft2_4FGL_J1351.0+0029_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/13804/ltcube_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.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/13804/ft2_4FGL_J1351.0+0029_daily_bin535.fits
.....................!
real 14.38
user 13.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13804/ft1_filtered_4FGL_J1351.0+0029_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/13804/ft2_4FGL_J1351.0+0029_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/13804/ltcube_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.fits outfile=/scratch/kocevski/13804/expmap_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.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/13804/ltcube_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.fits
.....................!
real 192.02
user 186.22
sys 5.04

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/13804/ft1_filtered_4FGL_J1351.0+0029_daily_bin535.fits scfile=/scratch/kocevski/13804/ft2_4FGL_J1351.0+0029_daily_bin535.fits outfile=/scratch/kocevski/13804/cmap_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13804/ft1_filtered_4FGL_J1351.0+0029_daily_bin535.fits scfile=/scratch/kocevski/13804/ft2_4FGL_J1351.0+0029_daily_bin535.fits outfile=/scratch/kocevski/13804/cmap_HighResolution_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.852       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14989E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.130       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.125       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6635       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8950       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.699       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2803       1.0000         .10000E-03   10000.    
    16 'norm      '    10.424       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    56.544       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92081       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0716       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=   6013.714     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2224 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.849        13.963        .86485E-07   -.10190E-04
   2  norm          .10000E-03    6.2902        .11569E-07** at limit **
   3  Prefactor     .10001E-03    148.99        .51698E-04** at limit **
   4  Prefactor     16.130        12.025       -.90454E-07   -.40103E-05
   5  norm          3.9170        1.7930       -.24125E-07   -.48827E-04
   6  Prefactor     70.116        71.083       -.46325E-06   -.30178E-05
   7  norm          .10000E-03    12.235        .26020E-06** at limit **
   8  Prefactor     .10000E-03    1.5391        .13210E-05** at limit **
   9  Prefactor     .10000E-03    20.025        .41794E-07** at limit **
  10  Prefactor     2.6636        2.5604        .18529E-08    .93990E-05
  11  norm          4.1075        6.8772       -.46656E-06    .19697E-03
  12  Prefactor     2.8966        8.2679       -.11298E-05    .18666E-03
  13  norm          .10000E-03    1.5450        .16745E-05** at limit **
  14  Prefactor     48.697        26.353       -.13313E-06   -.25126E-04
  15  norm          6.2805        7.6863        .79061E-08    .11232E-04
  16  norm          10.423        8.6661        .81464E-07    .11469E-03
  17  Prefactor     .10000E-03    10.944        .11036E-06** at limit **
  18  norm          .10000E-03    19.013        .19336E-08** at limit **
  19  Prefactor     56.377        67.812       -.65961E-05   -.68362E-04
  20  Normalizat    .92085        .21492        .14086E-05    .60582E-04
  21  Prefactor     1.0715        .15227       -.47020E-06   -.17526E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.8493
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 16.1303
  norm       = 3.91698
  Prefactor  = 70.1162
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.66363
  norm       = 4.10748
  Prefactor  = 2.89656
  norm       = 0.000100005
  Prefactor  = 48.6972
  norm       = 6.28047
  norm       = 10.4228
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.3769
  Normalizat = 0.920854
  Prefactor  = 1.07153
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.714     FROM HESSE     STATUS=OK           325 CALLS     2549 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.849        13.932        .74588E-04   -1.4633    
   2  norm          .10000E-03    6.2946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    147.27        .48793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.130        12.037        .99723E-04   -1.4904    
   5  norm          3.9170        1.7922        .66746E-04   -1.5312    
   6  Prefactor     70.116        71.056        .47936E-04   -1.4031    
   7  norm          .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4067        .18191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6636        2.5708        .11852E-03   -1.5382    
  11  norm          4.1075        6.8697        .99458E-03   -1.5303    
  12  Prefactor     2.8966        8.2843        .11942E-02   -1.5368    
  13  norm          .10000E-03    5.6508        .17669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     48.697        26.346        .57462E-04   -1.4311    
  15  norm          6.2805        7.6865        .16018E-03   -1.5207    
  16  norm          10.423        8.5695        .12410E-03   -1.5062    
  17  Prefactor     .10000E-03    10.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     56.377        67.871        .26674E-03   -1.4205    
  20  Normalizat    .92085        .25065        .30490E-03   -.95731    
  21  Prefactor     1.0715        .17914        .20606E-03   -.90382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61079e-09
Minuit parameter uncertainties:
  1  13.9337
  2  8.41122e-08
  3  0.00268082
  4  12.0383
  5  1.79223
  6  71.1423
  7  7.41286e-06
  8  0.000253728
  9  1.75462e-05
  10  2.57086
  11  6.87105
  12  8.28759
  13  0.000322641
  14  26.3528
  15  7.68772
  16  8.57052
  17  5.05448e-05
  18  9.76954e-05
  19  67.964
  20  0.250969
  21  0.179239
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.755e-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.072e+00  1.792e-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.209e-01  2.510e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13804/likelihoodResults_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.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) = 6013.71408651
delta logL = -0.000236109405705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6013.71385288
delta logL = -2.47520529228e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11512E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8903       1.0000          .0000       10.000    
     3 'Normalizat'    .92085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0715       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=   6013.714     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      286 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10963E-03    2.7086        .18142E-01** at limit **
   2  Index         2.7115        8.4739        .50000        .21245E-04
   3  Normalizat    .92085        .22687E-02    .30490E-03   -.26153E-03
   4  Prefactor     1.0715        .16515E-02    .20606E-03   -.23737E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109628
  Index      = 2.71155
  Normalizat = 0.920848
  Prefactor  = 1.07153
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.714     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      317 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10963E-03    28.464        .56756E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7115        8.6379        .50000       -.47540    
   3  Normalizat    .92085        .72028E-02    .12196E-04   -.95731    
   4  Prefactor     1.0715        .52433E-02    .41211E-04   -.90382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84267e-09
Minuit parameter uncertainties:
  1  0.0331252
  2  241.978
  3  0.00720282
  4  0.00524335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13804': 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) = 6013.71385163
delta logL = -1.23385598272e-06

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.096e-04  3.313e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.712e+00  2.420e+02  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.072e+00  5.243e-03  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.208e-01  7.203e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/13804/cmap_HighResolution_378000001_378259201_4FGL_J1351.0+0029_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.09e-08', time_completed='2021-09-08 15:28:17.405921', job_id='13804', GAL2='1.07', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631140097.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='535' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 13804: <4FGL_J1351.0+0029_daily_bin535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin535 207.757 0.4873 378000001 378259201 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 :                                   572.40 sec.
    Max Memory :                                 1228 MB
    Average Memory :                             294.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            760 sec.

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

