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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin544
RA = 207.757, Dec = 0.4873
tmin = 380332801, tmax = 380592001
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='13819', job_status='RUN', time_executed='2021-09-08 15:19:52.108731', time_epoch_executed='1631139592.11' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13819/ft1_4FGL_J1351.0+0029_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13819/ft2_4FGL_J1351.0+0029_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13819/ft1_4FGL_J1351.0+0029_daily_bin544.fits outfile=/scratch/kocevski/13819/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin544.fits ra=207.757 dec=0.4873 rad=12.0 tmin=380332801.0 tmax=380592001.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.53
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13819/ft1_filtered_4FGL_J1351.0+0029_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/13819/ft2_4FGL_J1351.0+0029_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/13819/ltcube_380332801_380592001_4FGL_J1351.0+0029_daily_bin544.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/13819/ft2_4FGL_J1351.0+0029_daily_bin544.fits
.....................!
real 16.33
user 15.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13819/ft1_filtered_4FGL_J1351.0+0029_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/13819/ft2_4FGL_J1351.0+0029_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/13819/ltcube_380332801_380592001_4FGL_J1351.0+0029_daily_bin544.fits outfile=/scratch/kocevski/13819/expmap_380332801_380592001_4FGL_J1351.0+0029_daily_bin544.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/13819/ltcube_380332801_380592001_4FGL_J1351.0+0029_daily_bin544.fits
.....................!
real 191.68
user 186.86
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/13819/ft1_filtered_4FGL_J1351.0+0029_daily_bin544.fits scfile=/scratch/kocevski/13819/ft2_4FGL_J1351.0+0029_daily_bin544.fits outfile=/scratch/kocevski/13819/cmap_380332801_380592001_4FGL_J1351.0+0029_daily_bin544.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.56
user 0.40
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2736       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8676       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.016       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7039       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3513       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .81940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.009       1.0000         .10000E-03   10000.    
    15 'norm      '    39.100       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6366       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.279       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5707       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1646       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89106       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=   8384.949     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     2187 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2729        7.5935       -.37501E-06   -.72293E-05
   2  norm          1.8682        4.9341        .14223E-05   -.15946E-02
   3  Prefactor     15.263        14.693       -.16075E-05   -.23805E-05
   4  Prefactor     .10000E-03    3.0142       -.63047E-07** at limit **
   5  norm          .10000E-03    .55919       -.13615E-06** at limit **
   6  Prefactor     52.014        42.401       -.17649E-05   -.75184E-05
   7  norm          .10000E-03    15.393       -.78885E-07** at limit **
   8  Prefactor     4.7030        3.4811       -.13891E-07    .14237E-04
   9  Prefactor     2.3514        6.7502        .15085E-06   -.11656E-02
  10  Prefactor     .10000E-03    2.7232       -.18023E-07** at limit **
  11  norm          .10000E-03    1.5717       -.16443E-07** at limit **
  12  Prefactor     .10000E-03    4.1294        .79881E-08** at limit **
  13  norm          .82103        1.5381        .12007E-08   -.12739E-03
  14  Prefactor     13.004        17.213       -.28011E-05   -.17775E-04
  15  norm          39.101        15.245       -.17692E-06    .18642E-04
  16  norm          1.6358        5.3958       -.29391E-05   -.21810E-03
  17  Prefactor     17.266        22.559       -.13668E-04   -.11904E-03
  18  norm          3.5681        15.375        .32326E-05    .25856E-04
  19  Prefactor     .10000E-03    32.816        .73631E-06** at limit **
  20  Normalizat    1.1649        .17353        .22579E-05    .97995E-05
  21  Prefactor     .89079        .11970        .24741E-06    .21504E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.27287
  norm       = 1.86824
  Prefactor  = 15.2634
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.0139
  norm       = 0.0001
  Prefactor  = 4.70303
  Prefactor  = 2.35136
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.821032
  Prefactor  = 13.004
  norm       = 39.1009
  norm       = 1.63576
  Prefactor  = 17.2657
  norm       = 3.56807
  Prefactor  = 0.0001
  Normalizat = 1.16494
  Prefactor  = 0.890792
 **********
 **   18 **HESSE 
 **********

 FCN=   8384.949     FROM HESSE     STATUS=OK           323 CALLS     2510 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2729        7.5884        .16026E-03   -1.5207    
   2  norm          1.8682        7.8940        .15241E-02   -1.5435    
   3  Prefactor     15.263        14.704        .10251E-03   -1.4926    
   4  Prefactor     .10000E-03    3.0190        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5688        .13223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.014        42.399        .55609E-04   -1.4264    
   7  norm          .10000E-03    15.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7030        3.4820        .14044E-03   -1.5274    
   9  Prefactor     2.3514        7.8677        .13366E-02   -1.5401    
  10  Prefactor     .10000E-03    2.7973        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5825        .11210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .82103        1.3612        .14591E-02   -1.5527    
  14  Prefactor     13.004        17.216        .11106E-03   -1.4987    
  15  norm          39.101        15.259        .64100E-04   -1.4457    
  16  norm          1.6358        5.3541        .33039E-03   -1.5452    
  17  Prefactor     17.266        22.610        .96351E-04   -1.4877    
  18  norm          3.5681        15.359        .21387E-03   -1.5330    
  19  Prefactor     .10000E-03    32.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1649        .20653        .26682E-03   -.87693    
  21  Prefactor     .89079        .14403        .21291E-03   -.96464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92086e-08
Minuit parameter uncertainties:
  1  7.58956
  2  7.6821
  3  14.7074
  4  4.42144e-06
  5  2.06491e-05
  6  42.4238
  7  1.25762e-05
  8  3.48216
  9  7.87113
  10  5.85231e-06
  11  2.74036e-06
  12  4.0003e-06
  13  1.36121
  14  17.2223
  15  15.2605
  16  5.35565
  17  22.6215
  18  14.8119
  19  1.34112e-05
  20  0.206674
  21  0.144088
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.351e+00  7.871e+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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.908e-01  1.441e-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.165e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13819/likelihoodResults_380332801_380592001_4FGL_J1351.0+0029_daily_bin544.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) = 8384.90248058
delta logL = 0.0461921700753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8384.88551456
delta logL = 0.0631581899434

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0388       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8835       1.0000          .0000       10.000    
     3 'Normalizat'    1.1680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88875       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=   8384.886     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      258 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0391        9.8165        .20065E-03   -.12930E-03
   2  Index         1.8834        1.2810        .13837E-01   -.30649E-04
   3  Normalizat    1.1680        .19930        .26650E-03   -.66206E-04
   4  Prefactor     .88876        .14194        .21311E-03   -.78313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03907
  Index      = 1.88342
  Normalizat = 1.168
  Prefactor  = 0.888758
 **********
 **   18 **HESSE 
 **********

 FCN=   8384.886     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0391        9.7934        .80259E-05   -1.5306    
   2  Index         1.8834        1.2785        .55347E-03   -.67298    
   3  Normalizat    1.1680        .19950        .10660E-04   -.87597    
   4  Prefactor     .88876        .14209        .85244E-05   -.96535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3736e-10
Minuit parameter uncertainties:
  1  9.79727
  2  1.30251
  3  0.199632
  4  0.142147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13819': 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) = 8384.88551456
delta logL = 0.0631581921989

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.039e+00  9.797e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.883e+00  1.303e+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.888e-01  1.421e-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.168e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/13819/cmap_HighResolution_380332801_380592001_4FGL_J1351.0+0029_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-08 15:31:03.578864', job_id='13819', GAL2='0.89', fit_tolerance='1e-08', EG2='1.17', EG='1.16', time_epoch_completed='1631140263.58', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.32e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='544' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 13819: <4FGL_J1351.0+0029_daily_bin544> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin544> 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) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:45 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:45 2021
Terminated at Wed Sep  8 15:31:04 2021
Results reported at Wed Sep  8 15:31:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin544 207.757 0.4873 380332801 380592001 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 :                                   671.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            927 sec.

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

