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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin322
RA = 207.757, Dec = 0.4873
tmin = 322790401, tmax = 323049601
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='12254', job_status='RUN', time_executed='2021-09-08 15:14:07.849134', time_epoch_executed='1631139247.85' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12254

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12254/ft1_4FGL_J1351.0+0029_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12254/ft2_4FGL_J1351.0+0029_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12254/ft1_4FGL_J1351.0+0029_daily_bin322.fits outfile=/scratch/kocevski/12254/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin322.fits ra=207.757 dec=0.4873 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.04
user 11.69
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12254/ft1_filtered_4FGL_J1351.0+0029_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/12254/ft2_4FGL_J1351.0+0029_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/12254/ltcube_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.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/12254/ft2_4FGL_J1351.0+0029_daily_bin322.fits
.....................!
real 12.98
user 12.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12254/ft1_filtered_4FGL_J1351.0+0029_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/12254/ft2_4FGL_J1351.0+0029_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/12254/ltcube_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.fits outfile=/scratch/kocevski/12254/expmap_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.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/12254/ltcube_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.fits
.....................!
real 193.66
user 187.39
sys 5.72

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/12254/ft1_filtered_4FGL_J1351.0+0029_daily_bin322.fits scfile=/scratch/kocevski/12254/ft2_4FGL_J1351.0+0029_daily_bin322.fits outfile=/scratch/kocevski/12254/cmap_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12254/ft1_filtered_4FGL_J1351.0+0029_daily_bin322.fits scfile=/scratch/kocevski/12254/ft2_4FGL_J1351.0+0029_daily_bin322.fits outfile=/scratch/kocevski/12254/cmap_HighResolution_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.547       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.044       1.0000         .10000E-03   10000.    
     7 'norm      '    31.065       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.099       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.671       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1179       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.864       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.5396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    93.109       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0087       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83493       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=   3706.560     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2193 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.547        18.199       -.12161E-06   -.72748E-05
   2  norm          .10000E-03    8.3805       -.52813E-05** at limit **
   3  Prefactor     .10000E-03    7.9836       -.38514E-05** at limit **
   4  Prefactor     .10000E-03    3.8001       -.24571E-06** at limit **
   5  norm          .10000E-03    .85827        .40107E-06** at limit **
   6  Prefactor     24.048        74.375        .77109E-05   -.15174E-05
   7  norm          31.065        33.781        .42089E-07   -.73131E-07
   8  Prefactor     26.100        7.5918       -.10290E-07   -.19767E-04
   9  Prefactor     33.677        34.692        .89928E-05    .18858E-04
  10  Prefactor     .10000E-03    2.2340        .10754E-06** at limit **
  11  norm          .10000E-03    5.2630       -.14362E-05** at limit **
  12  Prefactor     3.1138        13.542       -.72119E-05   -.16514E-03
  13  norm          1.6267        2.7643        .63802E-07   -.24318E-03
  14  Prefactor     24.866        22.699        .35084E-05    .64442E-05
  15  norm          .10000E-03    6.7011        .65044E-05** at limit **
  16  norm          9.5380        13.556       -.11662E-05   -.36172E-04
  17  Prefactor     .10000E-03    11.228        .73652E-05** at limit **
  18  norm          .10000E-03    18.112       -.25895E-05** at limit **
  19  Prefactor     93.108        100.30       -.14519E-05   -.31041E-05
  20  Normalizat    1.0087        .25913       -.26813E-05    .38895E-04
  21  Prefactor     .83495        .18140        .12063E-05   -.81122E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.0484
  norm       = 31.0654
  Prefactor  = 26.0995
  Prefactor  = 33.6773
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.11385
  norm       = 1.62666
  Prefactor  = 24.8664
  norm       = 0.0001
  norm       = 9.53802
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 93.1078
  Normalizat = 1.00874
  Prefactor  = 0.834948
 **********
 **   18 **HESSE 
 **********

 FCN=   3706.560     FROM HESSE     STATUS=OK           315 CALLS     2508 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.547        18.201        .98460E-04   -1.4894    
   2  norm          .10000E-03    8.3653        .17198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9828        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8030        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .87865        .11002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.048        74.329        .81690E-04   -1.4727    
   7  norm          31.065        33.792        .71888E-04   -1.4593    
   8  Prefactor     26.100        7.6173        .78415E-04   -1.4686    
   9  Prefactor     33.677        34.759        .69058E-04   -1.4547    
  10  Prefactor     .10000E-03    2.2429        .88855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.2772        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1138        13.829        .22962E-03   -1.5355    
  13  norm          1.6267        2.7298        .12662E-03   -1.5453    
  14  Prefactor     24.866        22.706        .80335E-04   -1.4710    
  15  norm          .10000E-03    6.6807        .15365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5380        13.576        .12975E-03   -1.5090    
  17  Prefactor     .10000E-03    11.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    18.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     93.108        100.37        .41649E-04   -1.3775    
  20  Normalizat    1.0087        .30326        .27571E-03   -.92738    
  21  Prefactor     .83495        .21301        .21271E-03   -.98453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63618e-10
Minuit parameter uncertainties:
  1  18.2068
  2  7.43033e-07
  3  2.21829e-06
  4  4.87299e-07
  5  2.89936e-07
  6  74.6176
  7  33.8129
  8  7.61755
  9  34.78
  10  1.93764e-06
  11  3.35316e-06
  12  13.1291
  13  2.72999
  14  22.7135
  15  1.24056e-06
  16  13.5804
  17  3.59993e-07
  18  8.70017e-07
  19  100.55
  20  0.303777
  21  0.213221
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.368e+01  3.478e+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:  8.349e-01  2.132e-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.009e+00  3.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.25
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 6.62e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 2.07e-05

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

Saving results to:
/scratch/kocevski/12254/likelihoodResults_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.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) = 3705.80934102
delta logL = 0.75042487328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3705.51846193
delta logL = 1.0413039654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95491E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9157       1.0000          .0000       10.000    
     3 'Normalizat'    .90178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90726       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.

 FCN=   3705.518     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      394 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94693E-03    .14503E-01    .36291E-03** at limit **
   2  Index         7.9203        2.8173        .10485        .27249E-03
   3  Normalizat    .90214        .75309E-01    .65451E-01    .17284E-03
   4  Prefactor     .90694        .53593E-01    .45098E-01   -.15300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000946934
  Index      = 7.9203
  Normalizat = 0.902141
  Prefactor  = 0.906941
 **********
 **   18 **HESSE 
 **********

 FCN=   3705.518     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      427 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94693E-03    .26933E-01    .13815E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9203        7.7042        .43998E-02    .62372    
   3  Normalizat    .90214        .24396        .28952E-03   -.96385    
   4  Prefactor     .90694        .17161        .20507E-03   -.95899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.33335e-10
Minuit parameter uncertainties:
  1  0.00955215
  2  4.64534
  3  0.244261
  4  0.171708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12254': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3705.51845679
delta logL = 1.04130911064

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  9.469e-04  9.552e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  7.920e+00  4.645e+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:  9.069e-01  1.717e-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.021e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.54
Ra Dec: 207.757 0.487
Photon Index (Free Index): 7.92 +/- 4.65
Photon Flux (Free Index): 1.16e-07 +/- 7.83e-08
Energy Flux (Free Index): 1.35e-05 +/- 9.36e-06

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/12254/cmap_HighResolution_322790401_323049601_4FGL_J1351.0+0029_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='1.35e-05', photon_flux_error='6.62e-08', dlogl='1.04e+00', energy_flux='2.00e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-08 15:22:59.595510', photon_index_error2='4.65', photon_index2='7.92', ts='1.25', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='9.36e-06', EG='1.01', time_epoch_completed='1631139779.6', return_code='0', job_id='12254', GAL2='0.91', EG2='0.90', return_code2='102', energy_flux_error='2.07e-05', photon_flux_error2='7.83e-08', ts2='3.54', photon_index='2.44' WHERE bin_id='322' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:22:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 12254: <4FGL_J1351.0+0029_daily_bin322> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin322 207.757 0.4873 322790401 323049601 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 :                                   521.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            734 sec.

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

