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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1708
RA = 185.988, Dec = 50.0089
tmin = 682041601, tmax = 682300801
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='117760', job_status='RUN', time_executed='2022-09-16 16:43:39.415313', time_epoch_executed='1663371819.42' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117760/ft1_4FGL_J1223.9+5000_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117760/ft1_4FGL_J1223.9+5000_daily_bin1708.fits outfile=/scratch/kocevski/117760/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1708.fits ra=185.988 dec=50.0089 rad=12.0 tmin=682041601.0 tmax=682300801.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.05
user 3.76
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.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/117760/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 587

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/117760/ltcube_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.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/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits
.....................!
real 15.29
user 14.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/117760/ltcube_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.fits outfile=/scratch/kocevski/117760/expmap_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.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/117760/ltcube_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.fits
.....................!
real 192.39
user 186.45
sys 5.27

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

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits scfile=/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits outfile=/scratch/kocevski/117760/cmap_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.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=185.988 yref=50.0089 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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits scfile=/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits outfile=/scratch/kocevski/117760/cmap_HighResolution_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.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=185.988 yref=50.0089 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.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117760/Model_4FGL_J1223.9+5000_daily_bin1708.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/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits.....................!
real 54.92
user 53.53
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits', '/scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits', expMap='/scratch/kocevski/117760/expmap_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.fits', expCube='/scratch/kocevski/117760/ltcube_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117760/Model_4FGL_J1223.9+5000_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117760/ft1_filtered_4FGL_J1223.9+5000_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/117760/ft2_4FGL_J1223.9+5000_daily_bin1708.fits
Exposure map: /scratch/kocevski/117760/expmap_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.fits
Exposure cube: /scratch/kocevski/117760/ltcube_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117760/Model_4FGL_J1223.9+5000_daily_bin1708.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) = 6487.63369898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13440       1.0000          .0000       .10000E+07
     2 'norm      '    35.835       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.9652       1.0000          .0000       .10000E+07
     4 'norm      '    .49905E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .11472E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .82007       1.0000          .0000       .10000E+07
     7 'Prefactor '    36.181       1.0000          .0000       .10000E+07
     8 'norm      '    .68130E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.3573       1.0000          .0000       .10000E+07
    10 'Prefactor '    .64442E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .55513E-01   1.0000          .0000       .10000E+07
    12 'norm      '    2.6208       1.0000          .0000       .10000E+07
    13 'norm      '    .13907E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .13763E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12144E-02   1.0000          .0000       .10000E+07
    16 'norm      '    2.9086       1.0000          .0000       .10000E+07
    17 'Prefactor '    .67967E-03   1.0000          .0000       .10000E+07
    18 'norm      '    2.2673       1.0000          .0000       .10000E+07
    19 'Prefactor '    .24043E-05   1.0000          .0000       .10000E+07
    20 'norm      '    2.6256       1.0000          .0000       .10000E+07
    21 'norm      '    5.8801       1.0000          .0000       .10000E+07
    22 'Prefactor '    30.832       1.0000          .0000       .10000E+07
    23 'Prefactor '    .22263E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .92981E-06   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0786       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6487.630     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     2221 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11213E-07    4.6288       -.87932E-06** at limit **
   2  norm          36.142        14.185        .93739E-06   -.96086E-01
   3  Prefactor     5.9649        2.2924        .19450E-07    .10066E-02
   4  norm          .55511E-10    2.2314        .26996E-07** at limit **
   5  norm          .25424E-07    2.7300        .42141E-06** at limit **
   6  Prefactor     .84620        2.9980        .16735E-06    .32821E-02
   7  Prefactor     35.956        1.3279        .45361E-07    .44430E-02
   8  norm          .23870E-08    5.7332        .24184E-08** at limit **
   9  Prefactor     2.3520        2.3432        .15700E-06   -.85699E-02
  10  Prefactor     .55511E-10    2.3483       -.40749E-07** at limit **
  11  Prefactor     .14322E-05    20.368       -.30280E-05** at limit **
  12  norm          2.6209        2.0175       -.33064E-07   -.72386E-03
  13  norm          .33307E-09    2.5959        .10132E-06** at limit **
  14  Prefactor     .55511E-10    14.577        .54639E-06** at limit **
  15  Prefactor     .41607E-05    117.54       -.77015E-05** at limit **
  16  norm          2.9088        1.8099        .17053E-06    .40046E-02
  17  Prefactor     .20539E-08    4.0355        .24545E-06** at limit **
  18  norm          2.2663        1.6334       -.34658E-07    .20552E-02
  19  Prefactor     .57732E-08    3.4516       -.73304E-06** at limit **
  20  norm          2.6442        4.5328        .81173E-06   -.19124E-01
  21  norm          5.8808        3.7753        .61683E-07   -.17993E-02
  22  Prefactor     30.873        3.3694        .52449E-07    .83540E-01
  23  Prefactor     .18319E-07    17.329       -.33129E-07** at limit **
  24  norm          .16653E-09    2.9531       -.25660E-07** at limit **
  25  Normalizat    1.1080        .19202        .32023E-05   -.59944E-04
  26  Prefactor     1.0784        .23616       -.52248E-05   -.93318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12133e-08
  norm       = 36.1417
  Prefactor  = 5.96486
  norm       = 5.55112e-11
  norm       = 2.54241e-08
  Prefactor  = 0.846196
  Prefactor  = 35.9562
  norm       = 2.38698e-09
  Prefactor  = 2.35199
  Prefactor  = 5.55112e-11
  Prefactor  = 1.43219e-06
  norm       = 2.62089
  norm       = 3.33067e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 4.16067e-06
  norm       = 2.90876
  Prefactor  = 2.05391e-09
  norm       = 2.26628
  Prefactor  = 5.77316e-09
  norm       = 2.64415
  norm       = 5.88083
  Prefactor  = 30.8728
  Prefactor  = 1.83187e-08
  norm       = 1.66533e-10
  Normalizat = 1.10798
  Prefactor  = 1.07843
 **********
 **   18 **HESSE 
 **********

 FCN=   6487.630     FROM HESSE     STATUS=OK           526 CALLS     2747 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11213E-07    40.251        .13084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          36.142        52.750        .16707E-03   -1.5588    
   3  Prefactor     5.9649        7.6097        .41090E-03   -1.5659    
   4  norm          .55511E-10    .89933        .27682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .25424E-07    4.6825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .84620        5.8242        .51451E-03   -1.5690    
   7  Prefactor     35.956        40.795        .16627E-03   -1.5588    
   8  norm          .23870E-08    5.8518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3520        55.468        .66725E-03   -1.5677    
  10  Prefactor     .55511E-10    2.4497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14322E-05    11.642        .10357E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6209        2.0300        .62974E-03   -1.5676    
  13  norm          .33307E-09    2.6715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    14.651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .41607E-05    3.3064        .53785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9088        1.8435        .59550E-03   -1.5674    
  17  Prefactor     .20539E-08    4.3397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2663        1.6372        .68182E-03   -1.5678    
  19  Prefactor     .57732E-08    4.8789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6442        14.092        .62911E-03   -1.5675    
  21  norm          5.8808        3.8107        .41390E-03   -1.5659    
  22  Prefactor     30.873        30.337        .18012E-03   -1.5597    
  23  Prefactor     .18319E-07    17.398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .16653E-09    2.9575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1080        .16774        .37682E-01   -.89496    
  26  Prefactor     1.0784        .20283        .64527E-01   -.90159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83936e-07
Minuit parameter uncertainties:
  1  0.00134472
  2  52.751
  3  7.60969
  4  1.46021e-05
  5  0.00069041
  6  4.44
  7  40.795
  8  0.000235946
  9  22.8441
  10  1.96845e-05
  11  0.00816678
  12  2.03001
  13  6.04845e-05
  14  5.60442e-05
  15  0.0074181
  16  1.84347
  17  0.0001896
  18  1.63724
  19  0.000335808
  20  12.2085
  21  3.81071
  22  30.3367
  23  0.00112848
  24  4.12764e-05
  25  0.167821
  26  0.202975
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.331e-10  6.048e-05  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.078e+00  2.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.108e+00  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 4.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117760/likelihoodResults_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.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) = 6487.63054844
delta logL = -0.000106739158582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6487.6304417
delta logL = -3.78440745408e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10547E-08   1.0000          .0000       .10000E+07
     2 'alpha     '    .46009       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6487.630     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      255 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0687        .42118E-03** at limit **
   2  alpha         4.2149        .98154       -.84569E-05     .0000    
   3  Normalizat    1.1080        1.1498       -.77333E-05    .51549E-04
   4  Prefactor     1.0784        1.1641        .89065E-05    .24852E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.21487
  Normalizat = 1.10798
  Prefactor  = 1.07843
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6487.630     FROM HESSE     STATUS=FAILED         7 CALLS      262 TOTAL
                     EDM=   .22E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1086        .98154       -.84569E-05    .75590    
   3  Normalizat    1.1080        1.1498       -.77333E-05   -.89496    
   4  Prefactor     1.0784        1.1641        .89065E-05   -.90159    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.15449e-12
Minuit parameter uncertainties:
  1  1.69977e-06
  2  1.03676
  3  1.17749
  4  1.19329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117760': 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) = 6487.6304417
delta logL = 7.00310920365e-11

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  0.000e+00  1.700e-06  0.000e+00  1.000e+06 ( 1.000e-12)
358        alpha:  4.215e+00  1.037e+00  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.078e+00  1.193e+00  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.108e+00  1.177e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.988 50.009

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/117760/cmap_HighResolution_682041601_682300801_4FGL_J1223.9+5000_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-05', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2022-09-16 16:56:01.947152', job_id='117760', GAL2='1.08', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1663372561.95', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='7.00e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1708' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:56:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 117760: <4FGL_J1223.9+5000_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1708> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:42 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:42:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:42:24 2022
Terminated at Fri Sep 16 16:56:02 2022
Results reported at Fri Sep 16 16:56:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1708 185.988 50.0089 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            920 sec.

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

