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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin381
RA = 207.757, Dec = 0.4873
tmin = 338083201, tmax = 338342401
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='13529', job_status='RUN', time_executed='2021-09-08 15:17:30.733122', time_epoch_executed='1631139450.73' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13529

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13529/ft1_4FGL_J1351.0+0029_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13529/ft2_4FGL_J1351.0+0029_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13529/ft1_4FGL_J1351.0+0029_daily_bin381.fits outfile=/scratch/kocevski/13529/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin381.fits ra=207.757 dec=0.4873 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.81
user 6.48
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13529/ft2_4FGL_J1351.0+0029_daily_bin381.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/13529/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin381.fits evtable="EVENTS" outfile="/scratch/kocevski/13529/ft1_filtered_4FGL_J1351.0+0029_daily_bin381.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/13529/ft1_filtered_4FGL_J1351.0+0029_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/13529/ft2_4FGL_J1351.0+0029_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/13529/ltcube_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.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/13529/ft2_4FGL_J1351.0+0029_daily_bin381.fits
.....................!
real 13.46
user 13.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13529/ft1_filtered_4FGL_J1351.0+0029_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/13529/ft2_4FGL_J1351.0+0029_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/13529/ltcube_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.fits outfile=/scratch/kocevski/13529/expmap_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.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/13529/ltcube_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.fits
.....................!
real 191.93
user 186.20
sys 4.56

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/13529/ft1_filtered_4FGL_J1351.0+0029_daily_bin381.fits scfile=/scratch/kocevski/13529/ft2_4FGL_J1351.0+0029_daily_bin381.fits outfile=/scratch/kocevski/13529/cmap_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13529/ft1_filtered_4FGL_J1351.0+0029_daily_bin381.fits scfile=/scratch/kocevski/13529/ft2_4FGL_J1351.0+0029_daily_bin381.fits outfile=/scratch/kocevski/13529/cmap_HighResolution_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.101       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.333       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.281       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    41.261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26481E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95890       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1505       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=   6363.904     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2169 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1576       -.23727E-08** at limit **
   2  norm          11.101        10.025        .39983E-06    .44363E-03
   3  Prefactor     6.2635        18.417       -.71315E-05   -.33844E-04
   4  Prefactor     .10000E-03    9.2871        .28516E-05** at limit **
   5  norm          1.1993        1.5256       -.30328E-06   -.83007E-03
   6  Prefactor     .10000E-03    26.821       -.96873E-05** at limit **
   7  norm          .10000E-03    14.797       -.16834E-05** at limit **
   8  Prefactor     7.4435        6.0466       -.36558E-06   -.26100E-03
   9  Prefactor     .10000E-03    14.248       -.38274E-05** at limit **
  10  Prefactor     .10000E-03    5.9072        .91158E-06** at limit **
  11  norm          .10000E-03    3.6137       -.24232E-06** at limit **
  12  Prefactor     20.335        16.158        .99999E-06    .38023E-04
  13  norm          .10000E-03    1.2292        .82322E-07** at limit **
  14  Prefactor     .10000E-03    6.8916       -.13535E-05** at limit **
  15  norm          .10000E-03    3.1705       -.15926E-07** at limit **
  16  norm          24.282        9.9794       -.14205E-06   -.13082E-04
  17  Prefactor     .10000E-03    21.812        .16154E-04** at limit **
  18  norm          41.258        31.203       -.27949E-05    .20503E-04
  19  Prefactor     .10013E-03    675.58       -.21325E-03** at limit **
  20  Normalizat    .95885        .23512        .94176E-06    .20550E-03
  21  Prefactor     1.1505        .16026        .25465E-07    .33707E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 11.1013
  Prefactor  = 6.2635
  Prefactor  = 0.0001
  norm       = 1.1993
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.44351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.3355
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 24.2821
  Prefactor  = 0.0001
  norm       = 41.2583
  Prefactor  = 0.00010013
  Normalizat = 0.958845
  Prefactor  = 1.15051
 **********
 **   18 **HESSE 
 **********

 FCN=   6363.904     FROM HESSE     STATUS=OK           313 CALLS     2482 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1715        .13844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.101        10.034        .60122E-03   -1.5041    
   3  Prefactor     6.2635        18.499        .16032E-03   -1.5207    
   4  Prefactor     .10000E-03    9.4293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1993        1.5002        .10477E-03   -1.5489    
   6  Prefactor     .10000E-03    26.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4435        6.0624        .14700E-03   -1.5162    
   9  Prefactor     .10000E-03    14.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6398        .14809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.335        16.168        .88826E-04   -1.4806    
  13  norm          .10000E-03    1.9544        .17027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1714        .13873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.282        9.9239        .81292E-04   -1.4722    
  17  Prefactor     .10000E-03    21.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          41.258        31.216        .62405E-04   -1.4422    
  19  Prefactor     .10013E-03    674.10        .42883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95885        .28237        .31913E-03   -.94422    
  21  Prefactor     1.1505        .19316        .20766E-03   -.87868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42086e-10
Minuit parameter uncertainties:
  1  3.4006e-06
  2  10.0354
  3  18.5159
  4  1.63816e-05
  5  1.50028
  6  1.20833e-06
  7  1.40494e-06
  8  6.06291
  9  1.29535e-05
  10  1.0389e-05
  11  1.84896e-06
  12  16.1715
  13  1.41452e-05
  14  2.92401e-06
  15  2.94947e-07
  16  9.92462
  17  3.15882e-05
  18  31.2286
  19  0.0189046
  20  0.282808
  21  0.193282
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.295e-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:  1.151e+00  1.933e-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.588e-01  2.828e-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: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13529/likelihoodResults_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.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) = 6363.90428618
delta logL = -0.000333461666742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6363.90395311
delta logL = -3.90080458601e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4316       1.0000          .0000       10.000    
     3 'Normalizat'    .95868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1506       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=   6363.904     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    579.44        .18142E-02** at limit **
   2  Index         2.3768        7.5138        .50000        .20454E-05
   3  Normalizat    .95885        .35829E-01    .31913E-03   -.39187E-06
   4  Prefactor     1.1505        .25439E-01    .20766E-03    .10949E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100348
  Index      = 2.37677
  Normalizat = 0.958845
  Prefactor  = 1.15051
 **********
 **   18 **HESSE 
 **********

 FCN=   6363.904     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10035E-03    2146.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3768        8.6655        .50000       -.55230    
   3  Normalizat    .95885        .91005E-01    .12765E-04   -.94422    
   4  Prefactor     1.1505        .64474E-01    .83064E-05   -.87868    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.57561e-08
Minuit parameter uncertainties:
  1  0.0568174
  2  3947.77
  3  0.0910197
  4  0.0644785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13529': 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) = 6363.90395269
delta logL = 2.43217073148e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.003e-04  5.682e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.377e+00  3.948e+03  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.151e+00  6.448e-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.588e-01  9.102e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/13529/cmap_HighResolution_338083201_338342401_4FGL_J1351.0+0029_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-08 15:27:26.427476', job_id='13529', GAL2='1.15', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631140046.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='381' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:27:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 13529: <4FGL_J1351.0+0029_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin381 207.757 0.4873 338083201 338342401 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 :                                   589.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

