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 96 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_bin1772
RA = 146.316, Dec = 52.0053
tmin = 698630401, tmax = 698889601
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='627163', job_status='RUN', time_executed='2023-02-24 01:17:01.210667', time_epoch_executed='1677230221.21' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627163/ft1_4FGL_J0945.2+5200_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627163/ft2_4FGL_J0945.2+5200_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627163/ft1_4FGL_J0945.2+5200_daily_bin1772.fits outfile=/scratch/kocevski/627163/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1772.fits ra=146.316 dec=52.0053 rad=12.0 tmin=698630401.0 tmax=698889601.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 7.29
user 2.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627163/ft2_4FGL_J0945.2+5200_daily_bin1772.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/627163/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/627163/ft1_filtered_4FGL_J0945.2+5200_daily_bin1772.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.16

Number of photons that the gtmktime cut: 104

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627163/ft1_filtered_4FGL_J0945.2+5200_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/627163/ft2_4FGL_J0945.2+5200_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/627163/ltcube_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.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/627163/ft2_4FGL_J0945.2+5200_daily_bin1772.fits
.....................!
real 13.32
user 12.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627163/ft1_filtered_4FGL_J0945.2+5200_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/627163/ft2_4FGL_J0945.2+5200_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/627163/ltcube_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.fits outfile=/scratch/kocevski/627163/expmap_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.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/627163/ltcube_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.fits
.....................!
real 189.96
user 185.18
sys 4.37

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/627163/ft1_filtered_4FGL_J0945.2+5200_daily_bin1772.fits scfile=/scratch/kocevski/627163/ft2_4FGL_J0945.2+5200_daily_bin1772.fits outfile=/scratch/kocevski/627163/cmap_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627163/ft1_filtered_4FGL_J0945.2+5200_daily_bin1772.fits scfile=/scratch/kocevski/627163/ft2_4FGL_J0945.2+5200_daily_bin1772.fits outfile=/scratch/kocevski/627163/cmap_HighResolution_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2760       1.0000          .0000       .10000E+07
     2 'norm      '    .13266E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .22561E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .37638E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.131       1.0000          .0000       .10000E+07
     6 'Prefactor '    .19338E-02   1.0000          .0000       .10000E+07
     7 'norm      '    4.5461       1.0000          .0000       .10000E+07
     8 'norm      '    .66578       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37570       1.0000          .0000       .10000E+07
    10 'Prefactor '    .68379E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18016E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .61783E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .37074E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .94704       1.0000          .0000       .10000E+07
    15 'Prefactor '    .16411       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.4764       1.0000          .0000       .10000E+07
    17 'Prefactor '    .77261E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .11533E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.4387       1.0000          .0000       .10000E+07
    20 'Prefactor '    .88711E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .88152E-07   1.0000          .0000       .10000E+07
    22 'norm      '    .10265E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .57335E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .48533       1.0000          .0000       .10000E+07
    25 'Prefactor '    .85942E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .22685E-03   1.0000          .0000       .10000E+07
    27 'norm      '    7.9729       1.0000          .0000       .10000E+07
    28 'norm      '    .29269E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    11.141       1.0000          .0000       .10000E+07
    30 'norm      '    30518.       1.0000          .0000       .10000E+07
    31 'Prefactor '    8.6007       1.0000          .0000       .10000E+07
    32 'Normalizat'    .56189E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1137       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=   1169.082     FROM MIGRAD    STATUS=CONVERGED    283 CALLS     4183 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4409        8.3709       -.12503E-06   -.76028E-04
   2  norm           .0000        15.879       -.73593E-07** at limit **
   3  norm           .0000        5.6065       -.18226E-07** at limit **
   4  Prefactor      .0000        6.1012       -.75037E-09** at limit **
   5  Prefactor     18.052        26.055        .54393E-07    .25509E-01
   6  Prefactor      .0000        14.452       -.43841E-06** at limit **
   7  norm          4.5933        2.6168       -.13867E-06    .53467E-03
   8  norm          .66558        .95751        .46318E-07   -.20538E-03
   9  Prefactor     .62927E-06    24.461        .43616E-06** at limit **
  10  Prefactor      .0000        9.5741       -.30417E-06** at limit **
  11  Prefactor      .0000        12.531       -.20147E-06** at limit **
  12  Prefactor      .0000        6.4113       -.82074E-07** at limit **
  13  Prefactor     .16653E-08    31.480       -.39229E-06** at limit **
  14  norm          .32484E-04    400.44       -.52508E-06** at limit **
  15  Prefactor     .22381E-05    20.763       -.61822E-06** at limit **
  16  Prefactor     3.4203        10.746       -.17466E-08    .12229E-03
  17  Prefactor      .0000        10.827        .19099E-06** at limit **
  18  norm           .0000        8.5195       -.98144E-07** at limit **
  19  Prefactor     .72758E-03    1537.3       -.26045E-05** at limit **
  20  Prefactor     .11602E-07    29.200       -.50961E-06** at limit **
  21  norm           .0000        .59097       -.19583E-07** at limit **
  22  norm          .11713E-04    107.69       -.14513E-05** at limit **
  23  Prefactor     .33862E-08    20.642        .52291E-06** at limit **
  24  norm          .35988E-06    15.984       -.27092E-06** at limit **
  25  Prefactor     .63906E-05    92.146       -.70437E-06** at limit **
  26  Prefactor     .39968E-08    46.286        .31554E-06** at limit **
  27  norm          7.8627        9.9022       -.30995E-07    .44998E-04
  28  norm          .77716E-08    24.734        .10316E-06** at limit **
  29  Prefactor     11.683        22.793        .25597E-06   -.42731E-01
  30  norm          30519.        32.619        .72825E-08   -3.2057    
  31  Prefactor     8.5538        2.1718       -.25337E-07    .32304E-02
  32  Normalizat    .58246E-01    .57821        .31066E-04   -.12418E-05
  33  Prefactor     1.1130        .34259       -.47007E-05   -.23298E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44093
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 18.0516
  Prefactor  = 0
  norm       = 4.59329
  norm       = 0.665576
  Prefactor  = 6.29274e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.66533e-09
  norm       = 3.24844e-05
  Prefactor  = 2.2381e-06
  Prefactor  = 3.42029
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.00072758
  Prefactor  = 1.16018e-08
  norm       = 0
  norm       = 1.17126e-05
  Prefactor  = 3.38618e-09
  norm       = 3.59879e-07
  Prefactor  = 6.39061e-06
  Prefactor  = 3.9968e-09
  norm       = 7.86267
  norm       = 7.77156e-09
  Prefactor  = 11.6831
  norm       = 30519
  Prefactor  = 8.5538
  Normalizat = 0.0582465
  Prefactor  = 1.11296
 **********
 **   18 **HESSE 
 **********

 FCN=   1169.082     FROM HESSE     STATUS=OK           747 CALLS     4930 TOTAL
                     EDM=   .18E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4409        8.3899        .48698E-03   -1.5666    
   2  norm           .0000        15.851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        5.6096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        6.0998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.052        49.444        .22871E-03   -1.5623    
   6  Prefactor      .0000        14.449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5933        3.1337        .47191E-03   -1.5665    
   8  norm          .66558        .97939        .63531E-03   -1.5692    
   9  Prefactor     .62927E-06    41.390        .59723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        9.5773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        12.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        6.4065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-08    35.806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .32484E-04    395.83        .42560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22381E-05    1017.8        .12453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4203        10.979        .54209E-03   -1.5671    
  17  Prefactor      .0000        10.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        8.5226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .72758E-03    1471.4        .54519E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11602E-07    29.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        .59063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .11713E-04    119.06        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .33862E-08    24.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .35988E-06    128.96        .80199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .63906E-05    115.49        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .39968E-08    46.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.8627        9.9097        .35486E-03   -1.5652    
  28  norm          .77716E-08    25.666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     11.683        .61349E+06    .29990E-03   -1.5640    
  30  norm          30519.        6895.6        .58155E-05   -1.2196    
  31  Prefactor     8.5538        31698.        .34156E-03   -1.5649    
  32  Normalizat    .58246E-01    .41421        .20633       -1.4317    
  33  Prefactor     1.1130        .35661        .37087E-01   -.89053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0182797
Minuit parameter uncertainties:
  1  8.38995
  2  1.6754e-05
  3  1.511e-06
  4  1.60419e-06
  5  49.4451
  6  7.03273e-06
  7  3.13374
  8  0.979394
  9  0.0102071
  10  3.96828e-06
  11  5.98486e-06
  12  6.48523e-07
  13  0.000484856
  14  0.226805
  15  0.095473
  16  10.979
  17  2.73092e-06
  18  4.42655e-07
  19  2.06986
  20  0.00116312
  21  8.26565e-08
  22  0.0746866
  23  0.00057741
  24  0.0136248
  25  0.0543345
  26  0.000858406
  27  9.90973
  28  0.000893873
  29  3418.14
  30  6897.49
  31  1047.01
  32  0.285436
  33  0.357374
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  0.000e+00  2.731e-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.113e+00  3.574e-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:  5.825e-02  2.854e-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: 3.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627163/likelihoodResults_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.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) = 1169.08347086
delta logL = -0.00111808254587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1169.08235332
delta logL = -5.47746822122e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12673E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0418       1.0000          .0000       10.000    
     3 'Normalizat'    .57943E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1132       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=   1169.082     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      278 TOTAL
                     EDM=   .74E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .60944        .42118E-03** at limit **
   2  Index         5.7368        1.9447       -.17396E-04     .0000    
   3  Normalizat    .58248E-01    .26508        .18292E-04    .26521E-05
   4  Prefactor     1.1130        1.1404        .40424E-06   -.16461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 5.73677
  Normalizat = 0.0582475
  Prefactor  = 1.11296
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1169.082     FROM HESSE     STATUS=FAILED         9 CALLS      287 TOTAL
                     EDM=   .74E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .60944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2288        2.4486       -.17396E-04    .14789    
   3  Normalizat    .58248E-01    .26508        .18292E-04   -1.4317    
   4  Prefactor     1.1130        1.1404        .40424E-06   -.89053    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.35595e-12
Minuit parameter uncertainties:
  1  1.33654e-07
  2  1.99871
  3  0.227756
  4  1.16695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627163': 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) = 1169.08235278
delta logL = -4.09272615798e-12

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  0.000e+00  1.337e-07  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  5.737e+00  1.999e+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.113e+00  1.167e+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:  5.825e-02  2.278e-01  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/627163/cmap_HighResolution_698630401_698889601_4FGL_J0945.2+5200_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-02', job_status='DONE', photon_flux_upper_limit='3.35e-07', time_completed='2023-02-24 01:25:06.038627', job_id='627163', GAL2='1.11', fit_tolerance='1e-08', EG2='0.06', EG='0.06', time_epoch_completed='1677230706.04', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-4.09e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1772' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:25:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 627163: <4FGL_J0945.2+5200_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1772> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Feb 24 01:15:14 2023
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:15:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:15:15 2023
Terminated at Fri Feb 24 01:25:06 2023
Results reported at Fri Feb 24 01:25:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1772 146.316 52.0053 698630401 698889601 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 :                                   482.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            592 sec.

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

