/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 151 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 = 7389
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin386
RA = 207.757, Dec = 0.4873
tmin = 339379201, tmax = 339638401
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='13536', job_status='RUN', time_executed='2021-09-08 15:18:01.285843', time_epoch_executed='1631139481.29' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13536

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13536/ft1_4FGL_J1351.0+0029_daily_bin386.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13536/ft2_4FGL_J1351.0+0029_daily_bin386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13536/ft1_4FGL_J1351.0+0029_daily_bin386.fits outfile=/scratch/kocevski/13536/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin386.fits ra=207.757 dec=0.4873 rad=12.0 tmin=339379201.0 tmax=339638401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.92
user 5.63
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13536/ft1_filtered_4FGL_J1351.0+0029_daily_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/13536/ft2_4FGL_J1351.0+0029_daily_bin386.fits sctable="SC_DATA" expcube=/scratch/kocevski/13536/ltcube_339379201_339638401_4FGL_J1351.0+0029_daily_bin386.fits outfile=/scratch/kocevski/13536/expmap_339379201_339638401_4FGL_J1351.0+0029_daily_bin386.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/13536/ltcube_339379201_339638401_4FGL_J1351.0+0029_daily_bin386.fits
.....................!
real 191.94
user 186.50
sys 4.73

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/13536/ft1_filtered_4FGL_J1351.0+0029_daily_bin386.fits scfile=/scratch/kocevski/13536/ft2_4FGL_J1351.0+0029_daily_bin386.fits outfile=/scratch/kocevski/13536/cmap_339379201_339638401_4FGL_J1351.0+0029_daily_bin386.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13536/ft1_filtered_4FGL_J1351.0+0029_daily_bin386.fits scfile=/scratch/kocevski/13536/ft2_4FGL_J1351.0+0029_daily_bin386.fits outfile=/scratch/kocevski/13536/cmap_HighResolution_339379201_339638401_4FGL_J1351.0+0029_daily_bin386.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7718       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10690E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8668       1.0000         .10000E-03   10000.    
    11 'norm      '    .27095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.045       1.0000         .10000E-03   10000.    
    15 'norm      '    28.407       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4119       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.544       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3494       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0472       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=   7488.276     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2282 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7156       -.22050E-07** at limit **
   2  norm          .10000E-03    3.2086        .26145E-07** at limit **
   3  Prefactor     12.311        11.461       -.35793E-06    .91079E-05
   4  Prefactor     .10000E-03    27.832        .51938E-05** at limit **
   5  norm          1.6824        1.1894       -.12225E-06   -.37565E-03
   6  Prefactor     .10000E-03    18.315       -.14097E-04** at limit **
   7  norm          .10000E-03    10.589        .96460E-07** at limit **
   8  Prefactor     4.7717        4.8086        .32824E-05   -.32578E-03
   9  Prefactor     .10003E-03    12.953       -.13462E-05** at limit **
  10  Prefactor     4.8683        4.0910       -.18022E-05   -.67708E-04
  11  norm          .10000E-03    5.0143       -.29530E-06** at limit **
  12  Prefactor     .10000E-03    4.3289        .34288E-07** at limit **
  13  norm          .10000E-03    .71899        .86955E-08** at limit **
  14  Prefactor     16.028        24.435       -.43566E-05    .67558E-05
  15  norm          28.408        12.974       -.69281E-07    .18489E-04
  16  norm          5.4125        6.6105       -.18370E-05   -.15656E-03
  17  Prefactor     .10000E-03    12.697       -.24937E-05** at limit **
  18  norm          .10000E-03    15.813        .12711E-04** at limit **
  19  Prefactor     72.500        108.09       -.48038E-04   -.30113E-05
  20  Normalizat    1.3492        .21549        .97285E-06    .65338E-04
  21  Prefactor     1.0473        .14908        .13140E-05    .26164E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3114
  Prefactor  = 0.000100001
  norm       = 1.68238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.77165
  Prefactor  = 0.000100027
  Prefactor  = 4.86833
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.0283
  norm       = 28.4078
  norm       = 5.41248
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.4999
  Normalizat = 1.34918
  Prefactor  = 1.04728
 **********
 **   18 **HESSE 
 **********

 FCN=   7488.276     FROM HESSE     STATUS=OK           317 CALLS     2599 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7213        .13927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.2089        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.311        11.470        .11415E-03   -1.5006    
   4  Prefactor     .10000E-03    28.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6824        1.1853        .76156E-04   -1.5449    
   6  Prefactor     .10000E-03    18.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7717        4.7881        .17965E-03   -1.5271    
   9  Prefactor     .10003E-03    94.363        .59706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8683        4.0919        .15620E-03   -1.5267    
  11  norm          .10000E-03    18.001        .37365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3357        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .72639        .71614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.028        24.464        .99990E-04   -1.4907    
  15  norm          28.408        12.976        .75168E-04   -1.4641    
  16  norm          5.4125        6.6126        .17274E-03   -1.5243    
  17  Prefactor     .10000E-03    12.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    15.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     72.500        108.33        .47136E-04   -1.4003    
  20  Normalizat    1.3492        .25774        .29021E-03   -.82110    
  21  Prefactor     1.0473        .17854        .22807E-03   -.91170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79789e-10
Minuit parameter uncertainties:
  1  2.67081e-06
  2  6.32511e-07
  3  11.4723
  4  0.000330527
  5  1.18529
  6  5.74459e-06
  7  4.52229e-06
  8  4.78845
  9  0.00317105
  10  4.0921
  11  0.000295115
  12  4.03414e-06
  13  1.41198e-07
  14  24.4789
  15  12.9774
  16  6.61354
  17  2.05653e-05
  18  6.13675e-05
  19  108.628
  20  0.257983
  21  0.178641
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.171e-03  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.047e+00  1.786e-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.349e+00  2.580e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13536/likelihoodResults_339379201_339638401_4FGL_J1351.0+0029_daily_bin386.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) = 7488.2758051
delta logL = -4.90779366373e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7488.2758051
delta logL = -4.90735892527e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96346E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4368       1.0000          .0000       10.000    
     3 'Normalizat'    1.3492       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0473       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7488.265     FROM MIGRAD    STATUS=CONVERGED    143 CALLS      313 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96161        15.415        .18143E-02   -.73873E-03
   2  Index         3.2446        3.0283        .62104E-02   -.21308E-05
   3  Normalizat    1.3408        .25750        .29099E-03    .10509E-04
   4  Prefactor     1.0500        .17869        .22782E-03    .66868E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.96161
  Index      = 3.24458
  Normalizat = 1.34082
  Prefactor  = 1.04995
 **********
 **   18 **HESSE 
 **********

 FCN=   7488.265     FROM HESSE     STATUS=OK            27 CALLS      340 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96161        16.821        .36286E-03   -1.5904    
   2  Index         3.2446        3.1272        .24841E-03   -.35873    
   3  Normalizat    1.3408        .25782        .11640E-04   -.82356    
   4  Prefactor     1.0500        .17887        .91129E-05   -.91082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30146e-12
Minuit parameter uncertainties:
  1  8.04588
  2  3.42445
  3  0.258067
  4  0.178972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13536': 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) = 7488.26464546
delta logL = 0.0111105599972

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  9.616e-01  8.046e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.245e+00  3.424e+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:  1.050e+00  1.790e-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.341e+00  2.581e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/13536/cmap_HighResolution_339379201_339638401_4FGL_J1351.0+0029_daily_bin386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-08 15:28:59.923392', job_id='13536', GAL2='1.05', fit_tolerance='1e-08', EG2='1.34', EG='1.35', time_epoch_completed='1631140139.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.11e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='386' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 13536: <4FGL_J1351.0+0029_daily_bin386> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin386> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:20 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:21 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:21 2021
Terminated at Wed Sep  8 15:29:00 2021
Results reported at Wed Sep  8 15:29:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin386 207.757 0.4873 339379201 339638401 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 :                                   655.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

