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 115 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 = 7579
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0239.5+1326_daily_bin1740
RA = 39.8847, Dec = 13.4366
tmin = 690336001, tmax = 690595201
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='822963', job_status='RUN', time_executed='2022-11-20 00:12:59.490953', time_epoch_executed='1668931979.49' WHERE source_name='4FGL J0239.5+1326' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822963/ft1_4FGL_J0239.5+1326_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822963/ft1_4FGL_J0239.5+1326_daily_bin1740.fits outfile=/scratch/kocevski/822963/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1740.fits ra=39.8847 dec=13.4366 rad=12.0 tmin=690336001.0 tmax=690595201.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 3.03
user 2.80
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.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/822963/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 122

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822963/ltcube_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.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/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits
.....................!
real 17.27
user 16.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822963/ltcube_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.fits outfile=/scratch/kocevski/822963/expmap_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.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/822963/ltcube_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.fits
.....................!
real 194.49
user 189.49
sys 4.58

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

Setting source of interest to:
4FGL J0239.5+1326 @ 39.8847 13.4366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits scfile=/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits outfile=/scratch/kocevski/822963/cmap_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.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.8847 yref=13.4366 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.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits scfile=/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits outfile=/scratch/kocevski/822963/cmap_HighResolution_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.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.8847 yref=13.4366 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/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/822963/Model_4FGL_J0239.5+1326_daily_bin1740.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/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits.....................!
real 29.49
user 28.08
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits', '/scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits', expMap='/scratch/kocevski/822963/expmap_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.fits', expCube='/scratch/kocevski/822963/ltcube_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822963/Model_4FGL_J0239.5+1326_daily_bin1740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.5+1326'

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  3.221e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/822963/ft1_filtered_4FGL_J0239.5+1326_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822963/ft2_4FGL_J0239.5+1326_daily_bin1740.fits
Exposure map: /scratch/kocevski/822963/expmap_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822963/ltcube_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822963/Model_4FGL_J0239.5+1326_daily_bin1740.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) = 1562.47615652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8963       1.0000          .0000       .10000E+07
     2 'Prefactor '    .36302E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .11744E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    15.410       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.4134       1.0000          .0000       .10000E+07
     6 'Prefactor '    .68300       1.0000          .0000       .10000E+07
     7 'Prefactor '    123.91       1.0000          .0000       .10000E+07
     8 'Prefactor '    172.37       1.0000          .0000       .10000E+07
     9 'Prefactor '    231.40       1.0000          .0000       .10000E+07
    10 'Prefactor '    .46766E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11339E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25519       1.0000          .0000       .10000E+07
    13 'norm      '    .12971E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .36813       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10580E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .99476E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .43309E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .68790       1.0000          .0000       .10000E+07
    19 'Prefactor '    .11236E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .80702E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .39333       1.0000          .0000       .10000E+07
    22 'norm      '    .23421E-02   1.0000          .0000       .10000E+07
    23 'norm      '    33.187       1.0000          .0000       .10000E+07
    24 'norm      '    .26684E-01   1.0000          .0000       .10000E+07
    25 'Prefactor '    .66770E-02   1.0000          .0000       .10000E+07
    26 'norm      '    33.527       1.0000          .0000       .10000E+07
    27 'Prefactor '    .41923E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    .68338       1.0000          .0000       .10000E+07
    29 'Normalizat'    .32580       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1582       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1562.465     FROM MIGRAD    STATUS=CONVERGED    250 CALLS     3708 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8559        13.809       -.38570E-06    .53706E-02
   2  Prefactor     .22204E-09    6.6654        .13874E-06** at limit **
   3  norm          .55511E-10    3.5490        .18793E-06** at limit **
   4  Prefactor     15.548        21.563        .24438E-06    .26676E-01
   5  Prefactor     8.4107        5.7099        .74090E-06    .15632E-02
   6  Prefactor     .25220E-04    365.95       -.45995E-05** at limit **
   7  Prefactor     124.66        33.033        .14854E-05    .49852E-02
   8  Prefactor     176.12        156.57        .54659E-05    .26719    
   9  Prefactor     228.11        148.77       -.53416E-05    .33931    
  10  Prefactor     .65503E-08    20.475       -.12717E-06** at limit **
  11  Prefactor     .12323E-07    25.805        .64454E-06** at limit **
  12  Prefactor     .55311E-04    37.033       -.58593E-05** at limit **
  13  norm          .25535E-08    13.007       -.49444E-06** at limit **
  14  Prefactor     .16975E-06    11.769       -.12123E-05** at limit **
  15  Prefactor     .14433E-08    14.679       -.48594E-07** at limit **
  16  norm          .83433E-07    23.911       -.27554E-06** at limit **
  17  Prefactor     .16631E-06    40.727       -.22165E-05** at limit **
  18  Prefactor     .17069E-03    244.17       -.64729E-05** at limit **
  19  Prefactor     .10050E-05    37.113        .16527E-06** at limit **
  20  Prefactor     .22204E-09    82.772        .65683E-06** at limit **
  21  Prefactor     .45559        32.894        .58758E-05    .31984E-01
  22  norm          .10641E-05    36.263        .23078E-05** at limit **
  23  norm          33.213        8.5535        .57669E-06    .55535E-01
  24  norm          .38858E-09    77.523       -.11947E-05** at limit **
  25  Prefactor     .77716E-09    11.884       -.12597E-06** at limit **
  26  norm          33.697        33.278       -.13667E-05    .14575E-01
  27  Prefactor     .53202E-06    35.781       -.25907E-06** at limit **
  28  Prefactor     .14294E-03    477.43       -.11472E-04** at limit **
  29  Normalizat    .32740        .46756        .12070E-03    .19648E-04
  30  Prefactor     1.1579        .25316       -.97559E-05    .12664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85591
  Prefactor  = 2.22045e-10
  norm       = 5.55112e-11
  Prefactor  = 15.5475
  Prefactor  = 8.41069
  Prefactor  = 2.52198e-05
  Prefactor  = 124.66
  Prefactor  = 176.122
  Prefactor  = 228.114
  Prefactor  = 6.55032e-09
  Prefactor  = 1.23235e-08
  Prefactor  = 5.53106e-05
  norm       = 2.55351e-09
  Prefactor  = 1.69753e-07
  Prefactor  = 1.44329e-09
  norm       = 8.34333e-08
  Prefactor  = 1.66311e-07
  Prefactor  = 0.000170687
  Prefactor  = 1.00497e-06
  Prefactor  = 2.22045e-10
  Prefactor  = 0.455588
  norm       = 1.06409e-06
  norm       = 33.213
  norm       = 3.88578e-10
  Prefactor  = 7.77156e-10
  norm       = 33.6973
  Prefactor  = 5.32019e-07
  Prefactor  = 0.00014294
  Normalizat = 0.327401
  Prefactor  = 1.15792
 **********
 **   18 **HESSE 
 **********

 FCN=   1562.465     FROM HESSE     STATUS=OK           650 CALLS     4358 TOTAL
                     EDM=   .60E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8559        14.023        .35659E-03   -1.5652    
   2  Prefactor     .22204E-09    6.6591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    3.5445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.548        38.402        .25488E-03   -1.5629    
   5  Prefactor     8.4107        5.7725        .34537E-03   -1.5650    
   6  Prefactor     .25220E-04    611.45        .62099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     124.66        176.97        .89842E-04   -1.5485    
   8  Prefactor     176.12        183.41        .76173E-04   -1.5443    
   9  Prefactor     228.11        296.92        .65747E-04   -1.5406    
  10  Prefactor     .65503E-08    20.476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12323E-07    25.865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55311E-04    177.79        .10866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .25535E-08    3.7303        .23378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16975E-06    191.68        .93276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .14433E-08    14.692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .83433E-07    23.947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16631E-06    52.127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17069E-03    569.92        .61696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10050E-05    40.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .22204E-09    82.804        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .45559        25.596        .68080E-02   -1.5694    
  22  norm          .10641E-05    49.690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          33.213        36.692        .17361E-03   -1.5593    
  24  norm          .38858E-09    15.766        .93579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .77716E-09    11.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          33.697        41.505        .17273E-03   -1.5592    
  27  Prefactor     .53202E-06    36.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .14294E-03    496.25        .62067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .32740        .50469        .13526       -1.2124    
  30  Prefactor     1.1579        .27824        .35702E-01   -.87636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9614e-05
Minuit parameter uncertainties:
  1  14.0228
  2  8.09759e-05
  3  3.08892e-05
  4  38.4027
  5  5.7725
  6  0.248385
  7  176.978
  8  183.415
  9  296.939
  10  0.000732031
  11  0.0011295
  12  0.198335
  13  0.000196027
  14  0.0114086
  15  0.00029386
  16  0.00282693
  17  0.00588843
  18  0.623845
  19  0.0126978
  20  0.000261358
  21  6.82972
  22  0.0145429
  23  36.6923
  24  0.000153973
  25  0.000191782
  26  41.505
  27  0.00881194
  28  0.532714
  29  0.511938
  30  0.278595
Done.

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

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.698e-07  1.141e-02  0.000e+00  1.000e+06 ( 1.000e-14)
249        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.158e+00  2.786e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  3.274e-01  5.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.885 13.437
Photon Flux Upper Limit: 4.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822963/likelihoodResults_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.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) = 1562.46745115
delta logL = -0.00249358516112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1562.46495895
delta logL = -1.3935584775e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54151E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.3800       1.0000          .0000       10.000    
     3 'Normalizat'    .32725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1562.465     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25313E-07    4019.3        .42118E-03** at limit **
   2  Index         .95742        9.5191        .50000       -.47180E-09
   3  Normalizat    .32740        .76861E-01    .13526        .13854E-04
   4  Prefactor     1.1579        .41204E-01    .35716E-01    .75353E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53131e-08
  Index      = 0.957416
  Normalizat = 0.3274
  Prefactor  = 1.15792
 **********
 **   18 **HESSE 
 **********

 FCN=   1562.465     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25313E-07    736.87        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .95742        9.4719        .20000       -.94163    
   3  Normalizat    .32740        .31707E-01    .59964E-03   -1.2124    
   4  Prefactor     1.1579        .17049E-01    .17597E-03   -.87636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.37121e-10
Minuit parameter uncertainties:
  1  0.00863924
  2  133379
  3  0.0317089
  4  0.017049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822963': 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) = 1562.46495756
delta logL = 3.26281224261e-10

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  2.531e-08  8.639e-03  0.000e+00  1.000e+06 ( 1.000e-14)
249        Index:  9.574e-01  1.334e+05  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  2.311e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.158e+00  1.705e-02  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  3.274e-01  3.171e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.885 13.437

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/822963/cmap_HighResolution_690336001_690595201_4FGL_J0239.5+1326_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-02', job_status='DONE', photon_flux_upper_limit='4.01e-07', time_completed='2022-11-20 00:19:58.928284', job_id='822963', GAL2='1.16', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1668932398.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.26e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1740' AND source_name='4FGL J0239.5+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:19:58 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 822954: <4FGL_J0239.5+1326_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0239.5+1326_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:21 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:10:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:10:53 2022
Terminated at Sun Nov 20 00:18:16 2022
Results reported at Sun Nov 20 00:18:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_daily_bin1740 39.8847 13.4366 690336001 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.5+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   412.33 sec.
    Max Memory :                                 1195 MB
    Average Memory :                             337.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   443 sec.
    Turnaround time :                            775 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 822963: <4FGL_J0239.5+1326_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0239.5+1326_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:22 2022
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:10:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:10:53 2022
Terminated at Sun Nov 20 00:19:59 2022
Results reported at Sun Nov 20 00:19:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_daily_bin1740 39.8847 13.4366 690336001 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.5+1326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   422.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             260.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   546 sec.
    Turnaround time :                            877 sec.

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

