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


Performing analysis on: 4FGL_J0239.5+1326_daily_bin1667
RA = 39.8847, Dec = 13.4366
tmin = 671414401, tmax = 671673601
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='476050', job_status='RUN', time_executed='2022-04-15 03:12:26.176990', time_epoch_executed='1650017546.18' WHERE source_name='4FGL J0239.5+1326' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476050

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=671414401.0 && nMetStart<671673601.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<671673601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476050/ft1_4FGL_J0239.5+1326_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476050/ft1_4FGL_J0239.5+1326_daily_bin1667.fits outfile=/scratch/kocevski/476050/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1667.fits ra=39.8847 dec=13.4366 rad=12.0 tmin=671414401.0 tmax=671673601.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.56
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.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/476050/ft1_filteredMKT_4FGL_J0239.5+1326_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.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: 855

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/476050/ltcube_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.fits outfile=/scratch/kocevski/476050/expmap_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.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/476050/ltcube_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.fits
.....................!
real 191.60
user 186.23
sys 4.88

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/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.fits scfile=/scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.fits outfile=/scratch/kocevski/476050/cmap_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.fits scfile=/scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.fits outfile=/scratch/kocevski/476050/cmap_HighResolution_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476050/Model_4FGL_J0239.5+1326_daily_bin1667.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/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.fits.....................!
real 125.28
user 123.74
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.fits', '/scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.fits', expMap='/scratch/kocevski/476050/expmap_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.fits', expCube='/scratch/kocevski/476050/ltcube_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476050/Model_4FGL_J0239.5+1326_daily_bin1667.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  1.000e-04  1.000e+04 ( 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/476050/ft1_filtered_4FGL_J0239.5+1326_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/476050/ft2_4FGL_J0239.5+1326_daily_bin1667.fits
Exposure map: /scratch/kocevski/476050/expmap_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.fits
Exposure cube: /scratch/kocevski/476050/ltcube_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476050/Model_4FGL_J0239.5+1326_daily_bin1667.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) = 9513.88975941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3633       1.0000         .10000E-03   10000.    
     3 'norm      '    10.520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    86.680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.176       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.704       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .90620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.805       1.0000         .10000E-03   10000.    
    18 'norm      '    .68114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6998       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3741       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2153       1.0000         .10000E-03   10000.    
    25 'norm      '    4.1056       1.0000         .10000E-03   10000.    
    26 'norm      '    5.3917       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.5993       1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.621       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98254       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9513.882     FROM MIGRAD    STATUS=CONVERGED    889 CALLS     4680 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2800        .11046E-07** at limit **
   2  Prefactor     5.3633        2.9715        .44317E-06   -.66885E-03
   3  norm          10.521        7.1352       -.50946E-07   -.24460E-03
   4  Prefactor     .10000E-03    3.1106        .49056E-07** at limit **
   5  Prefactor     5.0667        2.7930        .14583E-06    .97376E-05
   6  Prefactor     .10001E-03    52.374       -.49822E-05** at limit **
   7  Prefactor     86.689        51.624        .30725E-06    .11175E-03
   8  Prefactor     .10000E-03    3.5430       -.32031E-07** at limit **
   9  Prefactor     25.142        53.798       -.91205E-05   -.30277E-03
  10  Prefactor     27.703        63.530        .31778E-06   -.24081E-05
  11  Prefactor     .10000E-03    6.6862       -.62873E-07** at limit **
  12  Prefactor     .10002E-03    60.028        .74749E-05** at limit **
  13  Prefactor     14.807        11.115        .65831E-06   -.14922E-03
  14  Prefactor     .10000E-03    12.653        .21041E-05** at limit **
  15  norm          .90614        .52102       -.23754E-06   -.10055E-02
  16  Prefactor     .10000E-03    13.233       -.26066E-05** at limit **
  17  Prefactor     17.797        16.821        .75721E-06   -.12450E-03
  18  norm          .67466        5.3367       -.11805E-06    .14445E-04
  19  Prefactor     3.2145        32.627        .15124E-04   -.29307E-03
  20  Prefactor     .10000E-03    28.409       -.38612E-06** at limit **
  21  Prefactor     .10000E-03    18.117        .82520E-06** at limit **
  22  Prefactor     3.7027        24.820       -.22194E-05   -.40008E-04
  23  Prefactor     2.3745        3.5190        .12359E-06   -.80552E-04
  24  norm          1.2158        10.248        .19740E-05   -.16281E-03
  25  norm          4.1061        9.5903        .32737E-06   -.39163E-05
  26  norm          5.3919        4.4666        .40558E-06    .23201E-03
  27  Prefactor     .10000E-03    7.2623        .61838E-07** at limit **
  28  norm          .10000E-03    4.8362        .25521E-07** at limit **
  29  Prefactor     .10000E-03    127.48       -.34928E-05** at limit **
  30  Prefactor     3.5999        6.2410        .37635E-06   -.93105E-04
  31  Prefactor     11.621        12.387        .68729E-07   -.57186E-05
  32  Normalizat    1.0660        .22584       -.16193E-05   -.83940E-04
  33  Prefactor     .98253        .85054E-01   -.91690E-07   -.22392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.36333
  norm       = 10.5205
  Prefactor  = 0.0001
  Prefactor  = 5.06668
  Prefactor  = 0.000100006
  Prefactor  = 86.6889
  Prefactor  = 0.0001
  Prefactor  = 25.1417
  Prefactor  = 27.7033
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 14.807
  Prefactor  = 0.000100001
  norm       = 0.906136
  Prefactor  = 0.000100003
  Prefactor  = 17.7974
  norm       = 0.674661
  Prefactor  = 3.21449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70272
  Prefactor  = 2.37451
  norm       = 1.21584
  norm       = 4.10607
  norm       = 5.39187
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.59991
  Prefactor  = 11.6213
  Normalizat = 1.06598
  Prefactor  = 0.982532
 **********
 **   18 **HESSE 
 **********

 FCN=   9513.882     FROM HESSE     STATUS=OK           697 CALLS     5377 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3067        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3633        2.9876        .59920E-03   -1.5245    
   3  norm          10.521        7.1362        .12353E-03   -1.5059    
   4  Prefactor     .10000E-03    3.1259        .16797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0667        2.7954        .11427E-03   -1.5258    
   6  Prefactor     .10001E-03    53.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.689        52.096        .43152E-04   -1.3843    
   8  Prefactor     .10000E-03    3.5573        .17925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.142        56.426        .79836E-04   -1.4705    
  10  Prefactor     27.703        63.537        .76114E-04   -1.4655    
  11  Prefactor     .10000E-03    6.7467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    64.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.807        11.106        .52037E-03   -1.4938    
  14  Prefactor     .10000E-03    13.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .90614        .51813        .48188E-04   -1.5518    
  16  Prefactor     .10000E-03    13.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.797        16.915        .47458E-03   -1.4864    
  18  norm          .67466        31.848        .42263E-02   -1.5544    
  19  Prefactor     3.2145        36.446        .11291E-02   -1.5349    
  20  Prefactor     .10000E-03    28.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7027        24.782        .20996E-03   -1.5323    
  23  Prefactor     2.3745        3.5030        .21655E-03   -1.5400    
  24  norm          1.2158        10.382        .40979E-03   -1.5487    
  25  norm          4.1061        9.5657        .19896E-03   -1.5303    
  26  norm          5.3919        4.4582        .17307E-03   -1.5244    
  27  Prefactor     .10000E-03    7.5273        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.8748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    127.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     3.5999        6.2598        .21299E-03   -1.5328    
  31  Prefactor     11.621        12.390        .11751E-03   -1.5026    
  32  Normalizat    1.0660        .25234        .40550E-03   -.90852    
  33  Prefactor     .98253        .96063E-01    .17078E-03   -.93314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44508e-09
Minuit parameter uncertainties:
  1  3.7379e-06
  2  2.98771
  3  7.13676
  4  3.38645e-08
  5  2.79547
  6  0.00113314
  7  52.123
  8  6.141e-06
  9  56.5462
  10  63.6928
  11  6.92246e-06
  12  0.00215576
  13  11.1071
  14  0.000246529
  15  0.518137
  16  0.000383275
  17  16.9199
  18  9.27529
  19  21.664
  20  7.6094e-05
  21  8.70205e-05
  22  19.1695
  23  3.50329
  24  7.10716
  25  9.56927
  26  4.45844
  27  1.8786e-07
  28  1.44042e-06
  29  0.00159806
  30  6.26093
  31  12.3926
  32  0.252625
  33  0.0960797
Done.

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

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  3.833e-04  1.000e-04  1.000e+04 ( 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:  9.825e-01  9.608e-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:  1.066e+00  2.526e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476050/likelihoodResults_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9513.88245132
delta logL = -0.000354056968717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9513.88209752
delta logL = -2.58853106061e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9513.882     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2018.1        .18142E-02** at limit **
   2  Index         2.1465        5.0152        .50000        .10953E-04
   3  Normalizat    1.0660        .95125E-01    .40550E-03    .26522E-04
   4  Prefactor     .98253        .38948E-01    .17078E-03    .68062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.14649
  Normalizat = 1.06598
  Prefactor  = 0.982533
 **********
 **   18 **HESSE 
 **********

 FCN=   9513.882     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1465        6.0429        .50000       -.60736    
   3  Normalizat    1.0660        .22123        .16220E-04   -.90852    
   4  Prefactor     .98253        .90635E-01    .34155E-04   -.93314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67297e-10
Minuit parameter uncertainties:
  1  0.000339741
  2  4.59574
  3  0.221423
  4  0.090649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476050': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9513.88209716
delta logL = 1.02052581497e-07

Extracting fit parameters...

4FGL J0239.5+1326
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  3.397e-04  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.146e+00  4.596e+00  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:  9.825e-01  9.065e-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:  1.066e+00  2.214e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/476050/cmap_HighResolution_671414401_671673601_4FGL_J0239.5+1326_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2022-04-15 03:32:13.467211', job_id='476050', GAL2='0.98', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1650018733.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1667' AND source_name='4FGL J0239.5+1326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:32:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 476052: <4FGL_J0239.5+1326_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0239.5+1326_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:49 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:09:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:09:41 2022
Terminated at Fri Apr 15 03:31:36 2022
Results reported at Fri Apr 15 03:31:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_daily_bin1667 39.8847 13.4366 671414401 671673601 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 :                                   1190.35 sec.
    Max Memory :                                 618 MB
    Average Memory :                             301.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1314 sec.
    Turnaround time :                            12347 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 476050: <4FGL_J0239.5+1326_daily_bin1667> in cluster <slac> Done

Job <4FGL_J0239.5+1326_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:05:49 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:09:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:09:41 2022
Terminated at Fri Apr 15 03:32:13 2022
Results reported at Fri Apr 15 03:32:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.5+1326_daily_bin1667 39.8847 13.4366 671414401 671673601 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 :                                   1188.67 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             318.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1352 sec.
    Turnaround time :                            12384 sec.

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

