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


Performing analysis on: 4FGL_J1031.1+7442_monthly_bin167
RA = 157.792, Dec = 74.7019
tmin = 669859201, tmax = 672451201
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='882048', job_status='RUN', time_executed='2022-04-24 01:29:39.936613', time_epoch_executed='1650788979.94' WHERE source_name='4FGL J1031.1+7442' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882048

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882048/ft1_4FGL_J1031.1+7442_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882048/ft1_4FGL_J1031.1+7442_monthly_bin167.fits outfile=/scratch/kocevski/882048/ft1_filteredMKT_4FGL_J1031.1+7442_monthly_bin167.fits ra=157.792 dec=74.7019 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.32
user 37.39
sys 0.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.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/882048/ft1_filteredMKT_4FGL_J1031.1+7442_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.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.84
user 0.65
sys 0.18

Number of photons that the gtmktime cut: 8339

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/882048/ltcube_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.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/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits
.....................!
real 118.54
user 117.94
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/882048/ltcube_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.fits outfile=/scratch/kocevski/882048/expmap_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.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/882048/ltcube_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.fits
.....................!
real 191.20
user 186.13
sys 4.70

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

Setting source of interest to:
4FGL J1031.1+7442 @ 157.792 74.7019

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits scfile=/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits outfile=/scratch/kocevski/882048/cmap_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.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=157.792 yref=74.7019 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.80
user 0.64
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits scfile=/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits outfile=/scratch/kocevski/882048/cmap_HighResolution_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.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=157.792 yref=74.7019 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.80
user 0.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/882048/Model_4FGL_J1031.1+7442_monthly_bin167.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/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits.....................!
real 905.49
user 902.44
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits', '/scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits', expMap='/scratch/kocevski/882048/expmap_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.fits', expCube='/scratch/kocevski/882048/ltcube_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/882048/Model_4FGL_J1031.1+7442_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1031.1+7442'

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  7.368e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.162e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/882048/ft1_filtered_4FGL_J1031.1+7442_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/882048/ft2_4FGL_J1031.1+7442_monthly_bin167.fits
Exposure map: /scratch/kocevski/882048/expmap_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.fits
Exposure cube: /scratch/kocevski/882048/ltcube_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/882048/Model_4FGL_J1031.1+7442_monthly_bin167.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) = 88053.4991571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4502       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9957       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46307E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9595       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0464       1.0000         .10000E-03   10000.    
    11 'norm      '    16.554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7124       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8002       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.942       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66110       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2226       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5147       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .95851       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1624       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18632       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30623       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8926       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.7717       1.0000         .10000E-03   10000.    
    27 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.5665       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .38847E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.0180       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97701       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .99005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   88053.39     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     3840 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0461         .0000    ** at limit **
   2  norm          2.1820        2.3857         .0000        .15473E-02
   3  Prefactor     6.4505        7.3105         .0000        .52330E-02
   4  Prefactor     3.9958        1.0128         .0000        .75731E-05
   5  norm          2.4088        .62424         .0000        .70837E-02
   6  Prefactor     .10000E-03    3.1874         .0000    ** at limit **
   7  Prefactor     .10000E-03    4.5995         .0000    ** at limit **
   8  Prefactor     11.537        2.6214         .0000        .34583E-02
   9  Prefactor     8.9595        2.8116         .0000        .20200E-02
  10  norm          4.0464        .29669         .0000        .96581E-03
  11  norm          16.554        5.0202         .0000        .51000E-04
  12  Prefactor     1.7108        2.4549         .0000        .12520    
  13  Prefactor     .10000E-03    .75229         .0000    ** at limit **
  14  Prefactor     .10000E-03    5.2459         .0000    ** at limit **
  15  Prefactor     .10000E-03    2.3270         .0000    ** at limit **
  16  norm          4.8003        1.5722         .0000        .39205E-02
  17  Prefactor     20.941        21.179         .0000        .43785E-03
  18  Prefactor     .66138        1.0063         .0000        .18939E-01
  19  norm          1.2225        .22082         .0000        .43071E-02
  20  norm          1.5150        .98527         .0000        .95333E-02
  21  Prefactor     .95953        1.8381         .0000        .72644E-02
  22  Prefactor     8.1616        2.6721         .0000        .68322E-01
  23  Prefactor     .18137        .98775         .0000        .59109E-02
  24  Prefactor     .30624        .49678         .0000        .15132E-01
  25  Prefactor     5.8924        2.8939         .0000        .24982E-02
  26  Prefactor     8.7718        7.7394         .0000        .77466E-03
  27  norm          .10000E-03    .23529         .0000    ** at limit **
  28  norm          1.5667        .85175         .0000        .92142E-02
  29  Prefactor     .10000E-03    1.9609         .0000    ** at limit **
  30  Prefactor     8.0181        3.5908         .0000        .56041E-03
  31  Normalizat    .97699        .49328E-01     .0000        .26505E-03
  32  Prefactor     .99007        .39704E-01     .0000        .17700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.18196
  Prefactor  = 6.4505
  Prefactor  = 3.99575
  norm       = 2.40883
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.5365
  Prefactor  = 8.95947
  norm       = 4.0464
  norm       = 16.5536
  Prefactor  = 1.71078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.80028
  Prefactor  = 20.9412
  Prefactor  = 0.661377
  norm       = 1.22253
  norm       = 1.51503
  Prefactor  = 0.95953
  Prefactor  = 8.16164
  Prefactor  = 0.181373
  Prefactor  = 0.306238
  Prefactor  = 5.8924
  Prefactor  = 8.77184
  norm       = 0.0001
  norm       = 1.56673
  Prefactor  = 0.000100004
  Prefactor  = 8.01807
  Normalizat = 0.976993
  Prefactor  = 0.990068
 **********
 **   18 **HESSE 
 **********

 FCN=   88053.39     FROM HESSE     STATUS=OK           697 CALLS     4537 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1820        2.3828        .27869E-03   -1.5413    
   3  Prefactor     6.4505        7.3015        .79014E-03   -1.5200    
   4  Prefactor     3.9958        1.0125        .20176E-04   -1.5308    
   5  norm          2.4088        .61915        .11248E-03   -1.5398    
   6  Prefactor     .10000E-03    3.2103        .18065       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.537        2.6225        .58973E-03   -1.5029    
   9  Prefactor     8.9595        2.8101        .13390E-03   -1.5109    
  10  norm          4.0464        .29654        .41887E-04   -1.5306    
  11  norm          16.554        5.0197        .98440E-04   -1.4894    
  12  Prefactor     1.7108        2.4035        .16060E-02   -1.5446    
  13  Prefactor     .10000E-03    .75765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8003        1.3355        .15565E-03   -1.5270    
  17  Prefactor     20.941        21.175        .87525E-04   -1.4792    
  18  Prefactor     .66138        .95478        .31185E-03   -1.5545    
  19  norm          1.2225        .21202        .48890E-04   -1.5487    
  20  norm          1.5150        .91403        .14406E-03   -1.5462    
  21  Prefactor     .95953        1.7498        .38844E-02   -1.5512    
  22  Prefactor     8.1616        2.5183        .70165E-03   -1.5137    
  23  Prefactor     .18137        .91845        .10928       -1.5623    
  24  Prefactor     .30624        .64498        .25499E-02   -1.5597    
  25  Prefactor     5.8924        2.7760        .16543E-03   -1.5222    
  26  Prefactor     8.7718        7.7396        .67669E-03   -1.5116    
  27  norm          .10000E-03    .89889        .27800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.5667        .83456        .18370E-03   -1.5458    
  29  Prefactor     .10000E-03    15.083        .80606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.0181        3.5891        .14160E-03   -1.5142    
  31  Normalizat    .97699        .55033E-01    .26927E-03   -.93805    
  32  Prefactor     .99007        .44887E-01    .22568E-03   -.93061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92504e-07
Minuit parameter uncertainties:
  1  7.14966e-07
  2  2.38286
  3  7.30246
  4  1.01247
  5  0.619148
  6  0.000140804
  7  2.71736e-05
  8  2.62256
  9  2.8101
  10  0.296536
  11  5.01983
  12  2.4036
  13  2.93651e-07
  14  4.60142e-05
  15  4.21436e-07
  16  1.3355
  17  21.1823
  18  0.954802
  19  0.212022
  20  0.914043
  21  1.74984
  22  2.51829
  23  0.816082
  24  0.644994
  25  2.77602
  26  7.74043
  27  1.81513e-07
  28  0.834565
  29  0.000474735
  30  3.58917
  31  0.0550366
  32  0.0448891
Done.

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

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  1.000e-04  4.601e-05  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  2.162e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  9.901e-01  4.489e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.770e-01  5.504e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 157.792 74.702
Photon Flux Upper Limit: 1.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.67e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/882048/likelihoodResults_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.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) = 88053.3915328
delta logL = -0.000905036882614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 88053.39063
delta logL = -2.24458926823e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14956E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2392       1.0000          .0000       10.000    
     3 'Normalizat'    .97708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   88053.10     FROM MIGRAD    STATUS=FAILED       170 CALLS      334 TOTAL
                     EDM=   .74E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29655        25.473        .15365E-02   -.77710E-01
   2  Index         3.3893        6.6789        .20697E-01    .12110E-01
   3  Normalizat    .96888        .66801E-01    .27025E-03    .52433E-03
   4  Prefactor     .99254        .49102E-01    .22542E-03   -.35908E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   88053.10     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      423 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29655        25.473        .79999E-04   -.77710E-01
   2  Index         3.3893        6.6789        .12130E-02    .12110E-01
   3  Normalizat    .96888        .66801E-01    .70961E-04    .52433E-03
   4  Prefactor     .99254        .49102E-01    .52702E-04   -.35908E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   88053.10     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      463 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29656        1.1993        .30730E-03    .29419E-03
   2  Index         3.3893        1.3803        .41395E-02   -.22103E-04
   3  Normalizat    .96888        .52927E-01    .10810E-04    .55192E-03
   4  Prefactor     .99254        .44008E-01    .90168E-05   -.23805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.296555
  Index      = 3.38931
  Normalizat = 0.968882
  Prefactor  = 0.992539
 **********
 **   18 **HESSE 
 **********

 FCN=   88053.10     FROM HESSE     STATUS=OK            27 CALLS      490 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29656        1.0700        .12292E-04   -1.5817    
   2  Index         3.3893        1.2393        .16558E-03   -.32799    
   3  Normalizat    .96888        .52774E-01    .21620E-05   -.94080    
   4  Prefactor     .99254        .43918E-01    .18034E-05   -.92979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10338e-10
Minuit parameter uncertainties:
  1  1.07007
  2  1.25394
  3  0.0527766
  4  0.0439198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882048': 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) = 88053.0980909
delta logL = 0.292536833513

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  2.966e-01  1.070e+00  1.000e-04  1.000e+04 ( 1.000e-14)
345        Index:  3.389e+00  1.254e+00  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  2.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  9.925e-01  4.392e-02  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  9.689e-01  5.278e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 157.792 74.702

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/882048/cmap_HighResolution_669859201_672451201_4FGL_J1031.1+7442_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.67e-04', job_status='DONE', photon_flux_upper_limit='1.14e-08', time_completed='2022-04-24 04:40:41.358350', job_id='882048', GAL2='0.99', fit_tolerance='1e-08', EG2='0.97', EG='0.98', time_epoch_completed='1650800441.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.93e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='167' AND source_name='4FGL J1031.1+7442' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 04:40:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 882048: <4FGL_J1031.1+7442_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1031.1+7442_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 01:05:39 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:28:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:28:31 2022
Terminated at Sun Apr 24 04:40:42 2022
Results reported at Sun Apr 24 04:40:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1031.1+7442_monthly_bin167 157.792 74.7019 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1031.1+7442 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11428.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             447.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11531 sec.
    Turnaround time :                            12903 sec.

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

