/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 3 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2245.9+1544_daily_bin63
RA = 341.491, Dec = 15.7479
tmin = 255657601, tmax = 255916801
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='461496', job_status='RUN', time_executed='2021-09-28 19:55:54.071909', time_epoch_executed='1632884154.07' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='63'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461496/ft1_4FGL_J2245.9+1544_daily_bin63.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461496/ft2_4FGL_J2245.9+1544_daily_bin63.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461496/ft1_4FGL_J2245.9+1544_daily_bin63.fits outfile=/scratch/kocevski/461496/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin63.fits ra=341.491 dec=15.7479 rad=12.0 tmin=255657601.0 tmax=255916801.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 1.46
user 1.28
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461496/ft1_filtered_4FGL_J2245.9+1544_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/461496/ft2_4FGL_J2245.9+1544_daily_bin63.fits sctable="SC_DATA" expcube=/scratch/kocevski/461496/ltcube_255657601_255916801_4FGL_J2245.9+1544_daily_bin63.fits outfile=/scratch/kocevski/461496/expmap_255657601_255916801_4FGL_J2245.9+1544_daily_bin63.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/461496/ltcube_255657601_255916801_4FGL_J2245.9+1544_daily_bin63.fits
.....................!
real 191.27
user 186.09
sys 4.87

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/461496/ft1_filtered_4FGL_J2245.9+1544_daily_bin63.fits scfile=/scratch/kocevski/461496/ft2_4FGL_J2245.9+1544_daily_bin63.fits outfile=/scratch/kocevski/461496/cmap_255657601_255916801_4FGL_J2245.9+1544_daily_bin63.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461496/ft1_filtered_4FGL_J2245.9+1544_daily_bin63.fits scfile=/scratch/kocevski/461496/ft2_4FGL_J2245.9+1544_daily_bin63.fits outfile=/scratch/kocevski/461496/cmap_HighResolution_255657601_255916801_4FGL_J2245.9+1544_daily_bin63.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .84047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15798       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9339       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.830       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0522       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.260       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.634       1.0000         .10000E-03   10000.    
    20 'norm      '    22.645       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.097       1.0000         .10000E-03   10000.    
    22 'norm      '    13.616       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0310       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=   8999.874     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2714 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0391        1.1432       -.16384E-07   -.10049E-04
   2  Prefactor     .10000E-03    13.112        .89347E-06** at limit **
   3  norm          .10000E-03    1.8507        .82607E-07** at limit **
   4  Prefactor     .10000E-03    5.5455        .11243E-06** at limit **
   5  Prefactor     .86424        6.7264       -.72396E-07   -.21229E-06
   6  Prefactor     .15792        .14863        .20191E-07   -.64998E-03
   7  Prefactor     3.9337        4.6877        .25653E-05   -.45453E-03
   8  norm          2.2525        1.5883       -.24373E-08   -.10020E-04
   9  Prefactor     18.830        20.474        .46928E-07    .88734E-05
  10  Prefactor     .10000E-03    15.249        .24205E-06** at limit **
  11  Prefactor     .10000E-03    15.493        .38594E-07** at limit **
  12  Prefactor     1.0522        .18113       -.66683E-08    .25986E-03
  13  Prefactor     .10000E-03    4.9866        .74585E-07** at limit **
  14  Prefactor     32.741        33.471       -.41192E-05   -.28635E-03
  15  Prefactor     2.8396        3.7320        .36244E-07   -.74595E-04
  16  Prefactor     .10000E-03    11.593       -.47544E-06** at limit **
  17  Prefactor     18.255        27.250       -.66451E-06   -.46288E-04
  18  Prefactor     .10000E-03    2.5696        .16995E-07** at limit **
  19  Prefactor     26.629        17.272       -.37947E-06   -.96220E-04
  20  norm          22.646        12.053        .48282E-07    .16578E-04
  21  Prefactor     14.098        10.345        .14699E-07    .30648E-05
  22  norm          13.616        13.261       -.20748E-07   -.64861E-05
  23  Normalizat    .76748        .20641        .10070E-05   -.29515E-04
  24  Prefactor     1.0312        .10871       -.65669E-06    .97899E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.03914
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.864239
  Prefactor  = 0.157922
  Prefactor  = 3.93371
  norm       = 2.2525
  Prefactor  = 18.83
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.05219
  Prefactor  = 0.0001
  Prefactor  = 32.7408
  Prefactor  = 2.83961
  Prefactor  = 0.0001
  Prefactor  = 18.2549
  Prefactor  = 0.0001
  Prefactor  = 26.6287
  norm       = 22.6459
  Prefactor  = 14.0976
  norm       = 13.6156
  Normalizat = 0.767481
  Prefactor  = 1.03119
 **********
 **   18 **HESSE 
 **********

 FCN=   8999.874     FROM HESSE     STATUS=OK           403 CALLS     3117 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0391        1.1431        .51886E-04   -1.5306    
   2  Prefactor     .10000E-03    13.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.8640        .12600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .86424        23.392        .45731E-02   -1.5522    
   6  Prefactor     .15792        .13889        .33024E-03   -1.5629    
   7  Prefactor     3.9337        4.7870        .10170E-02   -1.5311    
   8  norm          2.2525        1.5863        .97234E-04   -1.5408    
   9  Prefactor     18.830        20.501        .92300E-04   -1.4840    
  10  Prefactor     .10000E-03    15.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0522        .18162        .15688E-04   -1.5503    
  13  Prefactor     .10000E-03    5.0071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.741        35.301        .70000E-04   -1.4563    
  15  Prefactor     2.8396        3.7245        .20390E-03   -1.5371    
  16  Prefactor     .10000E-03    11.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.255        27.311        .93729E-04   -1.4853    
  18  Prefactor     .10000E-03    2.6013        .14838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.629        17.301        .77624E-04   -1.4675    
  20  norm          22.646        12.052        .84173E-04   -1.4756    
  21  Prefactor     14.098        10.350        .10668E-03   -1.4957    
  22  norm          13.616        13.262        .10855E-03   -1.4970    
  23  Normalizat    .76748        .23324        .37444E-03   -1.0129    
  24  Prefactor     1.0312        .12500        .18465E-03   -.91697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81367e-08
Minuit parameter uncertainties:
  1  1.14306
  2  5.66352e-05
  3  1.89033e-07
  4  5.51681e-06
  5  8.99597
  6  0.138894
  7  4.78744
  8  1.58631
  9  20.5088
  10  1.66548e-05
  11  6.23925e-06
  12  0.181621
  13  2.94104e-07
  14  35.3235
  15  3.72484
  16  2.17278e-05
  17  27.3294
  18  3.96538e-06
  19  17.3038
  20  12.053
  21  10.3508
  22  13.2646
  23  0.233548
  24  0.125038
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.883e+01  2.051e+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.031e+00  1.250e-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:  7.675e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.91e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/461496/likelihoodResults_255657601_255916801_4FGL_J2245.9+1544_daily_bin63.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): 0
logL (Free Index) = 8998.80281496
delta logL = 1.07130186836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8998.77102035
delta logL = 1.10309648274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6205       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1761       1.0000          .0000       10.000    
     3 'Normalizat'    .67588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0590       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=   8998.771     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      261 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6239        28.436        .53084E-02    .55165E-03
   2  Index         3.1760        1.5346        .89053E-01    .29301E-03
   3  Normalizat    .67571        .61785E-01    .89344E-01    .45998E-04
   4  Prefactor     1.0591        .32312E-01    .39408E-01   -.73909E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.62395
  Index      = 3.17601
  Normalizat = 0.675706
  Prefactor  = 1.05914
 **********
 **   18 **HESSE 
 **********

 FCN=   8998.771     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6239        55.784        .97491E-04   -1.5327    
   2  Index         3.1760        2.7229        .30608E-02   -.37342    
   3  Normalizat    .67571        .26102        .39579E-03   -1.0486    
   4  Prefactor     1.0591        .13387        .18212E-03   -.90783    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.54731e-07
Minuit parameter uncertainties:
  1  28.4677
  2  2.9084
  3  0.261496
  4  0.133908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461496': 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) = 8998.77101947
delta logL = 1.1030973607

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.624e+00  2.847e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  3.176e+00  2.908e+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:  1.059e+00  1.339e-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:  6.757e-01  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 341.491 15.748
Photon Index (Free Index): 3.18 +/- 2.91
Photon Flux (Free Index): 1.14e-07 +/- 1.33e-07
Energy Flux (Free Index): 2.11e-05 +/- 1.22e-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/461496/cmap_HighResolution_255657601_255916801_4FGL_J2245.9+1544_daily_bin63.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', comment='SUCCESS', photon_flux='1.91e-08', energy_flux2='2.11e-05', photon_flux_error='2.07e-08', dlogl='1.10e+00', energy_flux='1.44e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-28 20:09:00.750104', photon_index_error2='2.91', photon_index2='3.18', ts='2.36', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.99e-08', energy_flux_error2='1.22e-05', EG='0.77', time_epoch_completed='1632884940.75', return_code='0', job_id='461496', GAL2='1.06', EG2='0.68', return_code2='102', energy_flux_error='1.57e-05', photon_flux_error2='1.33e-07', ts2='4.71', photon_index='1.96' WHERE bin_id='63' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:09:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 461496: <4FGL_J2245.9+1544_daily_bin63> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin63> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:55:40 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:55:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:55:42 2021
Terminated at Tue Sep 28 20:09:01 2021
Results reported at Tue Sep 28 20:09:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin63 341.491 15.7479 255657601 255916801 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 :                                   785.01 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             378.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

