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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin185
RA = 207.757, Dec = 0.4873
tmin = 287280001, tmax = 287539201
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='12056', job_status='RUN', time_executed='2021-09-08 15:14:48.272173', time_epoch_executed='1631139288.27' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12056

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12056/ft1_4FGL_J1351.0+0029_daily_bin185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12056/ft2_4FGL_J1351.0+0029_daily_bin185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12056/ft1_4FGL_J1351.0+0029_daily_bin185.fits outfile=/scratch/kocevski/12056/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin185.fits ra=207.757 dec=0.4873 rad=12.0 tmin=287280001.0 tmax=287539201.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.61
user 3.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12056/ft1_filtered_4FGL_J1351.0+0029_daily_bin185.fits" evtable="EVENTS" scfile=/scratch/kocevski/12056/ft2_4FGL_J1351.0+0029_daily_bin185.fits sctable="SC_DATA" outfile=/scratch/kocevski/12056/ltcube_287280001_287539201_4FGL_J1351.0+0029_daily_bin185.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/12056/ft2_4FGL_J1351.0+0029_daily_bin185.fits
.....................!
real 14.98
user 14.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12056/ft1_filtered_4FGL_J1351.0+0029_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/12056/ft2_4FGL_J1351.0+0029_daily_bin185.fits sctable="SC_DATA" expcube=/scratch/kocevski/12056/ltcube_287280001_287539201_4FGL_J1351.0+0029_daily_bin185.fits outfile=/scratch/kocevski/12056/expmap_287280001_287539201_4FGL_J1351.0+0029_daily_bin185.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/12056/ltcube_287280001_287539201_4FGL_J1351.0+0029_daily_bin185.fits
.....................!
real 198.76
user 194.07
sys 4.21

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/12056/ft1_filtered_4FGL_J1351.0+0029_daily_bin185.fits scfile=/scratch/kocevski/12056/ft2_4FGL_J1351.0+0029_daily_bin185.fits outfile=/scratch/kocevski/12056/cmap_287280001_287539201_4FGL_J1351.0+0029_daily_bin185.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12056/ft1_filtered_4FGL_J1351.0+0029_daily_bin185.fits scfile=/scratch/kocevski/12056/ft2_4FGL_J1351.0+0029_daily_bin185.fits outfile=/scratch/kocevski/12056/cmap_HighResolution_287280001_287539201_4FGL_J1351.0+0029_daily_bin185.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/12056/ft1_filtered_4FGL_J1351.0+0029_daily_bin185.fits evtable="EVENTS" scfile=/scratch/kocevski/12056/ft2_4FGL_J1351.0+0029_daily_bin185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12056/Model_4FGL_J1351.0+0029_daily_bin185.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/12056/ft1_filtered_4FGL_J1351.0+0029_daily_bin185.fits.....................!
real 51.95
user 50.66
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.654       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.718       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    131.47       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15967E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .52111E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.830       1.0000         .10000E-03   10000.    
    15 'norm      '    15.670       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.478       1.0000         .10000E-03   10000.    
    18 'norm      '    26.125       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1148       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90304       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=   6590.628     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2178 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.652        13.729        .67443E-06    .11778E-04
   2  norm          .10000E-03    4.5651       -.20163E-06** at limit **
   3  Prefactor     .10000E-03    8.4965       -.12557E-04** at limit **
   4  Prefactor     .10000E-03    4.4803       -.17282E-05** at limit **
   5  norm          6.2485        1.9074        .48852E-08   -.82807E-04
   6  Prefactor     51.722        50.641        .53934E-05   -.27784E-05
   7  norm          .10000E-03    9.7393        .10050E-04** at limit **
   8  Prefactor     .10000E-03    2.0641        .26018E-06** at limit **
   9  Prefactor     131.48        32.908        .41767E-05   -.24884E-04
  10  Prefactor     .10000E-03    2.1051        .28122E-06** at limit **
  11  norm          .10002E-03    3.1019        .25463E-05** at limit **
  12  Prefactor     .10000E-03    3.6224        .10639E-05** at limit **
  13  norm          .57433E-01    .86475       -.25197E-06   -.39429E-04
  14  Prefactor     12.833        17.212        .10188E-05   -.28582E-04
  15  norm          15.671        12.663       -.18862E-07   -.13844E-04
  16  norm          .10000E-03    3.2071       -.40894E-06** at limit **
  17  Prefactor     18.479        25.030        .88110E-06   -.17065E-04
  18  norm          26.127        25.615        .17714E-05   -.81428E-05
  19  Prefactor     .10000E-03    43.673       -.18963E-05** at limit **
  20  Normalizat    1.1146        .21068       -.19016E-05   -.25015E-04
  21  Prefactor     .90309        .14174       -.25199E-06   -.20115E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6517
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24846
  Prefactor  = 51.7219
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.478
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0574326
  Prefactor  = 12.8331
  norm       = 15.6706
  norm       = 0.0001
  Prefactor  = 18.4794
  norm       = 26.1266
  Prefactor  = 0.0001
  Normalizat = 1.11464
  Prefactor  = 0.903086
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.628     FROM HESSE     STATUS=OK           317 CALLS     2495 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.652        13.731        .10123E-03   -1.4917    
   2  norm          .10000E-03    4.5666        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4861        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2485        1.9104        .59143E-04   -1.5208    
   6  Prefactor     51.722        50.662        .55768E-04   -1.4268    
   7  norm          .10000E-03    9.7749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0851        .11384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     131.48        32.993        .17559E-03   -1.3410    
  10  Prefactor     .10000E-03    2.1166        .11502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    6.3535        .27171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6251        .15084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .57433E-01    6.6633        .14589E-02   -1.5660    
  14  Prefactor     12.833        17.207        .11183E-03   -1.4991    
  15  norm          15.671        12.675        .10118E-03   -1.4916    
  16  norm          .10000E-03    3.2257        .14196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.479        25.044        .93173E-04   -1.4848    
  18  norm          26.127        25.613        .78376E-04   -1.4685    
  19  Prefactor     .10000E-03    43.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1146        .25336        .29350E-03   -.89283    
  21  Prefactor     .90309        .17092        .22024E-03   -.96033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98046e-08
Minuit parameter uncertainties:
  1  13.734
  2  5.5334e-07
  3  1.50704e-05
  4  4.03298e-06
  5  1.91039
  6  50.7037
  7  2.46921e-06
  8  1.23932e-06
  9  32.9975
  10  4.85956e-07
  11  0.000681602
  12  9.98593e-06
  13  1.2363
  14  17.2138
  15  12.6773
  16  5.13324e-06
  17  25.0587
  18  25.6233
  19  9.00962e-06
  20  0.253638
  21  0.17102
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.315e+02  3.300e+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.031e-01  1.710e-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.115e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.97
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.50e-07 +/- 6.28e-08
Energy Flux (Fixed Index): 7.83e-05 +/- 1.96e-05

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) = 6589.85375969
delta logL = 0.77445099127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6589.85365387
delta logL = 0.774556806688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    168.72       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1157       1.0000          .0000       10.000    
     3 'Normalizat'    1.1804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87183       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=   6589.854     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      269 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     168.88        591.99        .77646E-03    .53817E-04
   2  Index         2.1166        2.6597        .92109E-01    .75591E-04
   3  Normalizat    1.1803        .43197        .64809E-01    .10174E-04
   4  Prefactor     .87172        .21989        .44645E-01    .33357E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 168.883
  Index      = 2.1166
  Normalizat = 1.18032
  Prefactor  = 0.871716
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.854     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     168.88        49.825        .15529E-03   -1.3101    
   2  Index         2.1166        .24788        .38469E-02   -.61466    
   3  Normalizat    1.1803        .25234        .28669E-03   -.87213    
   4  Prefactor     .87172        .16991        .22371E-03   -.97137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90698e-10
Minuit parameter uncertainties:
  1  49.8369
  2  0.248028
  3  0.252596
  4  0.17001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12056': 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): 0
logL (Free Index) = 6589.85363001
delta logL = 0.774580669191

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.689e+02  4.984e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.117e+00  2.480e-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:  8.717e-01  1.700e-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.180e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.36
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.12 +/- 0.25
Photon Flux (Free Index): 1.98e-07 +/- 6.65e-08
Energy Flux (Free Index): 1.05e-04 +/- 4.24e-05

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/12056/cmap_HighResolution_287280001_287539201_4FGL_J1351.0+0029_daily_bin185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.50e-07', energy_flux2='1.05e-04', photon_flux_error='6.28e-08', dlogl='7.75e-01', energy_flux='7.83e-05', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-09-08 15:24:08.430292', photon_index_error2='0.25', photon_index2='2.12', ts='43.97', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='4.24e-05', EG='1.11', time_epoch_completed='1631139848.43', return_code='0', job_id='12056', GAL2='0.87', EG2='1.18', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='6.65e-08', ts2='45.36', photon_index='2.44' WHERE bin_id='185' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:24:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 12056: <4FGL_J1351.0+0029_daily_bin185> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin185 207.757 0.4873 287280001 287539201 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 :                                   548.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            817 sec.

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

