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


Performing analysis on: 4FGL_J0238.2+1531_weekly_bin715
RA = 39.5617, Dec = 15.5175
tmin = 671414401, tmax = 672019201
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='933748', job_status='RUN', time_executed='2022-04-19 02:21:30.442458', time_epoch_executed='1650360090.44' WHERE source_name='4FGL J0238.2+1531' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933748

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933748/ft1_4FGL_J0238.2+1531_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933748/ft1_4FGL_J0238.2+1531_weekly_bin715.fits outfile=/scratch/kocevski/933748/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin715.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.60
user 7.28
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.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/933748/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.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.55
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 2067

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/933748/ltcube_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.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/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits
.....................!
real 31.11
user 30.45
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/933748/ltcube_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.fits outfile=/scratch/kocevski/933748/expmap_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.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/933748/ltcube_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.fits
.....................!
real 191.86
user 185.64
sys 5.84

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

Setting source of interest to:
4FGL J0238.2+1531 @ 39.5617 15.5175

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits scfile=/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits outfile=/scratch/kocevski/933748/cmap_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.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=39.5617 yref=15.5175 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits scfile=/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits outfile=/scratch/kocevski/933748/cmap_HighResolution_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.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=39.5617 yref=15.5175 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933748/Model_4FGL_J0238.2+1531_weekly_bin715.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/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits.....................!
real 285.33
user 283.54
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits', '/scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits', expMap='/scratch/kocevski/933748/expmap_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.fits', expCube='/scratch/kocevski/933748/ltcube_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933748/Model_4FGL_J0238.2+1531_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.2+1531'

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.956e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933748/ft1_filtered_4FGL_J0238.2+1531_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/933748/ft2_4FGL_J0238.2+1531_weekly_bin715.fits
Exposure map: /scratch/kocevski/933748/expmap_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.fits
Exposure cube: /scratch/kocevski/933748/ltcube_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933748/Model_4FGL_J0238.2+1531_weekly_bin715.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) = 22797.3974201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.657       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1564       1.0000         .10000E-03   10000.    
     4 'norm      '    18.420       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3843       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3193       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8651       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.794       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5619       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.929       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3897       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7934       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.832       1.0000         .10000E-03   10000.    
    20 'norm      '    14.474       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4418       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.881       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6747       1.0000         .10000E-03   10000.    
    27 'norm      '    4.5103       1.0000         .10000E-03   10000.    
    28 'norm      '    2.2058       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.9452       1.0000         .10000E-03   10000.    
    32 'Prefactor '    9.6727       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22797.37     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     4833 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3656        4.4010        .25458E-07   -.45473E-04
   2  Prefactor     19.658        54.588        .58000E-06    .82946E-05
   3  Prefactor     4.1569        1.8324        .26838E-07   -.84970E-04
   4  norm          18.421        4.5965       -.40820E-07   -.49039E-04
   5  Prefactor     3.3848        2.8559        .64006E-07   -.83201E-04
   6  Prefactor     4.3201        1.9836        .55980E-07   -.42554E-04
   7  norm          .10000E-03    12.846       -.35388E-06** at limit **
   8  Prefactor     2.8582        26.652       -.18073E-05   -.65865E-04
   9  Prefactor     41.788        28.886       -.18447E-05   -.18340E-03
  10  Prefactor     1.5618        3.9485        .72600E-07   -.55355E-03
  11  Prefactor     .10000E-03    35.642       -.33167E-05** at limit **
  12  Prefactor     .10000E-03    25.045       -.17589E-05** at limit **
  13  Prefactor     .10000E-03    2.1592       -.87657E-07** at limit **
  14  Prefactor     16.933        12.247        .14474E-06    .37856E-04
  15  Prefactor     7.3899        6.2132       -.15363E-07   -.47286E-04
  16  Prefactor     9.7935        8.0837        .13980E-05   -.80312E-03
  17  norm          1.7797        .45053       -.54733E-07    .52724E-03
  18  Prefactor     .10000E-03    8.7469        .19670E-05** at limit **
  19  Prefactor     16.834        12.926       -.28730E-08   -.64611E-06
  20  norm          14.475        8.4879       -.71157E-07   -.42401E-04
  21  Prefactor     .10000E-03    8.5252       -.18705E-05** at limit **
  22  Prefactor     .10000E-03    28.250        .20689E-05** at limit **
  23  Prefactor     6.4424        6.1387        .25858E-06    .26402E-05
  24  Prefactor     11.880        10.365       -.48700E-07    .15445E-04
  25  norm          .10000E-03    2.4250        .55130E-07** at limit **
  26  norm          3.6742        6.4143        .18122E-06   -.77407E-04
  27  norm          4.5101        2.8710       -.12228E-07   -.37671E-03
  28  norm          2.2044        5.2846        .41534E-06   -.24612E-03
  29  Prefactor     .10000E-03    30.406        .28111E-05** at limit **
  30  Prefactor     .10000E-03    2.7427       -.42923E-07** at limit **
  31  Prefactor     1.9452        2.0309       -.27402E-07    .43556E-04
  32  Prefactor     9.6721        7.3832        .49875E-06   -.37315E-03
  33  Normalizat    1.0564        .15410        .25890E-06   -.12352E-04
  34  Prefactor     1.0086        .57872E-01   -.17155E-06    .12033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.36559
  Prefactor  = 19.6578
  Prefactor  = 4.15689
  norm       = 18.4208
  Prefactor  = 3.38475
  Prefactor  = 4.3201
  norm       = 0.0001
  Prefactor  = 2.85819
  Prefactor  = 41.788
  Prefactor  = 1.56182
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9325
  Prefactor  = 7.38988
  Prefactor  = 9.79352
  norm       = 1.7797
  Prefactor  = 0.000100001
  Prefactor  = 16.8344
  norm       = 14.4745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.44238
  Prefactor  = 11.8804
  norm       = 0.0001
  norm       = 3.67421
  norm       = 4.51007
  norm       = 2.20435
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.94516
  Prefactor  = 9.67211
  Normalizat = 1.05641
  Prefactor  = 1.00857
 **********
 **   18 **HESSE 
 **********

 FCN=   22797.37     FROM HESSE     STATUS=OK           740 CALLS     5573 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3656        4.4035        .15909E-03   -1.5203    
   2  Prefactor     19.658        54.586        .90338E-04   -1.4821    
   3  Prefactor     4.1569        1.8359        .12950E-03   -1.5300    
   4  norm          18.421        4.5927        .93319E-04   -1.4849    
   5  Prefactor     3.3848        2.8556        .21994E-03   -1.5340    
   6  Prefactor     4.3201        1.9715        .13236E-03   -1.5292    
   7  norm          .10000E-03    12.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8582        26.768        .24016E-03   -1.5370    
   9  Prefactor     41.788        29.290        .62008E-04   -1.4414    
  10  Prefactor     1.5618        4.1306        .34044E-03   -1.5458    
  11  Prefactor     .10000E-03    36.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.933        12.218        .97343E-04   -1.4885    
  15  Prefactor     7.3899        6.2028        .14754E-03   -1.5164    
  16  Prefactor     9.7935        8.7855        .64025E-03   -1.5082    
  17  norm          1.7797        .45660        .45428E-04   -1.5441    
  18  Prefactor     .10000E-03    8.9261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.834        12.944        .97623E-04   -1.4887    
  20  norm          14.475        8.4804        .10528E-03   -1.4947    
  21  Prefactor     .10000E-03    8.7223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.4424        6.1434        .15813E-03   -1.5200    
  24  Prefactor     11.880        10.364        .11622E-03   -1.5018    
  25  norm          .10000E-03    2.4574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6742        6.4053        .21070E-03   -1.5325    
  27  norm          4.5101        2.8756        .18957E-03   -1.5283    
  28  norm          2.2044        5.3800        .27699E-03   -1.5411    
  29  Prefactor     .10000E-03    30.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    2.8391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.9452        2.0344        .21428E-03   -1.5429    
  32  Prefactor     9.6721        7.4967        .64424E-03   -1.5086    
  33  Normalizat    1.0564        .17236        .42364E-03   -.91164    
  34  Prefactor     1.0086        .64978E-01    .17457E-03   -.92444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41466e-09
Minuit parameter uncertainties:
  1  4.40371
  2  54.7246
  3  1.83597
  4  4.5928
  5  2.85574
  6  1.97153
  7  3.04385e-05
  8  17.5038
  9  29.3
  10  4.13133
  11  0.000442712
  12  0.000194997
  13  1.24788e-07
  14  12.2198
  15  6.20334
  16  8.78664
  17  0.456602
  18  0.000137249
  19  12.9462
  20  8.48108
  21  0.000125298
  22  0.000233306
  23  6.14398
  24  10.3653
  25  1.52613e-06
  26  6.4065
  27  2.87571
  28  5.38117
  29  0.000366514
  30  1.74023e-06
  31  2.03443
  32  7.4974
  33  0.172455
  34  0.0649828
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  9.794e+00  8.787e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.406e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.009e+00  6.498e-02  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  1.056e+00  1.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 39.562 15.518
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 4.00e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.30e-05

TS (Fixed Index): 1.79
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933748/likelihoodResults_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.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) = 22796.0671009
delta logL = 1.30485533524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22796.0382571
delta logL = 1.33369916549

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22796.04     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      276 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86923        3.7974        .12702E-01    .33791E-02
   2  Index         3.9305        1.4120        .95776E-01    .62932E-03
   3  Normalizat    .98109        .35902E-01    .98731E-01    .70724E-04
   4  Prefactor     1.0276        .14521E-01    .41455E-01   -.62051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.869231
  Index      = 3.93051
  Normalizat = 0.98109
  Prefactor  = 1.02755
 **********
 **   18 **HESSE 
 **********

 FCN=   22796.04     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86923        10.571        .68920E-04   -1.5522    
   2  Index         3.9305        2.8341        .51846E-02   -.21556    
   3  Normalizat    .98109        .14034        .43744E-03   -.93667    
   4  Prefactor     1.0276        .55668E-01    .17313E-03   -.91817    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01283e-06
Minuit parameter uncertainties:
  1  6.06346
  2  3.02352
  3  0.140395
  4  0.0556715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933748': 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) = 22796.0382566
delta logL = 1.33369969054

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  8.692e-01  6.063e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  3.931e+00  3.024e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.467e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
504    Prefactor:  1.028e+00  5.567e-02  0.000e+00  1.000e+01 ( 1.000e+00)
505        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
506        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
503   Normalization:  9.811e-01  1.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 39.562 15.518
Photon Index (Free Index): 3.93 +/- 3.02
Photon Flux (Free Index): 1.14e-07 +/- 5.84e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.11e-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/933748/cmap_HighResolution_671414401_672019201_4FGL_J0238.2+1531_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='1.73e-05', photon_flux_error='4.00e-08', dlogl='1.33e+00', energy_flux='1.45e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2022-04-19 03:04:37.168788', photon_index_error2='3.02', photon_index2='3.93', ts='1.79', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.11e-05', EG='1.06', time_epoch_completed='1650362677.17', return_code='0', job_id='933748', GAL2='1.03', EG2='0.98', return_code2='102', energy_flux_error='1.30e-05', photon_flux_error2='5.84e-08', ts2='4.82', photon_index='2.41' WHERE bin_id='715' AND source_name='4FGL J0238.2+1531' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:04:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 930055: <4FGL_J0238.2+1531_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0238.2+1531_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:38 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 01:58:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 01:58:00 2022
Terminated at Tue Apr 19 02:42:44 2022
Results reported at Tue Apr 19 02:42:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_weekly_bin715 39.5617 15.5175 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.2+1531 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2581.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             346.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2684 sec.
    Turnaround time :                            9426 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 933748: <4FGL_J0238.2+1531_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0238.2+1531_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:29 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:21:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:21:05 2022
Terminated at Tue Apr 19 03:04:37 2022
Results reported at Tue Apr 19 03:04:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_weekly_bin715 39.5617 15.5175 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.2+1531 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2583.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             344.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2612 sec.
    Turnaround time :                            10088 sec.

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

