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 5 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_J0231.8+1322_weekly_bin741
RA = 37.9616, Dec = 13.3692
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='380103', job_status='RUN', time_executed='2022-10-18 00:40:35.034374', time_epoch_executed='1666078835.03' WHERE source_name='4FGL J0231.8+1322' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380103

Creating custom pfile directory:
/scratch/kocevski/380103/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/380103/ft1_4FGL_J0231.8+1322_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/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380103/ft1_4FGL_J0231.8+1322_weekly_bin741.fits outfile=/scratch/kocevski/380103/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin741.fits ra=37.9616 dec=13.3692 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.56
user 6.30
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_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/380103/ft1_filteredMKT_4FGL_J0231.8+1322_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_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.53
user 0.37
sys 0.15

Number of photons that the gtmktime cut: 412

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/380103/ltcube_687139201_687744001_4FGL_J0231.8+1322_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/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits
.....................!
real 27.43
user 27.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/380103/ltcube_687139201_687744001_4FGL_J0231.8+1322_weekly_bin741.fits outfile=/scratch/kocevski/380103/expmap_687139201_687744001_4FGL_J0231.8+1322_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/380103/ltcube_687139201_687744001_4FGL_J0231.8+1322_weekly_bin741.fits
.....................!
real 191.31
user 185.55
sys 5.44

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

Setting source of interest to:
4FGL J0231.8+1322 @ 37.9616 13.3692

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits scfile=/scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits outfile=/scratch/kocevski/380103/cmap_687139201_687744001_4FGL_J0231.8+1322_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=37.9616 yref=13.3692 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits scfile=/scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits outfile=/scratch/kocevski/380103/cmap_HighResolution_687139201_687744001_4FGL_J0231.8+1322_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=37.9616 yref=13.3692 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380103/Model_4FGL_J0231.8+1322_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/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits.....................!
real 70.15
user 68.85
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits', '/scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits', expMap='/scratch/kocevski/380103/expmap_687139201_687744001_4FGL_J0231.8+1322_weekly_bin741.fits', expCube='/scratch/kocevski/380103/ltcube_687139201_687744001_4FGL_J0231.8+1322_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380103/Model_4FGL_J0231.8+1322_weekly_bin741.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0231.8+1322'

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  4.772e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/380103/ft1_filtered_4FGL_J0231.8+1322_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/380103/ft2_4FGL_J0231.8+1322_weekly_bin741.fits
Exposure map: /scratch/kocevski/380103/expmap_687139201_687744001_4FGL_J0231.8+1322_weekly_bin741.fits
Exposure cube: /scratch/kocevski/380103/ltcube_687139201_687744001_4FGL_J0231.8+1322_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380103/Model_4FGL_J0231.8+1322_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) = 4636.07374487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.533       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6636       1.0000          .0000       .10000E+07
     3 'Prefactor '    .65947E-07   1.0000          .0000       .10000E+07
     4 'norm      '    11.332       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30813E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.7801       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.538       1.0000          .0000       .10000E+07
     8 'Prefactor '    .48002       1.0000          .0000       .10000E+07
     9 'Prefactor '    11.995       1.0000          .0000       .10000E+07
    10 'Prefactor '    77.044       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.7884       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.9153       1.0000          .0000       .10000E+07
    13 'Prefactor '    18.529       1.0000          .0000       .10000E+07
    14 'norm      '    .33492       1.0000          .0000       .10000E+07
    15 'Prefactor '    .73615E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15194E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .25390E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13279E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .84050E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    18.389       1.0000          .0000       .10000E+07
    21 'Prefactor '    22.132       1.0000          .0000       .10000E+07
    22 'Prefactor '    .15281E-03   1.0000          .0000       .10000E+07
    23 'norm      '    6.9087       1.0000          .0000       .10000E+07
    24 'norm      '    .40507E-03   1.0000          .0000       .10000E+07
    25 'norm      '    4.7480       1.0000          .0000       .10000E+07
    26 'norm      '    4.9212       1.0000          .0000       .10000E+07
    27 'Prefactor '    1.5043       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.1005       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76348       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4635.997     FROM MIGRAD    STATUS=CONVERGED    242 CALLS     2723 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.712        7.5702       -.14391E-07   -.39464E-02
   2  Prefactor     2.6169        8.6182       -.65856E-08    .17283E-03
   3  Prefactor      .0000        .99675       -.64363E-08** at limit **
   4  norm          11.428        7.3835       -.69707E-08    .20740E-03
   5  Prefactor      .0000        6.8058       -.20224E-07** at limit **
   6  Prefactor     1.7501        3.2708        .11714E-07    .40984E-03
   7  Prefactor     13.777        5.0492       -.20427E-07    .59728E-02
   8  Prefactor     .35984E-04    90.804       -.24482E-06** at limit **
   9  Prefactor     17.286        81.031        .30249E-06    .40848E-02
  10  Prefactor     79.169        96.445       -.18084E-06   -.98185E-02
  11  Prefactor     2.7477        20.563        .58536E-07   -.83104E-02
  12  Prefactor     3.7252        20.934       -.24091E-07    .17274E-01
  13  Prefactor     18.596        19.027       -.11546E-07    .52340E-01
  14  norm          .33474        .67687       -.14919E-07   -.19220E-02
  15  Prefactor     .11497E-05    37.805        .37540E-07** at limit **
  16  Prefactor      .0000        10.819        .13434E-07** at limit **
  17  norm           .0000        5.3125        .33566E-08** at limit **
  18  Prefactor     .27356E-06    141.84       -.11761E-05** at limit **
  19  Prefactor     .86597E-08    21.145       -.89195E-07** at limit **
  20  Prefactor     18.334        14.775        .29313E-07    .21087E-02
  21  Prefactor     22.387        24.961        .93311E-07   -.50368E-01
  22  Prefactor     .61062E-09    16.660       -.11485E-06** at limit **
  23  norm          6.9136        9.4905        .31308E-07    .63023E-03
  24  norm           .0000        4.2577       -.67131E-08** at limit **
  25  norm          4.7686        5.0484        .19072E-08    .36036E-03
  26  norm          4.8103        9.3750        .79006E-07    .11281E-02
  27  Prefactor     1.5083        2.9901       -.22141E-08    .70084E-04
  28  Normalizat    1.0971        .27714       -.33613E-07    .28653E-04
  29  Prefactor     .76390        .11551        .20455E-06    .89144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.712
  Prefactor  = 2.61687
  Prefactor  = 0
  norm       = 11.4284
  Prefactor  = 0
  Prefactor  = 1.75012
  Prefactor  = 13.7774
  Prefactor  = 3.59843e-05
  Prefactor  = 17.2856
  Prefactor  = 79.169
  Prefactor  = 2.7477
  Prefactor  = 3.72517
  Prefactor  = 18.5964
  norm       = 0.334739
  Prefactor  = 1.14969e-06
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.73559e-07
  Prefactor  = 8.65974e-09
  Prefactor  = 18.3344
  Prefactor  = 22.3866
  Prefactor  = 6.10623e-10
  norm       = 6.91359
  norm       = 0
  norm       = 4.76864
  norm       = 4.81028
  Prefactor  = 1.50828
  Normalizat = 1.09714
  Prefactor  = 0.7639
 **********
 **   18 **HESSE 
 **********

 FCN=   4635.997     FROM HESSE     STATUS=OK           619 CALLS     3342 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.712        31.909        .22075E-03   -1.5615    
   2  Prefactor     2.6169        8.7236        .62425E-03   -1.5676    
   3  Prefactor      .0000        .99776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.428        7.3891        .29735E-03   -1.5640    
   5  Prefactor      .0000        6.7916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7501        3.3329        .78414E-03   -1.5682    
   7  Prefactor     13.777        30.963        .27197E-03   -1.5634    
   8  Prefactor     .35984E-04    164.82        .80746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.286        82.791        .28898E-03   -1.5625    
  10  Prefactor     79.169        97.452        .11393E-03   -1.5530    
  11  Prefactor     2.7477        23.007        .60907E-03   -1.5675    
  12  Prefactor     3.7252        23.749        .50962E-03   -1.5669    
  13  Prefactor     18.596        23.357        .23240E-03   -1.5622    
  14  norm          .33474        .85879        .17032E-02   -1.5696    
  15  Prefactor     .11497E-05    42.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        10.766        .17376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        5.3174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .27356E-06    142.01        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .86597E-08    21.190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.334        14.790        .23329E-03   -1.5622    
  21  Prefactor     22.387        28.240        .21262E-03   -1.5613    
  22  Prefactor     .61062E-09    16.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.9136        9.4730        .38146E-03   -1.5655    
  24  norm           .0000        4.2558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7686        5.0381        .46153E-03   -1.5664    
  26  norm          4.8103        9.3586        .45315E-03   -1.5664    
  27  Prefactor     1.5083        3.0378        .87236E-03   -1.5683    
  28  Normalizat    1.0971        .25294        .76410E-01   -.89844    
  29  Prefactor     .76390        .10308        .43240E-01   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84899e-07
Minuit parameter uncertainties:
  1  31.9093
  2  8.72363
  3  8.84504e-07
  4  7.38913
  5  1.11891e-06
  6  3.33294
  7  30.9634
  8  0.154031
  9  75.6611
  10  97.4535
  11  15.9018
  12  18.8117
  13  23.3576
  14  0.858794
  15  0.0140071
  16  7.28428e-06
  17  3.77406e-06
  18  0.0124655
  19  0.000857168
  20  14.7901
  21  28.2398
  22  0.000202749
  23  9.473
  24  1.48481e-06
  25  5.03806
  26  9.3586
  27  3.03779
  28  0.253217
  29  0.10311
Done.

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

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  2.748e+00  1.590e+01  0.000e+00  1.000e+06 ( 1.000e-12)
242        Index:  2.678e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.639e-01  1.031e-01  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.097e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 37.962 13.369
Photon Flux Upper Limit: 2.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380103/likelihoodResults_687139201_687744001_4FGL_J0231.8+1322_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): 102
logL (Free Index) = 4635.197439
delta logL = 0.799419123842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4635.08929854
delta logL = 0.907559579644

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4635.089     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      275 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71833E-01    1.1957        .35298E-03** at limit **
   2  Index         6.7067        3.7550        .17859        .13491E-03
   3  Normalizat    1.0160        .70504E-01    .78841E-01   -.12166E-03
   4  Prefactor     .78317        .29409E-01    .43498E-01   -.51414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.071833
  Index      = 6.7067
  Normalizat = 1.01603
  Prefactor  = 0.783165
 **********
 **   18 **HESSE 
 **********

 FCN=   4635.089     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71833E-01    2.9482        .16141E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7067        8.3183        .68306E-02    .34834    
   3  Normalizat    1.0160        .22346        .34896E-03   -.92495    
   4  Prefactor     .78317        .92020E-01    .16321E-03   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.27258e-10
Minuit parameter uncertainties:
  1  0.920392
  2  8.23143
  3  0.223666
  4  0.0920378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380103': 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) = 4635.08928996
delta logL = 0.907568160014

Extracting fit parameters...

4FGL J0231.8+1322
   Spectrum: PowerLaw
241    Prefactor:  7.183e-02  9.204e-01  0.000e+00  1.000e+06 ( 1.000e-12)
242        Index:  6.707e+00  8.231e+00  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  5.510e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
497    Prefactor:  7.832e-01  9.204e-02  0.000e+00  1.000e+01 ( 1.000e+00)
498        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
499        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.016e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 37.962 13.369
Photon Index (Free Index): 6.71 +/- 8.23
Photon Flux (Free Index): 1.19e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.44e-05 +/- 1.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/380103/cmap_HighResolution_687139201_687744001_4FGL_J0231.8+1322_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='9.08e-01', photon_flux2='1.19e-07', job_status='DONE', time_completed='2022-10-18 00:51:24.617407', photon_index_error2='8.23', photon_index2='6.71', ts='0.04', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='2.18e-07', energy_flux_error2='1.40e-05', EG='1.10', time_epoch_completed='1666079484.62', return_code='0', job_id='380103', GAL2='0.78', EG2='1.02', return_code2='102', photon_flux_error2='1.02e-07', ts2='1.96', photon_index='2.68' WHERE bin_id='741' AND source_name='4FGL J0231.8+1322' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:51:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 380103: <4FGL_J0231.8+1322_weekly_bin741> in cluster <slac> Done

Job <4FGL_J0231.8+1322_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 00:40:21 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:40:22 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:22 2022
Terminated at Tue Oct 18 00:51:25 2022
Results reported at Tue Oct 18 00:51:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.8+1322_weekly_bin741 37.9616 13.3692 687139201 687744001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0231.8+1322 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   650.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            664 sec.

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

