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

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

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

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

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


Performing analysis on: 4FGL_J0238.2+1531_weekly_bin741
RA = 39.5617, Dec = 15.5175
tmin = 687139201, tmax = 687744001
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='380114', job_status='RUN', time_executed='2022-10-18 00:40:58.389420', time_epoch_executed='1666078858.39' WHERE source_name='4FGL J0238.2+1531' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380114

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380114/ft1_4FGL_J0238.2+1531_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380114/ft1_4FGL_J0238.2+1531_weekly_bin741.fits outfile=/scratch/kocevski/380114/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin741.fits ra=39.5617 dec=15.5175 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.57
user 6.29
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.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/380114/ft1_filteredMKT_4FGL_J0238.2+1531_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/380114/ft1_filtered_4FGL_J0238.2+1531_weekly_bin741.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 481

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380114/ft1_filtered_4FGL_J0238.2+1531_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/380114/ltcube_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.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/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits
.....................!
real 27.03
user 26.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380114/ft1_filtered_4FGL_J0238.2+1531_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/380114/ltcube_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.fits outfile=/scratch/kocevski/380114/expmap_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.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/380114/ltcube_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.fits
.....................!
real 191.15
user 186.69
sys 4.11

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/380114/ft1_filtered_4FGL_J0238.2+1531_weekly_bin741.fits scfile=/scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits outfile=/scratch/kocevski/380114/cmap_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380114/ft1_filtered_4FGL_J0238.2+1531_weekly_bin741.fits scfile=/scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits outfile=/scratch/kocevski/380114/cmap_HighResolution_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.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.57
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380114/ft1_filtered_4FGL_J0238.2+1531_weekly_bin741.fits', '/scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits', expMap='/scratch/kocevski/380114/expmap_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.fits', expCube='/scratch/kocevski/380114/ltcube_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380114/Model_4FGL_J0238.2+1531_weekly_bin741.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  0.000e+00  1.000e+06 ( 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/380114/ft1_filtered_4FGL_J0238.2+1531_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/380114/ft2_4FGL_J0238.2+1531_weekly_bin741.fits
Exposure map: /scratch/kocevski/380114/expmap_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.fits
Exposure cube: /scratch/kocevski/380114/ltcube_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380114/Model_4FGL_J0238.2+1531_weekly_bin741.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) = 5378.01973407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14392       1.0000          .0000       .10000E+07
     2 'Prefactor '    .29032E-07   1.0000          .0000       .10000E+07
     3 'norm      '    10.595       1.0000          .0000       .10000E+07
     4 'Prefactor '    .37777E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.2610       1.0000          .0000       .10000E+07
     6 'norm      '    .22540E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.551       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33212E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    10.127       1.0000          .0000       .10000E+07
    10 'Prefactor '    57.580       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.4554       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3298       1.0000          .0000       .10000E+07
    13 'Prefactor '    16.077       1.0000          .0000       .10000E+07
    14 'norm      '    .26878       1.0000          .0000       .10000E+07
    15 'Prefactor '    .74225E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .14159E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .80123E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .45895       1.0000          .0000       .10000E+07
    19 'Prefactor '    .34972E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    17.197       1.0000          .0000       .10000E+07
    21 'Prefactor '    18.482       1.0000          .0000       .10000E+07
    22 'norm      '    5.3829       1.0000          .0000       .10000E+07
    23 'norm      '    .32599E-03   1.0000          .0000       .10000E+07
    24 'norm      '    3.1499       1.0000          .0000       .10000E+07
    25 'norm      '    .55948       1.0000          .0000       .10000E+07
    26 'Prefactor '    .88297       1.0000          .0000       .10000E+07
    27 'Prefactor '    .54370E-03   1.0000          .0000       .10000E+07
    28 'Prefactor '    .45811E-04   1.0000          .0000       .10000E+07
    29 'Normalizat'    .87858       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5377.998     FROM MIGRAD    STATUS=CONVERGED    242 CALLS     2896 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16697        82.314        .62710E-06** at limit **
   2  Prefactor      .0000        .93867       -.24033E-07** at limit **
   3  norm          10.621        7.0743       -.17618E-07    .37488E-03
   4  Prefactor      .0000        6.4162        .57087E-07** at limit **
   5  Prefactor     1.2394        3.1842        .47281E-07    .58556E-03
   6  norm          .11360E-05    51.268        .11709E-07** at limit **
   7  Prefactor     15.330        32.096        .16425E-07   -.37741E-02
   8  Prefactor     .92848E-06    51.706        .10486E-07** at limit **
   9  Prefactor     12.262        111.84       -.67545E-07    .84923E-03
  10  Prefactor     60.614        95.858       -.59660E-07   -.21416E-02
  11  Prefactor     2.3941        17.430        .16957E-06   -.11082E-01
  12  Prefactor     2.1257        5.0643       -.39910E-08   -.12117E-01
  13  Prefactor     16.268        10.770        .57679E-07    .58149E-01
  14  norm          .26964        .63063        .24714E-07    .15767E-02
  15  Prefactor      .0000        36.415        .17498E-07** at limit **
  16  Prefactor     .11102E-09    13.753        .11088E-06** at limit **
  17  norm           .0000        5.0389        .88362E-07** at limit **
  18  Prefactor     .20761E-07    118.21       -.10605E-06** at limit **
  19  Prefactor     .21522E-06    17.736        .20075E-06** at limit **
  20  Prefactor     17.147        14.033       -.21275E-07   -.12486E-02
  21  Prefactor     18.608        2.4527        .53653E-08    .47231E-02
  22  norm          5.3676        8.8641        .43530E-09   -.70710E-04
  23  norm           .0000        3.6758       -.27806E-07** at limit **
  24  norm          3.1517        4.4979       -.10127E-07   -.19204E-03
  25  norm          .53370        1.6769       -.19494E-07    .16010E-02
  26  Prefactor     .85161        2.6019       -.99057E-08   -.15964E-03
  27  Prefactor      .0000        5.3676        .50556E-07** at limit **
  28  Prefactor     .31586E-06    17.990        .76501E-07** at limit **
  29  Normalizat    .87570        .29927        .17286E-06    .10971E-05
  30  Prefactor     .95952        .11178       -.45311E-06   -.26534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.166971
  Prefactor  = 0
  norm       = 10.6213
  Prefactor  = 0
  Prefactor  = 1.23945
  norm       = 1.13598e-06
  Prefactor  = 15.3296
  Prefactor  = 9.2848e-07
  Prefactor  = 12.2617
  Prefactor  = 60.6137
  Prefactor  = 2.39406
  Prefactor  = 2.12568
  Prefactor  = 16.268
  norm       = 0.26964
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 2.07612e-08
  Prefactor  = 2.15217e-07
  Prefactor  = 17.1474
  Prefactor  = 18.6079
  norm       = 5.36761
  norm       = 0
  norm       = 3.15171
  norm       = 0.5337
  Prefactor  = 0.851611
  Prefactor  = 0
  Prefactor  = 3.15858e-07
  Normalizat = 0.875703
  Prefactor  = 0.959517
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.998     FROM HESSE     STATUS=OK           658 CALLS     3554 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16697        8.1770        .67570E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        .93888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.621        7.0879        .30757E-03   -1.5643    
   4  Prefactor      .0000        6.3944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2394        3.2426        .99279E-03   -1.5686    
   6  norm          .11360E-05    102.26        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.330        32.348        .26231E-03   -1.5630    
   8  Prefactor     .92848E-06    101.97        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.262        115.00        .31462E-03   -1.5638    
  10  Prefactor     60.614        95.877        .13179E-03   -1.5552    
  11  Prefactor     2.3941        25.420        .65247E-03   -1.5677    
  12  Prefactor     2.1257        42.483        .67161E-03   -1.5679    
  13  Prefactor     16.268        22.883        .24952E-03   -1.5627    
  14  norm          .26964        .80132        .20021E-02   -1.5698    
  15  Prefactor      .0000        36.374        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    13.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        5.0377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .20761E-07    117.20        .82951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21522E-06    19.416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.147        14.382        .24125E-03   -1.5625    
  21  Prefactor     18.608        27.048        .23270E-03   -1.5622    
  22  norm          5.3676        8.8688        .43291E-03   -1.5662    
  23  norm           .0000        3.6766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.1517        4.5129        .57088E-03   -1.5672    
  25  norm          .53370        34.416        .72938E-03   -1.5693    
  26  Prefactor     .85161        2.6205        .46945E-03   -1.5690    
  27  Prefactor      .0000        5.3628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .31586E-06    20.293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .87570        .27663        .92948E-01   -.97319    
  30  Prefactor     .95952        .10400        .34910E-01   -.94091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50062e-07
Minuit parameter uncertainties:
  1  2.33695
  2  1.78745e-06
  3  7.08786
  4  1.46689e-05
  5  3.24262
  6  0.0215561
  7  32.3483
  8  0.019461
  9  75.1034
  10  95.8797
  11  15.6024
  12  19.0061
  13  22.8826
  14  0.801318
  15  7.83237e-06
  16  7.41987e-05
  17  1.67098e-05
  18  0.00311969
  19  0.00408845
  20  14.3819
  21  27.0479
  22  8.86884
  23  3.11765e-06
  24  4.51288
  25  8.57158
  26  2.62053
  27  2.8754e-06
  28  0.00506331
  29  0.277077
  30  0.104017
Done.

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

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.627e+01  2.288e+01  0.000e+00  1.000e+06 ( 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:  9.595e-01  1.040e-01  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:  8.757e-01  2.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 39.562 15.518
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 1.04e-07
Energy Flux (Fixed Index): 2.41e-05 +/- 3.39e-05

TS (Fixed Index): 1.12
Ra Dec: 39.562 15.518
Photon Flux Upper Limit: 2.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380114/likelihoodResults_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.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) = 5377.31426269
delta logL = 0.683841377028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5377.26956507
delta logL = 0.728539001528

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8547       1.0000          .0000       .10000E+07
     2 'Index     '    3.7811       1.0000          .0000       10.000    
     3 'Normalizat'    .78293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98134       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=   5377.270     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      276 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8504        22.719        .76507E-03    .31223E-02
   2  Index         3.7822        2.4330        .10070        .12924E-03
   3  Normalizat    .78286        .88034E-01    .97675E-01    .35814E-05
   4  Prefactor     .98139        .33270E-01    .34548E-01   -.60598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85042
  Index      = 3.78222
  Normalizat = 0.782863
  Prefactor  = 0.98139
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.270     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8504        44.636        .67581E-05   -1.5681    
   2  Index         3.7822        3.7943        .37207E-02   -.24603    
   3  Normalizat    .78286        .28370        .43286E-03   -1.0071    
   4  Prefactor     .98139        .10823        .15266E-03   -.93352    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07957e-07
Minuit parameter uncertainties:
  1  18.1766
  2  4.3574
  3  0.284235
  4  0.108253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380114': 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) = 5377.26956467
delta logL = 0.72853939453

Extracting fit parameters...

4FGL J0238.2+1531
   Spectrum: PowerLaw
250    Prefactor:  1.850e+00  1.818e+01  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  3.782e+00  4.357e+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:  9.814e-01  1.083e-01  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:  7.829e-01  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 39.562 15.518
Photon Index (Free Index): 3.78 +/- 4.36
Photon Flux (Free Index): 1.72e-07 +/- 1.36e-07
Energy Flux (Free Index): 2.68e-05 +/- 2.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/380114/cmap_HighResolution_687139201_687744001_4FGL_J0238.2+1531_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-02', comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='2.68e-05', photon_flux_error='1.04e-07', dlogl='7.29e-01', energy_flux='2.41e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2022-10-18 00:52:34.983919', photon_index_error2='4.36', photon_index2='3.78', ts='1.12', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.50e-07', energy_flux_error2='2.40e-05', EG='0.88', time_epoch_completed='1666079554.98', return_code='0', job_id='380114', GAL2='0.98', EG2='0.78', return_code2='102', energy_flux_error='3.39e-05', photon_flux_error2='1.36e-07', ts2='2.77', photon_index='2.41' WHERE bin_id='741' AND source_name='4FGL J0238.2+1531' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:52:35 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 380114: <4FGL_J0238.2+1531_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0238.2+1531_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 00:40:22 2022
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:40:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:40:23 2022
Terminated at Tue Oct 18 00:52:35 2022
Results reported at Tue Oct 18 00:52:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.2+1531_weekly_bin741 39.5617 15.5175 687139201 687744001 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 :                                   698.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             316.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            733 sec.

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

