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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin422
RA = 207.757, Dec = 0.4873
tmin = 348710401, tmax = 348969601
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='13589', job_status='RUN', time_executed='2021-09-08 15:18:55.152914', time_epoch_executed='1631139535.15' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13589/ft1_4FGL_J1351.0+0029_daily_bin422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13589/ft2_4FGL_J1351.0+0029_daily_bin422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13589/ft1_4FGL_J1351.0+0029_daily_bin422.fits outfile=/scratch/kocevski/13589/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin422.fits ra=207.757 dec=0.4873 rad=12.0 tmin=348710401.0 tmax=348969601.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.51
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13589/ft1_filtered_4FGL_J1351.0+0029_daily_bin422.fits" evtable="EVENTS" scfile=/scratch/kocevski/13589/ft2_4FGL_J1351.0+0029_daily_bin422.fits sctable="SC_DATA" outfile=/scratch/kocevski/13589/ltcube_348710401_348969601_4FGL_J1351.0+0029_daily_bin422.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/13589/ft2_4FGL_J1351.0+0029_daily_bin422.fits
.....................!
real 16.49
user 16.12
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13589/ft1_filtered_4FGL_J1351.0+0029_daily_bin422.fits evtable="EVENTS" scfile=/scratch/kocevski/13589/ft2_4FGL_J1351.0+0029_daily_bin422.fits sctable="SC_DATA" expcube=/scratch/kocevski/13589/ltcube_348710401_348969601_4FGL_J1351.0+0029_daily_bin422.fits outfile=/scratch/kocevski/13589/expmap_348710401_348969601_4FGL_J1351.0+0029_daily_bin422.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/13589/ltcube_348710401_348969601_4FGL_J1351.0+0029_daily_bin422.fits
.....................!
real 191.60
user 186.47
sys 3.82

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

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13589/ft1_filtered_4FGL_J1351.0+0029_daily_bin422.fits scfile=/scratch/kocevski/13589/ft2_4FGL_J1351.0+0029_daily_bin422.fits outfile=/scratch/kocevski/13589/cmap_HighResolution_348710401_348969601_4FGL_J1351.0+0029_daily_bin422.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.200       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10936E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3971       1.0000         .10000E-03   10000.    
    11 'norm      '    7.3035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9076       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8140       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.214       1.0000         .10000E-03   10000.    
    16 'norm      '    18.138       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .80043E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    4.0722       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2296       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93713       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=   8290.550     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     1974 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.200        7.7025        .14703E-07    .20882E-04
   2  norm          .10000E-03    2.8810       -.26423E-07** at limit **
   3  Prefactor     .10000E-03    5.1346       -.33716E-07** at limit **
   4  Prefactor     .10000E-03    4.8944       -.55770E-07** at limit **
   5  norm          .10000E-03    .39477        .17713E-07** at limit **
   6  Prefactor     .10000E-03    19.859       -.76489E-07** at limit **
   7  norm          .10057E-03    14.192        .57424E-06** at limit **
   8  Prefactor     .51702        1.9085        .26219E-06   -.19935E-03
   9  Prefactor     .10000E-03    12.554        .10394E-06** at limit **
  10  Prefactor     3.3973        2.8482        .14101E-07   -.66372E-05
  11  norm          7.3043        5.5976       -.45339E-07    .36579E-04
  12  Prefactor     2.9060        10.283        .60360E-05    .17198E-03
  13  norm          1.8141        1.3648        .28982E-07    .35853E-04
  14  Prefactor     .10000E-03    11.273        .69905E-07** at limit **
  15  norm          12.215        12.333       -.65058E-06    .49849E-04
  16  norm          18.140        8.1920        .27350E-08    .20332E-04
  17  Prefactor     .11900E-03    22.946       -.31825E-05** at limit **
  18  norm          4.0595        26.472       -.79407E-05   -.24098E-04
  19  Prefactor     .10000E-03    57.800        .27507E-06** at limit **
  20  Normalizat    1.2295        .17939       -.29139E-06   -.10761E-04
  21  Prefactor     .93716        .12706       -.31493E-06   -.18033E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100567
  Prefactor  = 0.517024
  Prefactor  = 0.0001
  Prefactor  = 3.39731
  norm       = 7.30434
  Prefactor  = 2.90598
  norm       = 1.81412
  Prefactor  = 0.0001
  norm       = 12.2146
  norm       = 18.1399
  Prefactor  = 0.000119001
  norm       = 4.05952
  Prefactor  = 0.0001
  Normalizat = 1.22948
  Prefactor  = 0.937163
 **********
 **   18 **HESSE 
 **********

 FCN=   8290.550     FROM HESSE     STATUS=OK           343 CALLS     2317 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.200        7.7012        .11469E-03   -1.5009    
   2  norm          .10000E-03    2.8814        .15094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.7595        .11033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10057E-03    15.151        .12431       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .51702        6.5223        .22551E-02   -1.5564    
   9  Prefactor     .10000E-03    12.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3973        2.8479        .13709E-03   -1.5339    
  11  norm          7.3043        5.5934        .14842E-03   -1.5167    
  12  Prefactor     2.9060        10.355        .11914E-02   -1.5367    
  13  norm          1.8141        1.3592        .89290E-04   -1.5439    
  14  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.215        12.307        .11462E-03   -1.5009    
  16  norm          18.140        8.1854        .94042E-04   -1.4856    
  17  Prefactor     .11900E-03    21.189        .10838       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.0595        27.873        .19980E-03   -1.5305    
  19  Prefactor     .10000E-03    57.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2295        .21561        .27027E-03   -.85697    
  21  Prefactor     .93716        .15311        .21707E-03   -.94854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87068e-08
Minuit parameter uncertainties:
  1  7.70183
  2  2.53772e-07
  3  3.93193e-06
  4  5.89098e-06
  5  1.68158e-05
  6  5.17983e-06
  7  0.00586368
  8  3.67285
  9  1.58648e-05
  10  2.848
  11  5.59376
  12  10.3611
  13  1.3592
  14  6.60092e-06
  15  12.3098
  16  8.18595
  17  0.0401449
  18  21.2885
  19  2.72472e-05
  20  0.215769
  21  0.153178
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.586e-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.372e-01  1.532e-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.229e+00  2.158e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13589/likelihoodResults_348710401_348969601_4FGL_J1351.0+0029_daily_bin422.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) = 8290.5506118
delta logL = -0.000377528836907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8290.55023423
delta logL = 4.21641743742e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4548       1.0000          .0000       10.000    
     3 'Normalizat'    1.2295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93717       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=   8290.550     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    732.98        .90712E-02** at limit **
   2  Index         2.4736        6.1049        .50000       -.13449E-04
   3  Normalizat    1.2295        .36414E-01    .61106E-01   -.21604E-05
   4  Prefactor     .93716        .26050E-01    .45477E-01    .13499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47357
  Normalizat = 1.22948
  Prefactor  = 0.937164
 **********
 **   18 **HESSE 
 **********

 FCN=   8290.550     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1699.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4736        6.8027        .50000       -.52971    
   3  Normalizat    1.2295        .65651E-01    .27027E-03   -.85697    
   4  Prefactor     .93716        .47007E-01    .21708E-03   -.94854    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.60991e-08
Minuit parameter uncertainties:
  1  0.000807823
  2  50.9967
  3  0.0656559
  4  0.0470089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13589': 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) = 8290.55023416
delta logL = 1.10670953291e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  8.078e-04  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.474e+00  5.100e+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.372e-01  4.701e-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.229e+00  6.566e-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/13589/cmap_HighResolution_348710401_348969601_4FGL_J1351.0+0029_daily_bin422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-08 15:29:54.586572', job_id='13589', GAL2='0.94', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631140194.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='422' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:29:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 13589: <4FGL_J1351.0+0029_daily_bin422> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin422 207.757 0.4873 348710401 348969601 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 :                                   652.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            872 sec.

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

