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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin700
RA = 207.757, Dec = 0.4873
tmin = 420768001, tmax = 421027201
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='15792', job_status='RUN', time_executed='2021-09-08 15:25:32.364748', time_epoch_executed='1631139932.36' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15792/ft1_4FGL_J1351.0+0029_daily_bin700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15792/ft2_4FGL_J1351.0+0029_daily_bin700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15792/ft1_4FGL_J1351.0+0029_daily_bin700.fits outfile=/scratch/kocevski/15792/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin700.fits ra=207.757 dec=0.4873 rad=12.0 tmin=420768001.0 tmax=421027201.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.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15792/ft1_filtered_4FGL_J1351.0+0029_daily_bin700.fits" evtable="EVENTS" scfile=/scratch/kocevski/15792/ft2_4FGL_J1351.0+0029_daily_bin700.fits sctable="SC_DATA" outfile=/scratch/kocevski/15792/ltcube_420768001_421027201_4FGL_J1351.0+0029_daily_bin700.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/15792/ft2_4FGL_J1351.0+0029_daily_bin700.fits
.....................!
real 14.36
user 13.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15792/ft1_filtered_4FGL_J1351.0+0029_daily_bin700.fits evtable="EVENTS" scfile=/scratch/kocevski/15792/ft2_4FGL_J1351.0+0029_daily_bin700.fits sctable="SC_DATA" expcube=/scratch/kocevski/15792/ltcube_420768001_421027201_4FGL_J1351.0+0029_daily_bin700.fits outfile=/scratch/kocevski/15792/expmap_420768001_421027201_4FGL_J1351.0+0029_daily_bin700.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/15792/ltcube_420768001_421027201_4FGL_J1351.0+0029_daily_bin700.fits
.....................!
real 193.08
user 187.43
sys 4.64

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/15792/ft1_filtered_4FGL_J1351.0+0029_daily_bin700.fits scfile=/scratch/kocevski/15792/ft2_4FGL_J1351.0+0029_daily_bin700.fits outfile=/scratch/kocevski/15792/cmap_420768001_421027201_4FGL_J1351.0+0029_daily_bin700.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42159E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12360E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .33372       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4357       1.0000         .10000E-03   10000.    
    11 'norm      '    7.3554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13548E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.9265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.8609       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.905       1.0000         .10000E-03   10000.    
    18 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .74950E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97601       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1030       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=   6910.471     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2269 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1277       -.14268E-05** at limit **
   2  norm          .10003E-03    42.868       -.14358E-04** at limit **
   3  Prefactor     .66946        15.005       -.45332E-06    .20415E-04
   4  Prefactor     .10000E-03    12.082       -.28774E-06** at limit **
   5  norm          .33424        1.1121       -.54986E-06    .11078E-02
   6  Prefactor     .10000E-03    42.525        .11948E-05** at limit **
   7  norm          .10000E-03    21.419        .14266E-06** at limit **
   8  Prefactor     2.7213        3.9214       -.29199E-06    .30525E-03
   9  Prefactor     34.634        25.246        .70177E-06    .31078E-03
  10  Prefactor     2.4360        2.5075        .39564E-08   -.10506E-03
  11  norm          7.3574        7.4602        .31410E-06    .38538E-03
  12  Prefactor     .10000E-03    48.154        .16097E-04** at limit **
  13  norm          8.9273        3.2113       -.77224E-07    .19488E-03
  14  Prefactor     .10000E-03    22.893       -.66301E-06** at limit **
  15  norm          7.8619        9.1202       -.17011E-06    .28512E-05
  16  norm          5.4380        5.5626       -.71342E-07    .75831E-04
  17  Prefactor     70.914        34.131       -.60910E-06   -.75375E-04
  18  norm          .10000E-03    44.720       -.37571E-06** at limit **
  19  Prefactor     .10003E-03    210.66        .13365E-04** at limit **
  20  Normalizat    .97569        .22288        .16533E-05    .51801E-03
  21  Prefactor     1.1030        .14963        .33579E-06    .80578E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100029
  Prefactor  = 0.669463
  Prefactor  = 0.0001
  norm       = 0.334242
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.72127
  Prefactor  = 34.6342
  Prefactor  = 2.43596
  norm       = 7.35736
  Prefactor  = 0.000100001
  norm       = 8.92729
  Prefactor  = 0.0001
  norm       = 7.86191
  norm       = 5.43796
  Prefactor  = 70.9138
  norm       = 0.0001
  Prefactor  = 0.000100025
  Normalizat = 0.975691
  Prefactor  = 1.10302
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.471     FROM HESSE     STATUS=OK           323 CALLS     2592 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.068        .41720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10003E-03    115.03        .60064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .66946        142.59        .59745E-02   -1.5544    
   4  Prefactor     .10000E-03    12.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .33424        1.1301        .15284E-03   -1.5592    
   6  Prefactor     .10000E-03    42.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7213        3.9218        .18892E-03   -1.5378    
   9  Prefactor     34.634        25.102        .68085E-04   -1.4530    
  10  Prefactor     2.4360        2.5154        .13026E-03   -1.5396    
  11  norm          7.3574        7.4917        .14789E-03   -1.5165    
  12  Prefactor     .10000E-03    61.882        .47692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.9273        3.2114        .85030E-04   -1.5110    
  14  Prefactor     .10000E-03    23.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.8619        9.1294        .14301E-03   -1.5147    
  16  norm          5.4380        5.5611        .17230E-03   -1.5242    
  17  Prefactor     70.914        34.275        .47674E-04   -1.4022    
  18  norm          .10000E-03    45.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    218.14        .41881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97569        .26320        .32016E-03   -.93849    
  21  Prefactor     1.1030        .17733        .21244E-03   -.89370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40708e-09
Minuit parameter uncertainties:
  1  0.000164423
  2  0.00365003
  3  19.5866
  4  7.26407e-05
  5  1.13021
  6  0.000309035
  7  1.6285e-05
  8  3.92219
  9  25.1099
  10  2.5155
  11  7.49267
  12  0.000371226
  13  3.21143
  14  0.000176565
  15  9.131
  16  5.56161
  17  34.2848
  18  5.71548e-05
  19  0.00470817
  20  0.263552
  21  0.177424
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.103e+00  1.774e-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.757e-01  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.59e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 1.49e-05

TS (Fixed Index): 3.55
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15792/likelihoodResults_420768001_421027201_4FGL_J1351.0+0029_daily_bin700.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) = 6910.36616734
delta logL = 0.104866600588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6910.35025305
delta logL = 0.120780893041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.406       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1325       1.0000          .0000       10.000    
     3 'Normalizat'    .99789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0944       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=   6910.350     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      249 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.402        30.648        .63851E-04    .25995E-04
   2  Index         2.1327        .62082        .95521E-02    .15346E-03
   3  Normalizat    .99796        .25250        .31695E-03   -.15065E-04
   4  Prefactor     1.0944        .17546        .21318E-03    .53489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.4024
  Index      = 2.13265
  Normalizat = 0.997961
  Prefactor  = 1.09438
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.350     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.402        30.584        .25541E-05   -1.4452    
   2  Index         2.1327        .61890        .19104E-02   -.61073    
   3  Normalizat    .99796        .25265        .12678E-04   -.93099    
   4  Prefactor     1.0944        .17559        .85272E-05   -.89646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94011e-11
Minuit parameter uncertainties:
  1  30.5961
  2  0.621281
  3  0.252952
  4  0.175683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15792': 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) = 6910.35025264
delta logL = 0.120781300775

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.940e+01  3.060e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.133e+00  6.213e-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.094e+00  1.757e-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.980e-01  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.13 +/- 0.62
Photon Flux (Free Index): 4.72e-08 +/- 5.45e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/15792/cmap_HighResolution_420768001_421027201_4FGL_J1351.0+0029_daily_bin700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='6.59e-08', energy_flux2='2.42e-05', photon_flux_error='4.78e-08', dlogl='1.21e-01', energy_flux='2.06e-05', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-08 15:35:40.559415', photon_index_error2='0.62', photon_index2='2.13', ts='3.55', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='2.13e-05', EG='0.98', time_epoch_completed='1631140540.56', return_code='0', job_id='15792', GAL2='1.09', EG2='1.00', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.45e-08', ts2='3.76', photon_index='2.44' WHERE bin_id='700' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:35:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 15792: <4FGL_J1351.0+0029_daily_bin700> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin700 207.757 0.4873 420768001 421027201 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 :                                   607.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            907 sec.

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

