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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin1765
RA = 189.885, Dec = 4.7284
tmin = 696816001, tmax = 697075201
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='634073', job_status='RUN', time_executed='2023-02-03 00:57:37.828192', time_epoch_executed='1675414657.83' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634073/ft1_4FGL_J1239.5+0443_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634073/ft1_4FGL_J1239.5+0443_daily_bin1765.fits outfile=/scratch/kocevski/634073/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin1765.fits ra=189.885 dec=4.7284 rad=12.0 tmin=696816001.0 tmax=697075201.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.69
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.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/634073/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 630

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/634073/ltcube_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.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/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits
.....................!
real 16.53
user 16.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/634073/ltcube_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.fits outfile=/scratch/kocevski/634073/expmap_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.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/634073/ltcube_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.fits
.....................!
real 191.31
user 186.34
sys 4.13

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

Setting source of interest to:
4FGL J1239.5+0443 @ 189.885 4.7284

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits scfile=/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits outfile=/scratch/kocevski/634073/cmap_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.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=189.885 yref=4.7284 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits scfile=/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits outfile=/scratch/kocevski/634073/cmap_HighResolution_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.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=189.885 yref=4.7284 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634073/Model_4FGL_J1239.5+0443_daily_bin1765.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/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits.....................!
real 58.22
user 56.68
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits', '/scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits', expMap='/scratch/kocevski/634073/expmap_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.fits', expCube='/scratch/kocevski/634073/ltcube_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634073/Model_4FGL_J1239.5+0443_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1239.5+0443'

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.221e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/634073/ft1_filtered_4FGL_J1239.5+0443_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/634073/ft2_4FGL_J1239.5+0443_daily_bin1765.fits
Exposure map: /scratch/kocevski/634073/expmap_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.fits
Exposure cube: /scratch/kocevski/634073/ltcube_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634073/Model_4FGL_J1239.5+0443_daily_bin1765.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) = 7002.25883807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21680E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    19.347       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14253E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .68041E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .54452       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.254       1.0000          .0000       .10000E+07
     7 'Prefactor '    .21025E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18582E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .25726E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .30849E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.8052       1.0000          .0000       .10000E+07
    12 'norm      '    14.663       1.0000          .0000       .10000E+07
    13 'norm      '    .41624       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.5449       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.033       1.0000          .0000       .10000E+07
    16 'norm      '    .22906E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.9560       1.0000          .0000       .10000E+07
    18 'Prefactor '    37.618       1.0000          .0000       .10000E+07
    19 'norm      '    .12449E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    23.535       1.0000          .0000       .10000E+07
    21 'norm      '    .18106       1.0000          .0000       .10000E+07
    22 'Prefactor '    9.0538       1.0000          .0000       .10000E+07
    23 'Prefactor '    34.047       1.0000          .0000       .10000E+07
    24 'Prefactor '    .18632E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .65128E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.6677       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .55279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7002.245     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2384 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-05    43.055        .20831E-05** at limit **
   2  Prefactor     19.332        1.6050       -.30500E-07   -.48114E-02
   3  Prefactor     .56344E-07    5.7894       -.36103E-06** at limit **
   4  Prefactor     .54456E-07    82.485       -.45911E-06** at limit **
   5  Prefactor     .11247E-06    76.038        .92324E-06** at limit **
   6  Prefactor     11.267        1.6844        .61333E-07   -.40244E-01
   7  Prefactor      .0000        13.631       -.22383E-06** at limit **
   8  Prefactor      .0000        4.3393       -.16193E-06** at limit **
   9  norm          .16653E-09    .85410       -.31167E-06** at limit **
  10  norm          .55289E-07    3.8007       -.21772E-06** at limit **
  11  Prefactor     4.8866        1.0435        .22713E-07    .19295E-02
  12  norm          15.015        8.3633       -.40926E-06   -.79715E-01
  13  norm          .41505        .42515       -.43258E-07    .78204E-02
  14  Prefactor     9.5305        7.7809       -.13497E-06   -.24748E-03
  15  Prefactor     9.9520        7.3625       -.57001E-06   -.89711E-03
  16  norm          .39690E-07    4.9655       -.33750E-06** at limit **
  17  Prefactor     3.7971        7.1891       -.42077E-06    .39686E-02
  18  Prefactor     38.103        2.8737       -.57026E-07    .30693E-01
  19  norm          .36637E-08    12.322       -.10098E-05** at limit **
  20  Prefactor     23.520        3.6506       -.72043E-07    .15801    
  21  norm          .18068        .15181        .36007E-07** at limit **
  22  Prefactor     9.0565        8.2550        .56446E-07   -.98492E-02
  23  Prefactor     34.397        5.2949        .75053E-07   -.10728    
  24  Prefactor     .37359E-07    5.3982       -.75233E-06** at limit **
  25  Prefactor     .11102E-09    7.4667       -.14399E-05** at limit **
  26  Normalizat    1.6685        .22968       -.13428E-04   -.14114E-03
  27  Prefactor     .55251        .17794        .30025E-04   -.27551E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00003e-06
  Prefactor  = 19.3319
  Prefactor  = 5.63438e-08
  Prefactor  = 5.44564e-08
  Prefactor  = 1.12466e-07
  Prefactor  = 11.267
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.66533e-10
  norm       = 5.52891e-08
  Prefactor  = 4.88664
  norm       = 15.0154
  norm       = 0.415046
  Prefactor  = 9.53049
  Prefactor  = 9.95203
  norm       = 3.96905e-08
  Prefactor  = 3.79705
  Prefactor  = 38.1033
  norm       = 3.66374e-09
  Prefactor  = 23.5196
  norm       = 0.180681
  Prefactor  = 9.05651
  Prefactor  = 34.3975
  Prefactor  = 3.7359e-08
  Prefactor  = 1.11022e-10
  Normalizat = 1.66853
  Prefactor  = 0.552514
 **********
 **   18 **HESSE 
 **********

 FCN=   7002.245     FROM HESSE     STATUS=OK           552 CALLS     2936 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-05    46.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.332        12.582        .22743E-03   -1.5620    
   3  Prefactor     .56344E-07    6.6206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .54456E-07    83.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11247E-06    76.766        .74352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.267        14.917        .29838E-03   -1.5641    
   7  Prefactor      .0000        13.565        .16970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        4.3944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .16653E-09    .85176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55289E-07    5.7235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8866        19.105        .45871E-03   -1.5664    
  12  norm          15.015        29.940        .26130E-03   -1.5630    
  13  norm          .41505        .45721        .87629E-03   -1.5695    
  14  Prefactor     9.5305        7.7871        .32413E-03   -1.5646    
  15  Prefactor     9.9520        7.3819        .31610E-03   -1.5645    
  16  norm          .39690E-07    1.1121        .30128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7971        7.2547        .50690E-03   -1.5669    
  18  Prefactor     38.103        34.911        .16306E-03   -1.5585    
  19  norm          .36637E-08    12.464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.520        14.678        .20618E-03   -1.5611    
  21  norm          .18068        .15707        .65487E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.0565        8.3427        .33285E-03   -1.5648    
  23  Prefactor     34.397        59.037        .17140E-03   -1.5591    
  24  Prefactor     .37359E-07    6.0352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .11102E-09    7.9258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6685        .20089        .53500E-01   -.73147    
  27  Prefactor     .55251        .15450        .68724E-01   -1.0962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88083e-06
Minuit parameter uncertainties:
  1  0.0136515
  2  12.5817
  3  0.00122157
  4  0.00426444
  5  0.0058769
  6  14.9167
  7  3.45253e-05
  8  1.75874e-05
  9  2.48153e-05
  10  0.00112503
  11  19.1052
  12  29.9398
  13  0.457213
  14  7.78714
  15  7.38194
  16  0.000420071
  17  7.25475
  18  34.911
  19  0.000425875
  20  14.6781
  21  0.157073
  22  8.3427
  23  59.0381
  24  0.000949479
  25  5.684e-05
  26  0.200984
  27  0.154616
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  3.969e-08  4.201e-04  0.000e+00  1.000e+06 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  5.525e-01  1.546e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.669e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.885 4.728
Photon Flux Upper Limit: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/634073/likelihoodResults_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.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) = 7001.81828472
delta logL = 0.426725390857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7001.78613988
delta logL = 0.458870227499

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7001.786     FROM MIGRAD    STATUS=FAILED       100 CALLS      307 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16975        8.4977        .37100E-04** at limit **
   2  alpha         4.5298        4.7636        .50000        .33709E-03
   3  Normalizat    1.5985        .10239        .24055E-03   -.69105E-04
   4  Prefactor     .58583        .77408E-01    .29604E-03   -.42858E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7001.786     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      395 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16975        8.4977        .34814E-05** at limit **
   2  alpha         4.5298        4.7636        .40881E-02    .33709E-03
   3  Normalizat    1.5985        .10239        .51635E-04   -.69105E-04
   4  Prefactor     .58583        .77408E-01    .79547E-04   -.42858E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7001.786     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      430 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16974        8.7299        .74199E-05** at limit **
   2  alpha         4.5298        4.7616        .50000        .14160E-04
   3  Normalizat    1.5985        .10709        .48111E-04   -.40739E-04
   4  Prefactor     .58583        .81123E-01    .11841E-04   -.29378E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.169743
  alpha      = 4.52982
  Normalizat = 1.59854
  Prefactor  = 0.585829
 **********
 **   18 **HESSE 
 **********

 FCN=   7001.786     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      457 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16974        10.257        .29680E-06   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5298        3.9922        .54376E-01    .94745    
   3  Normalizat    1.5985        .20999        .96221E-05   -.75046    
   4  Prefactor     .58583        .15754        .23683E-05   -1.0819    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09464e-09
Minuit parameter uncertainties:
  1  2.63896
  2  11.1241
  3  0.210104
  4  0.15766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634073': 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) = 7001.78613896
delta logL = 0.458871151555

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  1.697e-01  2.639e+00  0.000e+00  1.000e+06 ( 1.000e-11)
295        alpha:  4.530e+00  1.112e+01  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.234e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  5.858e-01  1.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.599e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 189.885 4.728
Photon Index (Free Index): 4.53 +/- 11.12
Photon Flux (Free Index): 5.78e-08 +/- 8.35e-08
Energy Flux (Free Index): 8.27e-06 +/- 2.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/634073/cmap_HighResolution_696816001_697075201_4FGL_J1239.5+0443_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', comment='SUCCESS', energy_flux2='8.27e-06', dlogl='4.59e-01', photon_flux2='5.78e-08', job_status='DONE', time_completed='2023-02-03 01:09:29.280501', photon_index_error2='11.12', photon_index2='4.53', ts='-0.00', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='8.74e-08', energy_flux_error2='2.11e-05', EG='1.67', time_epoch_completed='1675415369.28', return_code='0', job_id='634073', GAL2='0.59', EG2='1.60', return_code2='102', photon_flux_error2='8.35e-08', ts2='1.02', photon_index='2.23' WHERE bin_id='1765' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:09:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 634073: <4FGL_J1239.5+0443_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:55:18 2023
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:56:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:56:35 2023
Terminated at Fri Feb  3 01:09:30 2023
Results reported at Fri Feb  3 01:09:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin1765 189.885 4.7284 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1239.5+0443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            852 sec.

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

