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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1525
RA = 341.491, Dec = 15.7479
tmin = 634608001, tmax = 634867201
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='468906', job_status='RUN', time_executed='2021-09-28 20:23:56.230814', time_epoch_executed='1632885836.23' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468906/ft1_4FGL_J2245.9+1544_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468906/ft2_4FGL_J2245.9+1544_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468906/ft1_4FGL_J2245.9+1544_daily_bin1525.fits outfile=/scratch/kocevski/468906/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1525.fits ra=341.491 dec=15.7479 rad=12.0 tmin=634608001.0 tmax=634867201.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.07
user 2.85
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468906/ft2_4FGL_J2245.9+1544_daily_bin1525.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/468906/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/468906/ft1_filtered_4FGL_J2245.9+1544_daily_bin1525.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.55
user 0.33
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468906/ft1_filtered_4FGL_J2245.9+1544_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/468906/ft2_4FGL_J2245.9+1544_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/468906/ltcube_634608001_634867201_4FGL_J2245.9+1544_daily_bin1525.fits outfile=/scratch/kocevski/468906/expmap_634608001_634867201_4FGL_J2245.9+1544_daily_bin1525.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/468906/ltcube_634608001_634867201_4FGL_J2245.9+1544_daily_bin1525.fits
.....................!
real 190.34
user 185.45
sys 4.57

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/468906/ft1_filtered_4FGL_J2245.9+1544_daily_bin1525.fits scfile=/scratch/kocevski/468906/ft2_4FGL_J2245.9+1544_daily_bin1525.fits outfile=/scratch/kocevski/468906/cmap_634608001_634867201_4FGL_J2245.9+1544_daily_bin1525.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468906/ft1_filtered_4FGL_J2245.9+1544_daily_bin1525.fits scfile=/scratch/kocevski/468906/ft2_4FGL_J2245.9+1544_daily_bin1525.fits outfile=/scratch/kocevski/468906/cmap_HighResolution_634608001_634867201_4FGL_J2245.9+1544_daily_bin1525.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11161       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46455       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8232       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24976E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8143       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15229E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29043E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76653E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.050       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9966       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.612       1.0000         .10000E-03   10000.    
    20 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4036       1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80531       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1549       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.

 FCN=   9218.700     FROM MIGRAD    STATUS=CONVERGED   1032 CALLS     2980 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3859        .11545E-02** at limit **
   2  Prefactor     .10000E-03    9.4187        .18142E-02** at limit **
   3  norm          6.6130        4.9448        .15606E-03    .16186E-03
   4  Prefactor     .10000E-03    6.0058        .18142E-02** at limit **
   5  Prefactor     3.9982        11.394        .20124E-03    .24404E-04
   6  Prefactor     .11157        .11089        .34270E-03    .11724E-02
   7  Prefactor     .48254        14.653        .38241E-02    .14494E-03
   8  norm          1.8229        1.1394        .78461E-04    .16866E-03
   9  Prefactor     28.782        25.313        .74685E-04   -.20093E-05
  10  Prefactor     .10000E-03    27.339        .36285E-03** at limit **
  11  Prefactor     .10001E-03    47.014        .57504E-02** at limit **
  12  Prefactor     .55991        .16136        .19090E-04    .79324E-03
  13  Prefactor     3.8120        10.171        .10333E-02    .96641E-04
  14  Prefactor     .10000E-03    129.82        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.7737        .57675E-01** at limit **
  16  Prefactor     .10002E-03    56.442        .55490E-02** at limit **
  17  Prefactor     17.044        29.490        .96996E-04    .46883E-05
  18  Prefactor     2.9946        5.3733        .23449E-03    .43731E-04
  19  Prefactor     12.615        13.439        .11279E-03   -.49792E-04
  20  norm          .10000E-03    5.6470        .18142E-02** at limit **
  21  Prefactor     8.4108        8.2007        .13829E-03   -.17725E-03
  22  norm          .10000E-03    35.222        .36285E-03** at limit **
  23  Normalizat    .80547        .25016        .38638E-03    .26682E-03
  24  Prefactor     1.1549        .13227        .18220E-03   -.28703E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.613
  Prefactor  = 0.0001
  Prefactor  = 3.99824
  Prefactor  = 0.111572
  Prefactor  = 0.482543
  norm       = 1.82292
  Prefactor  = 28.7817
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.559907
  Prefactor  = 3.81205
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 17.0436
  Prefactor  = 2.99459
  Prefactor  = 12.6155
  norm       = 0.0001
  Prefactor  = 8.41083
  norm       = 0.0001
  Normalizat = 0.805472
  Prefactor  = 1.15493
 **********
 **   18 **HESSE 
 **********

 FCN=   9218.700     FROM HESSE     STATUS=OK           389 CALLS     3369 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4213        .23090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6130        4.9441        .62426E-05   -1.5194    
   4  Prefactor     .10000E-03    6.0066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9982        11.390        .80498E-05   -1.5308    
   6  Prefactor     .11157        .11078        .13708E-04   -1.5641    
   7  Prefactor     .48254        14.730        .15296E-03   -1.5569    
   8  norm          1.8229        1.1393        .31384E-05   -1.5438    
   9  Prefactor     28.782        25.313        .14937E-04   -1.4634    
  10  Prefactor     .10000E-03    27.340        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    48.225        .23002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55991        .16132        .76360E-06   -1.5558    
  13  Prefactor     3.8120        10.162        .41333E-04   -1.5317    
  14  Prefactor     .10000E-03    129.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3181        .60914E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    57.906        .22196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.044        29.484        .38799E-05   -1.4882    
  18  Prefactor     2.9946        5.3714        .93798E-05   -1.5362    
  19  Prefactor     12.615        13.438        .45117E-05   -1.4997    
  20  norm          .10000E-03    5.6488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4108        8.2000        .55315E-05   -1.5128    
  22  norm          .10000E-03    35.224        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80547        .25022        .15455E-04   -.99866    
  24  Prefactor     1.1549        .13226        .72880E-05   -.87730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25626e-09
Minuit parameter uncertainties:
  1  4.26752e-05
  2  2.68738e-05
  3  4.9444
  4  1.08996e-05
  5  11.3965
  6  0.110785
  7  5.33303
  8  1.13936
  9  25.322
  10  7.54574e-05
  11  0.00106571
  12  0.161321
  13  10.1666
  14  0.000927511
  15  8.12121e-05
  16  0.00233282
  17  29.5096
  18  5.37225
  19  13.4408
  20  2.88056e-05
  21  8.20108
  22  0.000111687
  23  0.250576
  24  0.132301
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.878e+01  2.532e+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:  1.155e+00  1.323e-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.055e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.41
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.94e-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) = 9218.67129923
delta logL = 0.0286375287033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9218.66534801
delta logL = 0.0345887560306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.661       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7844       1.0000          .0000       10.000    
     3 'Normalizat'    .81052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1546       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.

 FCN=   9218.665     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      264 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.674        29.993        .35605E-03    .52480E-04
   2  Index         1.7841        .71821        .13045E-01    .46374E-03
   3  Normalizat    .81112        .23441        .38522E-03   -.23374E-04
   4  Prefactor     1.1543        .13068        .18228E-03   -.23076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.6745
  Index      = 1.78407
  Normalizat = 0.811123
  Prefactor  = 1.15428
 **********
 **   18 **HESSE 
 **********

 FCN=   9218.665     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.674        29.526        .71210E-04   -1.4582    
   2  Index         1.7841        .70773        .26089E-02   -.69865    
   3  Normalizat    .81112        .23449        .15409E-04   -.99657    
   4  Prefactor     1.1543        .13079        .72914E-05   -.87750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50252e-11
Minuit parameter uncertainties:
  1  29.5399
  2  0.711824
  3  0.234783
  4  0.130829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468906': 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) = 9218.66534443
delta logL = 0.0345923320438

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.167e+01  2.954e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.784e+00  7.118e-01  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:  1.154e+00  1.308e-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.111e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.78 +/- 0.71
Photon Flux (Free Index): 2.09e-08 +/- 3.51e-08
Energy Flux (Free Index): 2.63e-05 +/- 3.10e-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/468906/cmap_HighResolution_634608001_634867201_4FGL_J2245.9+1544_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='2.63e-05', photon_flux_error='2.56e-08', dlogl='3.46e-02', energy_flux='2.20e-05', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-28 20:37:08.269095', photon_index_error2='0.71', photon_index2='1.78', ts='4.41', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='3.10e-05', EG='0.81', time_epoch_completed='1632886628.27', return_code='0', job_id='468906', GAL2='1.15', EG2='0.81', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='3.51e-08', ts2='4.49', photon_index='1.96' WHERE bin_id='1525' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:37:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 468906: <4FGL_J2245.9+1544_daily_bin1525> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1525 341.491 15.7479 634608001 634867201 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 :                                   736.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            980 sec.

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

