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


Performing analysis on: 4FGL_J1124.9+4934_weekly_bin760
RA = 171.243, Dec = 49.5674
tmin = 698630401, tmax = 699235201
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='20053', job_status='RUN', time_executed='2023-02-28 01:00:45.318511', time_epoch_executed='1677574845.32' WHERE source_name='4FGL J1124.9+4934' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20053

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=698630401.0 && nMetStart<699235201.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<699235201.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20053/ft1_4FGL_J1124.9+4934_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20053/ft1_4FGL_J1124.9+4934_weekly_bin760.fits outfile=/scratch/kocevski/20053/ft1_filteredMKT_4FGL_J1124.9+4934_weekly_bin760.fits ra=171.243 dec=49.5674 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.23
user 5.93
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.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/20053/ft1_filteredMKT_4FGL_J1124.9+4934_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.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.55
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 185

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/20053/ltcube_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.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/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits
.....................!
real 29.07
user 28.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/20053/ltcube_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.fits outfile=/scratch/kocevski/20053/expmap_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.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/20053/ltcube_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.fits
.....................!
real 190.03
user 184.78
sys 4.89

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

Setting source of interest to:
4FGL J1124.9+4934 @ 171.243 49.5674

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits scfile=/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits outfile=/scratch/kocevski/20053/cmap_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.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=171.243 yref=49.5674 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits scfile=/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits outfile=/scratch/kocevski/20053/cmap_HighResolution_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.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=171.243 yref=49.5674 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20053/Model_4FGL_J1124.9+4934_weekly_bin760.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/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits.....................!
real 28.73
user 27.50
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits', '/scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits', expMap='/scratch/kocevski/20053/expmap_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.fits', expCube='/scratch/kocevski/20053/ltcube_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20053/Model_4FGL_J1124.9+4934_weekly_bin760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1124.9+4934'

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  6.417e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
353        alpha:  1.519e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.498e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/20053/ft1_filtered_4FGL_J1124.9+4934_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/20053/ft2_4FGL_J1124.9+4934_weekly_bin760.fits
Exposure map: /scratch/kocevski/20053/expmap_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.fits
Exposure cube: /scratch/kocevski/20053/ltcube_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20053/Model_4FGL_J1124.9+4934_weekly_bin760.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) = 2237.41215207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2237.32906895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17455       1.0000          .0000       .10000E+07
     2 'norm      '    .18558E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .72607       1.0000          .0000       .10000E+07
     4 'Prefactor '    .73431E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .14485E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    72.058       1.0000          .0000       .10000E+07
     7 'norm      '    .40371E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    41.178       1.0000          .0000       .10000E+07
     9 'Prefactor '    .90334E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .42652E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .98026       1.0000          .0000       .10000E+07
    12 'Prefactor '    40.668       1.0000          .0000       .10000E+07
    13 'norm      '    .15414E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .32100E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .17875E-07   1.0000          .0000       .10000E+07
    16 'norm      '    44.178       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0423       1.0000          .0000       .10000E+07
    18 'Prefactor '    62.958       1.0000          .0000       .10000E+07
    19 'norm      '    .29815E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    44.786       1.0000          .0000       .10000E+07
    21 'norm      '    3.9694       1.0000          .0000       .10000E+07
    22 'norm      '    3.2717       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10471E-01   1.0000          .0000       .10000E+07
    24 'Normalizat'    .99961E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.6002       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2237.325     FROM MIGRAD    STATUS=CONVERGED    229 CALLS     2282 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93370E-07    206.76        .19306E-05** at limit **
   2  norm           .0000        16.195       -.14735E-06** at limit **
   3  Prefactor     .33577E-03    201.10       -.16745E-05** at limit **
   4  Prefactor     .98168E-04    666.06        .70120E-05** at limit **
   5  norm           .0000        3.4519        .41703E-07** at limit **
   6  Prefactor     72.998        34.016       -.69993E-06   -.15797    
   7  norm           .0000        4.1011       -.13962E-06** at limit **
   8  Prefactor     40.331        15.942       -.90113E-08    .13843    
   9  Prefactor     .14433E-08    217.31       -.16352E-07** at limit **
  10  norm          .33235E-06    64.151       -.83099E-07** at limit **
  11  Prefactor     .84654        9.0010        .72043E-07    .42266E-01
  12  Prefactor     40.526        25.092        .28173E-06   -.11065    
  13  norm           .0000        7.1871       -.22141E-06** at limit **
  14  Prefactor     .11102E-09    58.237       -.10988E-05** at limit **
  15  norm           .0000        1.4063       -.15916E-06** at limit **
  16  norm          44.209        5.3613        .34902E-07    .29323E-01
  17  Prefactor     6.0925        6.1034       -.72578E-07    .32162E-03
  18  Prefactor     59.684        56.408       -.45016E-06    .48696E-01
  19  norm           .0000        4.4469        .25210E-06** at limit **
  20  Prefactor     43.619        53.709        .14976E-05   -.28215E-01
  21  norm          3.9587        2.9200        .28469E-06   -.26381E-02
  22  norm          3.5358        9.5148        .44652E-06    .97165E-03
  23  Prefactor     .22204E-09    27.184       -.48673E-06** at limit **
  24  Normalizat    .10083        .31626       -.47937E-04   -.10618E-04
  25  Prefactor     1.6003        .37748        .91400E-05   -.37987E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.33698e-08
  norm       = 0
  Prefactor  = 0.000335773
  Prefactor  = 9.8168e-05
  norm       = 0
  Prefactor  = 72.9978
  norm       = 0
  Prefactor  = 40.3311
  Prefactor  = 1.44329e-09
  norm       = 3.32345e-07
  Prefactor  = 0.846541
  Prefactor  = 40.5264
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 0
  norm       = 44.2094
  Prefactor  = 6.09253
  Prefactor  = 59.684
  norm       = 0
  Prefactor  = 43.6185
  norm       = 3.95868
  norm       = 3.5358
  Prefactor  = 2.22045e-10
  Normalizat = 0.100833
  Prefactor  = 1.6003
 **********
 **   18 **HESSE 
 **********

 FCN=   2237.325     FROM HESSE     STATUS=NOT POSDEF   467 CALLS     2749 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93370E-07    189.18        .12247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        14.801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33577E-03    486.77        .58616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98168E-04    640.01        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        3.1649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     72.998        360.62        .11781E-03   -1.5537    
   7  norm           .0000        3.7608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.331        85.279        .15585E-03   -1.5581    
   9  Prefactor     .14433E-08    199.08        .14196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .33235E-06    58.961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .84654        250.11        .43066E-03   -1.5690    
  12  Prefactor     40.526        35.582        .15682E-03   -1.5581    
  13  norm           .0000        6.6000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11102E-09    53.397        .16342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.2866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          44.209        26.777        .15046E-03   -1.5575    
  17  Prefactor     6.0925        7.0246        .40823E-03   -1.5659    
  18  Prefactor     59.684        73.601        .12604E-03   -1.5553    
  19  norm           .0000        4.1526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.619        97.465        .14944E-03   -1.5576    
  21  norm          3.9587        7.5756        .50602E-03   -1.5668    
  22  norm          3.5358        41.145        .55960E-03   -1.5670    
  23  Prefactor     .22204E-09    24.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10083        7.7303        .14593       -1.3798    
  25  Prefactor     1.6003        1.5714        .49755E-01   -.74768    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.6919e-05
Minuit parameter uncertainties:
  1  0.00840687
  2  1.91319e-05
  3  0.808631
  4  0.501366
  5  3.98569e-06
  6  324.529
  7  4.65984e-06
  8  85.2816
  9  0.00107096
  10  0.00885336
  11  29.1033
  12  35.582
  13  1.15955e-06
  14  0.000155617
  15  2.05267e-06
  16  26.777
  17  7.02461
  18  73.6024
  19  1.40661e-05
  20  97.4685
  21  7.57562
  22  24.1231
  23  0.000144784
  24  1.77838
  25  1.62396
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2237.32513919

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  3.323e-07  8.853e-03  0.000e+00  1.000e+06 ( 1.000e-14)
353        alpha:  1.519e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.498e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.600e+00  1.624e+00  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.008e-01  1.778e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.243 49.567
Photon Flux Upper Limit: 6.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20053/likelihoodResults_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.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) = 2237.32537512
delta logL = -0.000235932135183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2237.3251395
delta logL = -3.06914898829e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2237.325     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      259 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        46.833        .42118E-03** at limit **
   2  alpha         2.0879        1.3308       -.12781E-03     .0000    
   3  Normalizat    .10083        .31249        .71795E-04    .78481E-05
   4  Prefactor     1.6003        1.0399       -.17608E-04    .33776E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.08794
  Normalizat = 0.100833
  Prefactor  = 1.60031
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2237.325     FROM HESSE     STATUS=FAILED         7 CALLS      266 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        46.833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .93663        1.3308       -.12781E-03   -.16558    
   3  Normalizat    .10083        .31249        .71795E-04   -1.3798    
   4  Prefactor     1.6003        1.0399       -.17608E-04   -.74768    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.14737e-12
Minuit parameter uncertainties:
  1  7.1076e-05
  2  1.40577
  3  0.318442
  4  1.05439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20053': 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): 101
logL (Free Index) = 2237.32513919
delta logL = 2.58205545833e-09

Extracting fit parameters...

4FGL J1124.9+4934
   Spectrum: LogParabola
352         norm:  0.000e+00  7.108e-05  0.000e+00  1.000e+06 ( 1.000e-14)
353        alpha:  2.088e+00  1.406e+00  0.000e+00  5.000e+00 ( 1.000e+00)
354         beta:  1.498e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  2.941e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
704    Prefactor:  1.600e+00  1.054e+00  0.000e+00  1.000e+01 ( 1.000e+00)
705        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
706        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
703   Normalization:  1.008e-01  3.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.243 49.567

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/20053/cmap_HighResolution_698630401_699235201_4FGL_J1124.9+4934_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-04', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2023-02-28 01:09:17.019904', job_id='20053', GAL2='1.60', fit_tolerance='1e-08', EG2='0.10', EG='0.10', time_epoch_completed='1677575357.02', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.60', dlogl='2.58e-09', ts2='0.00', photon_index_error='0.00', photon_index='1.52' WHERE bin_id='760' AND source_name='4FGL J1124.9+4934' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:09:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 20053: <4FGL_J1124.9+4934_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1124.9+4934_weekly_bin760> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 28 01:00:33 2023
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:00:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:00:34 2023
Terminated at Tue Feb 28 01:09:17 2023
Results reported at Tue Feb 28 01:09:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1124.9+4934_weekly_bin760 171.243 49.5674 698630401 699235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1124.9+4934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   513.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             297.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            524 sec.

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

