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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1691
RA = 189.625, Dec = -12.028
tmin = 677635201, tmax = 677894401
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='292249', job_status='RUN', time_executed='2022-06-26 00:53:57.088631', time_epoch_executed='1656230037.09' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1691'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292249

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292249/ft1_4FGL_J1238.5-1201_daily_bin1691.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292249/ft1_4FGL_J1238.5-1201_daily_bin1691.fits outfile=/scratch/kocevski/292249/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1691.fits ra=189.625 dec=-12.028 rad=12.0 tmin=677635201.0 tmax=677894401.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.44
user 2.18
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.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/292249/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1691.fits evtable="EVENTS" outfile="/scratch/kocevski/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.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.53
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 1153

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits" evtable="EVENTS" scfile=/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits sctable="SC_DATA" outfile=/scratch/kocevski/292249/ltcube_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.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/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits
.....................!
real 15.20
user 14.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits sctable="SC_DATA" expcube=/scratch/kocevski/292249/ltcube_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.fits outfile=/scratch/kocevski/292249/expmap_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.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/292249/ltcube_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.fits
.....................!
real 193.18
user 185.55
sys 5.38

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/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits scfile=/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits outfile=/scratch/kocevski/292249/cmap_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits scfile=/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits outfile=/scratch/kocevski/292249/cmap_HighResolution_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/292249/Model_4FGL_J1238.5-1201_daily_bin1691.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/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits.....................!
real 91.60
user 89.67
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits', '/scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits', expMap='/scratch/kocevski/292249/expmap_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.fits', expCube='/scratch/kocevski/292249/ltcube_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/292249/Model_4FGL_J1238.5-1201_daily_bin1691.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  1.000e-04  1.000e+04 ( 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/292249/ft1_filtered_4FGL_J1238.5-1201_daily_bin1691.fits
Spacecraft file(s): /scratch/kocevski/292249/ft2_4FGL_J1238.5-1201_daily_bin1691.fits
Exposure map: /scratch/kocevski/292249/expmap_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.fits
Exposure cube: /scratch/kocevski/292249/ltcube_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/292249/Model_4FGL_J1238.5-1201_daily_bin1691.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) = 12136.9286837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4078       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3315       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.046       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5134       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95519E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.518       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.571       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.315       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.023       1.0000         .10000E-03   10000.    
    16 'norm      '    .63237       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9647       1.0000         .10000E-03   10000.    
    18 'norm      '    .10518E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0386       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0904       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .41511E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1388       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0037       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12136.90     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2886 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4077        3.3085       -.22932E-06    .96088E-04
   2  Prefactor     3.3317        7.9009        .41201E-05    .23257E-03
   3  Prefactor     16.048        15.347       -.27275E-06    .31921E-04
   4  Prefactor     .10000E-03    2.6276        .86753E-08** at limit **
   5  Prefactor     .10000E-03    16.341       -.19766E-06** at limit **
   6  norm          .10000E-03    .94937       -.26019E-07** at limit **
   7  Prefactor     .10000E-03    1.0535       -.13298E-07** at limit **
   8  Prefactor     8.5135        1.8814       -.29029E-08    .20092E-04
   9  Prefactor     .10008E-03    4.3861       -.19432E-05** at limit **
  10  Prefactor     11.519        9.8298        .12343E-06    .63741E-05
  11  Prefactor     2.1878        6.7915        .39403E-06    .15754E-04
  12  Prefactor     14.569        6.2827       -.22632E-08    .18579E-03
  13  Prefactor     24.311        32.494        .89868E-06   -.14647E-04
  14  norm          .10000E-03    9.7492        .69035E-07** at limit **
  15  Prefactor     33.040        38.443       -.30250E-05    .43223E-04
  16  norm          .63238        .18671        .14344E-08    .87203E-03
  17  norm          6.9654        5.8314        .11001E-06    .55320E-05
  18  norm          .10000E-03    3.8877        .12202E-05** at limit **
  19  Prefactor     5.0429        71.455       -.16701E-05    .82614E-05
  20  norm          .10000E-03    7.1276        .13166E-06** at limit **
  21  norm          4.0899        4.7807       -.11946E-06   -.21636E-04
  22  Prefactor     .10000E-03    3.5128        .49143E-06** at limit **
  23  Prefactor     .10000E-03    3.4080       -.21789E-07** at limit **
  24  Normalizat    1.1388        .16618       -.60363E-07    .10699E-03
  25  Prefactor     1.0037        .97790E-01   -.63968E-07    .11790E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.40766
  Prefactor  = 3.33172
  Prefactor  = 16.0484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.51348
  Prefactor  = 0.000100085
  Prefactor  = 11.5188
  Prefactor  = 2.18778
  Prefactor  = 14.5694
  Prefactor  = 24.3105
  norm       = 0.0001
  Prefactor  = 33.0401
  norm       = 0.632384
  norm       = 6.96541
  norm       = 0.000100001
  Prefactor  = 5.04289
  norm       = 0.0001
  norm       = 4.08991
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.13881
  Prefactor  = 1.00366
 **********
 **   18 **HESSE 
 **********

 FCN=   12136.90     FROM HESSE     STATUS=OK           435 CALLS     3321 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4077        3.3054        .14984E-03   -1.5243    
   2  Prefactor     3.3317        8.0177        .11088E-02   -1.5343    
   3  Prefactor     16.048        15.342        .99986E-04   -1.4907    
   4  Prefactor     .10000E-03    2.6417        .17439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .98305        .20961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0650        .11039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5135        1.8806        .68849E-04   -1.5124    
   9  Prefactor     .10008E-03    24.251        .38823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.519        9.8275        .11804E-03   -1.5029    
  11  Prefactor     2.1878        6.7884        .27829E-03   -1.5412    
  12  Prefactor     14.569        6.2610        .10493E-03   -1.4944    
  13  Prefactor     24.311        32.632        .81234E-04   -1.4721    
  14  norm          .10000E-03    9.7977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.040        38.619        .69730E-04   -1.4558    
  16  norm          .63238        .18703        .23469E-04   -1.5549    
  17  norm          6.9654        5.8279        .15202E-03   -1.5180    
  18  norm          .10000E-03    4.1152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0429        71.274        .17914E-03   -1.5259    
  20  norm          .10000E-03    7.2605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0899        4.7800        .99669E-03   -1.5303    
  22  Prefactor     .10000E-03    20.372        .39582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1388        .19529        .31350E-03   -.88515    
  25  Prefactor     1.0037        .11547        .20141E-03   -.92608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73661e-09
Minuit parameter uncertainties:
  1  3.30549
  2  8.0203
  3  15.3456
  4  5.63591e-07
  5  2.91882e-05
  6  5.83419e-07
  7  7.62758e-07
  8  1.88059
  9  0.00286649
  10  9.82889
  11  6.79083
  12  6.26132
  13  32.6558
  14  5.14143e-06
  15  38.6479
  16  0.18703
  17  5.82836
  18  0.000116998
  19  37.9716
  20  2.08065e-05
  21  4.78044
  22  0.000448299
  23  3.21447e-06
  24  0.195416
  25  0.115498
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.188e+00  6.791e+00  1.000e-04  1.000e+04 ( 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.004e+00  1.155e-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:  1.139e+00  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/292249/likelihoodResults_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.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) = 12136.2379083
delta logL = 0.660112778045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12136.1225618
delta logL = 0.775459204095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2088       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5162       1.0000          .0000       10.000    
     3 'Normalizat'    1.0707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0281       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.

 FCN=   12136.12     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      220 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2105        13.292        .10294E-01    .17927E-02
   2  Index         4.5149        3.1140        .20236        .18137E-03
   3  Normalizat    1.0707        .37269E-01    .72799E-01    .28215E-04
   4  Prefactor     1.0281        .22711E-01    .41410E-01    .20450E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21051
  Index      = 4.51495
  Normalizat = 1.07066
  Prefactor  = 1.02813
 **********
 **   18 **HESSE 
 **********

 FCN=   12136.12     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2105        38.826        .94800E-04   -1.5488    
   2  Index         4.5149        7.2367        .87862E-02   -.97163E-01
   3  Normalizat    1.0707        .17235        .32215E-03   -.90700    
   4  Prefactor     1.0281        .10390        .19925E-03   -.91797    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37044e-06
Minuit parameter uncertainties:
  1  13.7204
  2  7.97472
  3  0.17244
  4  0.10392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292249': 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) = 12136.1225615
delta logL = 0.775459549994

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.211e+00  1.372e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  4.515e+00  7.975e+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.028e+00  1.039e-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:  1.071e+00  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 4.51 +/- 7.97
Photon Flux (Free Index): 6.06e-08 +/- 5.48e-08
Energy Flux (Free Index): 8.45e-06 +/- 1.29e-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/292249/cmap_HighResolution_677635201_677894401_4FGL_J1238.5-1201_daily_bin1691.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', comment='SUCCESS', energy_flux2='8.45e-06', dlogl='7.75e-01', photon_flux2='6.06e-08', job_status='DONE', time_completed='2022-06-26 01:13:04.804398', photon_index_error2='7.97', photon_index2='4.51', ts='0.12', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.65e-08', energy_flux_error2='1.29e-05', EG='1.14', time_epoch_completed='1656231184.8', return_code='0', job_id='292249', GAL2='1.03', EG2='1.07', return_code2='102', photon_flux_error2='5.48e-08', ts2='1.80', photon_index='2.66' WHERE bin_id='1691' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun 26 01:13:04 PDT 2022

292054', GAL2='1.03', EG2='1.07', return_code2='102', photon_flux_error2='5.48e-08', ts2='1.80', photon_index='2.66' WHERE bin_id='1691' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun 26 01:09:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 292054: <4FGL_J1238.5-1201_daily_bin1691> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1691> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun 26 00:06:13 2022
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun 26 00:49:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun 26 00:49:09 2022
Terminated at Sun Jun 26 01:09:49 2022
Results reported at Sun Jun 26 01:09:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1691 189.625 -12.028 677635201 677894401 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 :                                   1142.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             305.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1240 sec.
    Turnaround time :                            3816 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 292249: <4FGL_J1238.5-1201_daily_bin1691> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1691> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jun 26 00:06:20 2022
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun 26 00:49:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun 26 00:49:55 2022
Terminated at Sun Jun 26 01:13:05 2022
Results reported at Sun Jun 26 01:13:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1691 189.625 -12.028 677635201 677894401 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 :                                   1143.79 sec.
    Max Memory :                                 1267 MB
    Average Memory :                             276.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1390 sec.
    Turnaround time :                            4005 sec.

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

