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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin442
RA = 207.757, Dec = 0.4873
tmin = 353894401, tmax = 354153601
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='13617', job_status='RUN', time_executed='2021-09-08 15:17:41.636188', time_epoch_executed='1631139461.64' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13617/ft1_4FGL_J1351.0+0029_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13617/ft2_4FGL_J1351.0+0029_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13617/ft1_4FGL_J1351.0+0029_daily_bin442.fits outfile=/scratch/kocevski/13617/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin442.fits ra=207.757 dec=0.4873 rad=12.0 tmin=353894401.0 tmax=354153601.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.49
user 3.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13617/ft1_filtered_4FGL_J1351.0+0029_daily_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/13617/ft2_4FGL_J1351.0+0029_daily_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/13617/ltcube_353894401_354153601_4FGL_J1351.0+0029_daily_bin442.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/13617/ft2_4FGL_J1351.0+0029_daily_bin442.fits
.....................!
real 15.03
user 14.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13617/ft1_filtered_4FGL_J1351.0+0029_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/13617/ft2_4FGL_J1351.0+0029_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/13617/ltcube_353894401_354153601_4FGL_J1351.0+0029_daily_bin442.fits outfile=/scratch/kocevski/13617/expmap_353894401_354153601_4FGL_J1351.0+0029_daily_bin442.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/13617/ltcube_353894401_354153601_4FGL_J1351.0+0029_daily_bin442.fits
.....................!
real 190.68
user 185.68
sys 4.38

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/13617/ft1_filtered_4FGL_J1351.0+0029_daily_bin442.fits scfile=/scratch/kocevski/13617/ft2_4FGL_J1351.0+0029_daily_bin442.fits outfile=/scratch/kocevski/13617/cmap_353894401_354153601_4FGL_J1351.0+0029_daily_bin442.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.59
user 0.38
sys 0.17

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

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.289       1.0000         .10000E-03   10000.    
     2 'norm      '    9.9202       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9456       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .75446E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1563       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9210       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.651       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9391       1.0000         .10000E-03   10000.    
    16 'norm      '    15.794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.088       1.0000         .10000E-03   10000.    
    19 'Prefactor '    121.51       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92002       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6375.600     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     1844 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.288        1.0342       -.24894E-06   -.26673E-03
   2  norm          9.9204        1.0036       -.67561E-07    .13203E-03
   3  Prefactor     .10000E-03    16.065        .33842E-05** at limit **
   4  Prefactor     3.9523        1.3004       -.11063E-05   -.20577E-03
   5  norm          .10000E-03    1.0577        .49989E-06** at limit **
   6  Prefactor     .20548E-03    263.16        .61407E-04** at limit **
   7  norm          .10003E-03    25.307       -.21521E-04** at limit **
   8  Prefactor     5.5549        5.6621        .56121E-05   -.26216E-04
   9  Prefactor     .10007E-03    52.460       -.95698E-05** at limit **
  10  Prefactor     .10000E-03    2.5836       -.79583E-06** at limit **
  11  norm          3.1563        5.8996        .12301E-05   -.16332E-03
  12  Prefactor     1.9196        2.9548        .56898E-05    .73544E-03
  13  norm          3.7728        2.8000       -.16099E-05   -.11798E-03
  14  Prefactor     16.667        20.801       -.15115E-04   -.15461E-01
  15  norm          3.9388        6.6625        .38910E-05   -.34679E-03
  16  norm          15.795        1.0793       -.13267E-06    .14064E-02
  17  Prefactor     .10003E-03    24.270       -.11573E-04** at limit **
  18  norm          20.087        1.1083        .32532E-06    .50928E-03
  19  Prefactor     121.65        38.973        .45316E-05   -.27137E-01
  20  Normalizat    1.1850        .25436        .31401E-05    .15836E-04
  21  Prefactor     .92000        .17475       -.57635E-06    .12537E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.2882
  norm       = 9.92042
  Prefactor  = 0.0001
  Prefactor  = 3.95234
  norm       = 0.0001
  Prefactor  = 0.000205481
  norm       = 0.000100034
  Prefactor  = 5.55485
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  norm       = 3.15632
  Prefactor  = 1.91963
  norm       = 3.77281
  Prefactor  = 16.6672
  norm       = 3.93883
  norm       = 15.7946
  Prefactor  = 0.000100029
  norm       = 20.0868
  Prefactor  = 121.647
  Normalizat = 1.18499
  Prefactor  = 0.920004
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.600     FROM HESSE     STATUS=OK           367 CALLS     2211 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.288        10.792        .22799E-02   -1.4829    
   2  norm          9.9204        9.7348        .31806E-02   -1.5078    
   3  Prefactor     .10000E-03    15.944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9523        16.206        .50770E-02   -1.5310    
   5  norm          .10000E-03    .62500        .24713E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20548E-03    275.65        .92882E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10003E-03    25.110        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5549        5.6710        .42621E-02   -1.5237    
   9  Prefactor     .10007E-03    51.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1563        5.9207        .57036E-02   -1.5353    
  12  Prefactor     1.9196        21.704        .74950E-02   -1.5431    
  13  norm          3.7728        2.8559        .51967E-02   -1.5319    
  14  Prefactor     16.667        22.135        .24538E-02   -1.4891    
  15  norm          3.9388        6.6730        .50813E-02   -1.5311    
  16  norm          15.795        10.044        .25195E-02   -1.4913    
  17  Prefactor     .10003E-03    24.094        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.087        18.234        .22341E-02   -1.4811    
  19  Prefactor     121.65        97.964        .91274E-03   -1.3498    
  20  Normalizat    1.1850        .21442        .64378E-01   -.87068    
  21  Prefactor     .92000        .14636        .45260E-01   -.95446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08175e-06
Minuit parameter uncertainties:
  1  10.7928
  2  9.73631
  3  2.75366e-05
  4  16.0137
  5  3.36276e-07
  6  0.342618
  7  0.00183642
  8  5.67158
  9  0.00374631
  10  1.88512e-06
  11  5.92181
  12  12.9152
  13  2.85602
  14  22.1461
  15  6.67423
  16  10.0448
  17  0.00168089
  18  18.2394
  19  98.0945
  20  0.214576
  21  0.146425
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.001e-04  3.746e-03  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.200e-01  1.464e-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.185e+00  2.146e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13617/likelihoodResults_353894401_354153601_4FGL_J1351.0+0029_daily_bin442.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) = 6375.60041417
delta logL = -9.07451740204e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6375.6003235
delta logL = -7.0346686698e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3774       1.0000          .0000       10.000    
     3 'Normalizat'    1.1850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92001       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=   6375.600     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1968.9        .90712E-02** at limit **
   2  Index         2.3966        5.5798        .50000       -.37702E-05
   3  Normalizat    1.1850        .36360E-01    .64378E-01    .43603E-04
   4  Prefactor     .92000        .25249E-01    .45260E-01    .45945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.39663
  Normalizat = 1.18499
  Prefactor  = 0.920004
 **********
 **   18 **HESSE 
 **********

 FCN=   6375.600     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7333.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3966        8.7331        .50000       -.54764    
   3  Normalizat    1.1850        .66025E-01    .28478E-03   -.87068    
   4  Prefactor     .92000        .45891E-01    .22025E-03   -.95446    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56378e-11
Minuit parameter uncertainties:
  1  0.00374047
  2  45.6021
  3  0.06603
  4  0.0458932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13617': 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) = 6375.60032346
delta logL = -3.69736881112e-08

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  3.740e-03  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.397e+00  4.560e+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.200e-01  4.589e-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.185e+00  6.603e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/13617/cmap_HighResolution_353894401_354153601_4FGL_J1351.0+0029_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-08 15:26:59.508953', job_id='13617', GAL2='0.92', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631140019.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-3.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='442' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 13617: <4FGL_J1351.0+0029_daily_bin442> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin442> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:25 2021
Job was executed on host(s) <bullet0282>, 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:27:00 2021
Results reported at Wed Sep  8 15:27:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin442 207.757 0.4873 353894401 354153601 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 :                                   555.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            695 sec.

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

