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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin95
RA = 341.491, Dec = 15.7479
tmin = 263952001, tmax = 264211201
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='464653', job_status='RUN', time_executed='2021-09-28 20:08:30.331194', time_epoch_executed='1632884910.33' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464653

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464653/ft1_4FGL_J2245.9+1544_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464653/ft2_4FGL_J2245.9+1544_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464653/ft1_4FGL_J2245.9+1544_daily_bin95.fits outfile=/scratch/kocevski/464653/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin95.fits ra=341.491 dec=15.7479 rad=12.0 tmin=263952001.0 tmax=264211201.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.75
user 1.54
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/464653/ft2_4FGL_J2245.9+1544_daily_bin95.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/464653/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/464653/ft1_filtered_4FGL_J2245.9+1544_daily_bin95.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/464653/ft1_filtered_4FGL_J2245.9+1544_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/464653/ft2_4FGL_J2245.9+1544_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/464653/ltcube_263952001_264211201_4FGL_J2245.9+1544_daily_bin95.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/464653/ft2_4FGL_J2245.9+1544_daily_bin95.fits
.....................!
real 12.82
user 12.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464653/ft1_filtered_4FGL_J2245.9+1544_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/464653/ft2_4FGL_J2245.9+1544_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/464653/ltcube_263952001_264211201_4FGL_J2245.9+1544_daily_bin95.fits outfile=/scratch/kocevski/464653/expmap_263952001_264211201_4FGL_J2245.9+1544_daily_bin95.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/464653/ltcube_263952001_264211201_4FGL_J2245.9+1544_daily_bin95.fits
.....................!
real 190.46
user 185.58
sys 4.24

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/464653/ft1_filtered_4FGL_J2245.9+1544_daily_bin95.fits scfile=/scratch/kocevski/464653/ft2_4FGL_J2245.9+1544_daily_bin95.fits outfile=/scratch/kocevski/464653/cmap_263952001_264211201_4FGL_J2245.9+1544_daily_bin95.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4251       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52029       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1784       1.0000         .10000E-03   10000.    
     8 'norm      '    .47995       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2461       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11343E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25352E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .96501E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.432       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    27.161       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88283       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98072       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=   11882.12     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2383 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2021        1.0130        .17044E-07    .11507E-03
   2  Prefactor     7.4110        12.113       -.20707E-06    .83182E-05
   3  norm          .10000E-03    1.2381        .88121E-08** at limit **
   4  Prefactor     .10000E-03    18.233        .14021E-06** at limit **
   5  Prefactor     7.4888        11.404        .15904E-05    .29894E-03
   6  Prefactor     .52034        .17308        .11512E-07    .15789E-03
   7  Prefactor     3.1784        4.4261        .12848E-06    .55115E-04
   8  norm          .48130        1.3273        .17008E-06    .45759E-03
   9  Prefactor     38.163        26.684       -.20272E-05   -.39145E-04
  10  Prefactor     4.9627        9.1564        .23786E-05    .50388E-03
  11  Prefactor     .10000E-03    13.284        .53126E-07** at limit **
  12  Prefactor     2.2461        .23116        .89316E-08   -.46117E-03
  13  Prefactor     .10000E-03    3.7733        .39446E-10** at limit **
  14  Prefactor     .10000E-03    34.298       -.47231E-06** at limit **
  15  Prefactor     .10000E-03    3.8259        .91180E-08** at limit **
  16  Prefactor     .10000E-03    3.9584       -.22970E-07** at limit **
  17  Prefactor     .10216E-03    37.836       -.58217E-05** at limit **
  18  Prefactor     16.432        7.3321        .28023E-07    .10470E-03
  19  Prefactor     .10000E-03    44.728        .39779E-06** at limit **
  20  norm          27.157        10.858        .56508E-07    .21356E-04
  21  Prefactor     .10000E-03    2.6136       -.16164E-08** at limit **
  22  norm          .10000E-03    17.142       -.26751E-06** at limit **
  23  Normalizat    .88254        .19733       -.68502E-06    .20796E-03
  24  Prefactor     .98078        .10095       -.24235E-09    .32325E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20209
  Prefactor  = 7.41103
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.48879
  Prefactor  = 0.520338
  Prefactor  = 3.17844
  norm       = 0.481297
  Prefactor  = 38.1628
  Prefactor  = 4.96274
  Prefactor  = 0.0001
  Prefactor  = 2.2461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102162
  Prefactor  = 16.4318
  Prefactor  = 0.0001
  norm       = 27.1573
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.882539
  Prefactor  = 0.980778
 **********
 **   18 **HESSE 
 **********

 FCN=   11882.12     FROM HESSE     STATUS=OK           407 CALLS     2790 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2021        1.0128        .11322E-03   -1.5350    
   2  Prefactor     7.4110        12.104        .14718E-03   -1.5163    
   3  norm          .10000E-03    1.2426        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4888        11.472        .73291E-03   -1.5161    
   6  Prefactor     .52034        .17108        .24550E-04   -1.5564    
   7  Prefactor     3.1784        4.4164        .22731E-03   -1.5351    
   8  norm          .48130        1.2799        .18921E-03   -1.5569    
   9  Prefactor     38.163        26.816        .32416E-03   -1.4472    
  10  Prefactor     4.9627        9.1929        .90190E-03   -1.5262    
  11  Prefactor     .10000E-03    13.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2461        .23018        .15386E-04   -1.5408    
  13  Prefactor     .10000E-03    3.7919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.147        .40502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10216E-03    21.078        .14363       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.432        7.3176        .98804E-04   -1.4897    
  19  Prefactor     .10000E-03    45.922        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          27.157        10.869        .76869E-04   -1.4665    
  21  Prefactor     .10000E-03    2.6249        .17197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    17.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88254        .22959        .38776E-03   -.97076    
  24  Prefactor     .98078        .11849        .20242E-03   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20059e-09
Minuit parameter uncertainties:
  1  1.01282
  2  12.1082
  3  4.01822e-08
  4  1.54276e-05
  5  11.4756
  6  0.171075
  7  4.41683
  8  1.27992
  9  26.8249
  10  9.19556
  11  1.03011e-05
  12  0.230177
  13  1.18983e-06
  14  2.37821e-05
  15  7.68329e-05
  16  1.26895e-06
  17  0.013507
  18  7.31796
  19  1.63065e-05
  20  10.8694
  21  1.996e-07
  22  6.62819e-06
  23  0.229842
  24  0.118525
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.816e+01  2.682e+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:  9.808e-01  1.185e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  8.825e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.27
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.86e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 2.05e-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) = 11882.0951945
delta logL = 0.0229420041251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11882.0937077
delta logL = 0.0244288376289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.427       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6131       1.0000          .0000       10.000    
     3 'Normalizat'    .89433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97972       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=   11882.09     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      295 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.327        51.036        .33201E-03    .17121E-05
   2  Index         1.6092        1.9941        .10511E-01   -.11405E-03
   3  Normalizat    .89424        .21486        .38586E-03   -.23571E-05
   4  Prefactor     .97987        .11704        .20270E-03   -.93105E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3272
  Index      = 1.60917
  Normalizat = 0.894237
  Prefactor  = 0.979874
 **********
 **   18 **HESSE 
 **********

 FCN=   11882.09     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.327        56.875        .13281E-04   -1.4502    
   2  Index         1.6092        2.1915        .21021E-02   -.74526    
   3  Normalizat    .89424        .21535        .15434E-04   -.96663    
   4  Prefactor     .97987        .11720        .81078E-05   -.93403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39634e-12
Minuit parameter uncertainties:
  1  56.9601
  2  2.34803
  3  0.215553
  4  0.117228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464653': 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) = 11882.0937052
delta logL = 0.0244313009553

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  3.633e+01  5.696e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.609e+00  2.348e+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:  9.799e-01  1.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  8.942e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.36
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.61 +/- 2.35
Photon Flux (Free Index): 1.65e-08 +/- 9.94e-08
Energy Flux (Free Index): 3.63e-05 +/- 7.24e-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/464653/cmap_HighResolution_263952001_264211201_4FGL_J2245.9+1544_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.86e-08', energy_flux2='3.63e-05', photon_flux_error='2.71e-08', dlogl='2.44e-02', energy_flux='2.92e-05', photon_flux2='1.65e-08', job_status='DONE', time_completed='2021-09-28 20:21:55.596922', photon_index_error2='2.35', photon_index2='1.61', ts='11.27', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='7.24e-05', EG='0.88', time_epoch_completed='1632885715.6', return_code='0', job_id='464653', GAL2='0.98', EG2='0.89', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='9.94e-08', ts2='11.36', photon_index='1.96' WHERE bin_id='95' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 462580: <4FGL_J2245.9+1544_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin95 341.491 15.7479 263952001 264211201 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 :                                   800.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 464653: <4FGL_J2245.9+1544_daily_bin95> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin95> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 20:06:30 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:06:32 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:06:32 2021
Terminated at Tue Sep 28 20:21:56 2021
Results reported at Tue Sep 28 20:21:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin95 341.491 15.7479 263952001 264211201 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 :                                   807.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

