/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 224 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin542
RA = 207.757, Dec = 0.4873
tmin = 379814401, tmax = 380073601
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='13816', job_status='RUN', time_executed='2021-09-08 15:19:37.714592', time_epoch_executed='1631139577.71' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13816/ft1_4FGL_J1351.0+0029_daily_bin542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13816/ft2_4FGL_J1351.0+0029_daily_bin542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13816/ft1_4FGL_J1351.0+0029_daily_bin542.fits outfile=/scratch/kocevski/13816/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin542.fits ra=207.757 dec=0.4873 rad=12.0 tmin=379814401.0 tmax=380073601.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.52
user 3.24
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13816/ft1_filtered_4FGL_J1351.0+0029_daily_bin542.fits evtable="EVENTS" scfile=/scratch/kocevski/13816/ft2_4FGL_J1351.0+0029_daily_bin542.fits sctable="SC_DATA" expcube=/scratch/kocevski/13816/ltcube_379814401_380073601_4FGL_J1351.0+0029_daily_bin542.fits outfile=/scratch/kocevski/13816/expmap_379814401_380073601_4FGL_J1351.0+0029_daily_bin542.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/13816/ltcube_379814401_380073601_4FGL_J1351.0+0029_daily_bin542.fits
.....................!
real 192.70
user 187.01
sys 5.22

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/13816/ft1_filtered_4FGL_J1351.0+0029_daily_bin542.fits scfile=/scratch/kocevski/13816/ft2_4FGL_J1351.0+0029_daily_bin542.fits outfile=/scratch/kocevski/13816/cmap_379814401_380073601_4FGL_J1351.0+0029_daily_bin542.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13816/ft1_filtered_4FGL_J1351.0+0029_daily_bin542.fits scfile=/scratch/kocevski/13816/ft2_4FGL_J1351.0+0029_daily_bin542.fits outfile=/scratch/kocevski/13816/cmap_HighResolution_379814401_380073601_4FGL_J1351.0+0029_daily_bin542.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.267       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0542       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11604E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35463E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .89545       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11625E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7780       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1019       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.720       1.0000         .10000E-03   10000.    
    18 'norm      '    .15346E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    100.87       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1185       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96948       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=   8445.475     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1933 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.264        13.942        .79312E-07   -.12375E-03
   2  norm          1.0555        30.265        .75415E-05   -.18821E-04
   3  Prefactor     .10000E-03    27.163        .95984E-06** at limit **
   4  Prefactor     .10000E-03    17.612        .14600E-06** at limit **
   5  norm          2.1734        1.2808        .44643E-07   -.11253E-03
   6  Prefactor     .10000E-03    64.661        .19696E-05** at limit **
   7  norm          .10000E-03    6.9889        .12267E-07** at limit **
   8  Prefactor     .10000E-03    1.4585        .17633E-06** at limit **
   9  Prefactor     .10000E-03    62.884        .50493E-06** at limit **
  10  Prefactor     .10000E-03    2.2274        .76909E-07** at limit **
  11  norm          .10000E-03    2.1835        .23909E-07** at limit **
  12  Prefactor     .10000E-03    10.206        .13410E-06** at limit **
  13  norm          .89803        1.3495        .10604E-05    .68084E-03
  14  Prefactor     .10001E-03    47.549       -.21967E-05** at limit **
  15  norm          8.7782        7.7566        .28198E-07    .18068E-04
  16  norm          7.1001        5.3667       -.91982E-07   -.76416E-05
  17  Prefactor     21.720        18.976       -.90227E-07    .19602E-03
  18  norm          .10000E-03    51.787       -.84046E-06** at limit **
  19  Prefactor     100.89        60.904       -.34278E-06    .30858E-05
  20  Normalizat    1.1187        .17529       -.46604E-06    .13612E-03
  21  Prefactor     .96933        .12377       -.71297E-06    .32884E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 42.2636
  norm       = 1.05554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.898032
  Prefactor  = 0.00010001
  norm       = 8.77824
  norm       = 7.10011
  Prefactor  = 21.7197
  norm       = 0.000100002
  Prefactor  = 100.887
  Normalizat = 1.11872
  Prefactor  = 0.969326
 **********
 **   18 **HESSE 
 **********

 FCN=   8445.475     FROM HESSE     STATUS=OK           317 CALLS     2250 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.264        13.935        .61661E-04   -1.4407    
   2  norm          1.0555        30.284        .24013E-02   -1.5502    
   3  Prefactor     .10000E-03    27.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1734        1.2754        .75947E-04   -1.5413    
   6  Prefactor     .10000E-03    65.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.9911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.445        .21268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    65.206        .42635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2873        .26788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1996        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .89803        1.3398        .14589E-02   -1.5518    
  14  Prefactor     .10001E-03    47.799        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7782        7.7599        .13529E-03   -1.5115    
  16  norm          7.1001        5.3661        .15053E-03   -1.5175    
  17  Prefactor     21.720        18.937        .85944E-04   -1.4776    
  18  norm          .10000E-03    52.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     100.89        60.969        .20015E-03   -1.3696    
  20  Normalizat    1.1187        .21007        .27976E-03   -.89153    
  21  Prefactor     .96933        .14875        .21161E-03   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49901e-09
Minuit parameter uncertainties:
  1  13.9358
  2  11.3134
  3  7.39324e-05
  4  5.07936e-05
  5  1.27541
  6  5.57495e-05
  7  5.84528e-07
  8  2.59015e-06
  9  0.000350457
  10  3.95004e-07
  11  1.71972e-06
  12  4.91674e-05
  13  1.33982
  14  0.00137995
  15  7.76076
  16  5.3665
  17  18.9424
  18  0.000563143
  19  61.007
  20  0.210232
  21  0.148811
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.505e-04  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.693e-01  1.488e-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.119e+00  2.102e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13816/likelihoodResults_379814401_380073601_4FGL_J1351.0+0029_daily_bin542.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) = 8445.47501459
delta logL = -7.30504452804e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8445.47494195
delta logL = -4.13421730627e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3851       1.0000          .0000       10.000    
     3 'Normalizat'    1.1187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96933       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8445.074     FROM MIGRAD    STATUS=CONVERGED    152 CALLS      340 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0839        66.653        .51831E-03    .14608E-02
   2  Index         4.1659        7.0602        .60711E-02   -.11293E-03
   3  Normalizat    1.0522        .21589        .28753E-03    .28151E-04
   4  Prefactor     .99627        .15130        .20907E-03    .38424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08389
  Index      = 4.16587
  Normalizat = 1.05221
  Prefactor  = 0.996265
 **********
 **   18 **HESSE 
 **********

 FCN=   8445.074     FROM HESSE     STATUS=OK            25 CALLS      365 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0839        6.5844        .20733E-04   -1.5916    
   2  Index         4.1659        2.2815        .24284E-03   -.16761    
   3  Normalizat    1.0522        .21874        .11501E-04   -.91301    
   4  Prefactor     .99627        .15073        .41815E-04   -.92854    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86719e-10
Minuit parameter uncertainties:
  1  5.34356
  2  2.37195
  3  0.218932
  4  0.150791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13816': 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) = 8445.07376992
delta logL = 0.401171615084

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.084e+00  5.344e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  4.166e+00  2.372e+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.963e-01  1.508e-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.052e+00  2.189e-01  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/13816/cmap_HighResolution_379814401_380073601_4FGL_J1351.0+0029_daily_bin542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2021-09-08 15:30:31.682174', job_id='13816', GAL2='1.00', fit_tolerance='1e-08', EG2='1.05', EG='1.12', time_epoch_completed='1631140231.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.01e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='542' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:30:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 13816: <4FGL_J1351.0+0029_daily_bin542> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin542 207.757 0.4873 379814401 380073601 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 :                                   653.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            895 sec.

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

