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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin794
RA = 207.757, Dec = 0.4873
tmin = 445132801, tmax = 445392001
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='17030', job_status='RUN', time_executed='2021-09-08 15:27:31.681917', time_epoch_executed='1631140051.68' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='794'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17030

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17030/ft1_4FGL_J1351.0+0029_daily_bin794.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17030/ft2_4FGL_J1351.0+0029_daily_bin794.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17030/ft1_4FGL_J1351.0+0029_daily_bin794.fits outfile=/scratch/kocevski/17030/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin794.fits ra=207.757 dec=0.4873 rad=12.0 tmin=445132801.0 tmax=445392001.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.68
user 3.40
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17030/ft1_filtered_4FGL_J1351.0+0029_daily_bin794.fits evtable="EVENTS" scfile=/scratch/kocevski/17030/ft2_4FGL_J1351.0+0029_daily_bin794.fits sctable="SC_DATA" expcube=/scratch/kocevski/17030/ltcube_445132801_445392001_4FGL_J1351.0+0029_daily_bin794.fits outfile=/scratch/kocevski/17030/expmap_445132801_445392001_4FGL_J1351.0+0029_daily_bin794.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/17030/ltcube_445132801_445392001_4FGL_J1351.0+0029_daily_bin794.fits
.....................!
real 192.11
user 187.35
sys 4.14

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/17030/ft1_filtered_4FGL_J1351.0+0029_daily_bin794.fits scfile=/scratch/kocevski/17030/ft2_4FGL_J1351.0+0029_daily_bin794.fits outfile=/scratch/kocevski/17030/cmap_445132801_445392001_4FGL_J1351.0+0029_daily_bin794.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.738       1.0000         .10000E-03   10000.    
     2 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3378       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6342       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5549       1.0000         .10000E-03   10000.    
    15 'norm      '    13.868       1.0000         .10000E-03   10000.    
    16 'norm      '    16.850       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .68664E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93343       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94887       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=   7448.251     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1883 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.739        9.5893        .25240E-02   -.89887E-04
   2  norm          .10000E-03    30.913        .90712E-02** at limit **
   3  Prefactor     8.3340        14.705        .34716E-02    .11733E-02
   4  Prefactor     .10000E-03    2.8287        .90712E-02** at limit **
   5  norm          1.5536        1.2090        .85407E-02   -.11507E-03
   6  Prefactor     .10004E-03    66.574        .90712E-02** at limit **
   7  norm          .10000E-03    10.328        .90712E-02** at limit **
   8  Prefactor     .10000E-03    1.2197        .90712E-02** at limit **
   9  Prefactor     .10000E-03    6.0484        .90712E-02** at limit **
  10  Prefactor     2.3378        2.3611        .67042E-02   -.37712E-03
  11  norm          6.7388        6.6313        .38642E-02    .20177E-03
  12  Prefactor     .10000E-03    2.2854        .90712E-02** at limit **
  13  norm          2.6346        2.0276        .62809E-02    .24988E-03
  14  Prefactor     7.5548        9.6415        .36476E-02    .34424E-04
  15  norm          13.869        9.5348        .26889E-02   -.27576E-03
  16  norm          16.849        8.8082        .24393E-02   -.11412E-03
  17  Prefactor     .10072E-03    14.226        .10495    ** at limit **
  18  norm          .10000E-03    8.4964        .90712E-02** at limit **
  19  Prefactor     .10000E-03    19.010        .90712E-02** at limit **
  20  Normalizat    .93344        .17511        .45327E-01   -.11048E-03
  21  Prefactor     .94887        .12216        .45625E-01   -.14735E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7387
  norm       = 0.0001
  Prefactor  = 8.33397
  Prefactor  = 0.0001
  norm       = 1.55361
  Prefactor  = 0.000100037
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33782
  norm       = 6.73883
  Prefactor  = 0.0001
  norm       = 2.63463
  Prefactor  = 7.55479
  norm       = 13.8686
  norm       = 16.8494
  Prefactor  = 0.000100719
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.933443
  Prefactor  = 0.948868
 **********
 **   18 **HESSE 
 **********

 FCN=   7448.251     FROM HESSE     STATUS=OK           319 CALLS     2202 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.739        9.5839        .10096E-03   -1.4914    
   2  norm          .10000E-03    32.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3340        14.714        .69432E-03   -1.5131    
   4  Prefactor     .10000E-03    2.8359        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5536        1.1992        .79171E-04   -1.5459    
   6  Prefactor     .10004E-03    66.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2307        .93044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3378        2.3696        .12994E-03   -1.5402    
  11  norm          6.7388        6.6259        .15457E-03   -1.5189    
  12  Prefactor     .10000E-03    2.2878        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6346        2.0164        .10171E-03   -1.5383    
  14  Prefactor     7.5548        9.6380        .14590E-03   -1.5158    
  15  norm          13.869        9.5400        .53778E-03   -1.4963    
  16  norm          16.849        8.7875        .97570E-04   -1.4887    
  17  Prefactor     .10072E-03    100.30        .62539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.5107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93344        .20443        .27966E-03   -.95295    
  21  Prefactor     .94887        .14373        .19778E-03   -.94454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35825e-09
Minuit parameter uncertainties:
  1  9.58485
  2  0.000146462
  3  14.7204
  4  4.87324e-06
  5  1.19926
  6  0.00315615
  7  9.36419e-06
  8  2.50688e-06
  9  1.68322e-05
  10  2.36968
  11  6.62658
  12  2.7677e-06
  13  2.01641
  14  9.63998
  15  9.54102
  16  8.78821
  17  0.0170115
  18  2.01477e-05
  19  0.000111812
  20  0.204605
  21  0.143792
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.683e-05  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.489e-01  1.438e-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.334e-01  2.046e-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: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17030/likelihoodResults_445132801_445392001_4FGL_J1351.0+0029_daily_bin794.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) = 7448.2521673
delta logL = -0.000786058804806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7448.25138122
delta logL = 2.044816938e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4205       1.0000          .0000       10.000    
     3 'Normalizat'    .93342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94888       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=   7448.251     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10208E-03    94.039        .18142E-02** at limit **
   2  Index         2.3339        8.5544        .50000        .18722E-04
   3  Normalizat    .93344        .16638E-01    .27966E-03   -.71548E-05
   4  Prefactor     .94887        .11919E-01    .19778E-03    .31615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102084
  Index      = 2.3339
  Normalizat = 0.933443
  Prefactor  = 0.948869
 **********
 **   18 **HESSE 
 **********

 FCN=   7448.251     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10208E-03    380.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3339        8.2414        .50000       -.56240    
   3  Normalizat    .93344        .35529E-01    .11186E-04   -.95295    
   4  Prefactor     .94887        .25452E-01    .79110E-05   -.94454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.47659e-08
Minuit parameter uncertainties:
  1  0.0566654
  2  997.938
  3  0.0355303
  4  0.0254523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17030': 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) = 7448.2513809
delta logL = 3.41775376e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.489e-01  2.545e-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:  9.334e-01  3.553e-02  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/17030/cmap_HighResolution_445132801_445392001_4FGL_J1351.0+0029_daily_bin794.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-09-08 15:37:46.392855', job_id='17030', GAL2='0.95', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631140666.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='794' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:37:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 17030: <4FGL_J1351.0+0029_daily_bin794> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin794> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:20 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:25:28 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:25:28 2021
Terminated at Wed Sep  8 15:37:47 2021
Results reported at Wed Sep  8 15:37:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin794 207.757 0.4873 445132801 445392001 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 :                                   613.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            747 sec.

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

