aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 61 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7493
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin1748
RA = 207.757, Dec = 0.4873
tmin = 692409601, tmax = 692668801
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='887801', job_status='RUN', time_executed='2022-12-14 00:46:36.104437', time_epoch_executed='1671007596.1' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887801

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887801/ft1_4FGL_J1351.0+0029_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887801/ft1_4FGL_J1351.0+0029_daily_bin1748.fits outfile=/scratch/kocevski/887801/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin1748.fits ra=207.757 dec=0.4873 rad=12.0 tmin=692409601.0 tmax=692668801.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.71
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.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/887801/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/887801/ft1_filtered_4FGL_J1351.0+0029_daily_bin1748.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.78
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 853

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887801/ft1_filtered_4FGL_J1351.0+0029_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/887801/ltcube_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.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/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits
.....................!
real 12.36
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887801/ft1_filtered_4FGL_J1351.0+0029_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/887801/ltcube_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.fits outfile=/scratch/kocevski/887801/expmap_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.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/887801/ltcube_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.fits
.....................!
real 190.89
user 185.18
sys 5.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/887801/ft1_filtered_4FGL_J1351.0+0029_daily_bin1748.fits scfile=/scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits outfile=/scratch/kocevski/887801/cmap_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887801/ft1_filtered_4FGL_J1351.0+0029_daily_bin1748.fits scfile=/scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits outfile=/scratch/kocevski/887801/cmap_HighResolution_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887801/ft1_filtered_4FGL_J1351.0+0029_daily_bin1748.fits', '/scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits', expMap='/scratch/kocevski/887801/expmap_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.fits', expCube='/scratch/kocevski/887801/ltcube_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887801/Model_4FGL_J1351.0+0029_daily_bin1748.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  0.000e+00  1.000e+06 ( 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/887801/ft1_filtered_4FGL_J1351.0+0029_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/887801/ft2_4FGL_J1351.0+0029_daily_bin1748.fits
Exposure map: /scratch/kocevski/887801/expmap_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.fits
Exposure cube: /scratch/kocevski/887801/ltcube_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887801/Model_4FGL_J1351.0+0029_daily_bin1748.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) = 9166.27556752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31809E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .45917E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .44909E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3101       1.0000          .0000       .10000E+07
     5 'norm      '    .46629E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17572E-04   1.0000          .0000       .10000E+07
     7 'norm      '    2.4399       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.7404       1.0000          .0000       .10000E+07
     9 'Prefactor '    45.796       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.4796       1.0000          .0000       .10000E+07
    11 'norm      '    3.4007       1.0000          .0000       .10000E+07
    12 'Prefactor '    .71571E-05   1.0000          .0000       .10000E+07
    13 'norm      '    55.228       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12928E-03   1.0000          .0000       .10000E+07
    15 'norm      '    10.744       1.0000          .0000       .10000E+07
    16 'norm      '    6.0059       1.0000          .0000       .10000E+07
    17 'norm      '    .28832E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    60.554       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1014       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=   9166.165     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1570 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.8211        .21822E-06** at limit **
   2  norm          .78935E-05    519.58       -.88661E-05** at limit **
   3  Prefactor     .55511E-10    37.763        .15634E-05** at limit **
   4  Prefactor     3.3394        8.2400        .37034E-06    .65094E-03
   5  norm           .0000        .74011        .44936E-07** at limit **
   6  Prefactor     .72164E-09    27.034        .32847E-06** at limit **
   7  norm          2.3389        2.5099        .14626E-06    .11434E-01
   8  Prefactor     2.7401        2.6923        .11205E-06    .62003E-03
   9  Prefactor     45.879        2.4278       -.42469E-08   -.29841E-03
  10  Prefactor     3.4795        3.3532       -.20844E-07    .25406E-04
  11  norm          3.3981        4.7036       -.78699E-07   -.97100E-04
  12  Prefactor      .0000        4.2418        .21903E-06** at limit **
  13  norm          55.239        5.7275        .59752E-08   -.33513E-03
  14  Prefactor      .0000        7.9806        .43732E-06** at limit **
  15  norm          10.748        9.3578       -.45420E-07    .15879E-03
  16  norm          5.9703        6.6552        .85561E-07   -.34419E-06
  17  norm           .0000        8.5470       -.55696E-06** at limit **
  18  Prefactor     60.224        16.693       -.45310E-06    .55099E-01
  19  Normalizat    1.0847        .23249        .80527E-05    .32254E-05
  20  Prefactor     1.1016        .16670       -.81193E-05   -.16267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 7.89352e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 3.33937
  norm       = 0
  Prefactor  = 7.21645e-10
  norm       = 2.33893
  Prefactor  = 2.74013
  Prefactor  = 45.8788
  Prefactor  = 3.47952
  norm       = 3.39808
  Prefactor  = 0
  norm       = 55.2391
  Prefactor  = 0
  norm       = 10.7485
  norm       = 5.97034
  norm       = 0
  Prefactor  = 60.2241
  Normalizat = 1.08468
  Prefactor  = 1.10155
 **********
 **   18 **HESSE 
 **********

 FCN=   9166.165     FROM HESSE     STATUS=OK           339 CALLS     1909 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.8244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .78935E-05    8.1724        .86072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    37.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3394        8.2827        .55618E-03   -1.5671    
   5  norm           .0000        .73224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72164E-09    27.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3389        73.203        .65474E-03   -1.5677    
   8  Prefactor     2.7401        2.6961        .61477E-03   -1.5675    
   9  Prefactor     45.879        26.080        .14778E-03   -1.5572    
  10  Prefactor     3.4795        3.3655        .54184E-03   -1.5671    
  11  norm          3.3981        4.7236        .54836E-03   -1.5671    
  12  Prefactor      .0000        4.2461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          55.239        5.7383        .13457E-03   -1.5559    
  14  Prefactor      .0000        8.0223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.748        9.3988        .30542E-03   -1.5642    
  16  norm          5.9703        6.6639        .40948E-03   -1.5659    
  17  norm           .0000        8.5984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     60.224        72.876        .12852E-03   -1.5553    
  19  Normalizat    1.0847        .19964        .74452E-01   -.90245    
  20  Prefactor     1.1016        .14204        .37533E-01   -.89417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65827e-07
Minuit parameter uncertainties:
  1  5.97697e-06
  2  0.0160636
  3  8.87888e-05
  4  8.28276
  5  1.34155e-07
  6  0.000286066
  7  26.1704
  8  2.69613
  9  26.0797
  10  3.36554
  11  4.72364
  12  7.89414e-07
  13  5.73833
  14  2.6297e-05
  15  9.39882
  16  6.66391
  17  6.0203e-06
  18  72.8774
  19  0.199776
  20  0.142087
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.588e+01  2.608e+01  0.000e+00  1.000e+06 ( 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:  1.102e+00  1.421e-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.085e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.67
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 8.73e-08 +/- 4.96e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.55e-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) = 9165.17638684
delta logL = 0.988927295732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9165.15840587
delta logL = 1.0069082676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.624       1.0000          .0000       .10000E+07
     2 'Index     '    3.3218       1.0000          .0000       10.000    
     3 'Normalizat'    1.0050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1427       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9165.158     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      289 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.616        34.465        .10125E-04   -.36425E-02
   2  Index         3.3219        1.2283        .42982E-02   -.14795E-03
   3  Normalizat    1.0050        .24642        .34055E-03    .45916E-03
   4  Prefactor     1.1427        .17249        .22963E-03    .34901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.6165
  Index      = 3.32194
  Normalizat = 1.00498
  Prefactor  = 1.14268
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.158     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.616        20.445        .40500E-06   -1.5629    
   2  Index         3.3219        .73302        .17193E-03   -.34226    
   3  Normalizat    1.0050        .24243        .13622E-04   -.92864    
   4  Prefactor     1.1427        .16943        .45927E-04   -.88114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53026e-10
Minuit parameter uncertainties:
  1  20.4447
  2  0.736014
  3  0.2427
  4  0.169506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887801': 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) = 9165.15840577
delta logL = 1.00690837079

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.562e+01  2.044e+01  0.000e+00  1.000e+06 ( 1.000e-13)
253        Index:  3.322e+00  7.360e-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:  1.143e+00  1.695e-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.005e+00  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.86
Ra Dec: 207.757 0.487
Photon Index (Free Index): 3.32 +/- 0.74
Photon Flux (Free Index): 1.41e-07 +/- 7.10e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.20e-05

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/887801/cmap_HighResolution_692409601_692668801_4FGL_J1351.0+0029_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.73e-08', energy_flux2='2.48e-05', photon_flux_error='4.96e-08', dlogl='1.01e+00', energy_flux='2.73e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2022-12-14 00:56:14.513640', photon_index_error2='0.74', photon_index2='3.32', ts='4.67', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.08', time_epoch_completed='1671008174.51', return_code='0', job_id='887801', GAL2='1.14', EG2='1.00', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='7.10e-08', ts2='6.86', photon_index='2.44' WHERE bin_id='1748' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:56:14 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 887801: <4FGL_J1351.0+0029_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:45:16 2022
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:45:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:45:17 2022
Terminated at Wed Dec 14 00:56:15 2022
Results reported at Wed Dec 14 00:56:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin1748 207.757 0.4873 692409601 692668801 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 :                                   579.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            659 sec.

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

