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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin1776
RA = 150.294, Dec = 29.188
tmin = 699667201, tmax = 699926401
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='830123', job_status='RUN', time_executed='2023-03-08 00:27:39.272631', time_epoch_executed='1678264059.27' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/830123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/830123/ft1_4FGL_J1001.1+2911_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/830123/ft1_4FGL_J1001.1+2911_daily_bin1776.fits outfile=/scratch/kocevski/830123/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1776.fits ra=150.294 dec=29.188 rad=12.0 tmin=699667201.0 tmax=699926401.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.91
user 3.68
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.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/830123/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 595

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/830123/ltcube_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.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/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits
.....................!
real 12.25
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/830123/ltcube_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.fits outfile=/scratch/kocevski/830123/expmap_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.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/830123/ltcube_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.fits
.....................!
real 190.53
user 185.11
sys 5.08

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1001.1+2911 @ 150.294 29.188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits scfile=/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits outfile=/scratch/kocevski/830123/cmap_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.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=150.294 yref=29.188 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits scfile=/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits outfile=/scratch/kocevski/830123/cmap_HighResolution_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.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=150.294 yref=29.188 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/830123/Model_4FGL_J1001.1+2911_daily_bin1776.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/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits.....................!
real 54.11
user 52.80
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits', '/scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits', expMap='/scratch/kocevski/830123/expmap_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.fits', expCube='/scratch/kocevski/830123/ltcube_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/830123/Model_4FGL_J1001.1+2911_daily_bin1776.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1001.1+2911'

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.010e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/830123/ft1_filtered_4FGL_J1001.1+2911_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/830123/ft2_4FGL_J1001.1+2911_daily_bin1776.fits
Exposure map: /scratch/kocevski/830123/expmap_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.fits
Exposure cube: /scratch/kocevski/830123/ltcube_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/830123/Model_4FGL_J1001.1+2911_daily_bin1776.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) = 6409.66447409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85272       1.0000          .0000       .10000E+07
     2 'Prefactor '    .71942E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    14.434       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30768E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    71.964       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3165       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.5593       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.0721       1.0000          .0000       .10000E+07
     9 'norm      '    15.285       1.0000          .0000       .10000E+07
    10 'Prefactor '    .69261E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    40.479       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5392       1.0000          .0000       .10000E+07
    13 'norm      '    9.5359       1.0000          .0000       .10000E+07
    14 'Prefactor '    17.161       1.0000          .0000       .10000E+07
    15 'Prefactor '    .34129       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19757E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .47795E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .29772E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2475       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93947       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6409.638     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1621 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85274        1.1458       -.96721E-07    .91339E-03
   2  Prefactor      .0000        1.0076       -.28528E-06** at limit **
   3  Prefactor     14.453        3.7815       -.13721E-05    .19033    
   4  Prefactor     .16653E-09    8.1641       -.82227E-06** at limit **
   5  Prefactor     70.486        51.516       -.29015E-06    .48406E-01
   6  Prefactor     2.3472        5.2272       -.78440E-06   -.36419E-03
   7  Prefactor     2.5989        8.9267        .37222E-05    .76666E-02
   8  Prefactor     4.0696        2.2263        .73082E-07   -.16212E-02
   9  norm          15.309        8.8189        .42945E-05    .38732E-01
  10  Prefactor      .0000        1.3816        .12426E-06** at limit **
  11  Prefactor     39.740        24.080       -.16135E-05    .76146E-01
  12  Prefactor     1.5489        4.3266        .12988E-06   -.22276E-03
  13  norm          9.4413        9.2275        .36495E-05    .21933E-01
  14  Prefactor     18.458        31.065        .26635E-05    .61107E-01
  15  Prefactor     .54519        25.223        .46090E-05   -.77598E-02
  16  Prefactor      .0000        4.9803       -.52643E-06** at limit **
  17  Prefactor      .0000        1.4582       -.23129E-06** at limit **
  18  Prefactor     .13323E-08    19.004        .14894E-05** at limit **
  19  Normalizat    1.2471        .20726       -.22817E-04   -.12104E-03
  20  Prefactor     .93976        .22675        .14186E-04   -.11714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.852744
  Prefactor  = 0
  Prefactor  = 14.4534
  Prefactor  = 1.66533e-10
  Prefactor  = 70.486
  Prefactor  = 2.34724
  Prefactor  = 2.59887
  Prefactor  = 4.06956
  norm       = 15.3091
  Prefactor  = 0
  Prefactor  = 39.74
  Prefactor  = 1.5489
  norm       = 9.44133
  Prefactor  = 18.458
  Prefactor  = 0.545193
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.33227e-09
  Normalizat = 1.24706
  Prefactor  = 0.939758
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.638     FROM HESSE     STATUS=OK           343 CALLS     1964 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85274        1.1511        .49085E-03   -1.5689    
   2  Prefactor      .0000        1.0051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.453        20.104        .26337E-03   -1.5632    
   4  Prefactor     .16653E-09    8.1702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     70.486        53.480        .11789E-03   -1.5540    
   6  Prefactor     2.3472        5.2747        .67374E-03   -1.5677    
   7  Prefactor     2.5989        8.9161        .63789E-03   -1.5676    
   8  Prefactor     4.0696        2.2254        .49939E-03   -1.5668    
   9  norm          15.309        8.8669        .25592E-03   -1.5630    
  10  Prefactor      .0000        1.3762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.740        38.526        .15719E-03   -1.5582    
  12  Prefactor     1.5489        4.3804        .85918E-03   -1.5683    
  13  norm          9.4413        9.3286        .32428E-03   -1.5647    
  14  Prefactor     18.458        42.214        .24150E-03   -1.5622    
  15  Prefactor     .54519        26.460        .13411E-01   -1.5693    
  16  Prefactor      .0000        4.9745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.4489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .13323E-08    19.018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2471        .17629        .50724E-01   -.85161    
  20  Prefactor     .93976        .19248        .45506E-01   -.94765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81091e-06
Minuit parameter uncertainties:
  1  1.15107
  2  5.46205e-06
  3  20.1036
  4  7.54497e-05
  5  53.4808
  6  5.27466
  7  8.91613
  8  2.22539
  9  8.86691
  10  2.43382e-06
  11  38.526
  12  4.38039
  13  9.32866
  14  42.2143
  15  7.59637
  16  9.55018e-06
  17  8.00313e-06
  18  0.00032152
  19  0.176373
  20  0.192624
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  4.070e+00  2.225e+00  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.398e-01  1.926e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.247e+00  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.09
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.43e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.18e-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) = 6408.44702609
delta logL = 1.19104158909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6408.43811632
delta logL = 1.19995135457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7124       1.0000          .0000       .10000E+07
     2 'Index     '    1.5144       1.0000          .0000       10.000    
     3 'Normalizat'    1.2879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6408.438     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7120        2.2845        .52387E-03   -.76871E-03
   2  Index         1.5144        .33348        .18030       -.67327E-04
   3  Normalizat    1.2879        .16587        .50051E-01    .28216E-05
   4  Prefactor     .91540        .18691        .65413E-01    .16380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71195
  Index      = 1.5144
  Normalizat = 1.28793
  Prefactor  = 0.915398
 **********
 **   18 **HESSE 
 **********

 FCN=   6408.438     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7120        2.7880        .92079E-05   -1.5669    
   2  Index         1.5144        .44814        .72229E-02   -.77137    
   3  Normalizat    1.2879        .19818        .22128E-03   -.83928    
   4  Prefactor     .91540        .22303        .28933E-03   -.95605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14912e-09
Minuit parameter uncertainties:
  1  2.78805
  2  0.449318
  3  0.198297
  4  0.223249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/830123': 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) = 6408.43811631
delta logL = 1.19995136832

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.712e+00  2.788e+00  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  1.514e+00  4.493e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.154e-01  2.232e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  1.288e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.50
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.51 +/- 0.45
Photon Flux (Free Index): 2.15e-08 +/- 1.95e-08
Energy Flux (Free Index): 6.49e-05 +/- 6.76e-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/830123/cmap_HighResolution_699667201_699926401_4FGL_J1001.1+2911_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.43e-08', energy_flux2='6.49e-05', photon_flux_error='2.97e-08', dlogl='1.20e+00', energy_flux='2.16e-05', photon_flux2='2.15e-08', job_status='DONE', time_completed='2023-03-08 00:36:23.744520', photon_index_error2='0.45', photon_index2='1.51', ts='13.09', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='6.76e-05', EG='1.25', time_epoch_completed='1678264583.74', return_code='0', job_id='830123', GAL2='0.92', EG2='1.29', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='1.95e-08', ts2='15.50', photon_index='2.27' WHERE bin_id='1776' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:36:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 830123: <4FGL_J1001.1+2911_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 00:25:35 2023
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:25:40 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:25:40 2023
Terminated at Wed Mar  8 00:36:24 2023
Results reported at Wed Mar  8 00:36:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin1776 150.294 29.188 699667201 699926401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1001.1+2911 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   527.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             239.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            649 sec.

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

