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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1758
RA = 146.316, Dec = 52.0053
tmin = 695001601, tmax = 695260801
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='362266', job_status='RUN', time_executed='2023-01-13 00:33:53.105831', time_epoch_executed='1673598833.11' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362266/ft1_4FGL_J0945.2+5200_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362266/ft1_4FGL_J0945.2+5200_daily_bin1758.fits outfile=/scratch/kocevski/362266/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1758.fits ra=146.316 dec=52.0053 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.78
user 2.55
sys 0.20

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

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

Number of photons that the gtmktime cut: 339

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362266/ft1_filtered_4FGL_J0945.2+5200_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/362266/ltcube_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.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/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits
.....................!
real 14.61
user 14.11
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362266/ft1_filtered_4FGL_J0945.2+5200_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/362266/ltcube_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.fits outfile=/scratch/kocevski/362266/expmap_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.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/362266/ltcube_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.fits
.....................!
real 193.12
user 187.62
sys 5.04

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/362266/ft1_filtered_4FGL_J0945.2+5200_daily_bin1758.fits scfile=/scratch/kocevski/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits outfile=/scratch/kocevski/362266/cmap_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362266/ft1_filtered_4FGL_J0945.2+5200_daily_bin1758.fits scfile=/scratch/kocevski/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits outfile=/scratch/kocevski/362266/cmap_HighResolution_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/362266/ft1_filtered_4FGL_J0945.2+5200_daily_bin1758.fits', '/scratch/kocevski/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits', expMap='/scratch/kocevski/362266/expmap_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.fits', expCube='/scratch/kocevski/362266/ltcube_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/362266/Model_4FGL_J0945.2+5200_daily_bin1758.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/362266/ft1_filtered_4FGL_J0945.2+5200_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/362266/ft2_4FGL_J0945.2+5200_daily_bin1758.fits
Exposure map: /scratch/kocevski/362266/expmap_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.fits
Exposure cube: /scratch/kocevski/362266/ltcube_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/362266/Model_4FGL_J0945.2+5200_daily_bin1758.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) = 3879.34037248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39563E-02   1.0000          .0000       .10000E+07
     2 'norm      '    .11120E-02   1.0000          .0000       .10000E+07
     3 'norm      '    16.194       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.695       1.0000          .0000       .10000E+07
     5 'Prefactor '    .50832E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    51.988       1.0000          .0000       .10000E+07
     7 'norm      '    .55471       1.0000          .0000       .10000E+07
     8 'norm      '    1.0669       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0865       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.4450       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17994E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .42252E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    23.977       1.0000          .0000       .10000E+07
    14 'norm      '    .40127E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .42840E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17915E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .53219E-05   1.0000          .0000       .10000E+07
    18 'norm      '    16.048       1.0000          .0000       .10000E+07
    19 'Prefactor '    .52264E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .51295       1.0000          .0000       .10000E+07
    21 'norm      '    1.1309       1.0000          .0000       .10000E+07
    22 'norm      '    27.178       1.0000          .0000       .10000E+07
    23 'Prefactor '    .19494E-05   1.0000          .0000       .10000E+07
    24 'norm      '    4.7189       1.0000          .0000       .10000E+07
    25 'Prefactor '    .34351E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .48707E-03   1.0000          .0000       .10000E+07
    27 'norm      '    1.5514       1.0000          .0000       .10000E+07
    28 'norm      '    3.4004       1.0000          .0000       .10000E+07
    29 'Prefactor '    .77699E-04   1.0000          .0000       .10000E+07
    30 'norm      '    .57448       1.0000          .0000       .10000E+07
    31 'Prefactor '    5.6942       1.0000          .0000       .10000E+07
    32 'Normalizat'    .70646       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1486       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=   3879.290     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     3222 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65820E-06    6.2386       -.31427E-07** at limit **
   2  norm          .40412E-06    6.7560       -.38454E-07** at limit **
   3  norm          15.890        8.4275        .86215E-07    .10106E-01
   4  Prefactor     15.504        20.042       -.37621E-06    .50867E-01
   5  Prefactor     .34067E-06    22.417       -.57813E-06** at limit **
   6  Prefactor     51.962        1.6218        .22492E-08   -.21338E-02
   7  norm          .56616        1.6358       -.20392E-06   -.23229E-03
   8  norm          1.0669        .81156       -.77677E-07    .16403E-02
   9  Prefactor     2.0278        13.524        .44704E-06   -.19906E-03
  10  Prefactor     2.3466        6.1905        .41141E-06   -.11308E-03
  11  Prefactor     .25178E-05    7.2333       -.11071E-06** at limit **
  12  Prefactor      .0000        3.9826       -.52511E-07** at limit **
  13  Prefactor     23.993        5.6921        .23508E-07   -.23921E-01
  14  norm          .33307E-09    9.1793        .42708E-06** at limit **
  15  Prefactor     .48545E-06    11.352        .33775E-07** at limit **
  16  Prefactor     .55445E-06    30.865       -.98165E-06** at limit **
  17  Prefactor      .0000        2.8293        .83544E-07** at limit **
  18  norm          16.158        12.181        .71560E-07    .19923E-02
  19  Prefactor     .14920E-05    9.4662        .21052E-07** at limit **
  20  Prefactor     .26131E-04    34.892        .78090E-06** at limit **
  21  norm          1.1319        .58545        .55118E-07   -.33449E-02
  22  norm          27.269        2.5967       -.14204E-07    .10349E-01
  23  Prefactor      .0000        2.8243        .47129E-07** at limit **
  24  norm          4.7238        3.3824        .74191E-07   -.47679E-03
  25  Prefactor     .12990E-07    8.1099       -.18697E-07** at limit **
  26  Prefactor      .0000        4.2106        .12937E-06** at limit **
  27  norm          1.5531        1.4520        .44664E-07   -.69459E-03
  28  norm          3.4011        1.6795        .10556E-07   -.12366E-03
  29  Prefactor     .76559E-05    39.467        .35485E-06** at limit **
  30  norm          .57592        1.3510       -.11806E-07    .13893E-03
  31  Prefactor     4.8085        211.36       -.24643E-06    .68885E-02
  32  Normalizat    .70844        .23643       -.22755E-05   -.30715E-04
  33  Prefactor     1.1451        .28068        .55284E-05   -.35932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58196e-07
  norm       = 4.04121e-07
  norm       = 15.8905
  Prefactor  = 15.5036
  Prefactor  = 3.40672e-07
  Prefactor  = 51.9615
  norm       = 0.566162
  norm       = 1.06691
  Prefactor  = 2.02782
  Prefactor  = 2.34661
  Prefactor  = 2.51776e-06
  Prefactor  = 0
  Prefactor  = 23.9932
  norm       = 3.33067e-10
  Prefactor  = 4.85445e-07
  Prefactor  = 5.54445e-07
  Prefactor  = 0
  norm       = 16.158
  Prefactor  = 1.49197e-06
  Prefactor  = 2.6131e-05
  norm       = 1.13187
  norm       = 27.2686
  Prefactor  = 0
  norm       = 4.7238
  Prefactor  = 1.29896e-08
  Prefactor  = 0
  norm       = 1.55308
  norm       = 3.40114
  Prefactor  = 7.65593e-06
  norm       = 0.575922
  Prefactor  = 4.80855
  Normalizat = 0.708442
  Prefactor  = 1.14507
 **********
 **   18 **HESSE 
 **********

 FCN=   3879.290     FROM HESSE     STATUS=OK           765 CALLS     3987 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65820E-06    14.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .40412E-06    15.202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.890        18.859        .24862E-03   -1.5628    
   4  Prefactor     15.504        38.765        .27040E-03   -1.5629    
   5  Prefactor     .34067E-06    26.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.962        26.315        .13870E-03   -1.5564    
   7  norm          .56616        2.0981        .73387E-03   -1.5693    
   8  norm          1.0669        .80642        .10668E-02   -1.5687    
   9  Prefactor     2.0278        23.162        .71450E-03   -1.5679    
  10  Prefactor     2.3466        6.4733        .65400E-03   -1.5677    
  11  Prefactor     .25178E-05    17.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.9603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.993        22.712        .20427E-03   -1.5610    
  14  norm          .33307E-09    9.1702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .48545E-06    14.268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55445E-06    38.164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.8271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.158        12.213        .24975E-03   -1.5628    
  19  Prefactor     .14920E-05    20.122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26131E-04    202.85        .77417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1319        .58587        .74378E-03   -1.5687    
  22  norm          27.269        19.229        .19185E-03   -1.5604    
  23  Prefactor      .0000        2.8220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7238        3.3892        .46298E-03   -1.5664    
  25  Prefactor     .12990E-07    19.343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        4.2121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.5531        1.4514        .85476E-03   -1.5683    
  28  norm          3.4011        1.6844        .54839E-03   -1.5671    
  29  Prefactor     .76559E-05    53.211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .57592        1.3829        .71546E-03   -1.5693    
  31  Prefactor     4.8085        229.69        .42071E-03   -1.5664    
  32  Normalizat    .70844        .20520        .60826E-01   -1.0356    
  33  Prefactor     1.1451        .24284        .59306E-01   -.88039    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2915e-07
Minuit parameter uncertainties:
  1  0.00624683
  2  0.00495732
  3  18.859
  4  38.7655
  5  0.00595661
  6  26.3152
  7  2.09807
  8  0.806422
  9  13.7067
  10  6.4733
  11  0.0133439
  12  1.71831e-05
  13  22.7122
  14  0.000105846
  15  0.00526348
  16  0.0092001
  17  7.01016e-06
  18  12.2133
  19  0.0109582
  20  0.145617
  21  0.585867
  22  19.2287
  23  7.00652e-06
  24  3.38919
  25  0.00100315
  26  1.60308e-05
  27  1.45138
  28  1.6844
  29  0.0403678
  30  1.38294
  31  66.4694
  32  0.205418
  33  0.243072
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  0.000e+00  7.010e-06  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.145e+00  2.431e-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:  7.084e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/362266/likelihoodResults_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.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) = 3879.29144563
delta logL = -0.00112751046527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3879.29031835
delta logL = -2.28427779803e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.0332       1.0000          .0000       10.000    
     3 'Normalizat'    .70852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1451       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3879.290     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      253 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .56786        .42118E-03** at limit **
   2  Index         .87446        1.1263       -.10027E-03     .0000    
   3  Normalizat    .70844        1.0481       -.42582E-04   -.76047E-03
   4  Prefactor     1.1451        1.1241       -.16017E-04   -.61935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.874457
  Normalizat = 0.708437
  Prefactor  = 1.14508
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3879.290     FROM HESSE     STATUS=FAILED         9 CALLS      262 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .56786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .20417E-01    1.1961       -.10027E-03   -.97039    
   3  Normalizat    .70844        1.0481       -.42582E-04   -1.0356    
   4  Prefactor     1.1451        1.1241       -.16017E-04   -.88039    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.89513e-10
Minuit parameter uncertainties:
  1  3.57885e-06
  2  1.1585
  3  1.08023
  4  1.1489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362266': 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): 101
logL (Free Index) = 3879.29031812
delta logL = -5.72981662117e-10

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  0.000e+00  3.579e-06  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  8.745e-01  1.158e+00  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.145e+00  1.149e+00  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:  7.084e-01  1.080e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 146.316 52.005

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/362266/cmap_HighResolution_695001601_695260801_4FGL_J0945.2+5200_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.28e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2023-01-13 00:45:38.743265', job_id='362266', GAL2='1.15', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1673599538.74', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-5.73e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1758' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:45:38 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 362266: <4FGL_J0945.2+5200_daily_bin1758> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1758> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 13 00:30:23 2023
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:31:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:31:48 2023
Terminated at Fri Jan 13 00:45:39 2023
Results reported at Fri Jan 13 00:45:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1758 146.316 52.0053 695001601 695260801 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 :                                   707.41 sec.
    Max Memory :                                 1046 MB
    Average Memory :                             290.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            916 sec.

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

