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


Performing analysis on: 4FGL_J1057.2+5510_daily_bin1754
RA = 164.318, Dec = 55.1804
tmin = 693964801, tmax = 694224001
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='640673', job_status='RUN', time_executed='2023-01-01 01:05:41.459867', time_epoch_executed='1672563941.46' WHERE source_name='4FGL J1057.2+5510' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640673

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640673/ft1_4FGL_J1057.2+5510_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640673/ft1_4FGL_J1057.2+5510_daily_bin1754.fits outfile=/scratch/kocevski/640673/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin1754.fits ra=164.318 dec=55.1804 rad=12.0 tmin=693964801.0 tmax=694224001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.94
user 3.69
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.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/640673/ft1_filteredMKT_4FGL_J1057.2+5510_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 259

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/640673/ltcube_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.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/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits
.....................!
real 16.27
user 15.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/640673/ltcube_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.fits outfile=/scratch/kocevski/640673/expmap_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.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/640673/ltcube_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.fits
.....................!
real 194.06
user 188.49
sys 4.36

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

Setting source of interest to:
4FGL J1057.2+5510 @ 164.318 55.1804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits scfile=/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits outfile=/scratch/kocevski/640673/cmap_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.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=164.318 yref=55.1804 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits scfile=/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits outfile=/scratch/kocevski/640673/cmap_HighResolution_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.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=164.318 yref=55.1804 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/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640673/Model_4FGL_J1057.2+5510_daily_bin1754.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/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits......................!
real 33.55
user 32.14
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits', '/scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits', expMap='/scratch/kocevski/640673/expmap_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.fits', expCube='/scratch/kocevski/640673/ltcube_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640673/Model_4FGL_J1057.2+5510_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1057.2+5510'

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  5.757e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640673/ft1_filtered_4FGL_J1057.2+5510_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/640673/ft2_4FGL_J1057.2+5510_daily_bin1754.fits
Exposure map: /scratch/kocevski/640673/expmap_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.fits
Exposure cube: /scratch/kocevski/640673/ltcube_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640673/Model_4FGL_J1057.2+5510_daily_bin1754.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) = 2858.75454954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11049E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    14.283       1.0000          .0000       .10000E+07
     3 'norm      '    .33586E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .24987E-04   1.0000          .0000       .10000E+07
     5 'norm      '    1.8238       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35255E-05   1.0000          .0000       .10000E+07
     7 'norm      '    4.0131       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27151E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .80570E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.1303       1.0000          .0000       .10000E+07
    11 'norm      '    8.5251       1.0000          .0000       .10000E+07
    12 'norm      '    .33307E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    .35649E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .81081       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.8600       1.0000          .0000       .10000E+07
    16 'Prefactor '    .29358E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .44272E-02   1.0000          .0000       .10000E+07
    18 'norm      '    87.265       1.0000          .0000       .10000E+07
    19 'Prefactor '    28.564       1.0000          .0000       .10000E+07
    20 'Prefactor '    .10968E-03   1.0000          .0000       .10000E+07
    21 'norm      '    8.8325       1.0000          .0000       .10000E+07
    22 'Prefactor '    .29254E-06   1.0000          .0000       .10000E+07
    23 'norm      '    1.5380       1.0000          .0000       .10000E+07
    24 'Prefactor '    .57308E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .34035E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .10798E-01   1.0000          .0000       .10000E+07
    27 'norm      '    1.0309       1.0000          .0000       .10000E+07
    28 'Normalizat'    .74046       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2858.725     FROM MIGRAD    STATUS=CONVERGED    234 CALLS     2667 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.5385        .16150E-06** at limit **
   2  Prefactor     14.262        9.7733        .92564E-07    .54090E-03
   3  norm           .0000        7.0820       -.64740E-06** at limit **
   4  Prefactor     .55511E-10    11.553        .16866E-05** at limit **
   5  norm          1.8225        .86997       -.16482E-06   -.28051E-02
   6  Prefactor      .0000        2.8993        .18058E-06** at limit **
   7  norm          4.0107        2.9680        .65972E-07    .93198E-03
   8  Prefactor     .40523E-08    52.421       -.10690E-04** at limit **
   9  norm          .55511E-10    27.051       -.30642E-05** at limit **
  10  Prefactor     1.0691        10.845        .65173E-05   -.55080E-02
  11  norm          8.6161        4.2554       -.14652E-06    .37094E-02
  12  norm           .0000        1.1113        .10985E-06** at limit **
  13  Prefactor     .86042E-07    73.220        .10411E-04** at limit **
  14  norm          .79780        2.3799       -.77184E-06   -.11542E-02
  15  Prefactor     1.8882        15.081       -.18464E-05    .17651E-02
  16  Prefactor     .11102E-08    52.289        .15055E-06** at limit **
  17  Prefactor     .21649E-08    40.047        .10786E-04** at limit **
  18  norm          81.832        67.040       -.12808E-05   -.94945E-03
  19  Prefactor     28.543        1.0626        .46475E-08   -.30120E-03
  20  Prefactor     .55511E-10    15.041        .30110E-05** at limit **
  21  norm          8.8555        9.6396        .13687E-06    .94761E-03
  22  Prefactor      .0000        2.0309       -.35241E-06** at limit **
  23  norm          1.5065        4.3732        .58812E-06    .78700E-03
  24  Prefactor      .0000        9.6232       -.66600E-06** at limit **
  25  Prefactor     .22204E-09    9.1370       -.68538E-06** at limit **
  26  Prefactor     .11102E-09    14.244       -.50095E-05** at limit **
  27  norm          1.0216        2.2664       -.20478E-06   -.18161E-03
  28  Normalizat    .74204        .24488       -.37762E-04    .48868E-04
  29  Prefactor     .93630        .31559        .40714E-04    .64620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 14.2616
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 1.82252
  Prefactor  = 0
  norm       = 4.01073
  Prefactor  = 4.05231e-09
  norm       = 5.55112e-11
  Prefactor  = 1.06913
  norm       = 8.61611
  norm       = 0
  Prefactor  = 8.60423e-08
  norm       = 0.797796
  Prefactor  = 1.88819
  Prefactor  = 1.11022e-09
  Prefactor  = 2.16493e-09
  norm       = 81.8322
  Prefactor  = 28.5428
  Prefactor  = 5.55112e-11
  norm       = 8.85549
  Prefactor  = 0
  norm       = 1.50651
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 1.11022e-10
  norm       = 1.02161
  Normalizat = 0.742044
  Prefactor  = 0.936304
 **********
 **   18 **HESSE 
 **********

 FCN=   2858.725     FROM HESSE     STATUS=OK           607 CALLS     3274 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.5315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.262        9.7849        .26477E-03   -1.5632    
   3  norm           .0000        7.0764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    11.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8225        .86779        .75450E-03   -1.5681    
   6  Prefactor      .0000        2.8991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0107        2.9648        .50317E-03   -1.5668    
   8  Prefactor     .40523E-08    52.512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    27.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0691        322.60        .70611E-03   -1.5687    
  11  norm          8.6161        5.9746        .34309E-03   -1.5649    
  12  norm           .0000        1.1103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .86042E-07    75.758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .79780        2.4026        .52133E-03   -1.5690    
  15  Prefactor     1.8882        523.49        .60087E-03   -1.5680    
  16  Prefactor     .11102E-08    50.696        .16484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21649E-08    40.148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          81.832        67.994        .10705E-03   -1.5527    
  19  Prefactor     28.543        14.223        .18714E-03   -1.5601    
  20  Prefactor     .55511E-10    15.044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.8555        9.6412        .33702E-03   -1.5648    
  22  Prefactor      .0000        2.0160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5065        4.4285        .85963E-03   -1.5683    
  24  Prefactor      .0000        9.6200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .22204E-09    9.1140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11102E-09    14.242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.0216        2.3016        .12492E-02   -1.5688    
  28  Normalizat    .74204        .21616        .42828E-01   -1.0226    
  29  Prefactor     .93630        .26813        .45462E-01   -.94884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55043e-08
Minuit parameter uncertainties:
  1  2.12013e-05
  2  9.78488
  3  1.60181e-05
  4  4.47211e-05
  5  0.867791
  6  1.01259e-06
  7  2.96477
  8  0.000921926
  9  7.95532e-05
  10  37.1448
  11  5.97463
  12  4.03688e-06
  13  0.00510624
  14  2.40256
  15  62.8847
  16  0.00047709
  17  0.000588545
  18  67.9946
  19  14.2233
  20  5.555e-05
  21  9.64123
  22  1.27921e-05
  23  4.42851
  24  1.38873e-05
  25  8.72153e-05
  26  7.65759e-05
  27  2.30161
  28  0.216414
  29  0.268505
Done.

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

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  8.604e-08  5.106e-03  0.000e+00  1.000e+06 ( 1.000e-15)
390        Index:  1.821e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  9.363e-01  2.685e-01  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  7.420e-01  2.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.318 55.180
Photon Flux Upper Limit: 6.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640673/likelihoodResults_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.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) = 2858.73147126
delta logL = -0.00629274088124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2858.72517873
delta logL = -2.11160113395e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2858.725     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      262 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    52.230        .42118E-03** at limit **
   2  Index         .37602        5.1456        .50000       -.20464E-10
   3  Normalizat    .74205        .44660E-02    .42849E-01    .47844E-04
   4  Prefactor     .93630        .58072E-02    .45464E-01   -.80097E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Index      = 0.376025
  Normalizat = 0.742045
  Prefactor  = 0.936302
 **********
 **   18 **HESSE 
 **********

 FCN=   2858.725     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    259.71        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .37602        9.0917        .50000       -1.1805    
   3  Normalizat    .74205        .99827E-02    .22228E-03   -1.0226    
   4  Prefactor     .93630        .12982E-01    .25829E-03   -.94884    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81879e-10
Minuit parameter uncertainties:
  1  0.000920065
  2  896268
  3  0.00998275
  4  0.0129823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640673': 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) = 2858.72517852
delta logL = 5.54791768081e-10

Extracting fit parameters...

4FGL J1057.2+5510
   Spectrum: PowerLaw
389    Prefactor:  8.327e-10  9.201e-04  0.000e+00  1.000e+06 ( 1.000e-15)
390        Index:  3.760e-01  8.963e+05  0.000e+00  1.000e+01 (-1.000e+00)
391        Scale:  4.916e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
737    Prefactor:  9.363e-01  1.298e-02  0.000e+00  1.000e+01 ( 1.000e+00)
738        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
739        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
736   Normalization:  7.420e-01  9.983e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 164.318 55.180

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/640673/cmap_HighResolution_693964801_694224001_4FGL_J1057.2+5510_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2023-01-01 01:15:10.703765', job_id='640673', GAL2='0.94', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1672564510.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.55e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1754' AND source_name='4FGL J1057.2+5510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:15:10 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 640673: <4FGL_J1057.2+5510_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1057.2+5510_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 01:00:27 2023
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:03:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:03:33 2023
Terminated at Sun Jan  1 01:15:11 2023
Results reported at Sun Jan  1 01:15:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1057.2+5510_daily_bin1754 164.318 55.1804 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1057.2+5510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   569.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            884 sec.

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

