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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1573
RA = 341.491, Dec = 15.7479
tmin = 647049601, tmax = 647308801
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='469994', job_status='RUN', time_executed='2021-09-28 20:25:30.846077', time_epoch_executed='1632885930.85' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1573'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469994/ft1_4FGL_J2245.9+1544_daily_bin1573.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469994/ft2_4FGL_J2245.9+1544_daily_bin1573.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469994/ft1_4FGL_J2245.9+1544_daily_bin1573.fits outfile=/scratch/kocevski/469994/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1573.fits ra=341.491 dec=15.7479 rad=12.0 tmin=647049601.0 tmax=647308801.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.54
user 3.31
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469994/ft1_filtered_4FGL_J2245.9+1544_daily_bin1573.fits" evtable="EVENTS" scfile=/scratch/kocevski/469994/ft2_4FGL_J2245.9+1544_daily_bin1573.fits sctable="SC_DATA" outfile=/scratch/kocevski/469994/ltcube_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.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/469994/ft2_4FGL_J2245.9+1544_daily_bin1573.fits
.....................!
real 12.47
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469994/ft1_filtered_4FGL_J2245.9+1544_daily_bin1573.fits evtable="EVENTS" scfile=/scratch/kocevski/469994/ft2_4FGL_J2245.9+1544_daily_bin1573.fits sctable="SC_DATA" expcube=/scratch/kocevski/469994/ltcube_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.fits outfile=/scratch/kocevski/469994/expmap_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.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/469994/ltcube_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.fits
.....................!
real 190.74
user 185.37
sys 5.00

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/469994/ft1_filtered_4FGL_J2245.9+1544_daily_bin1573.fits scfile=/scratch/kocevski/469994/ft2_4FGL_J2245.9+1544_daily_bin1573.fits outfile=/scratch/kocevski/469994/cmap_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469994/ft1_filtered_4FGL_J2245.9+1544_daily_bin1573.fits scfile=/scratch/kocevski/469994/ft2_4FGL_J2245.9+1544_daily_bin1573.fits outfile=/scratch/kocevski/469994/cmap_HighResolution_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17603E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.115       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3066       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3006       1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.827       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61774       1.0000         .10000E-03   10000.    
    20 'norm      '    .10389E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12084E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    21.376       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76846       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=   7170.724     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2767 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .32142        .34035E-07** at limit **
   2  Prefactor     .10000E-03    13.227       -.32568E-05** at limit **
   3  norm          .10000E-03    2.1087        .25691E-07** at limit **
   4  Prefactor     .10000E-03    35.446       -.60833E-05** at limit **
   5  Prefactor     31.114        14.343        .59114E-06    .15826E-05
   6  Prefactor     .24382        .18240        .50664E-07   -.80264E-03
   7  Prefactor     .10001E-03    3.8352        .54386E-06** at limit **
   8  norm          2.9210        1.5404        .32213E-07    .74705E-04
   9  Prefactor     13.451        26.721       -.19513E-04   -.69586E-05
  10  Prefactor     .10000E-03    2.0847        .95021E-09** at limit **
  11  Prefactor     .10000E-03    10.781        .11285E-05** at limit **
  12  Prefactor     .38173        .14809        .16643E-06   -.17636E-02
  13  Prefactor     .10000E-03    2.6334       -.34149E-07** at limit **
  14  Prefactor     .10000E-03    14.088        .11075E-05** at limit **
  15  Prefactor     9.3116        7.1193       -.19456E-06   -.21873E-03
  16  Prefactor     9.3036        7.8368        .82248E-07   -.39359E-04
  17  Prefactor     34.886        25.972        .11383E-04   -.20587E-04
  18  Prefactor     7.3456        6.3570       -.76294E-06   -.59247E-03
  19  Prefactor     .50612        12.986        .20121E-05   -.59187E-03
  20  norm          .10000E-03    6.8802       -.64606E-08** at limit **
  21  Prefactor     .10000E-03    8.6332       -.25205E-06** at limit **
  22  norm          21.328        16.328        .67086E-05   -.28760E-04
  23  Normalizat    1.0151        .19887       -.95465E-06   -.84985E-04
  24  Prefactor     .76853        .10289       -.49610E-07   -.14314E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.1135
  Prefactor  = 0.243816
  Prefactor  = 0.000100007
  norm       = 2.92095
  Prefactor  = 13.4513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.381732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.31157
  Prefactor  = 9.30359
  Prefactor  = 34.886
  Prefactor  = 7.34557
  Prefactor  = 0.506124
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 21.3277
  Normalizat = 1.01508
  Prefactor  = 0.768527
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.724     FROM HESSE     STATUS=OK           405 CALLS     3172 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .43485        .93105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1279        .12004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.114        14.432        .71831E-04   -1.4592    
   6  Prefactor     .24382        .17367        .28810E-03   -1.5609    
   7  Prefactor     .10001E-03    16.266        .31857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9210        1.5418        .74242E-04   -1.5366    
   9  Prefactor     13.451        26.760        .10904E-03   -1.4974    
  10  Prefactor     .10000E-03    2.0859        .11940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .38173        .14679        .18479E-04   -1.5584    
  13  Prefactor     .10000E-03    2.6449        .13420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.3116        7.1110        .13137E-03   -1.5098    
  16  Prefactor     9.3036        7.8362        .13141E-03   -1.5098    
  17  Prefactor     34.886        25.945        .67905E-04   -1.4526    
  18  Prefactor     7.3456        6.4114        .14812E-03   -1.5166    
  19  Prefactor     .50612        155.96        .54658E-02   -1.5566    
  20  norm          .10000E-03    7.0055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          21.328        16.330        .86633E-04   -1.4784    
  23  Normalizat    1.0151        .23485        .29480E-03   -.92527    
  24  Prefactor     .76853        .12175        .18485E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89336e-08
Minuit parameter uncertainties:
  1  2.05635e-06
  2  1.1493e-05
  3  1.91e-06
  4  0.000278389
  5  14.434
  6  0.173667
  7  0.000678985
  8  1.54183
  9  26.7836
  10  9.07267e-08
  11  3.91691e-05
  12  0.14679
  13  4.12179e-06
  14  6.20548e-06
  15  7.11166
  16  7.83705
  17  25.9531
  18  6.41204
  19  17.8145
  20  1.8364e-06
  21  2.54328e-05
  22  16.3334
  23  0.235092
  24  0.121793
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.345e+01  2.678e+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.685e-01  1.218e-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.015e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/469994/likelihoodResults_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.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) = 7168.17891518
delta logL = 2.54494524789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7168.16672636
delta logL = 2.55713406785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95090       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7134       1.0000          .0000       10.000    
     3 'Normalizat'    .85453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81908       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=   7168.167     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95069        5.2921        .83657E-02   -.25892E-04
   2  Index         3.7136        1.3350        .56983E-01    .17548E-03
   3  Normalizat    .85438        .57613E-01    .71585E-01    .10249E-03
   4  Prefactor     .81917        .31491E-01    .43965E-01    .49285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.950685
  Index      = 3.71364
  Normalizat = 0.854375
  Prefactor  = 0.819174
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.167     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95069        10.026        .37462E-04   -1.5513    
   2  Index         3.7136        2.0634        .22767E-02   -.26020    
   3  Normalizat    .85438        .21456        .31676E-03   -.98082    
   4  Prefactor     .81917        .11574        .17906E-03   -.99025    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39174e-10
Minuit parameter uncertainties:
  1  6.17562
  2  2.13186
  3  0.214771
  4  0.115773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469994': 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): 102
logL (Free Index) = 7168.16672584
delta logL = 2.5571345912

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  9.507e-01  6.176e+00  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.714e+00  2.132e+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:  8.192e-01  1.158e-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:  8.544e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 341.491 15.748
Photon Index (Free Index): 3.71 +/- 2.13
Photon Flux (Free Index): 1.58e-07 +/- 8.23e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.35e-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/469994/cmap_HighResolution_647049601_647308801_4FGL_J2245.9+1544_daily_bin1573.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', comment='SUCCESS', energy_flux2='2.50e-05', dlogl='2.56e+00', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-28 20:37:18.579954', photon_index_error2='2.13', photon_index2='3.71', ts='0.34', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.27e-08', energy_flux_error2='1.35e-05', EG='1.02', time_epoch_completed='1632886638.58', return_code='0', job_id='469994', GAL2='0.82', EG2='0.85', return_code2='102', photon_flux_error2='8.23e-08', ts2='5.89', photon_index='1.96' WHERE bin_id='1573' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:37:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 469994: <4FGL_J2245.9+1544_daily_bin1573> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1573> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:25:13 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:25:15 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:25:15 2021
Terminated at Tue Sep 28 20:37:19 2021
Results reported at Tue Sep 28 20:37:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1573 341.491 15.7479 647049601 647308801 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 :                                   705.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            726 sec.

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

