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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1761
RA = 341.491, Dec = 15.7479
tmin = 695779201, tmax = 696038401
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='936444', job_status='RUN', time_executed='2023-01-22 01:46:46.109644', time_epoch_executed='1674380806.11' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936444/ft1_4FGL_J2245.9+1544_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936444/ft1_4FGL_J2245.9+1544_daily_bin1761.fits outfile=/scratch/kocevski/936444/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1761.fits ra=341.491 dec=15.7479 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.09
user 4.77
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.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/936444/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1761.fits evtable="EVENTS" outfile="/scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 861

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits" evtable="EVENTS" scfile=/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits sctable="SC_DATA" outfile=/scratch/kocevski/936444/ltcube_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.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/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits
.....................!
real 14.90
user 14.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/936444/ltcube_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.fits outfile=/scratch/kocevski/936444/expmap_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.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/936444/ltcube_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.fits
.....................!
real 193.31
user 186.53
sys 5.86

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

Setting source of interest to:
4FGL J2245.9+1544 @ 341.491 15.7479

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits scfile=/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits outfile=/scratch/kocevski/936444/cmap_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.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=341.491 yref=15.7479 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits scfile=/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits outfile=/scratch/kocevski/936444/cmap_HighResolution_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.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=341.491 yref=15.7479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/936444/Model_4FGL_J2245.9+1544_daily_bin1761.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/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits.....................!
real 91.12
user 89.44
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits', '/scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits', expMap='/scratch/kocevski/936444/expmap_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.fits', expCube='/scratch/kocevski/936444/ltcube_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/936444/Model_4FGL_J2245.9+1544_daily_bin1761.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2245.9+1544'

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.169e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/936444/ft1_filtered_4FGL_J2245.9+1544_daily_bin1761.fits
Spacecraft file(s): /scratch/kocevski/936444/ft2_4FGL_J2245.9+1544_daily_bin1761.fits
Exposure map: /scratch/kocevski/936444/expmap_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.fits
Exposure cube: /scratch/kocevski/936444/ltcube_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/936444/Model_4FGL_J2245.9+1544_daily_bin1761.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) = 8853.13442472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11312       1.0000          .0000       .10000E+07
     2 'Prefactor '    .17067E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .98661       1.0000          .0000       .10000E+07
     4 'Prefactor '    .36928E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.0151       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.109       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8951       1.0000          .0000       .10000E+07
     9 'Prefactor '    26.581       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.040       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.7212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8476       1.0000          .0000       .10000E+07
    13 'Prefactor '    .41468E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .85646E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.2166       1.0000          .0000       .10000E+07
    16 'Prefactor '    .34539E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.5295       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16847E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .71234E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.0516       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8853.128     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1648 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11211        .50452        .13308E-06** at limit **
   2  Prefactor     .26645E-08    9.6610       -.15495E-05** at limit **
   3  norm          .97421        2.2527        .82917E-07    .16836E-02
   4  Prefactor     .55511E-10    4.0587        .87235E-07** at limit **
   5  Prefactor     3.1638        6.5797       -.48175E-06   -.19434E-02
   6  Prefactor     2.3050        .31968       -.12724E-06   -.16270E-02
   7  Prefactor     11.089        7.2461       -.33187E-05    .26301E-03
   8  norm          2.8914        2.0442       -.49787E-07    .77320E-03
   9  Prefactor     26.646        2.8033       -.27426E-06    .53059E-01
  10  Prefactor     10.028        1.9017        .24477E-06    .42634E-02
  11  Prefactor     1.7208        .22509       -.92639E-07    .57566E-02
  12  Prefactor     .65758        420.58       -.25084E-05   -.13899E-03
  13  Prefactor     .72164E-09    3.9611        .89939E-06** at limit **
  14  Prefactor     .44409E-09    13.412        .36741E-06** at limit **
  15  Prefactor     2.2053        5.2992       -.56662E-06   -.31399E-02
  16  Prefactor     .24425E-08    5.0588        .93093E-06** at limit **
  17  norm          1.5460        19.917       -.43744E-05   -.10276E-02
  18  Prefactor      .0000        4.3902       -.34676E-07** at limit **
  19  norm          .22204E-09    6.6843       -.81882E-06** at limit **
  20  Normalizat    1.0521        .25720        .78190E-05    .21683E-04
  21  Prefactor     .90390        .13431       -.43265E-05    .17132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.112107
  Prefactor  = 2.66454e-09
  norm       = 0.974213
  Prefactor  = 5.55112e-11
  Prefactor  = 3.16383
  Prefactor  = 2.30498
  Prefactor  = 11.0888
  norm       = 2.89136
  Prefactor  = 26.6455
  Prefactor  = 10.0279
  Prefactor  = 1.72082
  Prefactor  = 0.657584
  Prefactor  = 7.21645e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 2.20531
  Prefactor  = 2.44249e-09
  norm       = 1.54602
  Prefactor  = 0
  norm       = 2.22045e-10
  Normalizat = 1.05209
  Prefactor  = 0.903905
 **********
 **   18 **HESSE 
 **********

 FCN=   8853.128     FROM HESSE     STATUS=OK           365 CALLS     2013 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11211        .35583        .27448E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .26645E-08    9.7145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .97421        2.2696        .43291E-03   -1.5688    
   4  Prefactor     .55511E-10    4.0692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1638        6.5988        .58423E-03   -1.5672    
   6  Prefactor     2.3050        .32021        .42436E-02   -1.5404    
   7  Prefactor     11.089        7.2529        .30050E-02   -1.5042    
   8  norm          2.8914        2.1510        .59698E-03   -1.5674    
   9  Prefactor     26.646        29.121        .19400E-03   -1.5605    
  10  Prefactor     10.028        13.048        .31599E-03   -1.5645    
  11  Prefactor     1.7208        .22779        .34587E-02   -1.5446    
  12  Prefactor     .65758        434.82        .76683E-03   -1.5692    
  13  Prefactor     .72164E-09    9.2470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .44409E-09    13.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2053        5.3110        .69049E-03   -1.5678    
  16  Prefactor     .24425E-08    8.7869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5460        20.060        .86275E-03   -1.5683    
  18  Prefactor      .0000        4.3986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .22204E-09    6.7214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0521        .22167        .79322E-01   -.91305    
  21  Prefactor     .90390        .11311        .45054E-01   -.96005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30209e-06
Minuit parameter uncertainties:
  1  0.355831
  2  0.000320425
  3  2.26965
  4  2.74573e-05
  5  6.59886
  6  0.320214
  7  7.25347
  8  2.15103
  9  29.1209
  10  13.0476
  11  0.22779
  12  33.8214
  13  0.000163363
  14  0.000153906
  15  5.31104
  16  0.000291389
  17  11.138
  18  1.39142e-05
  19  7.92611e-05
  20  0.221863
  21  0.113144
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.665e+01  2.912e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  9.039e-01  1.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.052e+00  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.95e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 2.23e-05

TS (Fixed Index): 1.29
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 9.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936444/likelihoodResults_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.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): 0
logL (Free Index) = 8852.98926857
delta logL = 0.138357976468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8852.97971094
delta logL = 0.147915604759

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8852.980     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      287 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.213        359.87        .27546E-03    .22929E-02
   2  Index         2.4083        2.9604        .11661        .28524E-03
   3  Normalizat    1.0409        .79751E-01    .79636E-01    .84251E-04
   4  Prefactor     .90701        .38118E-01    .45095E-01    .96571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2127
  Index      = 2.4083
  Normalizat = 1.0409
  Prefactor  = 0.907013
 **********
 **   18 **HESSE 
 **********

 FCN=   8852.980     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.213        37.603        .11018E-04   -1.5635    
   2  Index         2.4083        1.1820        .64933E-02   -.54491    
   3  Normalizat    1.0409        .24005        .35251E-03   -.91673    
   4  Prefactor     .90701        .13310        .20799E-03   -.95896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15099e-10
Minuit parameter uncertainties:
  1  37.6033
  2  1.19761
  3  0.240299
  4  0.133151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936444': 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) = 8852.97971028
delta logL = 0.147916265658

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.321e+01  3.760e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.408e+00  1.198e+00  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  9.070e-01  1.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  1.041e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.41 +/- 1.20
Photon Flux (Free Index): 4.35e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.86e-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/936444/cmap_HighResolution_695779201_696038401_4FGL_J2245.9+1544_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.41e-05', photon_flux_error='2.95e-08', dlogl='1.48e-01', energy_flux='2.04e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2023-01-22 01:58:08.619167', photon_index_error2='1.20', photon_index2='2.41', ts='1.29', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.85e-08', energy_flux_error2='1.86e-05', EG='1.05', time_epoch_completed='1674381488.62', return_code='0', job_id='936444', GAL2='0.91', EG2='1.04', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='5.16e-08', ts2='1.60', photon_index='1.96' WHERE bin_id='1761' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:58:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 936444: <4FGL_J2245.9+1544_daily_bin1761> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1761> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Jan 22 01:45:13 2023
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:45:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:45:46 2023
Terminated at Sun Jan 22 01:58:09 2023
Results reported at Sun Jan 22 01:58:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1761 341.491 15.7479 695779201 696038401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2245.9+1544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             333.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            776 sec.

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

