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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1005
RA = 341.491, Dec = 15.7479
tmin = 499824001, tmax = 500083201
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='467074', job_status='RUN', time_executed='2021-09-28 20:18:48.249511', time_epoch_executed='1632885528.25' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467074

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467074/ft1_4FGL_J2245.9+1544_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467074/ft2_4FGL_J2245.9+1544_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467074/ft1_4FGL_J2245.9+1544_daily_bin1005.fits outfile=/scratch/kocevski/467074/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1005.fits ra=341.491 dec=15.7479 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.20
user 4.96
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467074/ft1_filtered_4FGL_J2245.9+1544_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/467074/ft2_4FGL_J2245.9+1544_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/467074/ltcube_499824001_500083201_4FGL_J2245.9+1544_daily_bin1005.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/467074/ft2_4FGL_J2245.9+1544_daily_bin1005.fits
.....................!
real 11.85
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467074/ft1_filtered_4FGL_J2245.9+1544_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/467074/ft2_4FGL_J2245.9+1544_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/467074/ltcube_499824001_500083201_4FGL_J2245.9+1544_daily_bin1005.fits outfile=/scratch/kocevski/467074/expmap_499824001_500083201_4FGL_J2245.9+1544_daily_bin1005.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/467074/ltcube_499824001_500083201_4FGL_J2245.9+1544_daily_bin1005.fits
.....................!
real 189.12
user 184.81
sys 3.98

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/467074/ft1_filtered_4FGL_J2245.9+1544_daily_bin1005.fits scfile=/scratch/kocevski/467074/ft2_4FGL_J2245.9+1544_daily_bin1005.fits outfile=/scratch/kocevski/467074/cmap_499824001_500083201_4FGL_J2245.9+1544_daily_bin1005.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=341.491 yref=15.7479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467074/ft1_filtered_4FGL_J2245.9+1544_daily_bin1005.fits scfile=/scratch/kocevski/467074/ft2_4FGL_J2245.9+1544_daily_bin1005.fits outfile=/scratch/kocevski/467074/cmap_HighResolution_499824001_500083201_4FGL_J2245.9+1544_daily_bin1005.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11801E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.851       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1745       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2237       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13755E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8399       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.508       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6130       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0294       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0101       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=   8744.897     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2735 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .35023        .91815E-08** at limit **
   2  Prefactor     .10000E-03    8.2708        .13609E-05** at limit **
   3  norm          .10000E-03    4.6094        .30977E-06** at limit **
   4  Prefactor     .10000E-03    8.2859       -.13680E-05** at limit **
   5  Prefactor     .10000E-03    5.8789        .40053E-07** at limit **
   6  Prefactor     3.8433        .48013       -.85423E-08    .32946E-03
   7  Prefactor     14.850        11.558       -.37386E-07   -.50322E-05
   8  norm          3.1745        2.1919        .93766E-07    .42404E-03
   9  Prefactor     40.373        38.707        .64880E-06    .15227E-04
  10  Prefactor     .10000E-03    27.776       -.74136E-05** at limit **
  11  Prefactor     .10000E-03    31.460       -.17758E-04** at limit **
  12  Prefactor     7.2238        .56483        .75833E-08    .16846E-02
  13  Prefactor     .10043E-03    12.499       -.17479E-05** at limit **
  14  Prefactor     .10000E-03    30.545       -.16390E-04** at limit **
  15  Prefactor     13.589        16.310       -.14126E-06   -.45269E-04
  16  Prefactor     13.473        20.292        .21548E-07   -.48190E-04
  17  Prefactor     .10000E-03    15.910       -.20532E-05** at limit **
  18  Prefactor     3.8316        12.589       -.18557E-05   -.15071E-03
  19  Prefactor     33.512        38.020        .34192E-05   -.29390E-04
  20  norm          3.6057        26.134       -.23703E-05   -.34260E-03
  21  Prefactor     .10000E-03    43.148        .33515E-04** at limit **
  22  norm          .10000E-03    25.059        .21594E-04** at limit **
  23  Normalizat    1.0296        .30903       -.44587E-06   -.61037E-04
  24  Prefactor     1.0100        .15235        .21433E-06   -.10917E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.84332
  Prefactor  = 14.8504
  norm       = 3.17451
  Prefactor  = 40.3734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.22378
  Prefactor  = 0.000100428
  Prefactor  = 0.0001
  Prefactor  = 13.589
  Prefactor  = 13.4728
  Prefactor  = 0.0001
  Prefactor  = 3.83158
  Prefactor  = 33.5118
  norm       = 3.60574
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 1.02962
  Prefactor  = 1.01004
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.897     FROM HESSE     STATUS=OK           401 CALLS     3136 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .50131        .10611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.977        .37799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8433        .48184        .21117E-04   -1.5316    
   7  Prefactor     14.850        11.588        .10393E-03   -1.4937    
   8  norm          3.1745        2.1944        .11194E-03   -1.5352    
   9  Prefactor     40.373        38.745        .63086E-04   -1.4436    
  10  Prefactor     .10000E-03    28.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2238        .56648        .18241E-04   -1.5170    
  13  Prefactor     .10043E-03    94.170        .63376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.589        16.312        .10866E-03   -1.4971    
  16  Prefactor     13.473        20.262        .10912E-03   -1.4974    
  17  Prefactor     .10000E-03    15.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8316        12.531        .20595E-03   -1.5316    
  19  Prefactor     33.512        37.857        .69225E-04   -1.4550    
  20  norm          3.6057        26.167        .21257E-03   -1.5328    
  21  Prefactor     .10000E-03    43.709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    25.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0296        .35085        .49817E-03   -.92045    
  24  Prefactor     1.0100        .17590        .25852E-03   -.92396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72536e-09
Minuit parameter uncertainties:
  1  8.08365e-07
  2  1.47869e-06
  3  0.000273372
  4  2.48399e-06
  5  2.47373e-08
  6  0.481836
  7  11.5897
  8  2.19446
  9  38.7696
  10  0.00010538
  11  1.74818e-05
  12  0.566482
  13  0.0127143
  14  8.25306e-06
  15  16.3176
  16  20.2723
  17  3.03826e-06
  18  12.5394
  19  37.8844
  20  19.4386
  21  0.000553463
  22  3.25825e-05
  23  0.351641
  24  0.176
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  4.037e+01  3.877e+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.010e+00  1.760e-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.030e+00  3.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.64
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 2.97e-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) = 8744.3154583
delta logL = 0.581470340405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8744.30286919
delta logL = 0.594059445464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.170       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1379       1.0000          .0000       10.000    
     3 'Normalizat'    1.0400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0099       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=   8744.303     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      261 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.148        41.464        .68553E-04    .92869E-05
   2  Index         1.1376        .73277        .15666E-01   -.74254E-05
   3  Normalizat    1.0392        .33587        .49670E-03   -.88806E-05
   4  Prefactor     1.0104        .17453        .25876E-03   -.19375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1483
  Index      = 1.13756
  Normalizat = 1.03919
  Prefactor  = 1.01041
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.303     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.148        42.721        .27421E-05   -1.4539    
   2  Index         1.1376        .75462        .62663E-03   -.88275    
   3  Normalizat    1.0392        .33616        .19868E-04   -.91729    
   4  Prefactor     1.0104        .17469        .51753E-04   -.92383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08517e-10
Minuit parameter uncertainties:
  1  42.759
  2  0.761916
  3  0.33685
  4  0.174784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467074': 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) = 8744.30286496
delta logL = 0.594063673128

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.415e+01  4.276e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.138e+00  7.619e-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.010e+00  1.748e-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.039e+00  3.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.85
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.14 +/- 0.76
Photon Flux (Free Index): 8.21e-09 +/- 1.28e-08
Energy Flux (Free Index): 8.23e-05 +/- 1.15e-04

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/467074/cmap_HighResolution_499824001_500083201_4FGL_J2245.9+1544_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='8.23e-05', photon_flux_error='3.92e-08', dlogl='5.94e-01', energy_flux='3.09e-05', photon_flux2='8.21e-09', job_status='DONE', time_completed='2021-09-28 20:30:50.603099', photon_index_error2='0.76', photon_index2='1.14', ts='7.64', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='1.03', time_epoch_completed='1632886250.6', return_code='0', job_id='467074', GAL2='1.01', EG2='1.04', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='1.28e-08', ts2='8.85', photon_index='1.96' WHERE bin_id='1005' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 467074: <4FGL_J2245.9+1544_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1005 341.491 15.7479 499824001 500083201 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

