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


Performing analysis on: 4FGL_J1031.6+6019_daily_bin1772
RA = 157.909, Dec = 60.3178
tmin = 698630401, tmax = 698889601
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='628396', job_status='RUN', time_executed='2023-02-24 01:22:21.553006', time_epoch_executed='1677230541.55' WHERE source_name='4FGL J1031.6+6019' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628396

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628396/ft1_4FGL_J1031.6+6019_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628396/ft1_4FGL_J1031.6+6019_daily_bin1772.fits outfile=/scratch/kocevski/628396/ft1_filteredMKT_4FGL_J1031.6+6019_daily_bin1772.fits ra=157.909 dec=60.3178 rad=12.0 tmin=698630401.0 tmax=698889601.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.99
user 2.77
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.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/628396/ft1_filteredMKT_4FGL_J1031.6+6019_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.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.32
sys 0.16

Number of photons that the gtmktime cut: 292

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/628396/ltcube_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.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/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits
.....................!
real 12.89
user 12.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/628396/ltcube_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.fits outfile=/scratch/kocevski/628396/expmap_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.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/628396/ltcube_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.fits
.....................!
real 190.71
user 184.83
sys 5.50

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

Setting source of interest to:
4FGL J1031.6+6019 @ 157.909 60.3178

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits scfile=/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits outfile=/scratch/kocevski/628396/cmap_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.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.909 yref=60.3178 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits scfile=/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits outfile=/scratch/kocevski/628396/cmap_HighResolution_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.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.909 yref=60.3178 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628396/Model_4FGL_J1031.6+6019_daily_bin1772.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/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits.....................!
real 44.81
user 43.55
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits', '/scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits', expMap='/scratch/kocevski/628396/expmap_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.fits', expCube='/scratch/kocevski/628396/ltcube_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628396/Model_4FGL_J1031.6+6019_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1031.6+6019'

4FGL J1031.6+6019
   Spectrum: PowerLaw
418    Prefactor:  9.245e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
419        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  9.651e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/628396/ft1_filtered_4FGL_J1031.6+6019_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/628396/ft2_4FGL_J1031.6+6019_daily_bin1772.fits
Exposure map: /scratch/kocevski/628396/expmap_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.fits
Exposure cube: /scratch/kocevski/628396/ltcube_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628396/Model_4FGL_J1031.6+6019_daily_bin1772.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) = 2954.51162693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46725       1.0000          .0000       .10000E+07
     2 'Prefactor '    .30145E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12853E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .31949E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37083E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .42169E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .20853E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .14100E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .80658E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .66058E-08   1.0000          .0000       .10000E+07
    11 'norm      '    .46205       1.0000          .0000       .10000E+07
    12 'Prefactor '    .90088E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .19700E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .18010E-01   1.0000          .0000       .10000E+07
    15 'norm      '    4.8773       1.0000          .0000       .10000E+07
    16 'norm      '    .84924E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .82413E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.7007       1.0000          .0000       .10000E+07
    19 'norm      '    .45075E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .99986E+06   1.0000          .0000       .10000E+07
    21 'norm      '    96638.       1.0000          .0000       .10000E+07
    22 'Prefactor '    21.797       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15787       1.0000          .0000       .10000E+07
    24 'Prefactor '    .26102E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .45266E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .78797E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .21736E-05   1.0000          .0000       .10000E+07
    28 'norm      '    .33873E-03   1.0000          .0000       .10000E+07
    29 'norm      '    .44242E-07   1.0000          .0000       .10000E+07
    30 'Prefactor '    .87964E-05   1.0000          .0000       .10000E+07
    31 'Prefactor '    .80377E-03   1.0000          .0000       .10000E+07
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .62103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2954.477     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     4138 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46760        .70777        .42209E-07    .46374E-03
   2  Prefactor      .0000        2.6505        .17916E-06** at limit **
   3  Prefactor     .55511E-10    5.3526        .81839E-06** at limit **
   4  Prefactor     .11269E-07    8.1493        .34240E-06** at limit **
   5  Prefactor     .39968E-08    10.891       -.96333E-06** at limit **
   6  norm          .25596E-06    6.9631       -.75332E-06** at limit **
   7  Prefactor     .14327E-06    9.0674        .15340E-06** at limit **
   8  norm           .0000        .57034       -.70910E-07** at limit **
   9  Prefactor     .56871E-06    11.009       -.13776E-05** at limit **
  10  norm           .0000        .58360       -.11077E-06** at limit **
  11  norm          .19713E-05    44.227        .13658E-05** at limit **
  12  Prefactor     .43507E-05    106.71       -.90898E-06** at limit **
  13  norm          .30864E-07    9.7691        .13734E-06** at limit **
  14  Prefactor      .0000        38.156        .27413E-06** at limit **
  15  norm          4.8776        7.9999       -.18161E-05   -.37404E-03
  16  norm          .14145E-05    7.1613       -.68552E-06** at limit **
  17  Prefactor     .32647E-05    19.908       -.26890E-06** at limit **
  18  norm          1.7008        .60972        .28395E-07    .11740E-02
  19  norm           .0000        1.2468       -.34383E-07** at limit **
  20  Prefactor     .99986E+06    6.5397        .12150E-06   -.17292    
  21  norm          96638.        1.0502        .23975E-09   -.21561    
  22  Prefactor     21.603        13.692       -.64951E-06    .14543    
  23  Prefactor     .18568E-03    31.602       -.16892E-05** at limit **
  24  Prefactor     .96645E-06    11.656        .38373E-06** at limit **
  25  Prefactor     .99409E-06    11.137       -.13900E-05** at limit **
  26  Prefactor     .91438E-06    4.2823       -.46320E-06** at limit **
  27  Prefactor      .0000        2.5583       -.24804E-07** at limit **
  28  norm          .10991E-07    6.4048       -.22983E-06** at limit **
  29  norm           .0000        1.5491       -.27708E-06** at limit **
  30  Prefactor      .0000        2.5584        .74761E-07** at limit **
  31  Prefactor     .38208E-06    5.8949        .10458E-05** at limit **
  32  Normalizat    .10000E-01    .20435E-01    .11040E-04** at limit **
  33  Prefactor     .62105        .10582        .11923E-04    .35044E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.467598
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.12688e-08
  Prefactor  = 3.9968e-09
  norm       = 2.55962e-07
  Prefactor  = 1.43274e-07
  norm       = 0
  Prefactor  = 5.68712e-07
  norm       = 0
  norm       = 1.97126e-06
  Prefactor  = 4.35069e-06
  norm       = 3.08642e-08
  Prefactor  = 0
  norm       = 4.87758
  norm       = 1.41448e-06
  Prefactor  = 3.26467e-06
  norm       = 1.70082
  norm       = 0
  Prefactor  = 999862
  norm       = 96638.2
  Prefactor  = 21.6027
  Prefactor  = 0.000185676
  Prefactor  = 9.66449e-07
  Prefactor  = 9.94094e-07
  Prefactor  = 9.1438e-07
  Prefactor  = 0
  norm       = 1.09912e-08
  norm       = 0
  Prefactor  = 0
  Prefactor  = 3.82083e-07
  Normalizat = 0.01
  Prefactor  = 0.621047
 **********
 **   18 **HESSE 
 **********

 FCN=   2954.477     FROM HESSE     STATUS=OK           753 CALLS     4891 TOTAL
                     EDM=   .55E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46760        .79162        .12768E-02   -1.5694    
   2  Prefactor      .0000        2.6500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    5.3548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11269E-07    7.1582        .54769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .39968E-08    11.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .25596E-06    8.1973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14327E-06    23.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .57059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .56871E-06    29.731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .35824        .13019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .19713E-05    152.91        .82624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .43507E-05    108.83        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .30864E-07    11.024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        38.126        .17171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8776        8.0179        .45523E-03   -1.5664    
  16  norm          .14145E-05    25.714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .32647E-05    34.535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7008        .61231        .55488E-03   -1.5682    
  19  norm           .0000        1.2087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .99986E+06    33620.        .85008E-04    1.5473    
  21  norm          96638.        8996.7        .44755E-05   -.93859    
  22  Prefactor     21.603        15894.        .21425E-03   -1.5615    
  23  Prefactor     .18568E-03    1147.1        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .96645E-06    23.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .99409E-06    29.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .91438E-06    7.5385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor      .0000        2.5399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10991E-07    6.4316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm           .0000        1.5497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor      .0000        2.5585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .38208E-06    7.0383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .20128E-01    .10856       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .62105        .11178        .41340E-01   -1.0671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00546121
Minuit parameter uncertainties:
  1  0.791623
  2  5.0774e-06
  3  4.21689e-05
  4  0.0005679
  5  0.000434473
  6  0.00289692
  7  0.00370397
  8  2.25812e-07
  9  0.00822417
  10  3.61343e-07
  11  0.0347236
  12  0.0435198
  13  0.00116619
  14  1.21305e-05
  15  8.01796
  16  0.0120617
  17  0.0212365
  18  0.612308
  19  1.66529e-07
  20  4337.66
  21  8998.06
  22  1175.08
  23  0.923191
  24  0.00952234
  25  0.0107788
  26  0.005251
  27  2.90757e-06
  28  0.000531918
  29  1.02611e-06
  30  3.20119e-06
  31  0.00327974
  32  2.46951e-08
  33  0.11182
Done.

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

Extracting fit parameters...

4FGL J1031.6+6019
   Spectrum: PowerLaw
418    Prefactor:  0.000e+00  1.213e-05  0.000e+00  1.000e+06 ( 1.000e-13)
419        Index:  2.613e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
420        Scale:  9.651e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  6.210e-01  1.118e-01  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.000e-02  2.470e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 157.909 60.318
Photon Flux Upper Limit: 4.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628396/likelihoodResults_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.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) = 2954.48981253
delta logL = -0.0124929136105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2953.97786144
delta logL = 0.499458173807

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2953.978     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.961        76.039        .13076E-05   -.80077E-03
   2  Index         .96416        .69855        .41188E-04    .25475E-04
   3  Normalizat    .10000E-01    .20058E-01    .69274E-07** at limit **
   4  Prefactor     .61959        .10419       -.51614E-07   -.73526E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.9612
  Index      = 0.96416
  Normalizat = 0.01
  Prefactor  = 0.619592
 **********
 **   18 **HESSE 
 **********

 FCN=   2953.978     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.961        72.643        .32053E-04   -1.5583    
   2  Index         .96416        .66746        .88189E-02   -.93934    
   3  Normalizat    .10000E-01    .20388E-01    .47181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61959        .10326        .22750E-03   -1.0677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35651e-11
Minuit parameter uncertainties:
  1  72.6447
  2  0.673286
  3  2.33235e-08
  4  0.103293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628396': 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) = 2953.97786088
delta logL = 0.499458736227

Extracting fit parameters...

4FGL J1031.6+6019
   Spectrum: PowerLaw
418    Prefactor:  3.896e+01  7.264e+01  0.000e+00  1.000e+06 ( 1.000e-13)
419        Index:  9.642e-01  6.733e-01  0.000e+00  1.000e+01 (-1.000e+00)
420        Scale:  9.651e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
784    Prefactor:  6.196e-01  1.033e-01  0.000e+00  1.000e+01 ( 1.000e+00)
785        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
786        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
783   Normalization:  1.000e-02  2.332e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 157.909 60.318

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/628396/cmap_HighResolution_698630401_698889601_4FGL_J1031.6+6019_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-02', job_status='DONE', photon_flux_upper_limit='4.27e-07', time_completed='2023-02-24 01:34:14.350862', job_id='628396', GAL2='0.62', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677231254.35', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.99e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1772' AND source_name='4FGL J1031.6+6019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:34:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 628396: <4FGL_J1031.6+6019_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1031.6+6019_daily_bin1772> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb 24 01:20:17 2023
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:20:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:20:18 2023
Terminated at Fri Feb 24 01:34:14 2023
Results reported at Fri Feb 24 01:34:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1031.6+6019_daily_bin1772 157.909 60.3178 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1031.6+6019 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.18 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

