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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1715
RA = 247.804, Dec = 10.7753
tmin = 683856001, tmax = 684115201
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='170044', job_status='RUN', time_executed='2022-09-16 19:39:10.818967', time_epoch_executed='1663382350.82' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170044/ft1_4FGL_J1631.2+1046_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170044/ft1_4FGL_J1631.2+1046_daily_bin1715.fits outfile=/scratch/kocevski/170044/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1715.fits ra=247.804 dec=10.7753 rad=12.0 tmin=683856001.0 tmax=684115201.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.50
user 3.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.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/170044/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.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.34
sys 0.16

Number of photons that the gtmktime cut: 818

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/170044/ltcube_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.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/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits
.....................!
real 14.30
user 13.83
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/170044/ltcube_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.fits outfile=/scratch/kocevski/170044/expmap_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.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/170044/ltcube_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.fits
.....................!
real 191.84
user 185.55
sys 5.44

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 168 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1631.2+1046 @ 247.804 10.7753

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits scfile=/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits outfile=/scratch/kocevski/170044/cmap_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.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=247.804 yref=10.7753 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits scfile=/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits outfile=/scratch/kocevski/170044/cmap_HighResolution_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.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=247.804 yref=10.7753 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170044/Model_4FGL_J1631.2+1046_daily_bin1715.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits.....................!
real 65.93
user 64.36
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits', '/scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits', expMap='/scratch/kocevski/170044/expmap_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.fits', expCube='/scratch/kocevski/170044/ltcube_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170044/Model_4FGL_J1631.2+1046_daily_bin1715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1631.2+1046'

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  8.500e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
255        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  8.952e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/170044/ft1_filtered_4FGL_J1631.2+1046_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/170044/ft2_4FGL_J1631.2+1046_daily_bin1715.fits
Exposure map: /scratch/kocevski/170044/expmap_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.fits
Exposure cube: /scratch/kocevski/170044/ltcube_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170044/Model_4FGL_J1631.2+1046_daily_bin1715.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) = 8591.98248964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4529       1.0000          .0000       .10000E+07
     2 'norm      '    .98455E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    64.422       1.0000          .0000       .10000E+07
     4 'norm      '    14.509       1.0000          .0000       .10000E+07
     5 'norm      '    5.3371       1.0000          .0000       .10000E+07
     6 'norm      '    4.2033       1.0000          .0000       .10000E+07
     7 'Prefactor '    .60028E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    44.110       1.0000          .0000       .10000E+07
     9 'Prefactor '    .23633E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .87579E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .32925E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .52536E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.8482       1.0000          .0000       .10000E+07
    14 'Prefactor '    .99234E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.562       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.087       1.0000          .0000       .10000E+07
    17 'Prefactor '    .41947       1.0000          .0000       .10000E+07
    18 'Normalizat'    .62842       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8591.958     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1414 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4495        3.2350       -.29494E-07    .68921E-03
   2  norm           .0000        1.5653        .37799E-08** at limit **
   3  Prefactor     64.298        10.197        .11537E-06   -.57931E-01
   4  norm          14.495        7.1652       -.11744E-07    .24073E-02
   5  norm          5.3379        2.1471        .15199E-07   -.80363E-03
   6  norm          4.1607        11.830       -.15873E-06   -.20345E-02
   7  Prefactor     .55511E-10    11.366        .10410E-06** at limit **
   8  Prefactor     44.392        21.508       -.28572E-06    .28671E-01
   9  Prefactor      .0000        19.160        .21744E-06** at limit **
  10  Prefactor     .55511E-10    37.958        .38194E-06** at limit **
  11  Prefactor      .0000        2.6395        .48592E-07** at limit **
  12  Prefactor      .0000        4.2508       -.14537E-06** at limit **
  13  Prefactor     4.8253        6.3639        .80830E-07   -.14454E-03
  14  Prefactor      .0000        10.301        .29558E-06** at limit **
  15  Prefactor     10.846        73.368        .14900E-05    .93121E-02
  16  Prefactor     14.102        8.7477       -.94999E-07   -.20593E-02
  17  Prefactor     .11102E-09    102.44        .18893E-06** at limit **
  18  Normalizat    .62985        .29536        .17828E-05    .21051E-05
  19  Prefactor     1.2097        .11846       -.65240E-06    .19411E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.44949
  norm       = 0
  Prefactor  = 64.2975
  norm       = 14.4954
  norm       = 5.33785
  norm       = 4.16069
  Prefactor  = 5.55112e-11
  Prefactor  = 44.392
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.8253
  Prefactor  = 0
  Prefactor  = 10.8458
  Prefactor  = 14.1017
  Prefactor  = 1.11022e-10
  Normalizat = 0.629854
  Prefactor  = 1.20972
 **********
 **   18 **HESSE 
 **********

 FCN=   8591.958     FROM HESSE     STATUS=OK           318 CALLS     1732 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4495        3.2724        .39486E-03   -1.5657    
   2  norm           .0000        1.5702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     64.298        53.029        .12460E-03   -1.5548    
   4  norm          14.495        10.441        .26269E-03   -1.5632    
   5  norm          5.3379        2.1732        .43479E-03   -1.5662    
   6  norm          4.1607        12.031        .49130E-03   -1.5667    
   7  Prefactor     .55511E-10    11.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.392        60.825        .15058E-03   -1.5575    
   9  Prefactor      .0000        18.972        .16808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    6.8369        .73707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.6384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        4.2522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8253        6.5333        .45662E-03   -1.5664    
  14  Prefactor      .0000        10.310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.846        88.973        .29436E-03   -1.5642    
  16  Prefactor     14.102        10.968        .26661E-03   -1.5633    
  17  Prefactor     .11102E-09    9.7319        .10193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .62985        .28312        .11493       -1.0673    
  19  Prefactor     1.2097        .11010        .34407E-01   -.86033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24688e-07
Minuit parameter uncertainties:
  1  3.27243
  2  9.77205e-07
  3  53.029
  4  10.4413
  5  2.17322
  6  12.0316
  7  4.95821e-05
  8  60.826
  9  3.5899e-05
  10  3.34914e-05
  11  2.39104e-06
  12  6.8201e-06
  13  6.53332
  14  1.03977e-06
  15  62.1294
  16  10.9679
  17  5.90194e-05
  18  0.283775
  19  0.11012
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  0.000e+00  3.590e-05  0.000e+00  1.000e+06 ( 1.000e-13)
255        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  8.952e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.210e+00  1.101e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  6.299e-01  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 247.804 10.775
Photon Flux Upper Limit: 8.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170044/likelihoodResults_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.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): 0
logL (Free Index) = 8591.98353424
delta logL = -0.0252496978937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8591.94936361
delta logL = 0.00892093821858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45081E-03   1.0000          .0000       .10000E+07
     2 'Index     '    7.4528       1.0000          .0000       10.000    
     3 'Normalizat'    .61755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8591.958     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      309 TOTAL
                     EDM=   .61E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    18.463        .74128E-06** at limit **
   2  Index         2.5075        .60842        .63377E-05    .26903E-11
   3  Normalizat    .62985        .28553        .11043E-04    .51483E-04
   4  Prefactor     1.2097        .11809       -.45900E-05    .18521E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.50749
  Normalizat = 0.629854
  Prefactor  = 1.20972
 **********
 **   18 **HESSE 
 **********

 FCN=   8591.958     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      344 TOTAL
                     EDM=   .60E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .22268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5075        5.4376        .50000       -38.221    
   3  Normalizat    .62985        .65958E-03    .11493       -2.0743    
   4  Prefactor     1.2097        .27064E-03    .34336E-01   -2.2813    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99237e-14
Minuit parameter uncertainties:
  1  5.2131e-06
  2  50463.9
  3  0.00065958
  4  0.000270639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170044': 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) = 8591.95828455
delta logL = -5.45696821064e-12

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  5.551e-11  5.213e-06  0.000e+00  1.000e+06 ( 1.000e-13)
255        Index:  2.507e+00  5.046e+04  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  8.952e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.210e+00  2.706e-04  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  6.299e-01  6.596e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 247.804 10.775

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/170044/cmap_HighResolution_683856001_684115201_4FGL_J1631.2+1046_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.61e-08', time_completed='2022-09-16 19:49:32.969435', job_id='170044', GAL2='1.21', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1663382972.97', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-5.46e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1715' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:49:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 170044: <4FGL_J1631.2+1046_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1631.2+1046_daily_bin1715> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 19:35:28 2022
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:37:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:37:36 2022
Terminated at Fri Sep 16 19:49:33 2022
Results reported at Fri Sep 16 19:49:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1715 247.804 10.7753 683856001 684115201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1631.2+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   623.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            845 sec.

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

