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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1748
RA = 341.491, Dec = 15.7479
tmin = 692409601, tmax = 692668801
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='898209', job_status='RUN', time_executed='2022-12-14 01:21:17.451700', time_epoch_executed='1671009677.45' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898209/ft1_4FGL_J2245.9+1544_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898209/ft1_4FGL_J2245.9+1544_daily_bin1748.fits outfile=/scratch/kocevski/898209/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1748.fits ra=341.491 dec=15.7479 rad=12.0 tmin=692409601.0 tmax=692668801.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.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/898209/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/898209/ft1_filtered_4FGL_J2245.9+1544_daily_bin1748.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.34
sys 0.14

Number of photons that the gtmktime cut: 863

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898209/ft1_filtered_4FGL_J2245.9+1544_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/898209/ltcube_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.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/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits
.....................!
real 11.89
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898209/ft1_filtered_4FGL_J2245.9+1544_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/898209/ltcube_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.fits outfile=/scratch/kocevski/898209/expmap_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.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/898209/ltcube_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.fits
.....................!
real 189.78
user 185.15
sys 4.31

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/898209/ft1_filtered_4FGL_J2245.9+1544_daily_bin1748.fits scfile=/scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits outfile=/scratch/kocevski/898209/cmap_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898209/ft1_filtered_4FGL_J2245.9+1544_daily_bin1748.fits scfile=/scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits outfile=/scratch/kocevski/898209/cmap_HighResolution_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.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.54
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/898209/ft1_filtered_4FGL_J2245.9+1544_daily_bin1748.fits', '/scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits', expMap='/scratch/kocevski/898209/expmap_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.fits', expCube='/scratch/kocevski/898209/ltcube_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/898209/Model_4FGL_J2245.9+1544_daily_bin1748.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/898209/ft1_filtered_4FGL_J2245.9+1544_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/898209/ft2_4FGL_J2245.9+1544_daily_bin1748.fits
Exposure map: /scratch/kocevski/898209/expmap_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.fits
Exposure cube: /scratch/kocevski/898209/ltcube_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/898209/Model_4FGL_J2245.9+1544_daily_bin1748.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) = 8857.76891685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11240       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16656E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .74268E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .49271       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.0802       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.3022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.039       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9449       1.0000          .0000       .10000E+07
     9 'Prefactor '    24.132       1.0000          .0000       .10000E+07
    10 'Prefactor '    .34467E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.7801       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22529E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .78873       1.0000          .0000       .10000E+07
    14 'Prefactor '    .36127E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19496E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    22.122       1.0000          .0000       .10000E+07
    17 'norm      '    .27128E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93334E-03   1.0000          .0000       .10000E+07
    19 'norm      '    27.637       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2956       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92989       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=   8857.745     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1337 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11179        .96193       -.25087E-07** at limit **
   2  Prefactor     .55511E-10    5.9749        .20734E-06** at limit **
   3  norm          .23553E-06    67.508        .57545E-06** at limit **
   4  Prefactor     .44964        3.5830        .44685E-08   -.66798E-02
   5  Prefactor     2.0639        13.904        .36553E-06   -.78798E-03
   6  Prefactor     1.3021        .26647        .18429E-06   -.10039E-02
   7  Prefactor     14.040        2.3537       -.40852E-06   -.34921E-02
   8  norm          2.9445        1.5330        .26215E-07   -.32007E-02
   9  Prefactor     24.261        1.2825        .11139E-07    .12682E-01
  10  Prefactor     .22204E-09    3.6267       -.41682E-06** at limit **
  11  Prefactor     1.7799        .23632        .12134E-06   -.93014E-03
  12  Prefactor     .99648E-06    11.662       -.94567E-06** at limit **
  13  Prefactor     .78684        2.2179       -.68979E-07   -.29330E-01
  14  Prefactor     .86731E-06    12.195       -.87220E-06** at limit **
  15  Prefactor     .38858E-09    20.948        .13851E-05** at limit **
  16  Prefactor     21.922        16.295       -.99862E-07   -.14634E-01
  17  norm          .27756E-09    4.1396        .13525E-06** at limit **
  18  Prefactor     .27756E-09    3.9574        .31809E-06** at limit **
  19  norm          27.632        1.1051        .61277E-09   -.15498E-01
  20  Normalizat    1.2963        .27014        .16731E-05    .18342E-04
  21  Prefactor     .92978        .14248       -.10620E-05    .43926E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.11179
  Prefactor  = 5.55112e-11
  norm       = 2.35534e-07
  Prefactor  = 0.449641
  Prefactor  = 2.06394
  Prefactor  = 1.30214
  Prefactor  = 14.0396
  norm       = 2.94453
  Prefactor  = 24.2611
  Prefactor  = 2.22045e-10
  Prefactor  = 1.77986
  Prefactor  = 9.96481e-07
  Prefactor  = 0.786835
  Prefactor  = 8.67306e-07
  Prefactor  = 3.88578e-10
  Prefactor  = 21.9219
  norm       = 2.77556e-10
  Prefactor  = 2.77556e-10
  norm       = 27.6323
  Normalizat = 1.29633
  Prefactor  = 0.929782
 **********
 **   18 **HESSE 
 **********

 FCN=   8857.745     FROM HESSE     STATUS=OK           385 CALLS     1722 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11179        .45554        .23031E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    6.0027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .23553E-06    1.6514        .63813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44964        9.2240        .97231E-02   -1.5695    
   5  Prefactor     2.0639        14.420        .71573E-03   -1.5679    
   6  Prefactor     1.3021        .27547        .47284E-02   -1.5480    
   7  Prefactor     14.040        10.077        .26725E-02   -1.4958    
   8  norm          2.9445        1.5403        .59158E-03   -1.5674    
   9  Prefactor     24.261        24.020        .20361E-03   -1.5609    
  10  Prefactor     .22204E-09    3.6487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7799        .24093        .35711E-02   -1.5441    
  12  Prefactor     .99648E-06    20.945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .78684        18.822        .53779E-03   -1.5690    
  14  Prefactor     .86731E-06    21.502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .38858E-09    2.8012        .93637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.922        19.523        .21267E-03   -1.5614    
  17  norm          .27756E-09    4.1610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .27756E-09    4.0097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.632        18.535        .19025E-03   -1.5603    
  20  Normalizat    1.2963        .23015        .76658E-01   -.83676    
  21  Prefactor     .92978        .11961        .45385E-01   -.95108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70456e-07
Minuit parameter uncertainties:
  1  0.451331
  2  4.02311e-05
  3  0.00124725
  4  4.07309
  5  10.911
  6  0.275469
  7  10.0784
  8  1.54029
  9  24.0202
  10  5.59319e-05
  11  0.240933
  12  0.00913689
  13  7.69682
  14  0.00863686
  15  6.75156e-05
  16  19.5226
  17  6.69067e-05
  18  6.65593e-05
  19  18.5351
  20  0.230336
  21  0.119642
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.426e+01  2.402e+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.298e-01  1.196e-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.296e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.84e-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) = 8857.74429747
delta logL = 0.000725406463971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8857.74362076
delta logL = 0.00140212197948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.118       1.0000          .0000       .10000E+07
     2 'Index     '    2.0533       1.0000          .0000       10.000    
     3 'Normalizat'    1.2930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93052       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8857.744     FROM MIGRAD    STATUS=FAILED        88 CALLS      279 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.120        56.392        .83213E-05   -.32865E-02
   2  Index         2.0535        2.7037        .22283E-01    .99814E-03
   3  Normalizat    1.2928        .29265        .33960E-03    .17180E-03
   4  Prefactor     .93060        .14531        .21654E-03    .42976E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8857.744     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      354 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.120        56.392        .40382E-04   -1.5612    
   2  Index         2.0535        2.7037        .13065E-02   -.63019    
   3  Normalizat    1.2928        .29265        .41543E-03   -.83781    
   4  Prefactor     .93060        .14531        .29370E-03   -.95080    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8857.744     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      382 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.120        34.638        .16643E-05   -.57666E-03
   2  Index         2.0535        1.7679        .44566E-02    .39298E-04
   3  Normalizat    1.2928        .26641        .13584E-04   -.17742E-04
   4  Prefactor     .93060        .14208        .43307E-04   -.18481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1204
  Index      = 2.05353
  Normalizat = 1.29281
  Prefactor  = 0.9306
 **********
 **   18 **HESSE 
 **********

 FCN=   8857.744     FROM HESSE     STATUS=OK            25 CALLS      407 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.120        32.987        .37221E-06   -1.5612    
   2  Index         2.0535        1.6861        .89133E-03   -.63018    
   3  Normalizat    1.2928        .26444        .27168E-05   -.83781    
   4  Prefactor     .93060        .14175        .86615E-05   -.95080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16865e-11
Minuit parameter uncertainties:
  1  32.9869
  2  1.73933
  3  0.264714
  4  0.141809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898209': 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) = 8857.74362057
delta logL = 0.00140231239675

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.312e+01  3.299e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.054e+00  1.739e+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.306e-01  1.418e-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.293e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.05 +/- 1.74
Photon Flux (Free Index): 2.93e-08 +/- 1.03e-07
Energy Flux (Free Index): 1.78e-05 +/- 2.02e-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/898209/cmap_HighResolution_692409601_692668801_4FGL_J2245.9+1544_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='1.78e-05', photon_flux_error='2.43e-08', dlogl='1.40e-03', energy_flux='1.86e-05', photon_flux2='2.93e-08', job_status='DONE', time_completed='2022-12-14 01:31:06.361703', photon_index_error2='1.74', photon_index2='2.05', ts='4.44', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='1.30', time_epoch_completed='1671010266.36', return_code='0', job_id='898209', GAL2='0.93', EG2='1.29', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='1.03e-07', ts2='4.45', photon_index='1.96' WHERE bin_id='1748' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:31:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 898209: <4FGL_J2245.9+1544_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 01:20:29 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:20:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:20:29 2022
Terminated at Wed Dec 14 01:31:06 2022
Results reported at Wed Dec 14 01:31:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1748 341.491 15.7479 692409601 692668801 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 :                                   591.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             383.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            637 sec.

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

