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

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

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

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

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

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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1688
RA = 219.508, Dec = -31.4679
tmin = 676857601, tmax = 677116801
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='828787', job_status='RUN', time_executed='2022-06-17 00:42:01.448253', time_epoch_executed='1655451721.45' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/828787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/828787/ft1_4FGL_J1438.0-3128_daily_bin1688.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/828787/ft1_4FGL_J1438.0-3128_daily_bin1688.fits outfile=/scratch/kocevski/828787/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1688.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=676857601.0 tmax=677116801.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.90
user 2.69
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.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/828787/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1688.fits evtable="EVENTS" outfile="/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.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: 704

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits" evtable="EVENTS" scfile=/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits sctable="SC_DATA" outfile=/scratch/kocevski/828787/ltcube_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.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/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits
.....................!
real 14.70
user 14.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits evtable="EVENTS" scfile=/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits sctable="SC_DATA" expcube=/scratch/kocevski/828787/ltcube_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.fits outfile=/scratch/kocevski/828787/expmap_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.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/828787/ltcube_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.fits
.....................!
real 191.83
user 185.69
sys 5.77

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1438.0-3128 @ 219.508 -31.4679

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits scfile=/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits outfile=/scratch/kocevski/828787/cmap_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.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=219.508 yref=-31.4679 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits scfile=/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits outfile=/scratch/kocevski/828787/cmap_HighResolution_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.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=219.508 yref=-31.4679 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits evtable="EVENTS" scfile=/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/828787/Model_4FGL_J1438.0-3128_daily_bin1688.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits.....................!
real 137.27
user 135.71
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits', '/scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits', expMap='/scratch/kocevski/828787/expmap_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.fits', expCube='/scratch/kocevski/828787/ltcube_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/828787/Model_4FGL_J1438.0-3128_daily_bin1688.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0-3128'

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  2.213e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/828787/ft1_filtered_4FGL_J1438.0-3128_daily_bin1688.fits
Spacecraft file(s): /scratch/kocevski/828787/ft2_4FGL_J1438.0-3128_daily_bin1688.fits
Exposure map: /scratch/kocevski/828787/expmap_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.fits
Exposure cube: /scratch/kocevski/828787/ltcube_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/828787/Model_4FGL_J1438.0-3128_daily_bin1688.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) = 7320.84110556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.044       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    197.41       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.127       1.0000         .10000E-03   10000.    
    10 'norm      '    .30379       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .91508       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.849       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    85.855       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4543       1.0000         .10000E-03   10000.    
    21 'norm      '    4.2250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.624       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.093       1.0000         .10000E-03   10000.    
    24 'norm      '    15.406       1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.0891       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.930       1.0000         .10000E-03   10000.    
    28 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4368       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91176       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7320.839     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3917 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.051        57.956        .88368E-05    .39269E-06
   2  norm          .10000E-03    2.6255       -.75081E-08** at limit **
   3  Prefactor     .10000E-03    1.3172        .38696E-09** at limit **
   4  Prefactor     .10000E-03    12.472       -.42813E-07** at limit **
   5  Prefactor     .10000E-03    25.432        .42373E-05** at limit **
   6  Prefactor     .10000E-03    38.519       -.23739E-04** at limit **
   7  Prefactor     197.40        325.66       -.61925E-05    .83924E-07
   8  Prefactor     11.601        16.126       -.63293E-07    .11816E-04
   9  Prefactor     13.130        16.271       -.40489E-08    .33697E-04
  10  norm          .29363        3.2177       -.11327E-05   -.35883E-03
  11  Prefactor     .10000E-03    24.986        .70931E-05** at limit **
  12  norm          .91512        .22246       -.14975E-08   -.91071E-04
  13  Prefactor     .10000E-03    20.021       -.32031E-05** at limit **
  14  Prefactor     6.4435        25.605       -.37832E-05    .22957E-04
  15  Prefactor     .10000E-03    46.727        .11873E-04** at limit **
  16  norm          20.850        15.540        .25532E-07   -.16959E-05
  17  Prefactor     .10000E-03    95.468       -.42614E-04** at limit **
  18  Prefactor     .10000E-03    39.967       -.14844E-04** at limit **
  19  Prefactor     85.854        58.054       -.10469E-05   -.17636E-04
  20  Prefactor     8.4563        36.828        .24059E-05   -.10110E-04
  21  norm          4.2250        2.0796        .98718E-07   -.35531E-03
  22  Prefactor     31.619        25.161       -.85003E-06   -.59547E-04
  23  Prefactor     11.089        20.405        .32172E-07   -.11769E-04
  24  norm          15.407        12.968        .46668E-07   -.64039E-04
  25  norm          .10000E-03    58.740        .49314E-04** at limit **
  26  norm          5.0891        1.8006        .24905E-08    .99837E-04
  27  Prefactor     18.932        13.828        .34352E-07    .71172E-06
  28  norm          .10000E-03    2.5157        .19927E-07** at limit **
  29  Normalizat    1.4365        .32805        .15813E-06    .10328E-03
  30  Prefactor     .91177        .10742        .64625E-07    .14235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0515
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 197.402
  Prefactor  = 11.6011
  Prefactor  = 13.1297
  norm       = 0.293633
  Prefactor  = 0.0001
  norm       = 0.915123
  Prefactor  = 0.0001
  Prefactor  = 6.44353
  Prefactor  = 0.0001
  norm       = 20.8498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.8539
  Prefactor  = 8.45635
  norm       = 4.22505
  Prefactor  = 31.6193
  Prefactor  = 11.0889
  norm       = 15.4068
  norm       = 0.0001
  norm       = 5.08913
  Prefactor  = 18.9325
  norm       = 0.0001
  Normalizat = 1.43654
  Prefactor  = 0.911773
 **********
 **   18 **HESSE 
 **********

 FCN=   7320.839     FROM HESSE     STATUS=OK           586 CALLS     4503 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.051        57.983        .64146E-04   -1.4457    
   2  norm          .10000E-03    2.6263        .13540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3338        .95869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     197.40        325.77        .14377E-03   -1.2889    
   8  Prefactor     11.601        16.128        .11762E-03   -1.5027    
   9  Prefactor     13.130        16.259        .11055E-03   -1.4983    
  10  norm          .29363        8.9119        .29286E-02   -1.5600    
  11  Prefactor     .10000E-03    25.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .91512        .22237        .19076E-04   -1.5517    
  13  Prefactor     .10000E-03    20.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4435        25.490        .15800E-03   -1.5200    
  15  Prefactor     .10000E-03    46.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.850        15.546        .87719E-04   -1.4794    
  17  Prefactor     .10000E-03    95.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     85.854        58.006        .43357E-04   -1.3852    
  20  Prefactor     8.4563        36.850        .13787E-03   -1.5126    
  21  norm          4.2250        2.0755        .74183E-04   -1.5297    
  22  Prefactor     31.619        25.148        .71252E-04   -1.4583    
  23  Prefactor     11.089        20.369        .12029E-03   -1.5042    
  24  norm          15.407        12.996        .10204E-03   -1.4923    
  25  norm          .10000E-03    58.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.0891        1.8006        .66095E-04   -1.5257    
  27  Prefactor     18.932        13.827        .92055E-04   -1.4837    
  28  norm          .10000E-03    2.5225        .13248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4365        .38364        .44978E-03   -.79578    
  30  Prefactor     .91177        .12723        .17987E-03   -.95731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36237e-10
Minuit parameter uncertainties:
  1  58.0667
  2  6.41954e-07
  3  4.52217e-07
  4  1.35912e-06
  5  7.12838e-06
  6  1.56757e-05
  7  328.824
  8  16.1345
  9  16.2642
  10  3.23529
  11  5.31289e-05
  12  0.222374
  13  3.27708e-05
  14  25.5328
  15  1.48553e-06
  16  15.5491
  17  6.55658e-05
  18  0.00019908
  19  58.0447
  20  35.3419
  21  2.07557
  22  25.1568
  23  20.3822
  24  12.998
  25  3.14474e-05
  26  1.80067
  27  13.8288
  28  1.95212e-07
  29  0.384413
  30  0.127269
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  6.444e+00  2.553e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.118e-01  1.273e-01  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  1.437e+00  3.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 219.508 -31.468
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/828787/likelihoodResults_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.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) = 7320.7742577
delta logL = 0.0651816452055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7319.92827163
delta logL = 0.911167719477

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7319.928     FROM MIGRAD    STATUS=CONVERGED    170 CALLS      440 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27574E-02    .32919E-03** at limit **
   2  Index         8.8021        2.4810        .20784        .14904E-03
   3  Normalizat    1.3016        .81937E-01    .10562        .38171E-04
   4  Prefactor     .94137        .26641E-01    .45530E-01    .77677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.80209
  Normalizat = 1.30163
  Prefactor  = 0.941366
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.928     FROM HESSE     STATUS=OK            33 CALLS      473 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .93770E-03    .10063E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8021        .37859        .83279E-02    .86396    
   3  Normalizat    1.3016        .38472        .46814E-03   -.83518    
   4  Prefactor     .94137        .12509        .17721E-03   -.94710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93275e-11
Minuit parameter uncertainties:
  1  1.99219e-10
  2  0.379451
  3  0.385573
  4  0.12513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/828787': 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): 0
logL (Free Index) = 7319.92827002
delta logL = 0.911169325886

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.992e-10  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  8.802e+00  3.795e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  9.414e-01  1.251e-01  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  1.302e+00  3.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 219.508 -31.468
Photon Index (Free Index): 8.80 +/- 0.38
Photon Flux (Free Index): 1.31e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.49e-05 +/- 1.23e-05

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/828787/cmap_HighResolution_676857601_677116801_4FGL_J1438.0-3128_daily_bin1688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='9.11e-01', photon_flux2='1.31e-07', job_status='DONE', time_completed='2022-06-17 01:01:56.569648', photon_index_error2='0.38', photon_index2='8.80', ts='0.07', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.23e-05', EG='1.44', time_epoch_completed='1655452916.57', return_code='0', job_id='828787', GAL2='0.94', EG2='1.30', return_code2='0', photon_flux_error2='1.08e-07', ts2='2.02', photon_index='2.44' WHERE bin_id='1688' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun 17 01:01:56 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 827728: <4FGL_J1438.0-3128_daily_bin1688> in cluster <slac> Done

Job <4FGL_J1438.0-3128_daily_bin1688> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Jun 17 00:06:55 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jun 17 00:36:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jun 17 00:36:33 2022
Terminated at Fri Jun 17 00:59:23 2022
Results reported at Fri Jun 17 00:59:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1688 219.508 -31.4679 676857601 677116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0-3128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1191.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1369 sec.
    Turnaround time :                            3148 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 828787: <4FGL_J1438.0-3128_daily_bin1688> in cluster <slac> Done

Job <4FGL_J1438.0-3128_daily_bin1688> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jun 17 00:07:39 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jun 17 00:41:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jun 17 00:41:31 2022
Terminated at Fri Jun 17 01:01:56 2022
Results reported at Fri Jun 17 01:01:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1688 219.508 -31.4679 676857601 677116801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0-3128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1196.84 sec.
    Max Memory :                                 627 MB
    Average Memory :                             341.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1225 sec.
    Turnaround time :                            3257 sec.

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

