/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 1 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin574
RA = 341.491, Dec = 15.7479
tmin = 388108801, tmax = 388368001
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='464336', job_status='RUN', time_executed='2021-09-28 20:05:50.615057', time_epoch_executed='1632884750.62' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464336/ft1_4FGL_J2245.9+1544_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464336/ft2_4FGL_J2245.9+1544_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464336/ft1_4FGL_J2245.9+1544_daily_bin574.fits outfile=/scratch/kocevski/464336/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin574.fits ra=341.491 dec=15.7479 rad=12.0 tmin=388108801.0 tmax=388368001.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.34
user 3.11
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464336/ft1_filtered_4FGL_J2245.9+1544_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/464336/ft2_4FGL_J2245.9+1544_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/464336/ltcube_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.fits outfile=/scratch/kocevski/464336/expmap_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.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/464336/ltcube_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.fits
.....................!
real 191.29
user 185.77
sys 5.16

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/464336/ft1_filtered_4FGL_J2245.9+1544_daily_bin574.fits scfile=/scratch/kocevski/464336/ft2_4FGL_J2245.9+1544_daily_bin574.fits outfile=/scratch/kocevski/464336/cmap_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464336/ft1_filtered_4FGL_J2245.9+1544_daily_bin574.fits scfile=/scratch/kocevski/464336/ft2_4FGL_J2245.9+1544_daily_bin574.fits outfile=/scratch/kocevski/464336/cmap_HighResolution_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/464336/ft1_filtered_4FGL_J2245.9+1544_daily_bin574.fits', '/scratch/kocevski/464336/ft2_4FGL_J2245.9+1544_daily_bin574.fits', expMap='/scratch/kocevski/464336/expmap_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.fits', expCube='/scratch/kocevski/464336/ltcube_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/464336/Model_4FGL_J2245.9+1544_daily_bin574.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  1.000e-04  1.000e+04 ( 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/464336/ft1_filtered_4FGL_J2245.9+1544_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/464336/ft2_4FGL_J2245.9+1544_daily_bin574.fits
Exposure map: /scratch/kocevski/464336/expmap_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.fits
Exposure cube: /scratch/kocevski/464336/ltcube_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/464336/Model_4FGL_J2245.9+1544_daily_bin574.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) = 9441.83733803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79956E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0580       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.540       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    56.372       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.988       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.157       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.441       1.0000         .10000E-03   10000.    
    20 'norm      '    16.541       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0044       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79471       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.

 FCN=   9441.795     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2772 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89896E-02    .31273       -.25935E-07   -.78133E-04
   2  Prefactor     .10000E-03    13.793        .32446E-05** at limit **
   3  norm          4.9069        4.5330       -.77324E-07   -.14962E-03
   4  Prefactor     .10000E-03    10.873       -.32566E-05** at limit **
   5  Prefactor     5.0555        5.5138       -.16288E-06   -.47973E-04
   6  Prefactor     2.6153        .30691       -.17009E-07    .11946E-02
   7  Prefactor     4.0559        4.0964        .11906E-05   -.16714E-02
   8  norm          1.1590        1.0132       -.11369E-07    .22930E-05
   9  Prefactor     20.541        19.676        .24933E-06    .35869E-04
  10  Prefactor     .10000E-03    4.1015        .10758E-06** at limit **
  11  Prefactor     5.2170        13.070       -.45113E-07   -.24614E-04
  12  Prefactor     .49255        .14431       -.64164E-08    .12835E-04
  13  Prefactor     .10000E-03    3.6824       -.25597E-07** at limit **
  14  Prefactor     56.369        36.344       -.16155E-05   -.13308E-03
  15  Prefactor     12.988        7.5587        .22694E-08   -.36601E-04
  16  Prefactor     15.157        9.9959        .43234E-07    .83052E-05
  17  Prefactor     .10000E-03    18.795       -.13174E-05** at limit **
  18  Prefactor     2.2847        5.7820        .24993E-06   -.28529E-03
  19  Prefactor     20.436        20.575       -.34606E-05   -.37769E-03
  20  norm          16.540        9.9800        .11625E-06   -.31940E-04
  21  Prefactor     .10000E-03    9.4732        .12821E-05** at limit **
  22  norm          .10000E-03    4.3802       -.11876E-06** at limit **
  23  Normalizat    1.0037        .20218        .11852E-05   -.35871E-04
  24  Prefactor     .79507        .10217       -.26151E-06    .87707E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00898962
  Prefactor  = 0.000100001
  norm       = 4.90688
  Prefactor  = 0.000100001
  Prefactor  = 5.05545
  Prefactor  = 2.61527
  Prefactor  = 4.05585
  norm       = 1.15899
  Prefactor  = 20.5409
  Prefactor  = 0.0001
  Prefactor  = 5.21703
  Prefactor  = 0.492547
  Prefactor  = 0.0001
  Prefactor  = 56.3689
  Prefactor  = 12.9878
  Prefactor  = 15.1574
  Prefactor  = 0.0001
  Prefactor  = 2.28467
  Prefactor  = 20.436
  norm       = 16.5399
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.00368
  Prefactor  = 0.795074
 **********
 **   18 **HESSE 
 **********

 FCN=   9441.795     FROM HESSE     STATUS=OK           407 CALLS     3179 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89896E-02    1.0350        .18761E-01   -1.5689    
   2  Prefactor     .10000E-03    14.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9069        4.5374        .18160E-03   -1.5265    
   4  Prefactor     .10000E-03    11.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0555        5.5165        .17885E-03   -1.5258    
   6  Prefactor     2.6153        .30876        .17339E-04   -1.5385    
   7  Prefactor     4.0559        5.9319        .10008E-02   -1.5305    
   8  norm          1.1590        1.0085        .89041E-04   -1.5493    
   9  Prefactor     20.541        19.695        .88375E-04   -1.4801    
  10  Prefactor     .10000E-03    4.1152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2170        13.066        .17599E-03   -1.5251    
  12  Prefactor     .49255        .14410        .18553E-04   -1.5568    
  13  Prefactor     .10000E-03    3.6896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     56.369        36.574        .53429E-04   -1.4205    
  15  Prefactor     12.988        7.5565        .11115E-03   -1.4987    
  16  Prefactor     15.157        9.9973        .10288E-03   -1.4929    
  17  Prefactor     .10000E-03    18.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2847        5.7571        .27201E-03   -1.5406    
  19  Prefactor     20.436        20.801        .88590E-04   -1.4804    
  20  norm          16.540        9.9664        .98477E-04   -1.4894    
  21  Prefactor     .10000E-03    9.6069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.3806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0037        .23760        .34236E-03   -.92907    
  24  Prefactor     .79507        .12064        .20405E-03   -.99910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47573e-09
Minuit parameter uncertainties:
  1  0.191848
  2  0.000232217
  3  4.5377
  4  0.000233923
  5  5.51703
  6  0.308761
  7  5.9328
  8  1.00847
  9  19.7009
  10  1.6546e-06
  11  13.0733
  12  0.144102
  13  3.35446e-06
  14  36.5885
  15  7.55704
  16  9.99844
  17  0.0001313
  18  5.75846
  19  20.8081
  20  9.96736
  21  7.07019e-05
  22  4.15781e-06
  23  0.237846
  24  0.120685
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.054e+01  1.970e+01  1.000e-04  1.000e+04 ( 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:  7.951e-01  1.207e-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.004e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.31
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.51e-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) = 9441.79303148
delta logL = 0.00209070058372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9441.79129596
delta logL = 0.00382621568679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.070       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0662       1.0000          .0000       10.000    
     3 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79581       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=   9441.791     FROM MIGRAD    STATUS=FAILED        97 CALLS      290 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.082        33.067        .45858E-03    .53201E-04
   2  Index         2.0660        1.5182        .15848E-01    .80713E-03
   3  Normalizat    .99992        .23135        .34288E-03   -.91181E-04
   4  Prefactor     .79597        .12050        .20392E-03   -.91430E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9441.791     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      362 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.082        33.067        .29586E-03   -1.4834    
   2  Index         2.0660        1.5182        .16489E-02   -.62711    
   3  Normalizat    .99992        .23135        .39841E-03   -.93033    
   4  Prefactor     .79597        .12050        .21463E-03   -.99877    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9441.791     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      400 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.082        26.352        .18343E-04   -.16114E-04
   2  Index         2.0660        1.2202        .31695E-02    .46414E-05
   3  Normalizat    .99992        .22680        .13715E-04   -.39788E-05
   4  Prefactor     .79597        .11994        .81569E-05   -.39025E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0816
  Index      = 2.06598
  Normalizat = 0.999924
  Prefactor  = 0.795974
 **********
 **   18 **HESSE 
 **********

 FCN=   9441.791     FROM HESSE     STATUS=OK            25 CALLS      425 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.082        25.467        .36686E-05   -1.4834    
   2  Index         2.0660        1.1789        .12678E-03   -.62711    
   3  Normalizat    .99992        .22590        .27430E-05   -.93033    
   4  Prefactor     .79597        .11967        .16314E-05   -.99877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23113e-12
Minuit parameter uncertainties:
  1  25.4813
  2  1.19625
  3  0.226113
  4  0.11971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464336': 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) = 9441.79129455
delta logL = 0.00382763115704

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.908e+01  2.548e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.066e+00  1.196e+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:  7.960e-01  1.197e-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:  9.999e-01  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.07 +/- 1.20
Photon Flux (Free Index): 2.50e-08 +/- 5.76e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.62e-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/464336/cmap_HighResolution_388108801_388368001_4FGL_J2245.9+1544_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='1.48e-05', photon_flux_error='1.99e-08', dlogl='3.83e-03', energy_flux='1.57e-05', photon_flux2='2.50e-08', job_status='DONE', time_completed='2021-09-28 20:18:26.717590', photon_index_error2='1.20', photon_index2='2.07', ts='4.31', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.00', time_epoch_completed='1632885506.72', return_code='0', job_id='464336', GAL2='0.80', EG2='1.00', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.76e-08', ts2='4.32', photon_index='1.96' WHERE bin_id='574' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:18:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 464336: <4FGL_J2245.9+1544_daily_bin574> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin574> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:05:40 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:05:41 2021
Terminated at Tue Sep 28 20:18:27 2021
Results reported at Tue Sep 28 20:18:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin574 341.491 15.7479 388108801 388368001 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 :                                   753.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             346.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

