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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin404
RA = 207.757, Dec = 0.4873
tmin = 344044801, tmax = 344304001
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='13563', job_status='RUN', time_executed='2021-09-08 15:17:59.304774', time_epoch_executed='1631139479.3' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13563

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13563/ft1_4FGL_J1351.0+0029_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13563/ft2_4FGL_J1351.0+0029_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13563/ft1_4FGL_J1351.0+0029_daily_bin404.fits outfile=/scratch/kocevski/13563/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin404.fits ra=207.757 dec=0.4873 rad=12.0 tmin=344044801.0 tmax=344304001.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.41
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13563/ft1_filtered_4FGL_J1351.0+0029_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/13563/ft2_4FGL_J1351.0+0029_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/13563/ltcube_344044801_344304001_4FGL_J1351.0+0029_daily_bin404.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/13563/ft2_4FGL_J1351.0+0029_daily_bin404.fits
.....................!
real 14.83
user 14.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13563/ft1_filtered_4FGL_J1351.0+0029_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/13563/ft2_4FGL_J1351.0+0029_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/13563/ltcube_344044801_344304001_4FGL_J1351.0+0029_daily_bin404.fits outfile=/scratch/kocevski/13563/expmap_344044801_344304001_4FGL_J1351.0+0029_daily_bin404.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/13563/ltcube_344044801_344304001_4FGL_J1351.0+0029_daily_bin404.fits
.....................!
real 191.72
user 186.30
sys 4.30

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/13563/ft1_filtered_4FGL_J1351.0+0029_daily_bin404.fits scfile=/scratch/kocevski/13563/ft2_4FGL_J1351.0+0029_daily_bin404.fits outfile=/scratch/kocevski/13563/cmap_344044801_344304001_4FGL_J1351.0+0029_daily_bin404.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7371       1.0000         .10000E-03   10000.    
     5 'norm      '    .33697E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.523       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .94133       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .93424       1.0000         .10000E-03   10000.    
    11 'norm      '    8.0028       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.801       1.0000         .10000E-03   10000.    
    13 'norm      '    .34138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.363       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1457       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.140       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3530       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96627       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=   8410.254     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2887 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.6438        .60463E-07** at limit **
   2  norm          .10000E-03    4.8403        .16855E-07** at limit **
   3  Prefactor     .10000E-03    28.262        .11532E-05** at limit **
   4  Prefactor     9.7379        8.2308        .38920E-06   -.94533E-05
   5  norm          .34249E-01    .50628       -.31824E-06    .17898E-02
   6  Prefactor     38.524        45.648       -.14075E-07    .16179E-04
   7  norm          .10000E-03    27.488        .48971E-06** at limit **
   8  Prefactor     .94186        2.4638        .10242E-05    .87577E-04
   9  Prefactor     .10000E-03    15.073        .82585E-06** at limit **
  10  Prefactor     .93388        2.9256        .15033E-05    .54749E-04
  11  norm          8.0032        6.2375        .62698E-07    .80091E-05
  12  Prefactor     20.803        13.217        .16643E-06   -.15378E-04
  13  norm          .34000        1.5481        .18266E-06   -.32922E-03
  14  Prefactor     .10000E-03    7.1747        .43023E-08** at limit **
  15  norm          13.363        8.3640       -.35524E-08   -.32329E-05
  16  norm          8.1460        6.7811        .11727E-05   -.23364E-04
  17  Prefactor     .10000E-03    43.511       -.88978E-06** at limit **
  18  norm          .10000E-03    17.675       -.12152E-05** at limit **
  19  Prefactor     58.129        91.491       -.66014E-06   -.61114E-04
  20  Normalizat    1.3528        .19026       -.56629E-06   -.99233E-05
  21  Prefactor     .96635        .13272       -.31719E-06   -.27457E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 9.73788
  norm       = 0.034249
  Prefactor  = 38.5245
  norm       = 0.0001
  Prefactor  = 0.941857
  Prefactor  = 0.000100001
  Prefactor  = 0.933882
  norm       = 8.0032
  Prefactor  = 20.803
  norm       = 0.339999
  Prefactor  = 0.0001
  norm       = 13.3631
  norm       = 8.14602
  Prefactor  = 0.000100001
  norm       = 0.000100003
  Prefactor  = 58.1289
  Normalizat = 1.35276
  Prefactor  = 0.966352
 **********
 **   18 **HESSE 
 **********

 FCN=   8410.254     FROM HESSE     STATUS=OK           321 CALLS     3208 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.9580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.8508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    28.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7379        8.2356        .64210E-03   -1.5084    
   5  norm          .34249E-01    6.4591        .11474E-02   -1.5671    
   6  Prefactor     38.524        45.639        .64577E-04   -1.4466    
   7  norm          .10000E-03    27.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .94186        2.4221        .22598E-03   -1.5514    
   9  Prefactor     .10000E-03    15.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .93388        2.9006        .27110E-03   -1.5515    
  11  norm          8.0032        6.2321        .14173E-03   -1.5142    
  12  Prefactor     20.803        13.268        .87820E-04   -1.4795    
  13  norm          .34000        3.1886        .21039E-02   -1.5591    
  14  Prefactor     .10000E-03    7.1878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.363        8.3657        .10957E-03   -1.4977    
  16  norm          8.1460        6.7526        .70237E-03   -1.5137    
  17  Prefactor     .10000E-03    43.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.129        91.561        .52614E-04   -1.4182    
  20  Normalizat    1.3528        .22894        .27665E-03   -.82005    
  21  Prefactor     .96635        .15979        .22662E-03   -.93860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14531e-08
Minuit parameter uncertainties:
  1  4.26296e-06
  2  1.99434e-06
  3  0.000456904
  4  8.23657
  5  0.939401
  6  45.6806
  7  0.000224829
  8  2.42235
  9  0.000286869
  10  2.90103
  11  6.23257
  12  13.2701
  13  2.08228
  14  5.08009e-08
  15  8.3664
  16  6.75324
  17  0.000457004
  18  0.000474165
  19  91.784
  20  0.229116
  21  0.15987
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.869e-04  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:  9.664e-01  1.599e-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.353e+00  2.291e-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: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13563/likelihoodResults_344044801_344304001_4FGL_J1351.0+0029_daily_bin404.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) = 8410.25410361
delta logL = -0.000314012078888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8410.25379019
delta logL = -5.93612639932e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12893E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4837       1.0000          .0000       10.000    
     3 'Normalizat'    1.3528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96630       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=   8410.254     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    1386.0        .18142E-02** at limit **
   2  Index         2.5441        5.3732        .50000       -.35970E-04
   3  Normalizat    1.3528        .44034E-01    .27665E-03    .20711E-04
   4  Prefactor     .96635        .31289E-01    .22662E-03    .27090E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  Index      = 2.54412
  Normalizat = 1.35276
  Prefactor  = 0.966352
 **********
 **   18 **HESSE 
 **********

 FCN=   8410.254     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    6933.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5441        5.8977        .50000       -.51344    
   3  Normalizat    1.3528        .13959        .11066E-04   -.82005    
   4  Prefactor     .96635        .99197E-01    .90647E-05   -.93860    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.68712e-08
Minuit parameter uncertainties:
  1  0.0292245
  2  65.5996
  3  0.139628
  4  0.0992152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13563': 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) = 8410.25378881
delta logL = 7.93297658674e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  2.922e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.544e+00  6.560e+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:  9.664e-01  9.922e-02  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.353e+00  1.396e-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/13563/cmap_HighResolution_344044801_344304001_4FGL_J1351.0+0029_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.86e-08', time_completed='2021-09-08 15:30:13.071741', job_id='13563', GAL2='0.97', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631140213.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='404' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:30:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 13563: <4FGL_J1351.0+0029_daily_bin404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin404 207.757 0.4873 344044801 344304001 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

