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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1747
RA = 146.316, Dec = 52.0053
tmin = 692150401, tmax = 692409601
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='794350', job_status='RUN', time_executed='2022-12-11 00:31:00.404717', time_epoch_executed='1670747460.4' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794350/ft1_4FGL_J0945.2+5200_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794350/ft1_4FGL_J0945.2+5200_daily_bin1747.fits outfile=/scratch/kocevski/794350/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1747.fits ra=146.316 dec=52.0053 rad=12.0 tmin=692150401.0 tmax=692409601.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.99
user 3.77
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.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/794350/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.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.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 717

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/794350/ltcube_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.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/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits
.....................!
real 12.77
user 12.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/794350/ltcube_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.fits outfile=/scratch/kocevski/794350/expmap_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.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/794350/ltcube_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.fits
.....................!
real 191.12
user 185.95
sys 4.69

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits scfile=/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits outfile=/scratch/kocevski/794350/cmap_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.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=146.316 yref=52.0053 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits scfile=/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits outfile=/scratch/kocevski/794350/cmap_HighResolution_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.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=146.316 yref=52.0053 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/794350/Model_4FGL_J0945.2+5200_daily_bin1747.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/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits.....................!
real 69.75
user 68.31
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits', '/scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits', expMap='/scratch/kocevski/794350/expmap_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.fits', expCube='/scratch/kocevski/794350/ltcube_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/794350/Model_4FGL_J0945.2+5200_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/794350/ft1_filtered_4FGL_J0945.2+5200_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/794350/ft2_4FGL_J0945.2+5200_daily_bin1747.fits
Exposure map: /scratch/kocevski/794350/expmap_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.fits
Exposure cube: /scratch/kocevski/794350/ltcube_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/794350/Model_4FGL_J0945.2+5200_daily_bin1747.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7836.0553764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8896       1.0000          .0000       .10000E+07
     2 'norm      '    .83489E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .40479E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.3258       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10355E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    33.367       1.0000          .0000       .10000E+07
     7 'norm      '    .19412E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .70613       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1351       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11119E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .43854E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .35441E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3529       1.0000          .0000       .10000E+07
    14 'norm      '    .12462E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13828E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35793E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    16.601       1.0000          .0000       .10000E+07
    18 'norm      '    1.9197       1.0000          .0000       .10000E+07
    19 'Prefactor '    .99233E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    38.510       1.0000          .0000       .10000E+07
    21 'norm      '    1.5579       1.0000          .0000       .10000E+07
    22 'norm      '    54.358       1.0000          .0000       .10000E+07
    23 'Prefactor '    .67751E-06   1.0000          .0000       .10000E+07
    24 'norm      '    1.9351       1.0000          .0000       .10000E+07
    25 'Prefactor '    .10324E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    6.5701       1.0000          .0000       .10000E+07
    27 'norm      '    3.2392       1.0000          .0000       .10000E+07
    28 'norm      '    .16653E-08   1.0000          .0000       .10000E+07
    29 'Prefactor '    .24544       1.0000          .0000       .10000E+07
    30 'norm      '    5.7521       1.0000          .0000       .10000E+07
    31 'Prefactor '    162.28       1.0000          .0000       .10000E+07
    32 'Normalizat'    .84351       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7833.340     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     2027 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7980        7.3133       -.97126E-07    .56970E-03
   2  norm           .0000        2.7502        .21679E-06** at limit **
   3  norm           .0000        2.0751       -.17670E-06** at limit **
   4  Prefactor     6.2874        11.281       -.63022E-06   -.20147E-01
   5  Prefactor     .32091E-06    8.4107       -.81972E-06** at limit **
   6  Prefactor     33.543        8.7676       -.13649E-07   -.22903E-02
   7  norm           .0000        .48953        .72624E-07** at limit **
   8  norm          .70585        .55534       -.82521E-07   -.83561E-03
   9  Prefactor     1.1192        2.1865        .13938E-06    .13821E-03
  10  Prefactor      .0000        2.0621       -.80716E-07** at limit **
  11  Prefactor      .0000        2.1406       -.25959E-06** at limit **
  12  Prefactor      .0000        2.7872       -.13401E-06** at limit **
  13  Prefactor     4.3784        2.3274        .27542E-07    .42757E-02
  14  norm          .33307E-09    5.1480        .39887E-06** at limit **
  15  Prefactor     .42488E-06    5.9329       -.26507E-06** at limit **
  16  Prefactor     .13323E-08    5.1762        .38295E-06** at limit **
  17  Prefactor     16.484        7.6089       -.15194E-06   -.32049E-02
  18  norm          1.9579        6.1183        .10520E-05    .59854E-04
  19  Prefactor     .48683E-07    13.929       -.74732E-07** at limit **
  20  Prefactor     38.339        35.458        .21459E-06   -.41847E-02
  21  norm          1.5587        .54108        .16912E-08   -.93795E-04
  22  norm          54.319        1.6959        .16884E-07   -.12314E-02
  23  Prefactor     .10264E-06    9.3881        .95601E-07** at limit **
  24  norm          1.9361        1.5536       -.67510E-07   -.13800E-03
  25  Prefactor     .11213E-07    16.504       -.86645E-06** at limit **
  26  Prefactor     6.8611        1.7005        .27996E-07   -.17384E-02
  27  norm          3.2130        1.9074       -.71567E-07   -.10133E-03
  28  norm           .0000        .35144        .13179E-07** at limit **
  29  Prefactor     .34639E-07    2.3154       -.30774E-06** at limit **
  30  norm          5.7538        2.7804       -.33445E-08   -.27549E-03
  31  Prefactor     161.55        99.482       -.33455E-07    .28897E-02
  32  Normalizat    .84390        .19500        .13533E-05   -.13270E-04
  33  Prefactor     1.2240        .21372       -.21294E-05   -.14021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.79799
  norm       = 0
  norm       = 0
  Prefactor  = 6.28743
  Prefactor  = 3.2091e-07
  Prefactor  = 33.5432
  norm       = 0
  norm       = 0.705847
  Prefactor  = 1.1192
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.37839
  norm       = 3.33067e-10
  Prefactor  = 4.24882e-07
  Prefactor  = 1.33227e-09
  Prefactor  = 16.4842
  norm       = 1.95788
  Prefactor  = 4.86833e-08
  Prefactor  = 38.3387
  norm       = 1.5587
  norm       = 54.3191
  Prefactor  = 1.0264e-07
  norm       = 1.9361
  Prefactor  = 1.12133e-08
  Prefactor  = 6.86112
  norm       = 3.21304
  norm       = 0
  Prefactor  = 3.4639e-08
  norm       = 5.75385
  Prefactor  = 161.551
  Normalizat = 0.843904
  Prefactor  = 1.22399
 **********
 **   18 **HESSE 
 **********

 FCN=   7833.340     FROM HESSE     STATUS=OK           769 CALLS     2796 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7980        7.3204        .38200E-03   -1.5656    
   2  norm           .0000        2.7448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        2.0732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2874        12.091        .39885E-03   -1.5658    
   5  Prefactor     .32091E-06    11.992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.543        8.8393        .17314E-03   -1.5592    
   7  norm           .0000        .30579        .14595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .70585        .55789        .60212E-03   -1.5691    
   9  Prefactor     1.1192        2.5724        .10936E-02   -1.5687    
  10  Prefactor      .0000        2.0385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.1404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        2.7575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3784        12.151        .48254E-03   -1.5666    
  14  norm          .33307E-09    5.1532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .42488E-06    10.809        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13323E-08    5.1697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.484        7.9704        .24554E-03   -1.5627    
  18  norm          1.9579        6.1737        .74971E-03   -1.5680    
  19  Prefactor     .48683E-07    14.466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.339        35.601        .16116E-03   -1.5584    
  21  norm          1.5587        .54194        .83136E-03   -1.5683    
  22  norm          54.319        16.049        .13564E-03   -1.5561    
  23  Prefactor     .10264E-06    10.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9361        1.5547        .74620E-03   -1.5680    
  25  Prefactor     .11213E-07    16.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.8611        17.527        .39128E-03   -1.5656    
  27  norm          3.2130        2.3999        .56254E-03   -1.5672    
  28  norm           .0000        .35179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .34639E-07    77.550        .11017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          5.7538        2.7818        .41855E-03   -1.5660    
  31  Prefactor     161.55        99.132        .78507E-04   -1.5454    
  32  Normalizat    .84390        .16777        .63396E-01   -.98460    
  33  Prefactor     1.2240        .18106        .62149E-01   -.85596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30715e-08
Minuit parameter uncertainties:
  1  7.32044
  2  1.14896e-05
  3  5.35468e-06
  4  12.0906
  5  0.00392337
  6  8.83929
  7  9.58385e-09
  8  0.55789
  9  2.57239
  10  2.56625e-06
  11  6.63973e-06
  12  5.55731e-07
  13  12.1514
  14  8.24744e-05
  15  0.00428598
  16  0.000167031
  17  7.9704
  18  6.17375
  19  0.00167835
  20  35.6012
  21  0.541939
  22  16.0487
  23  0.00206431
  24  1.55466
  25  0.000863568
  26  17.5272
  27  2.39986
  28  3.96608e-07
  29  0.00327835
  30  2.78181
  31  99.1325
  32  0.167874
  33  0.181154
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.648e+01  7.970e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  1.224e+00  1.812e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  8.439e-01  1.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.48
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 9.00e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.03e-05

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) = 7833.33998522
delta logL = 0.000331963496137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7833.33976811
delta logL = 0.000549068902728

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7833.340     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      272 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.290        10.158        .49558E-04    .62182E-03
   2  Index         2.7370        .59435        .68664E-02    .37712E-03
   3  Normalizat    .84273        .18595        .28059E-03    .52672E-06
   4  Prefactor     1.2250        .21105        .27477E-03    .63719E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2903
  Index      = 2.73696
  Normalizat = 0.842729
  Prefactor  = 1.22501
 **********
 **   18 **HESSE 
 **********

 FCN=   7833.340     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .41E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.290        9.7628        .99115E-05   -1.5627    
   2  Index         2.7370        .57085        .13733E-02   -.46969    
   3  Normalizat    .84273        .18605        .11224E-04   -.98503    
   4  Prefactor     1.2250        .21112        .10991E-04   -.85565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06572e-13
Minuit parameter uncertainties:
  1  9.76285
  2  0.572419
  3  0.186193
  4  0.211262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794350': 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) = 7833.33975162
delta logL = 0.0005655588011

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.629e+01  9.763e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.737e+00  5.724e-01  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  1.225e+00  2.113e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  8.427e-01  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.46
Ra Dec: 146.316 52.005
Photon Index (Free Index): 2.74 +/- 0.57
Photon Flux (Free Index): 9.08e-08 +/- 4.88e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/794350/cmap_HighResolution_692150401_692409601_4FGL_J0945.2+5200_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.00e-08', energy_flux2='2.12e-05', photon_flux_error='4.35e-08', dlogl='5.66e-04', energy_flux='2.14e-05', photon_flux2='9.08e-08', job_status='DONE', time_completed='2022-12-11 00:44:43.366212', photon_index_error2='0.57', photon_index2='2.74', ts='7.48', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='0.84', time_epoch_completed='1670748283.37', return_code='0', job_id='794350', GAL2='1.23', EG2='0.84', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.88e-08', ts2='7.46', photon_index='2.72' WHERE bin_id='1747' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:44:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 794350: <4FGL_J0945.2+5200_daily_bin1747> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:30:29 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:30:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:30:31 2022
Terminated at Sun Dec 11 00:44:44 2022
Results reported at Sun Dec 11 00:44:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1747 146.316 52.0053 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.2+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   823.21 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

