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


Performing analysis on: 4FGL_J1037.7+5711_daily_bin1770
RA = 159.429, Dec = 57.192
tmin = 698112001, tmax = 698371201
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='482889', job_status='RUN', time_executed='2023-02-18 00:37:44.428037', time_epoch_executed='1676709464.43' WHERE source_name='4FGL J1037.7+5711' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482889/ft1_4FGL_J1037.7+5711_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482889/ft1_4FGL_J1037.7+5711_daily_bin1770.fits outfile=/scratch/kocevski/482889/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1770.fits ra=159.429 dec=57.192 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.34
user 4.11
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.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/482889/ft1_filteredMKT_4FGL_J1037.7+5711_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.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.48
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 372

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/482889/ltcube_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.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/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits
.....................!
real 12.00
user 11.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/482889/ltcube_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.fits outfile=/scratch/kocevski/482889/expmap_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.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/482889/ltcube_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.fits
.....................!
real 190.43
user 185.67
sys 4.33

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

Setting source of interest to:
4FGL J1037.7+5711 @ 159.429 57.192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits scfile=/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits outfile=/scratch/kocevski/482889/cmap_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.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=159.429 yref=57.192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits scfile=/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits outfile=/scratch/kocevski/482889/cmap_HighResolution_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.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=159.429 yref=57.192 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/482889/Model_4FGL_J1037.7+5711_daily_bin1770.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/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits.....................!
real 43.92
user 42.69
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits', '/scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits', expMap='/scratch/kocevski/482889/expmap_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.fits', expCube='/scratch/kocevski/482889/ltcube_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/482889/Model_4FGL_J1037.7+5711_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.7+5711'

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  1.718e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/482889/ft1_filtered_4FGL_J1037.7+5711_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/482889/ft2_4FGL_J1037.7+5711_daily_bin1770.fits
Exposure map: /scratch/kocevski/482889/expmap_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.fits
Exposure cube: /scratch/kocevski/482889/ltcube_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/482889/Model_4FGL_J1037.7+5711_daily_bin1770.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) = 4013.44280338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6954       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.7695       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27057E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7513       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24751E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .54639E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .24021E-03   1.0000          .0000       .10000E+07
     8 'norm      '    1.3633       1.0000          .0000       .10000E+07
     9 'norm      '    14.261       1.0000          .0000       .10000E+07
    10 'Prefactor '    .22926E-07   1.0000          .0000       .10000E+07
    11 'norm      '    1.2846       1.0000          .0000       .10000E+07
    12 'norm      '    4.9916       1.0000          .0000       .10000E+07
    13 'Prefactor '    17.786       1.0000          .0000       .10000E+07
    14 'norm      '    .20296E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    60.895       1.0000          .0000       .10000E+07
    16 'norm      '    .30531E-08   1.0000          .0000       .10000E+07
    17 'norm      '    4.8596       1.0000          .0000       .10000E+07
    18 'Prefactor '    .61825       1.0000          .0000       .10000E+07
    19 'Prefactor '    .16593       1.0000          .0000       .10000E+07
    20 'norm      '    .96401E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20805E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    21.347       1.0000          .0000       .10000E+07
    23 'Prefactor '    .26745E-01   1.0000          .0000       .10000E+07
    24 'norm      '    .83267E-09   1.0000          .0000       .10000E+07
    25 'Prefactor '    .15077E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    1.6545       1.0000          .0000       .10000E+07
    27 'norm      '    .49407E-03   1.0000          .0000       .10000E+07
    28 'norm      '    .16115E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    6.0730       1.0000          .0000       .10000E+07
    30 'Normalizat'    .81547       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .86338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4013.378     FROM MIGRAD    STATUS=CONVERGED    215 CALLS     2965 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6946        1.3317        .26339E-07    .15966E-02
   2  Prefactor     2.7703        3.2569        .15976E-06    .64209E-04
   3  Prefactor     .66613E-09    4.8152        .70034E-06** at limit **
   4  Prefactor     1.7589        14.974        .75395E-06   -.18072E-04
   5  Prefactor     .11102E-09    5.4111       -.13093E-05** at limit **
   6  norm          .39413E-08    6.5643       -.16184E-05** at limit **
   7  Prefactor     .21827E-06    33.179        .20094E-05** at limit **
   8  norm          1.3645        .63342        .29140E-08   -.23141E-02
   9  norm          14.255        1.0815        .18256E-07   -.12300E-03
  10  Prefactor      .0000        2.0220       -.10560E-06** at limit **
  11  norm          1.2840        .77594        .69195E-07   -.53820E-02
  12  norm          4.9923        3.0473       -.19750E-07   -.13393E-02
  13  Prefactor     17.232        5.0835       -.38400E-06    .17769E-02
  14  norm          .55511E-10    7.8712        .12772E-05** at limit **
  15  Prefactor     61.210        10.097        .37916E-06    .34551E-01
  16  norm           .0000        1.4418       -.35511E-06** at limit **
  17  norm          4.8589        2.4737       -.65156E-07    .15438E-02
  18  Prefactor     .20928E-07    298.84       -.16022E-05** at limit **
  19  Prefactor     .29227E-06    3.5518        .10394E-05** at limit **
  20  norm          .95376E-01    10.772        .58144E-06** at limit **
  21  Prefactor     .30931E-06    27.161       -.26496E-05** at limit **
  22  Prefactor     21.438        7.0338       -.17950E-06   -.45529E-01
  23  Prefactor     .55511E-10    51.506        .13137E-06** at limit **
  24  norm          .55511E-08    20.782       -.93813E-06** at limit **
  25  Prefactor      .0000        4.0552        .24827E-06** at limit **
  26  Prefactor     1.3276        2.7953        .76567E-06   -.39889E-02
  27  norm          .33307E-08    4.5607        .38558E-06** at limit **
  28  norm          .55511E-10    10.006        .63836E-06** at limit **
  29  Prefactor     6.1749        6.7016       -.70797E-06   -.10699E-01
  30  Normalizat    .81545        .20684        .33999E-05   -.91767E-04
  31  Prefactor     .86357        .25180       -.10091E-04   -.12979E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.69459
  Prefactor  = 2.77032
  Prefactor  = 6.66134e-10
  Prefactor  = 1.75892
  Prefactor  = 1.11022e-10
  norm       = 3.94129e-09
  Prefactor  = 2.1827e-07
  norm       = 1.36452
  norm       = 14.2548
  Prefactor  = 0
  norm       = 1.28397
  norm       = 4.99228
  Prefactor  = 17.2315
  norm       = 5.55112e-11
  Prefactor  = 61.2102
  norm       = 0
  norm       = 4.8589
  Prefactor  = 2.09277e-08
  Prefactor  = 2.92266e-07
  norm       = 0.0953764
  Prefactor  = 3.09308e-07
  Prefactor  = 21.4379
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-09
  Prefactor  = 0
  Prefactor  = 1.32758
  norm       = 3.33067e-09
  norm       = 5.55112e-11
  Prefactor  = 6.17493
  Normalizat = 0.815451
  Prefactor  = 0.863566
 **********
 **   18 **HESSE 
 **********

 FCN=   4013.378     FROM HESSE     STATUS=OK           686 CALLS     3651 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6946        1.3455        .52512E-03   -1.5670    
   2  Prefactor     2.7703        3.2707        .61130E-03   -1.5675    
   3  Prefactor     .66613E-09    6.2464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7589        15.621        .79192E-03   -1.5681    
   5  Prefactor     .11102E-09    5.4411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .39413E-08    6.7018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .21827E-06    37.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3645        .63762        .74981E-03   -1.5685    
   9  norm          14.255        13.875        .26497E-03   -1.5632    
  10  Prefactor      .0000        2.0203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2840        .79198        .93939E-03   -1.5685    
  12  norm          4.9923        3.0473        .44988E-03   -1.5663    
  13  Prefactor     17.232        25.994        .23721E-03   -1.5625    
  14  norm          .55511E-10    7.9628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.210        24.226        .12816E-03   -1.5551    
  16  norm           .0000        1.4390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8589        2.4903        .45608E-03   -1.5664    
  18  Prefactor     .20928E-07    298.90        .67609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .29227E-06    85.173        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95376E-01    1.6916        .44288E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .30931E-06    33.739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.438        20.228        .21650E-03   -1.5615    
  23  Prefactor     .55511E-10    51.563        .16628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .55511E-08    21.021        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        4.0589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.3276        196.73        .82024E-03   -1.5685    
  27  norm          .33307E-08    5.0525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .55511E-10    10.210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.1749        11.403        .40718E-03   -1.5658    
  30  Normalizat    .81545        .18978        .43812E-01   -.99498    
  31  Prefactor     .86357        .22040        .44537E-01   -.97426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18101e-07
Minuit parameter uncertainties:
  1  1.34552
  2  3.27072
  3  0.000127769
  4  10.4835
  5  4.37654e-05
  6  0.000324088
  7  0.00569575
  8  0.637624
  9  13.8746
  10  1.28499e-06
  11  0.79198
  12  3.0473
  13  25.9938
  14  3.35954e-05
  15  24.2263
  16  1.05941e-05
  17  2.49026
  18  0.00500341
  19  0.0099791
  20  0.803348
  21  0.00646112
  22  20.2277
  23  8.03278e-05
  24  0.000683849
  25  6.71267e-06
  26  32.3228
  27  0.000258987
  28  5.78037e-05
  29  11.4028
  30  0.189937
  31  0.220629
Done.

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

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  4.859e+00  2.490e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  1.758e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  8.636e-01  2.206e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  8.155e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.58
Ra Dec: 159.429 57.192
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 6.19e-05 +/- 3.17e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4013.31978799
delta logL = 0.0587079041534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4013.31887185
delta logL = 0.0596240439186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6754       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9004       1.0000          .0000       5.0000    
     3 'Normalizat'    .80673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86847       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4013.319     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      254 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6755        2.4495        .64682E-05   -.20269E-01
   2  alpha         1.9001        .41325        .85974E-02   -.16893E-03
   3  Normalizat    .80663        .20562        .23072E-03    .55211E-04
   4  Prefactor     .86870        .24803        .26978E-03    .70669E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67548
  alpha      = 1.90006
  Normalizat = 0.80663
  Prefactor  = 0.868699
 **********
 **   18 **HESSE 
 **********

 FCN=   4013.319     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6755        2.4248        .12936E-05   -1.5665    
   2  alpha         1.9001        .40899        .34389E-03   -.24234    
   3  Normalizat    .80663        .20575        .92290E-05   -.99823    
   4  Prefactor     .86870        .24823        .10791E-04   -.97244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51364e-10
Minuit parameter uncertainties:
  1  2.42484
  2  0.410951
  3  0.20595
  4  0.24855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482889': 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) = 4013.31887097
delta logL = 0.0596249333394

Extracting fit parameters...

4FGL J1037.7+5711
   Spectrum: LogParabola
416         norm:  4.675e+00  2.425e+00  0.000e+00  1.000e+06 ( 1.000e-12)
417        alpha:  1.900e+00  4.110e-01  0.000e+00  5.000e+00 ( 1.000e+00)
418         beta:  7.199e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
419           Eb:  1.415e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
765    Prefactor:  8.687e-01  2.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
766        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
767        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
764   Normalization:  8.066e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.67
Ra Dec: 159.429 57.192
Photon Index (Free Index): 1.90 +/- 0.41
Photon Flux (Free Index): 6.25e-08 +/- 4.00e-08
Energy Flux (Free Index): 5.18e-05 +/- 3.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/482889/cmap_HighResolution_698112001_698371201_4FGL_J1037.7+5711_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='5.18e-05', photon_flux_error='2.74e-08', dlogl='5.96e-02', energy_flux='6.19e-05', photon_flux2='6.25e-08', job_status='DONE', time_completed='2023-02-18 00:48:30.074541', photon_index_error2='0.41', photon_index2='1.90', ts='18.58', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='0.82', time_epoch_completed='1676710110.07', return_code='0', job_id='482889', GAL2='0.87', EG2='0.81', return_code2='0', energy_flux_error='3.17e-05', photon_flux_error2='4.00e-08', ts2='18.67', photon_index='1.76' WHERE bin_id='1770' AND source_name='4FGL J1037.7+5711' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:48:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 482889: <4FGL_J1037.7+5711_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1037.7+5711_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 00:35:13 2023
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:35:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:35:13 2023
Terminated at Sat Feb 18 00:48:30 2023
Results reported at Sat Feb 18 00:48:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7+5711_daily_bin1770 159.429 57.192 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7+5711 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             280.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            797 sec.

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

