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 138 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 73886
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0457.0+0646_monthly_bin167
RA = 74.2545, Dec = 6.7804
tmin = 669859201, tmax = 672451201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='878992', job_status='RUN', time_executed='2022-04-24 01:04:26.408448', time_epoch_executed='1650787466.41' WHERE source_name='4FGL J0457.0+0646' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/878992

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/878992/ft1_4FGL_J0457.0+0646_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/878992/ft1_4FGL_J0457.0+0646_monthly_bin167.fits outfile=/scratch/kocevski/878992/ft1_filteredMKT_4FGL_J0457.0+0646_monthly_bin167.fits ra=74.2545 dec=6.7804 rad=12.0 tmin=669859201.0 tmax=672451201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 38.00
user 37.02
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/878992/ft1_filteredMKT_4FGL_J0457.0+0646_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.85
user 0.64
sys 0.20

Number of photons that the gtmktime cut: 11055

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/878992/ltcube_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits
.....................!
real 114.14
user 113.53
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/878992/ltcube_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits outfile=/scratch/kocevski/878992/expmap_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/878992/ltcube_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits
.....................!
real 192.45
user 186.59
sys 5.49

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

Setting source of interest to:
4FGL J0457.0+0646 @ 74.2545 6.7804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits scfile=/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits outfile=/scratch/kocevski/878992/cmap_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=74.2545 yref=6.7804 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.82
user 0.61
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits scfile=/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits outfile=/scratch/kocevski/878992/cmap_HighResolution_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=74.2545 yref=6.7804 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.82
user 0.64
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/878992/Model_4FGL_J0457.0+0646_monthly_bin167.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits.....................!
real 1770.75
user 1766.34
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits', '/scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits', expMap='/scratch/kocevski/878992/expmap_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits', expCube='/scratch/kocevski/878992/ltcube_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/878992/Model_4FGL_J0457.0+0646_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0457.0+0646'

4FGL J0457.0+0646
   Spectrum: PowerLaw
182    Prefactor:  6.450e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
183        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
184        Scale:  8.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/878992/ft1_filtered_4FGL_J0457.0+0646_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/878992/ft2_4FGL_J0457.0+0646_monthly_bin167.fits
Exposure map: /scratch/kocevski/878992/expmap_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits
Exposure cube: /scratch/kocevski/878992/ltcube_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/878992/Model_4FGL_J0457.0+0646_monthly_bin167.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.675       1.0000         .10000E-03   10000.    
     3 'norm      '    .20194E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5357       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .86536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.995       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .29869       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.528       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5779       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6977       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3833       1.0000         .10000E-03   10000.    
    14 'norm      '    5.2210       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94236       1.0000         .10000E-03   10000.    
    17 'norm      '    .60885       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9659       1.0000         .10000E-03   10000.    
    19 'norm      '    5.8811       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1815       1.0000         .10000E-03   10000.    
    21 'norm      '    .91483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5730       1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.030       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3909       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .89069       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.4580       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.7040       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0345       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0024       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   117964.9     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     3668 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2696        .48093E-08** at limit **
   2  Prefactor     16.668        8.2625       -.28064E-06   -.18357E-04
   3  norm          .10000E-03    1.3122       -.26337E-06** at limit **
   4  norm          1.5356        .40571        .11279E-07    .13090E-03
   5  Prefactor     .86511        .40979        .18471E-07    .13762E-03
   6  Prefactor     13.996        8.0867        .10927E-06   -.33317E-04
   7  Prefactor     .10000E-03    6.0143        .28527E-07** at limit **
   8  norm          .29724        .41645        .13247E-06   -.13801E-02
   9  Prefactor     31.529        10.898        .78873E-07   -.14289E-04
  10  norm          1.5778        .58700        .37352E-07   -.57124E-04
  11  Prefactor     .10000E-03    .72008        .11812E-07** at limit **
  12  norm          3.6977        .76137        .25380E-07   -.36927E-04
  13  Prefactor     9.3806        9.1023       -.32174E-06   -.48253E-04
  14  norm          5.2210        .72926        .84776E-08   -.12622E-03
  15  Prefactor     6.5180        8.8672        .16829E-07    .15555E-04
  16  Prefactor     .94235        1.7412        .57837E-06    .18598E-04
  17  norm          .60881        .22886       -.66900E-08    .83715E-03
  18  Prefactor     7.9645        6.2395        .14718E-06   -.76879E-05
  19  norm          5.8811        1.3301        .23615E-06   -.11324E-03
  20  Prefactor     1.1814        .90888        .12336E-06    .18267E-06
  21  norm          .91454        1.3391        .62293E-06    .17522E-03
  22  Prefactor     1.5729        1.0556        .32602E-07    .89778E-05
  23  Prefactor     30.053        17.073       -.10569E-05   -.14854E-05
  24  Prefactor     1.3923        5.5038        .90677E-06   -.17673E-04
  25  Prefactor     .10000E-03    .35141       -.26311E-08** at limit **
  26  norm          .10000E-03    .23625        .69223E-07** at limit **
  27  norm          .89064        .33329        .33779E-07   -.29927E-03
  28  Prefactor     6.4655        8.7482       -.91126E-06   -.50484E-04
  29  Prefactor     1.6971        11.433        .21237E-05   -.18365E-04
  30  Normalizat    1.0345        .87705E-01   -.21991E-06   -.12674E-03
  31  Prefactor     1.0024        .21301E-01   -.75264E-07   -.71381E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.6683
  norm       = 0.000100001
  norm       = 1.53564
  Prefactor  = 0.865108
  Prefactor  = 13.9955
  Prefactor  = 0.0001
  norm       = 0.297239
  Prefactor  = 31.5293
  norm       = 1.57779
  Prefactor  = 0.0001
  norm       = 3.69772
  Prefactor  = 9.38062
  norm       = 5.22097
  Prefactor  = 6.51798
  Prefactor  = 0.942346
  norm       = 0.608813
  Prefactor  = 7.96448
  norm       = 5.88114
  Prefactor  = 1.18138
  norm       = 0.914538
  Prefactor  = 1.57288
  Prefactor  = 30.0528
  Prefactor  = 1.39235
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.890641
  Prefactor  = 6.46549
  Prefactor  = 1.69707
  Normalizat = 1.03449
  Prefactor  = 1.00238
 **********
 **   18 **HESSE 
 **********

 FCN=   117964.9     FROM HESSE     STATUS=OK           652 CALLS     4320 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.668        8.2448        .98082E-04   -1.4891    
   3  norm          .10000E-03    1.4066        .12517       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5356        .39927        .10546E-03   -1.5460    
   5  Prefactor     .86511        .40240        .14024E-03   -1.5522    
   6  Prefactor     13.996        8.1302        .10707E-03   -1.4960    
   7  Prefactor     .10000E-03    6.0448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .29724        .83967        .21010E-02   -1.5599    
   9  Prefactor     31.529        10.892        .71359E-04   -1.4584    
  10  norm          1.5778        .58207        .15146E-03   -1.5457    
  11  Prefactor     .10000E-03    .73995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6977        .75797        .12818E-03   -1.5323    
  13  Prefactor     9.3806        9.0398        .13083E-03   -1.5095    
  14  norm          5.2210        .73082        .10245E-03   -1.5251    
  15  Prefactor     6.5180        8.6473        .15721E-03   -1.5197    
  16  Prefactor     .94235        1.7036        .51842E-03   -1.5514    
  17  norm          .60881        .19922        .81904E-03   -1.5552    
  18  Prefactor     7.9645        6.2364        .14206E-03   -1.5143    
  19  norm          5.8811        1.3166        .82798E-03   -1.5223    
  20  Prefactor     1.1814        .89876        .27187E-03   -1.5491    
  21  norm          .91454        1.3317        .46504E-03   -1.5517    
  22  Prefactor     1.5729        1.0557        .33887E-04   -1.5457    
  23  Prefactor     30.053        17.056        .73113E-04   -1.4611    
  24  Prefactor     1.3923        5.5117        .36845E-03   -1.5472    
  25  Prefactor     .10000E-03    .35448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.3406        .32036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .89064        .32237        .11267E-03   -1.5519    
  28  Prefactor     6.4655        8.7990        .15793E-03   -1.5199    
  29  Prefactor     1.6971        11.590        .32217E-03   -1.5447    
  30  Normalizat    1.0345        .92220E-01    .53257E-03   -.91884    
  31  Prefactor     1.0024        .22804E-01    .14759E-03   -.92650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02516e-07
Minuit parameter uncertainties:
  1  1.0137e-07
  2  8.24533
  3  6.55761e-05
  4  0.399275
  5  0.402404
  6  8.13084
  7  8.35892e-08
  8  0.839701
  9  10.8931
  10  0.582074
  11  7.50258e-07
  12  0.757973
  13  9.04115
  14  0.730825
  15  8.649
  16  1.70373
  17  0.199216
  18  6.23691
  19  1.31663
  20  0.898766
  21  1.33179
  22  1.05567
  23  17.0587
  24  5.51372
  25  6.96792e-07
  26  1.14444e-06
  27  0.322374
  28  8.80076
  29  8.87218
  30  0.0922347
  31  0.0228046
Done.

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

Extracting fit parameters...

4FGL J0457.0+0646
   Spectrum: PowerLaw
182    Prefactor:  9.381e+00  9.041e+00  1.000e-04  1.000e+04 ( 1.000e-13)
183        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
184        Scale:  8.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
480    Prefactor:  1.002e+00  2.280e-02  0.000e+00  1.000e+01 ( 1.000e+00)
481        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
482        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
479   Normalization:  1.034e+00  9.223e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 74.254 6.780
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.53e-08
Energy Flux (Fixed Index): 4.43e-06 +/- 4.27e-06

TS (Fixed Index): 1.48
Ra Dec: 74.254 6.780
Photon Flux Upper Limit: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/878992/likelihoodResults_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 117963.444665
delta logL = 1.48462986789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 117963.442816
delta logL = 1.4864785572

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   117963.4     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      325 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2113        8.5558        .69087E-03    .49578E-02
   2  Index         4.0362        1.1642        .20544        .14386E-02
   3  Normalizat    .99277        .19631E-01    .12231        .46719E-03
   4  Prefactor     1.0090        .52662E-02    .33302E-01   -.11619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21127
  Index      = 4.03625
  Normalizat = 0.992769
  Prefactor  = 1.00905
 **********
 **   18 **HESSE 
 **********

 FCN=   117963.4     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      358 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2113        24.921        .13817E-03   -1.5411    
   2  Index         4.0362        3.3764        .98002E-02   -.19396    
   3  Normalizat    .99277        .70240E-01    .54256E-03   -.93273    
   4  Prefactor     1.0090        .18519E-01    .14716E-03   -.92429    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91667e-05
Minuit parameter uncertainties:
  1  14.8544
  2  3.72379
  3  0.0702463
  4  0.018519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/878992': 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) = 117963.442816
delta logL = 1.48647883096

Extracting fit parameters...

4FGL J0457.0+0646
   Spectrum: PowerLaw
182    Prefactor:  2.211e+00  1.485e+01  1.000e-04  1.000e+04 ( 1.000e-13)
183        Index:  4.036e+00  3.724e+00  0.000e+00  1.000e+01 (-1.000e+00)
184        Scale:  8.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
480    Prefactor:  1.009e+00  1.852e-02  0.000e+00  1.000e+01 ( 1.000e+00)
481        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
482        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
479   Normalization:  9.928e-01  7.025e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 74.254 6.780
Photon Index (Free Index): 4.04 +/- 3.72
Photon Flux (Free Index): 5.07e-08 +/- 2.65e-08
Energy Flux (Free Index): 7.55e-06 +/- 4.50e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/878992/cmap_HighResolution_669859201_672451201_4FGL_J0457.0+0646_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-03', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='7.55e-06', photon_flux_error='1.53e-08', dlogl='1.49e+00', energy_flux='4.43e-06', photon_flux2='5.07e-08', job_status='DONE', time_completed='2022-04-24 03:50:59.973629', photon_index_error2='3.72', photon_index2='4.04', ts='1.48', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='4.30e-08', energy_flux_error2='4.50e-06', EG='1.03', time_epoch_completed='1650797459.97', return_code='0', job_id='878992', GAL2='1.01', EG2='0.99', return_code2='102', energy_flux_error='4.27e-06', photon_flux_error2='2.65e-08', ts2='4.91', photon_index='2.54' WHERE bin_id='167' AND source_name='4FGL J0457.0+0646' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 03:51:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 878992: <4FGL_J0457.0+0646_monthly_bin167> in cluster <slac> Done

Job <4FGL_J0457.0+0646_monthly_bin167> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Apr 24 00:55:39 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 01:01:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 01:01:59 2022
Terminated at Sun Apr 24 03:51:01 2022
Results reported at Sun Apr 24 03:51:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0457.0+0646_monthly_bin167 74.2545 6.7804 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0457.0+0646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9955.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             445.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10141 sec.
    Turnaround time :                            10522 sec.

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

