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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1549
RA = 341.491, Dec = 15.7479
tmin = 640828801, tmax = 641088001
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='468941', job_status='RUN', time_executed='2021-09-28 20:23:47.418934', time_epoch_executed='1632885827.42' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468941/ft1_4FGL_J2245.9+1544_daily_bin1549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468941/ft2_4FGL_J2245.9+1544_daily_bin1549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468941/ft1_4FGL_J2245.9+1544_daily_bin1549.fits outfile=/scratch/kocevski/468941/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1549.fits ra=341.491 dec=15.7479 rad=12.0 tmin=640828801.0 tmax=641088001.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.11
user 2.89
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468941/ft1_filtered_4FGL_J2245.9+1544_daily_bin1549.fits evtable="EVENTS" scfile=/scratch/kocevski/468941/ft2_4FGL_J2245.9+1544_daily_bin1549.fits sctable="SC_DATA" expcube=/scratch/kocevski/468941/ltcube_640828801_641088001_4FGL_J2245.9+1544_daily_bin1549.fits outfile=/scratch/kocevski/468941/expmap_640828801_641088001_4FGL_J2245.9+1544_daily_bin1549.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/468941/ltcube_640828801_641088001_4FGL_J2245.9+1544_daily_bin1549.fits
.....................!
real 191.35
user 185.71
sys 5.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/468941/ft1_filtered_4FGL_J2245.9+1544_daily_bin1549.fits scfile=/scratch/kocevski/468941/ft2_4FGL_J2245.9+1544_daily_bin1549.fits outfile=/scratch/kocevski/468941/cmap_640828801_641088001_4FGL_J2245.9+1544_daily_bin1549.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.61
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    19.348       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4477       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.223       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43202       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31343       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3020       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2067       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0699       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2159       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77392       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=   8061.696     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2288 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .15930        .11834E-07** at limit **
   2  Prefactor     19.348        16.151        .11596E-06    .25607E-05
   3  norm          4.4480        4.8087        .18094E-06   -.14497E-03
   4  Prefactor     16.224        12.758        .14465E-07   -.47542E-04
   5  Prefactor     13.207        10.707        .90470E-07   -.17136E-04
   6  Prefactor     .43198        .18887        .17707E-07   -.18887E-03
   7  Prefactor     .10000E-03    3.7976        .91344E-08** at limit **
   8  norm          1.4534        1.2024        .10785E-07    .32763E-04
   9  Prefactor     54.479        28.199       -.37718E-05   -.80660E-03
  10  Prefactor     .10000E-03    6.3028        .60748E-07** at limit **
  11  Prefactor     .10000E-03    7.3583       -.26740E-06** at limit **
  12  Prefactor     .31344        .12766        .42705E-07   -.28403E-03
  13  Prefactor     .10000E-03    7.3723       -.72339E-06** at limit **
  14  Prefactor     .10000E-03    41.118       -.48727E-07** at limit **
  15  Prefactor     .10000E-03    4.4044       -.76319E-07** at limit **
  16  Prefactor     4.3008        10.656        .52568E-05   -.70039E-03
  17  Prefactor     4.2094        60.629        .32459E-05    .36810E-04
  18  Prefactor     6.5663        6.9339        .16233E-06   -.21175E-04
  19  Prefactor     .10000E-03    13.012        .17931E-06** at limit **
  20  norm          .10000E-03    6.6013        .16482E-05** at limit **
  21  Prefactor     4.0679        7.3960        .35959E-07   -.10614E-03
  22  norm          .10000E-03    6.2172       -.80128E-06** at limit **
  23  Normalizat    1.2159        .20158       -.44499E-06   -.15354E-04
  24  Prefactor     .77390        .10396       -.12341E-06   -.48577E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 19.3483
  norm       = 4.44798
  Prefactor  = 16.2244
  Prefactor  = 13.2067
  Prefactor  = 0.431982
  Prefactor  = 0.0001
  norm       = 1.45344
  Prefactor  = 54.4788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.313442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30082
  Prefactor  = 4.20938
  Prefactor  = 6.5663
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.06794
  norm       = 0.0001
  Normalizat = 1.21589
  Prefactor  = 0.773903
 **********
 **   18 **HESSE 
 **********

 FCN=   8061.696     FROM HESSE     STATUS=OK           399 CALLS     2687 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .16306        .34980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.348        16.151        .91057E-04   -1.4828    
   3  norm          4.4480        4.8073        .19094E-03   -1.5286    
   4  Prefactor     16.224        12.746        .99439E-04   -1.4902    
   5  Prefactor     13.207        10.730        .11022E-03   -1.4981    
   6  Prefactor     .43198        .18589        .23700E-04   -1.5577    
   7  Prefactor     .10000E-03    3.8422        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4534        1.2128        .87092E-04   -1.5467    
   9  Prefactor     54.479        30.487        .54336E-04   -1.4230    
  10  Prefactor     .10000E-03    6.3396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31344        .12733        .19219E-04   -1.5596    
  13  Prefactor     .10000E-03    7.4537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3008        11.962        .97116E-03   -1.5293    
  17  Prefactor     4.2094        60.719        .19648E-03   -1.5298    
  18  Prefactor     6.5663        6.9523        .15662E-03   -1.5195    
  19  Prefactor     .10000E-03    13.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.7419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0679        7.3912        .19985E-03   -1.5305    
  22  norm          .10000E-03    6.2448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2159        .23977        .29749E-03   -.86113    
  24  Prefactor     .77390        .12348        .19638E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98622e-09
Minuit parameter uncertainties:
  1  9.41351e-08
  2  16.1547
  3  4.80772
  4  12.7477
  5  10.7317
  6  0.185889
  7  5.5331e-07
  8  1.21284
  9  30.4961
  10  5.04472e-06
  11  1.40841e-05
  12  0.127329
  13  7.79579e-05
  14  2.82225e-05
  15  7.94487e-06
  16  11.9682
  17  32.0131
  18  6.9532
  19  1.69085e-05
  20  0.000148392
  21  7.39289
  22  7.27156e-05
  23  0.239992
  24  0.123528
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.448e+01  3.050e+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.739e-01  1.235e-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.216e+00  2.400e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.22
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 5.51e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 4.17e-05 +/- 2.33e-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) = 8061.07452354
delta logL = 0.621334209054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8061.0704677
delta logL = 0.625390042923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.928       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4758       1.0000          .0000       10.000    
     3 'Normalizat'    1.1714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78770       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=   8061.070     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      290 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.926        34.848        .81888E-04   -.92912E-03
   2  Index         2.4759        .63138        .34409E-02   -.44849E-03
   3  Normalizat    1.1715        .23501        .30197E-03   -.39229E-03
   4  Prefactor     .78769        .12471        .19471E-03   -.76487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9255
  Index      = 2.47588
  Normalizat = 1.17146
  Prefactor  = 0.787694
 **********
 **   18 **HESSE 
 **********

 FCN=   8061.070     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.926        27.269        .16378E-04   -1.4729    
   2  Index         2.4759        .49407        .13764E-03   -.52918    
   3  Normalizat    1.1715        .23251        .60395E-04   -.87489    
   4  Prefactor     .78769        .12401        .38943E-04   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53841e-10
Minuit parameter uncertainties:
  1  27.2832
  2  0.495152
  3  0.232713
  4  0.124056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468941': 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) = 8061.07046767
delta logL = 0.625390074203

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.393e+01  2.728e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.476e+00  4.952e-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:  7.877e-01  1.241e-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.171e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.50
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.48 +/- 0.50
Photon Flux (Free Index): 9.53e-08 +/- 5.85e-08
Energy Flux (Free Index): 2.84e-05 +/- 1.51e-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/468941/cmap_HighResolution_640828801_641088001_4FGL_J2245.9+1544_daily_bin1549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.51e-08', energy_flux2='2.84e-05', photon_flux_error='3.08e-08', dlogl='6.25e-01', energy_flux='4.17e-05', photon_flux2='9.53e-08', job_status='DONE', time_completed='2021-09-28 20:34:16.215501', photon_index_error2='0.50', photon_index2='2.48', ts='6.22', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.22', time_epoch_completed='1632886456.22', return_code='0', job_id='468941', GAL2='0.79', EG2='1.17', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='5.85e-08', ts2='7.50', photon_index='1.96' WHERE bin_id='1549' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:34:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 468941: <4FGL_J2245.9+1544_daily_bin1549> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1549> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:20:53 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:20:54 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:54 2021
Terminated at Tue Sep 28 20:34:16 2021
Results reported at Tue Sep 28 20:34:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1549 341.491 15.7479 640828801 641088001 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

