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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin537
RA = 207.757, Dec = 0.4873
tmin = 378518401, tmax = 378777601
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='13808', job_status='RUN', time_executed='2021-09-08 15:18:53.486747', time_epoch_executed='1631139533.49' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13808

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13808/ft1_4FGL_J1351.0+0029_daily_bin537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13808/ft2_4FGL_J1351.0+0029_daily_bin537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13808/ft1_4FGL_J1351.0+0029_daily_bin537.fits outfile=/scratch/kocevski/13808/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin537.fits ra=207.757 dec=0.4873 rad=12.0 tmin=378518401.0 tmax=378777601.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.50
user 3.24
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13808/ft1_filtered_4FGL_J1351.0+0029_daily_bin537.fits evtable="EVENTS" scfile=/scratch/kocevski/13808/ft2_4FGL_J1351.0+0029_daily_bin537.fits sctable="SC_DATA" expcube=/scratch/kocevski/13808/ltcube_378518401_378777601_4FGL_J1351.0+0029_daily_bin537.fits outfile=/scratch/kocevski/13808/expmap_378518401_378777601_4FGL_J1351.0+0029_daily_bin537.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/13808/ltcube_378518401_378777601_4FGL_J1351.0+0029_daily_bin537.fits
.....................!
real 193.24
user 186.81
sys 5.22

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/13808/ft1_filtered_4FGL_J1351.0+0029_daily_bin537.fits scfile=/scratch/kocevski/13808/ft2_4FGL_J1351.0+0029_daily_bin537.fits outfile=/scratch/kocevski/13808/cmap_378518401_378777601_4FGL_J1351.0+0029_daily_bin537.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13808/ft1_filtered_4FGL_J1351.0+0029_daily_bin537.fits scfile=/scratch/kocevski/13808/ft2_4FGL_J1351.0+0029_daily_bin537.fits outfile=/scratch/kocevski/13808/cmap_HighResolution_378518401_378777601_4FGL_J1351.0+0029_daily_bin537.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.401       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.013       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.763       1.0000         .10000E-03   10000.    
     5 'norm      '    15.106       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.510       1.0000         .10000E-03   10000.    
     7 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .97365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4123       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0927       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14245E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.770       1.0000         .10000E-03   10000.    
    18 'norm      '    17.780       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.986       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87624       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0536       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=   6430.484     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2242 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.408        15.494        .28108E-07   -.26980E-05
   2  norm          .10000E-03    5.3751       -.16113E-07** at limit **
   3  Prefactor     33.000        20.777        .10729E-06   -.17981E-04
   4  Prefactor     13.763        11.667        .92892E-07   -.31180E-04
   5  norm          15.105        2.6738        .19720E-07   -.84668E-04
   6  Prefactor     26.542        61.524        .83083E-07   -.52265E-05
   7  norm          .10000E-03    12.471       -.40661E-07** at limit **
   8  Prefactor     .96830        2.3209        .88960E-06    .39545E-03
   9  Prefactor     .10000E-03    10.828       -.22258E-06** at limit **
  10  Prefactor     2.4129        2.8262        .15750E-07   -.41585E-04
  11  norm          1.0925        5.2431        .21342E-05    .97062E-05
  12  Prefactor     .10015E-03    6.7393        .12415E-05** at limit **
  13  norm          1.9640        2.6964        .24691E-06   -.35422E-04
  14  Prefactor     .10000E-03    26.499       -.15379E-06** at limit **
  15  norm          .10000E-03    3.7615       -.19549E-07** at limit **
  16  norm          .10000E-03    8.5789       -.23298E-06** at limit **
  17  Prefactor     10.791        21.499        .33887E-06   -.89816E-05
  18  norm          17.774        19.725        .91034E-07   -.11023E-04
  19  Prefactor     46.096        73.442        .62660E-06    .22507E-04
  20  Normalizat    .87650        .21715       -.77827E-06   -.16372E-03
  21  Prefactor     1.0535        .15036        .81979E-07   -.24047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 45.4076
  norm       = 0.0001
  Prefactor  = 33.0003
  Prefactor  = 13.7626
  norm       = 15.1054
  Prefactor  = 26.5423
  norm       = 0.0001
  Prefactor  = 0.968298
  Prefactor  = 0.0001
  Prefactor  = 2.41292
  norm       = 1.09247
  Prefactor  = 0.000100152
  norm       = 1.96398
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.791
  norm       = 17.7739
  Prefactor  = 46.0959
  Normalizat = 0.876505
  Prefactor  = 1.05354
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.484     FROM HESSE     STATUS=OK           323 CALLS     2565 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.408        15.491        .59503E-04   -1.4359    
   2  norm          .10000E-03    5.3763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.000        20.806        .69741E-04   -1.4558    
   4  Prefactor     13.763        11.666        .10797E-03   -1.4966    
   5  norm          15.105        2.6750        .52541E-04   -1.4930    
   6  Prefactor     26.542        61.429        .77805E-04   -1.4677    
   7  norm          .10000E-03    12.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .96830        2.2146        .19674E-02   -1.5511    
   9  Prefactor     .10000E-03    10.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4129        2.8224        .14178E-03   -1.5397    
  11  norm          1.0925        4.9781        .34943E-03   -1.5499    
  12  Prefactor     .10015E-03    41.765        .37339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9640        2.6758        .14625E-03   -1.5428    
  14  Prefactor     .10000E-03    26.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7632        .15189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.7479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.791        21.491        .12208E-03   -1.5051    
  18  norm          17.774        19.721        .94983E-04   -1.4865    
  19  Prefactor     46.096        73.571        .29563E-03   -1.4349    
  20  Normalizat    .87650        .25486        .32290E-03   -.97291    
  21  Prefactor     1.0535        .17779        .21203E-03   -.90966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71123e-09
Minuit parameter uncertainties:
  1  15.4928
  2  1.67711e-07
  3  20.811
  4  11.6677
  5  2.67498
  6  61.5757
  7  4.02506e-06
  8  2.2148
  9  5.02323e-06
  10  2.82255
  11  4.66451
  12  0.00503901
  13  2.67601
  14  2.29865e-05
  15  2.1532e-07
  16  3.9043e-06
  17  21.5059
  18  19.7283
  19  73.7164
  20  0.255212
  21  0.177893
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  5.023e-06  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.054e+00  1.779e-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:  8.765e-01  2.552e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13808/likelihoodResults_378518401_378777601_4FGL_J1351.0+0029_daily_bin537.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) = 6430.48419596
delta logL = -0.000437470472207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6430.48375948
delta logL = -9.8466352938e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11324E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4252       1.0000          .0000       10.000    
     3 'Normalizat'    .87629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0537       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6430.484     FROM MIGRAD    STATUS=FAILED        89 CALLS      243 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    450.11        .18142E-02** at limit **
   2  Index         2.2982        8.6367        .50000        .50208E-05
   3  Normalizat    .87651        .34128E-01    .32290E-03    .77457E-06
   4  Prefactor     1.0535        .24509E-01    .21203E-03    .22520E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6430.484     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      386 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    450.11        .62388E-03** at limit **
   2  Index         2.2982        8.6367        .70651E-04    .50208E-05
   3  Normalizat    .87651        .34128E-01    .11595E-05    .77457E-06
   4  Prefactor     1.0535        .24509E-01    .76349E-06    .22520E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6430.484     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      425 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1954.3        .36285E-03** at limit **
   2  Index         2.1309        5.9404        .50000        .18736E-06
   3  Normalizat    .87651        .98817E-01    .12916E-04    .11443E-04
   4  Prefactor     1.0535        .70919E-01    .84813E-05    .19302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1309
  Normalizat = 0.876505
  Prefactor  = 1.05354
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.484     FROM HESSE     STATUS=OK            29 CALLS      454 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.507        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1309        5.1691        .50000       -.61116    
   3  Normalizat    .87651        .24574        .25832E-05   -.97291    
   4  Prefactor     1.0535        .17664        .16963E-05   -.90966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28743e-10
Minuit parameter uncertainties:
  1  0.000126494
  2  264.801
  3  0.24605
  4  0.17674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13808': 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) = 6430.48375816
delta logL = 3.29228896589e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.265e-04  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.131e+00  2.648e+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.054e+00  1.767e-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:  8.765e-01  2.461e-01  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/13808/cmap_HighResolution_378518401_378777601_4FGL_J1351.0+0029_daily_bin537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-08 15:29:04.304114', job_id='13808', GAL2='1.05', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631140144.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='537' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:29:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 13808: <4FGL_J1351.0+0029_daily_bin537> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin537> 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) <bullet0069>, 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:29:05 2021
Results reported at Wed Sep  8 15:29:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin537 207.757 0.4873 378518401 378777601 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 :                                   604.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            808 sec.

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

