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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin433
RA = 207.757, Dec = 0.4873
tmin = 351561601, tmax = 351820801
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='13605', job_status='RUN', time_executed='2021-09-08 15:17:40.709580', time_epoch_executed='1631139460.71' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13605

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13605/ft1_4FGL_J1351.0+0029_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13605/ft2_4FGL_J1351.0+0029_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13605/ft1_4FGL_J1351.0+0029_daily_bin433.fits outfile=/scratch/kocevski/13605/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin433.fits ra=207.757 dec=0.4873 rad=12.0 tmin=351561601.0 tmax=351820801.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.91
user 6.57
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13605/ft1_filtered_4FGL_J1351.0+0029_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/13605/ft2_4FGL_J1351.0+0029_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/13605/ltcube_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.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/13605/ft2_4FGL_J1351.0+0029_daily_bin433.fits
.....................!
real 14.04
user 13.50
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13605/ft1_filtered_4FGL_J1351.0+0029_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/13605/ft2_4FGL_J1351.0+0029_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/13605/ltcube_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.fits outfile=/scratch/kocevski/13605/expmap_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.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/13605/ltcube_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.fits
.....................!
real 192.27
user 185.47
sys 5.84

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/13605/ft1_filtered_4FGL_J1351.0+0029_daily_bin433.fits scfile=/scratch/kocevski/13605/ft2_4FGL_J1351.0+0029_daily_bin433.fits outfile=/scratch/kocevski/13605/cmap_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13605/ft1_filtered_4FGL_J1351.0+0029_daily_bin433.fits scfile=/scratch/kocevski/13605/ft2_4FGL_J1351.0+0029_daily_bin433.fits outfile=/scratch/kocevski/13605/cmap_HighResolution_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59248E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    20.385       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21147E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5437       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12988E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.2139       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.9176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.389       1.0000         .10000E-03   10000.    
    18 'norm      '    .10918E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3556       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94495       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=   6752.406     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2222 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10090E-03    7.9918       -.37877E-05** at limit **
   2  norm          20.384        14.164        .11608E-07    .11244E-03
   3  Prefactor     3.3933        26.738        .16419E-04    .13320E-03
   4  Prefactor     .10060E-03    9.5259        .13718E-05** at limit **
   5  norm          1.5439        1.5707        .28341E-07    .31653E-03
   6  Prefactor     .10008E-03    164.86       -.71654E-05** at limit **
   7  norm          8.2108        16.107        .28000E-07   -.28836E-05
   8  Prefactor     2.5233        4.5578        .72267E-06    .29621E-04
   9  Prefactor     10.419        24.154        .97443E-06   -.17423E-05
  10  Prefactor     .10000E-03    1.8538       -.42407E-08** at limit **
  11  norm          .10000E-03    2.0725        .11730E-07** at limit **
  12  Prefactor     .10000E-03    8.9701        .20262E-06** at limit **
  13  norm          4.3816        2.5020        .62316E-07    .25925E-05
  14  Prefactor     .10004E-03    91.775        .86327E-05** at limit **
  15  norm          .10000E-03    4.2422        .13714E-07** at limit **
  16  norm          4.9165        5.4386        .13286E-06    .34114E-04
  17  Prefactor     11.392        19.001        .85665E-06   -.82832E-05
  18  norm          .10000E-03    43.792        .16603E-05** at limit **
  19  Prefactor     .10000E-03    57.492       -.94689E-06** at limit **
  20  Normalizat    1.3559        .21559       -.91619E-06    .15168E-03
  21  Prefactor     .94481        .14254       -.17300E-07    .11645E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100897
  norm       = 20.3845
  Prefactor  = 3.39329
  Prefactor  = 0.000100604
  norm       = 1.54392
  Prefactor  = 0.000100082
  norm       = 8.21081
  Prefactor  = 2.52332
  Prefactor  = 10.4193
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.3816
  Prefactor  = 0.000100036
  norm       = 0.0001
  norm       = 4.9165
  Prefactor  = 11.3916
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Normalizat = 1.35586
  Prefactor  = 0.944807
 **********
 **   18 **HESSE 
 **********

 FCN=   6752.406     FROM HESSE     STATUS=OK           321 CALLS     2543 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10090E-03    54.986        .41440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.384        14.150        .88712E-04   -1.4805    
   3  Prefactor     3.3933        27.576        .10979E-02   -1.5340    
   4  Prefactor     .10060E-03    122.84        .48385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5439        1.5526        .98159E-04   -1.5459    
   6  Prefactor     .10008E-03    170.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.2108        16.107        .13989E-03   -1.5135    
   8  Prefactor     2.5233        4.5468        .22193E-03   -1.5390    
   9  Prefactor     10.419        24.177        .12401E-03   -1.5062    
  10  Prefactor     .10000E-03    1.8627        .10925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0757        .11553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.0109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3816        2.4988        .94217E-04   -1.5289    
  14  Prefactor     .10004E-03    96.591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2464        .16529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.9165        5.4316        .18137E-03   -1.5264    
  17  Prefactor     11.392        18.994        .11871E-03   -1.5033    
  18  norm          .10000E-03    45.642        .41407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    57.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3559        .25801        .27622E-03   -.81914    
  21  Prefactor     .94481        .17122        .22367E-03   -.94593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12399e-08
Minuit parameter uncertainties:
  1  0.0140556
  2  14.1524
  3  19.3585
  4  0.0172569
  5  1.55261
  6  0.00752447
  7  16.115
  8  4.54741
  9  24.1995
  10  3.91844e-08
  11  1.00604e-06
  12  4.96265e-06
  13  2.49888
  14  0.00371068
  15  4.52532e-07
  16  5.4321
  17  19.0044
  18  0.000459007
  19  0.000732528
  20  0.258252
  21  0.171322
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.448e-01  1.713e-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.356e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13605/likelihoodResults_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.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): 0
logL (Free Index) = 6752.01840682
delta logL = 0.387474398468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6752.0111535
delta logL = 0.394727721413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2292       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2597       1.0000          .0000       10.000    
     3 'Normalizat'    1.2876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97711       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=   6752.011     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      325 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2206        25.419        .10145E-01    .10776E-02
   2  Index         4.2637        3.3388        .11397        .18540E-03
   3  Normalizat    1.2874        .51890E-01    .63828E-01    .12470E-04
   4  Prefactor     .97730        .35798E-01    .45980E-01   -.79036E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22056
  Index      = 4.26366
  Normalizat = 1.28738
  Prefactor  = 0.977297
 **********
 **   18 **HESSE 
 **********

 FCN=   6752.011     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      358 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2206        63.360        .91517E-04   -1.5487    
   2  Index         4.2637        7.1281        .67206E-02   -.14780    
   3  Normalizat    1.2874        .20210        .28234E-03   -.83944    
   4  Prefactor     .97730        .13818        .22037E-03   -.93490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.84199e-09
Minuit parameter uncertainties:
  1  17.607
  2  7.30635
  3  0.202224
  4  0.138227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13605': 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) = 6752.01115252
delta logL = 0.39472869896

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.773e-01  1.382e-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.287e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 207.757 0.487
Photon Index (Free Index): 4.26 +/- 7.31
Photon Flux (Free Index): 6.89e-08 +/- 7.22e-08
Energy Flux (Free Index): 9.91e-06 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/13605/cmap_HighResolution_351561601_351820801_4FGL_J1351.0+0029_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-03', comment='SUCCESS', energy_flux2='9.91e-06', dlogl='3.95e-01', photon_flux2='6.89e-08', job_status='DONE', time_completed='2021-09-08 15:28:07.130058', photon_index_error2='7.31', photon_index2='4.26', ts='0.22', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.29e-05', EG='1.36', time_epoch_completed='1631140087.13', return_code='0', job_id='13605', GAL2='0.98', EG2='1.29', return_code2='102', photon_flux_error2='7.22e-08', ts2='1.09', photon_index='2.44' WHERE bin_id='433' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 13605: <4FGL_J1351.0+0029_daily_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin433 207.757 0.4873 351561601 351820801 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            763 sec.

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

