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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1758
RA = 189.625, Dec = -12.028
tmin = 695001601, tmax = 695260801
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='365109', job_status='RUN', time_executed='2023-01-13 00:43:59.868712', time_epoch_executed='1673599439.87' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365109/ft1_4FGL_J1238.5-1201_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365109/ft1_4FGL_J1238.5-1201_daily_bin1758.fits outfile=/scratch/kocevski/365109/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1758.fits ra=189.625 dec=-12.028 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.80
user 2.53
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.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/365109/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.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.56
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 990

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/365109/ltcube_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.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/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits
.....................!
real 15.98
user 15.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/365109/ltcube_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.fits outfile=/scratch/kocevski/365109/expmap_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.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/365109/ltcube_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.fits
.....................!
real 192.45
user 186.82
sys 4.87

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits scfile=/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits outfile=/scratch/kocevski/365109/cmap_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.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.625 yref=-12.028 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits scfile=/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits outfile=/scratch/kocevski/365109/cmap_HighResolution_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.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.625 yref=-12.028 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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365109/Model_4FGL_J1238.5-1201_daily_bin1758.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/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits.....................!
real 82.38
user 80.19
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits', '/scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits', expMap='/scratch/kocevski/365109/expmap_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.fits', expCube='/scratch/kocevski/365109/ltcube_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365109/Model_4FGL_J1238.5-1201_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/365109/ft1_filtered_4FGL_J1238.5-1201_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/365109/ft2_4FGL_J1238.5-1201_daily_bin1758.fits
Exposure map: /scratch/kocevski/365109/expmap_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.fits
Exposure cube: /scratch/kocevski/365109/ltcube_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365109/Model_4FGL_J1238.5-1201_daily_bin1758.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52560E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .23525E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.1450       1.0000          .0000       .10000E+07
     4 'Prefactor '    29.264       1.0000          .0000       .10000E+07
     5 'norm      '    .31086E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .71665E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.2479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4913       1.0000          .0000       .10000E+07
     9 'Prefactor '    11.639       1.0000          .0000       .10000E+07
    10 'Prefactor '    .12101E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .26307E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20043E-03   1.0000          .0000       .10000E+07
    13 'norm      '    15.024       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17777E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .37051       1.0000          .0000       .10000E+07
    16 'norm      '    .36021E-04   1.0000          .0000       .10000E+07
    17 'norm      '    5.5051       1.0000          .0000       .10000E+07
    18 'Prefactor '    .34913E-04   1.0000          .0000       .10000E+07
    19 'norm      '    11.629       1.0000          .0000       .10000E+07
    20 'norm      '    .10297E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    15.462       1.0000          .0000       .10000E+07
    22 'Prefactor '    .93814E-07   1.0000          .0000       .10000E+07
    23 'Normalizat'    .97340       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0652       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10670.96     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1165 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11435E-06    2.5296       -.22523E-07** at limit **
   2  Prefactor     .48295E-07    25.571       -.62832E-05** at limit **
   3  Prefactor     7.7718        6.5212       -.26662E-05   -.58611E-02
   4  Prefactor     31.004        45.917        .95291E-05   -.19222E-02
   5  norm           .0000        .61664       -.31386E-06** at limit **
   6  Prefactor     .27756E-09    2.0003       -.93543E-06** at limit **
   7  Prefactor     4.2482        1.5258       -.31100E-08    .13789E-02
   8  Prefactor     3.4273        1.9083       -.97487E-07    .83064E-02
   9  Prefactor     11.494        7.4619        .19119E-05   -.52623E-01
  10  Prefactor     .21150E-07    1.9627        .13384E-05** at limit **
  11  Prefactor     .14116E-06    2.5032       -.62435E-06** at limit **
  12  Prefactor     .83267E-09    6.2703        .38884E-06** at limit **
  13  norm          15.018        1.1825       -.87127E-08    .41495E-02
  14  Prefactor     .16653E-09    16.761        .13135E-05** at limit **
  15  norm          .37049        .13833        .93928E-07   -.15017E-01
  16  norm          .20928E-07    2.0240       -.20178E-05** at limit **
  17  norm          5.5066        4.7147        .21520E-06    .22700E-02
  18  Prefactor     .11102E-08    12.285       -.81841E-06** at limit **
  19  norm          11.597        4.7710       -.13262E-06    .11305    
  20  norm          .44409E-08    10.619        .85025E-06** at limit **
  21  Prefactor     15.530        1.1639        .16842E-06    .10987E-01
  22  Prefactor     .55511E-10    1.7393        .86505E-06** at limit **
  23  Normalizat    .97403        .20248        .39280E-04   -.15227E-04
  24  Prefactor     1.0649        .12359       -.26108E-04    .93014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14353e-07
  Prefactor  = 4.82947e-08
  Prefactor  = 7.77181
  Prefactor  = 31.0044
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 4.24817
  Prefactor  = 3.4273
  Prefactor  = 11.4937
  Prefactor  = 2.11497e-08
  Prefactor  = 1.41165e-07
  Prefactor  = 8.32667e-10
  norm       = 15.0179
  Prefactor  = 1.66533e-10
  norm       = 0.370491
  norm       = 2.09277e-08
  norm       = 5.50664
  Prefactor  = 1.11022e-09
  norm       = 11.5972
  norm       = 4.44089e-09
  Prefactor  = 15.5296
  Prefactor  = 5.55112e-11
  Normalizat = 0.974035
  Prefactor  = 1.06487
 **********
 **   18 **HESSE 
 **********

 FCN=   10670.96     FROM HESSE     STATUS=OK           449 CALLS     1614 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11435E-06    4.8674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .48295E-07    7.3240        .94823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7718        15.575        .35106E-03   -1.5652    
   4  Prefactor     31.004        46.109        .18489E-03   -1.5597    
   5  norm           .0000        .61688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    2.0035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2482        1.5258        .48874E-02   -1.5296    
   8  Prefactor     3.4273        6.3029        .54088E-03   -1.5671    
   9  Prefactor     11.494        8.3177        .29339E-03   -1.5640    
  10  Prefactor     .21150E-07    2.1377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14116E-06    4.9186        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .83267E-09    6.2769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.018        14.308        .25813E-03   -1.5630    
  14  Prefactor     .16653E-09    16.782        .17188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .37049        .13950        .50933E-03   -1.5696    
  16  norm          .20928E-07    2.2091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5066        4.7314        .42799E-03   -1.5661    
  18  Prefactor     .11102E-08    12.304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.597        7.6694        .29352E-03   -1.5640    
  20  norm          .44409E-08    10.435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.530        6.7104        .25445E-03   -1.5629    
  22  Prefactor     .55511E-10    1.7442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97403        .17550        .74016E-01   -.93905    
  24  Prefactor     1.0649        .10476        .39093E-01   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55608e-07
Minuit parameter uncertainties:
  1  0.00149212
  2  0.00118952
  3  15.5752
  4  46.1094
  5  1.96542e-06
  6  4.80797e-05
  7  1.52584
  8  6.30291
  9  8.31774
  10  0.000425422
  11  0.00166661
  12  0.000146795
  13  14.3084
  14  0.000108305
  15  0.139501
  16  0.000430285
  17  4.73145
  18  0.000234802
  19  7.66937
  20  0.000431473
  21  6.71043
  22  1.72588e-05
  23  0.175602
  24  0.104776
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.115e-08  4.254e-04  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.065e+00  1.048e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.740e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365109/likelihoodResults_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.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) = 10670.9622177
delta logL = -0.000848371961183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10670.9613693
delta logL = 2.51748133451e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38858E-09   1.0000          .0000       .10000E+07
     2 'Index     '    .58231       1.0000          .0000       10.000    
     3 'Normalizat'    .97404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0649       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   10670.96     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1309        .42118E-03** at limit **
   2  Index         4.2786        1.9637        .28779E-04     .0000    
   3  Normalizat    .97404        1.3054        .26191E-05   -.16832E-03
   4  Prefactor     1.0649        1.1758        .19340E-05   -.28822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.27858
  Normalizat = 0.974035
  Prefactor  = 1.06487
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10670.96     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9550        2.3828        .28779E-04   -.14479    
   3  Normalizat    .97404        1.3054        .26191E-05   -.93905    
   4  Prefactor     1.0649        1.1758        .19340E-05   -.90597    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.39083e-11
Minuit parameter uncertainties:
  1  5.03182e-06
  2  2.01926
  3  1.35222
  4  1.20633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365109': 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) = 10670.9613693
delta logL = 4.93855623063e-09

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  0.000e+00  5.032e-06  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  4.279e+00  2.019e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.065e+00  1.206e+00  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.740e-01  1.352e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.625 -12.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/365109/cmap_HighResolution_695001601_695260801_4FGL_J1238.5-1201_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2023-01-13 00:56:19.752855', job_id='365109', GAL2='1.06', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1673600179.75', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.94e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1758' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:56:19 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 365109: <4FGL_J1238.5-1201_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1758> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jan 13 00:40:20 2023
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:41:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:41:46 2023
Terminated at Fri Jan 13 00:56:20 2023
Results reported at Fri Jan 13 00:56:20 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1758 189.625 -12.028 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.5-1201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   740.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            960 sec.

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

