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


Performing analysis on: 4FGL_J1031.1+7442_daily_bin1741
RA = 157.792, Dec = 74.7019
tmin = 690595201, tmax = 690854401
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='10826', job_status='RUN', time_executed='2022-11-23 00:44:33.499857', time_epoch_executed='1669193073.5' WHERE source_name='4FGL J1031.1+7442' and cadence='daily' and bin_id='1741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10826/ft1_4FGL_J1031.1+7442_daily_bin1741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10826/ft1_4FGL_J1031.1+7442_daily_bin1741.fits outfile=/scratch/kocevski/10826/ft1_filteredMKT_4FGL_J1031.1+7442_daily_bin1741.fits ra=157.792 dec=74.7019 rad=12.0 tmin=690595201.0 tmax=690854401.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 2.95
user 2.71
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.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/10826/ft1_filteredMKT_4FGL_J1031.1+7442_daily_bin1741.fits evtable="EVENTS" outfile="/scratch/kocevski/10826/ft1_filtered_4FGL_J1031.1+7442_daily_bin1741.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: 1269

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10826/ft1_filtered_4FGL_J1031.1+7442_daily_bin1741.fits" evtable="EVENTS" scfile=/scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits sctable="SC_DATA" outfile=/scratch/kocevski/10826/ltcube_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.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/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits
.....................!
real 14.87
user 14.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10826/ft1_filtered_4FGL_J1031.1+7442_daily_bin1741.fits evtable="EVENTS" scfile=/scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits sctable="SC_DATA" expcube=/scratch/kocevski/10826/ltcube_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.fits outfile=/scratch/kocevski/10826/expmap_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.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/10826/ltcube_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.fits
.....................!
real 192.27
user 187.07
sys 4.83

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/10826/ft1_filtered_4FGL_J1031.1+7442_daily_bin1741.fits scfile=/scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits outfile=/scratch/kocevski/10826/cmap_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10826/ft1_filtered_4FGL_J1031.1+7442_daily_bin1741.fits scfile=/scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits outfile=/scratch/kocevski/10826/cmap_HighResolution_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.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.57
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10826/ft1_filtered_4FGL_J1031.1+7442_daily_bin1741.fits', '/scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits', expMap='/scratch/kocevski/10826/expmap_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.fits', expCube='/scratch/kocevski/10826/ltcube_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10826/Model_4FGL_J1031.1+7442_daily_bin1741.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  0.000e+00  1.000e+06 ( 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/10826/ft1_filtered_4FGL_J1031.1+7442_daily_bin1741.fits
Spacecraft file(s): /scratch/kocevski/10826/ft2_4FGL_J1031.1+7442_daily_bin1741.fits
Exposure map: /scratch/kocevski/10826/expmap_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.fits
Exposure cube: /scratch/kocevski/10826/ltcube_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10826/Model_4FGL_J1031.1+7442_daily_bin1741.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) = 13600.8990079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.212       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27585E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.4837       1.0000          .0000       .10000E+07
     4 'norm      '    3.5318       1.0000          .0000       .10000E+07
     5 'Prefactor '    44.918       1.0000          .0000       .10000E+07
     6 'Prefactor '    .33059E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.5550       1.0000          .0000       .10000E+07
     8 'Prefactor '    .71104E-03   1.0000          .0000       .10000E+07
     9 'norm      '    2.5065       1.0000          .0000       .10000E+07
    10 'norm      '    .29876E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0028       1.0000          .0000       .10000E+07
    12 'Prefactor '    .76493E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .53011E-01   1.0000          .0000       .10000E+07
    14 'norm      '    4.6944       1.0000          .0000       .10000E+07
    15 'Prefactor '    38.489       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15535E-02   1.0000          .0000       .10000E+07
    17 'norm      '    3.6726       1.0000          .0000       .10000E+07
    18 'norm      '    .65697E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.2671       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.4453       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.7821       1.0000          .0000       .10000E+07
    22 'Prefactor '    11.265       1.0000          .0000       .10000E+07
    23 'Prefactor '    .11402       1.0000          .0000       .10000E+07
    24 'norm      '    .86010       1.0000          .0000       .10000E+07
    25 'norm      '    .33179E-06   1.0000          .0000       .10000E+07
    26 'Prefactor '    10.404       1.0000          .0000       .10000E+07
    27 'Prefactor '    .32020E-03   1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0897       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13600.90     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2646 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.216        7.7488       -.17742E-06   -.52230E-01
   2  Prefactor     .37187E-06    8.8625       -.34581E-07** at limit **
   3  Prefactor     4.4814        2.8263       -.57461E-08    .38904E-04
   4  norm          3.5304        1.9370       -.80210E-07   -.35373E-03
   5  Prefactor     44.930        1.1428        .99334E-08    .52376E-02
   6  Prefactor     .22093E-07    13.488        .18245E-06** at limit **
   7  Prefactor     8.4208        6.6696       -.11082E-06    .67040E-03
   8  Prefactor     .11102E-09    2.8321       -.58980E-07** at limit **
   9  norm          2.5063        .62098        .19435E-07    .95598E-03
  10  norm          .58226E-06    7.4352       -.35910E-06** at limit **
  11  Prefactor     .99899        1.5303        .13838E-06    .33531E-02
  12  Prefactor     .11102E-09    8.4680       -.67038E-06** at limit **
  13  Prefactor     .21094E-07    33.916        .38145E-06** at limit **
  14  norm          4.7079        3.0460       -.15874E-06   -.21555E-02
  15  Prefactor     38.940        79.220        .21254E-05   -.27240E-02
  16  Prefactor     .22204E-09    3.3619        .54945E-08** at limit **
  17  norm          3.6727        .63801       -.47980E-08    .14033E-03
  18  norm           .0000        .78943        .43843E-07** at limit **
  19  Prefactor     2.2660        2.8029       -.12804E-07    .27688E-02
  20  Prefactor     2.4481        2.1503       -.33822E-07    .10835E-01
  21  Prefactor     5.7798        2.9486        .94842E-07    .13391E-03
  22  Prefactor     11.179        6.5928       -.76547E-07   -.58852E-04
  23  Prefactor     .90561E-06    6.7599       -.38345E-06** at limit **
  24  norm          .88678        3.4346        .46220E-06    .11704E-01
  25  norm           .0000        .48583       -.54891E-07** at limit **
  26  Prefactor     10.406        3.2574        .72524E-07   -.22726E-01
  27  Prefactor     .77716E-09    4.2656       -.31124E-06** at limit **
  28  Normalizat    1.0895        .13838       -.38171E-05   -.29787E-04
  29  Prefactor     .91929        .11358        .12502E-05   -.24199E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2162
  Prefactor  = 3.71869e-07
  Prefactor  = 4.48139
  norm       = 3.53039
  Prefactor  = 44.9299
  Prefactor  = 2.20934e-08
  Prefactor  = 8.42082
  Prefactor  = 1.11022e-10
  norm       = 2.5063
  norm       = 5.82256e-07
  Prefactor  = 0.998992
  Prefactor  = 1.11022e-10
  Prefactor  = 2.10942e-08
  norm       = 4.70791
  Prefactor  = 38.9402
  Prefactor  = 2.22045e-10
  norm       = 3.67275
  norm       = 0
  Prefactor  = 2.26605
  Prefactor  = 2.4481
  Prefactor  = 5.77979
  Prefactor  = 11.179
  Prefactor  = 9.05609e-07
  norm       = 0.886777
  norm       = 0
  Prefactor  = 10.4063
  Prefactor  = 7.77156e-10
  Normalizat = 1.08952
  Prefactor  = 0.919287
 **********
 **   18 **HESSE 
 **********

 FCN=   13600.90     FROM HESSE     STATUS=OK           619 CALLS     3265 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.216        11.437        .28640E-03   -1.5638    
   2  Prefactor     .37187E-06    11.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4814        2.8268        .47527E-03   -1.5666    
   4  norm          3.5304        1.9430        .53764E-03   -1.5670    
   5  Prefactor     44.930        35.787        .14922E-03   -1.5574    
   6  Prefactor     .22093E-07    13.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4208        6.6688        .34248E-03   -1.5650    
   8  Prefactor     .11102E-09    2.8356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5063        .62175        .64517E-03   -1.5676    
  10  norm          .58226E-06    12.433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .99899        11.133        .43862E-03   -1.5688    
  12  Prefactor     .11102E-09    8.4715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .21094E-07    9.9800        .15422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7079        4.2823        .46421E-03   -1.5665    
  15  Prefactor     38.940        79.403        .16120E-03   -1.5583    
  16  Prefactor     .22204E-09    3.3277        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6727        .64212        .52681E-03   -1.5670    
  18  norm           .0000        .78197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2660        7.7635        .68185E-03   -1.5678    
  20  Prefactor     2.4481        8.9287        .65395E-03   -1.5677    
  21  Prefactor     5.7798        2.9503        .41745E-03   -1.5660    
  22  Prefactor     11.179        7.0434        .29824E-03   -1.5641    
  23  Prefactor     .90561E-06    44.222        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .88678        3.5974        .48559E-03   -1.5689    
  25  norm           .0000        .48583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.406        18.753        .31039E-03   -1.5643    
  27  Prefactor     .77716E-09    4.3095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0895        .12252        .59355E-01   -.90089    
  29  Prefactor     .91929        .10003        .45246E-01   -.95470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37363e-07
Minuit parameter uncertainties:
  1  11.437
  2  0.00419237
  3  2.8268
  4  1.943
  5  35.7871
  6  0.00110295
  7  6.66883
  8  3.52707e-05
  9  0.621746
  10  0.00538123
  11  6.66973
  12  5.48051e-05
  13  0.000917371
  14  4.28233
  15  79.4056
  16  5.65338e-05
  17  0.642117
  18  3.51526e-07
  19  7.76357
  20  8.92875
  21  2.95028
  22  7.04337
  23  0.0126568
  24  3.57216
  25  1.82161e-07
  26  18.7535
  27  0.000114071
  28  0.122549
  29  0.100053
Done.

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

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  2.109e-08  9.174e-04  0.000e+00  1.000e+06 ( 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.193e-01  1.001e-01  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:  1.090e+00  1.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10826/likelihoodResults_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.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) = 13600.9126508
delta logL = -0.0154475111231

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13600.8965052
delta logL = 0.000698068166457

Fit tolerance = 1e-08

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

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

 FCN=   13600.90     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      257 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19995        2.0287        .67352E-02** at limit **
   2  Index         2.7089        .15640        .50000        .11855E-05
   3  Normalizat    1.0890        .24965E-02    .59367E-01    .18793E-04
   4  Prefactor     .91927        .20992E-02    .45249E-01    .16859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.199949
  Index      = 2.70888
  Normalizat = 1.08899
  Prefactor  = 0.919268
 **********
 **   18 **HESSE 
 **********

 FCN=   13600.90     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      292 TOTAL
                     EDM=   .22E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19995        7377.9        .41539E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7089        6.1631        .51326E-02   -.47600    
   3  Normalizat    1.0890        .17335        .26255E-03   -.90106    
   4  Prefactor     .91927        .10445        .23693E-03   -.95471    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16335e-05
Minuit parameter uncertainties:
  1  76.9117
  2  58.9629
  3  0.173437
  4  0.104475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10826': 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) = 13600.8965007
delta logL = 0.000702563620507

Extracting fit parameters...

4FGL J1031.1+7442
   Spectrum: PowerLaw
344    Prefactor:  1.999e-01  7.691e+01  0.000e+00  1.000e+06 ( 1.000e-14)
345        Index:  2.709e+00  5.896e+01  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.193e-01  1.045e-01  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:  1.089e+00  1.734e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/10826/cmap_HighResolution_690595201_690854401_4FGL_J1031.1+7442_daily_bin1741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.15e-08', time_completed='2022-11-23 01:08:13.431368', job_id='10826', GAL2='0.92', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1669194493.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='7.03e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1741' AND source_name='4FGL J1031.1+7442' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 23 01:08:13 PST 2022

='SUCCESS', return_code='0', GAL='0.92', dlogl='7.03e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1741' AND source_name='4FGL J1031.1+7442' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov 23 01:07:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 10977: <4FGL_J1031.1+7442_daily_bin1741> in cluster <slac> Done

Job <4FGL_J1031.1+7442_daily_bin1741> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Nov 23 00:07:07 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov 23 00:41:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov 23 00:41:54 2022
Terminated at Wed Nov 23 01:07:45 2022
Results reported at Wed Nov 23 01:07:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1031.1+7442_daily_bin1741 157.792 74.7019 690595201 690854401 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 :                                   1414.25 sec.
    Max Memory :                                 619 MB
    Average Memory :                             304.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1551 sec.
    Turnaround time :                            3638 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 10826: <4FGL_J1031.1+7442_daily_bin1741> in cluster <slac> Done

Job <4FGL_J1031.1+7442_daily_bin1741> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Nov 23 00:07:02 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov 23 00:41:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov 23 00:41:01 2022
Terminated at Wed Nov 23 01:08:13 2022
Results reported at Wed Nov 23 01:08:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1031.1+7442_daily_bin1741 157.792 74.7019 690595201 690854401 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 :                                   1421.47 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             296.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3408 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1632 sec.
    Turnaround time :                            3671 sec.

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

