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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1359
RA = 341.491, Dec = 15.7479
tmin = 591580801, tmax = 591840001
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='468665', job_status='RUN', time_executed='2021-09-28 20:24:18.071126', time_epoch_executed='1632885858.07' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468665/ft1_4FGL_J2245.9+1544_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468665/ft2_4FGL_J2245.9+1544_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468665/ft1_4FGL_J2245.9+1544_daily_bin1359.fits outfile=/scratch/kocevski/468665/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1359.fits ra=341.491 dec=15.7479 rad=12.0 tmin=591580801.0 tmax=591840001.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.80
user 3.58
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468665/ft1_filtered_4FGL_J2245.9+1544_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/468665/ft2_4FGL_J2245.9+1544_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/468665/ltcube_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.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/468665/ft2_4FGL_J2245.9+1544_daily_bin1359.fits
.....................!
real 12.43
user 12.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468665/ft1_filtered_4FGL_J2245.9+1544_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/468665/ft2_4FGL_J2245.9+1544_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/468665/ltcube_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.fits outfile=/scratch/kocevski/468665/expmap_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.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/468665/ltcube_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.fits
.....................!
real 191.01
user 185.23
sys 5.46

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/468665/ft1_filtered_4FGL_J2245.9+1544_daily_bin1359.fits scfile=/scratch/kocevski/468665/ft2_4FGL_J2245.9+1544_daily_bin1359.fits outfile=/scratch/kocevski/468665/cmap_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.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/468665/ft1_filtered_4FGL_J2245.9+1544_daily_bin1359.fits scfile=/scratch/kocevski/468665/ft2_4FGL_J2245.9+1544_daily_bin1359.fits outfile=/scratch/kocevski/468665/cmap_HighResolution_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95289       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.534       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5972       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .70896E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.631       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.808       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1117       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5192       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1342       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97312       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0132       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=   3050.870     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2740 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .78619       -.67377E-06** at limit **
   2  Prefactor     .10000E-03    13.414       -.30354E-06** at limit **
   3  norm          2.5995        5.0799        .17454E-06    .13524E-03
   4  Prefactor     .10000E-03    28.963       -.95114E-06** at limit **
   5  Prefactor     .10000E-03    7.3630       -.33221E-06** at limit **
   6  Prefactor     .95295        .35800        .23197E-07    .69729E-03
   7  Prefactor     .10000E-03    3.6324       -.15471E-07** at limit **
   8  norm          .10000E-03    2.7675       -.23711E-06** at limit **
   9  Prefactor     39.050        63.756       -.51487E-06    .22737E-04
  10  Prefactor     21.799        15.248        .59451E-07    .41641E-04
  11  Prefactor     15.517        43.694        .90021E-06    .46651E-04
  12  Prefactor     .28295        .26503        .12222E-07    .12165E-02
  13  Prefactor     .10000E-03    11.203       -.29078E-06** at limit **
  14  Prefactor     5.6914        154.34       -.69669E-06    .76467E-05
  15  Prefactor     .10003E-03    13.412       -.22218E-05** at limit **
  16  Prefactor     .10000E-03    29.804        .11760E-05** at limit **
  17  Prefactor     .10000E-03    44.035       -.52207E-06** at limit **
  18  Prefactor     17.630        11.035        .32009E-06    .21836E-03
  19  Prefactor     49.808        31.986        .52233E-07    .45050E-04
  20  norm          5.1043        18.736        .18721E-05    .10459E-03
  21  Prefactor     2.5354        35.386        .40974E-07    .16420E-04
  22  norm          3.1292        136.98        .44593E-06    .12860E-04
  23  Normalizat    .97263        .41740       -.81165E-05    .27968E-03
  24  Prefactor     1.0134        .21996        .54011E-05    .42396E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.59947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.952953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.0498
  Prefactor  = 21.7989
  Prefactor  = 15.5174
  Prefactor  = 0.282951
  Prefactor  = 0.0001
  Prefactor  = 5.69138
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6298
  Prefactor  = 49.808
  norm       = 5.10435
  Prefactor  = 2.53536
  norm       = 3.12925
  Normalizat = 0.972628
  Prefactor  = 1.0134
 **********
 **   18 **HESSE 
 **********

 FCN=   3050.870     FROM HESSE     STATUS=OK           397 CALLS     3137 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0454        .92759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5995        5.0674        .16900E-03   -1.5385    
   4  Prefactor     .10000E-03    29.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3884        .14646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .95295        .35755        .19316E-04   -1.5513    
   7  Prefactor     .10000E-03    3.6327        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8530        .17966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.050        63.781        .64150E-04   -1.4457    
  10  Prefactor     21.799        15.243        .85793E-04   -1.4774    
  11  Prefactor     15.517        43.476        .10162E-03   -1.4920    
  12  Prefactor     .28295        .25762        .23385E-04   -1.5602    
  13  Prefactor     .10000E-03    11.256        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6914        152.64        .16981E-03   -1.5231    
  15  Prefactor     .10003E-03    37.032        .36189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.630        11.034        .47692E-03   -1.4868    
  19  Prefactor     49.808        31.979        .56822E-04   -1.4295    
  20  norm          5.1043        18.457        .17783E-03   -1.5256    
  21  Prefactor     2.5354        33.747        .25739E-03   -1.5389    
  22  norm          3.1292        136.42        .22899E-03   -1.5354    
  23  Normalizat    .97263        .42274        .34701E-03   -.93953    
  24  Prefactor     1.0134        .22746        .19109E-03   -.92284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13707e-09
Minuit parameter uncertainties:
  1  4.08789e-07
  2  3.28125e-05
  3  5.06822
  4  0.000152861
  5  2.40161e-05
  6  0.35755
  7  1.19577e-06
  8  1.70867e-05
  9  63.8926
  10  15.2453
  11  43.5645
  12  0.257621
  13  3.70816e-05
  14  59.1166
  15  0.00200714
  16  0.000198976
  17  6.98527e-05
  18  11.0353
  19  31.9898
  20  18.4774
  21  18.5121
  22  41.4234
  23  0.424203
  24  0.227676
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.905e+01  6.389e+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.013e+00  2.277e-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:  9.726e-01  4.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 1.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468665/likelihoodResults_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.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) = 3050.60294295
delta logL = 0.26727433426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3050.58977841
delta logL = 0.280438879401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.614       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6704       1.0000          .0000       10.000    
     3 'Normalizat'    .91596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0302       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=   3050.590     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      311 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.620        120.05        .10856E-03    .24857E-03
   2  Index         2.6704        2.1450        .39062E-02    .21388E-03
   3  Normalizat    .91480        .42402        .35603E-03   -.49431E-04
   4  Prefactor     1.0309        .23401        .18943E-03    .16234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.62
  Index      = 2.67037
  Normalizat = 0.9148
  Prefactor  = 1.03087
 **********
 **   18 **HESSE 
 **********

 FCN=   3050.590     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.620        37.503        .43422E-05   -1.4970    
   2  Index         2.6704        1.0266        .15625E-03   -.48468    
   3  Normalizat    .91480        .40490        .14241E-04   -.95942    
   4  Prefactor     1.0309        .22536        .37887E-04   -.91707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12675e-09
Minuit parameter uncertainties:
  1  37.5677
  2  1.03609
  3  0.406257
  4  0.225562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468665': 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) = 3050.58977357
delta logL = 0.28044371698

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.362e+01  3.757e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.670e+00  1.036e+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.031e+00  2.256e-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:  9.148e-01  4.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.67 +/- 1.04
Photon Flux (Free Index): 9.48e-08 +/- 1.11e-07
Energy Flux (Free Index): 2.34e-05 +/- 2.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/468665/cmap_HighResolution_591580801_591840001_4FGL_J2245.9+1544_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', energy_flux2='2.34e-05', dlogl='2.80e-01', photon_flux2='9.48e-08', job_status='DONE', time_completed='2021-09-28 20:33:38.911126', photon_index_error2='1.04', photon_index2='2.67', ts='0.56', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.95e-07', energy_flux_error2='2.66e-05', EG='0.97', time_epoch_completed='1632886418.91', return_code='0', job_id='468665', GAL2='1.03', EG2='0.91', return_code2='0', photon_flux_error2='1.11e-07', ts2='1.14', photon_index='1.96' WHERE bin_id='1359' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:33:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 468665: <4FGL_J2245.9+1544_daily_bin1359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1359 341.491 15.7479 591580801 591840001 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 :                                   480.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             222.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            787 sec.

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

