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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1495
RA = 341.491, Dec = 15.7479
tmin = 626832001, tmax = 627091201
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='468863', job_status='RUN', time_executed='2021-09-28 20:23:58.814043', time_epoch_executed='1632885838.81' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468863/ft1_4FGL_J2245.9+1544_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468863/ft2_4FGL_J2245.9+1544_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468863/ft1_4FGL_J2245.9+1544_daily_bin1495.fits outfile=/scratch/kocevski/468863/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1495.fits ra=341.491 dec=15.7479 rad=12.0 tmin=626832001.0 tmax=627091201.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.00
user 2.79
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/468863/ft2_4FGL_J2245.9+1544_daily_bin1495.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/468863/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/468863/ft1_filtered_4FGL_J2245.9+1544_daily_bin1495.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/468863/ft1_filtered_4FGL_J2245.9+1544_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/468863/ft2_4FGL_J2245.9+1544_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/468863/ltcube_626832001_627091201_4FGL_J2245.9+1544_daily_bin1495.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/468863/ft2_4FGL_J2245.9+1544_daily_bin1495.fits
.....................!
real 12.21
user 11.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468863/ft1_filtered_4FGL_J2245.9+1544_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/468863/ft2_4FGL_J2245.9+1544_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/468863/ltcube_626832001_627091201_4FGL_J2245.9+1544_daily_bin1495.fits outfile=/scratch/kocevski/468863/expmap_626832001_627091201_4FGL_J2245.9+1544_daily_bin1495.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/468863/ltcube_626832001_627091201_4FGL_J2245.9+1544_daily_bin1495.fits
.....................!
real 190.61
user 184.48
sys 5.76

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/468863/ft1_filtered_4FGL_J2245.9+1544_daily_bin1495.fits scfile=/scratch/kocevski/468863/ft2_4FGL_J2245.9+1544_daily_bin1495.fits outfile=/scratch/kocevski/468863/cmap_626832001_627091201_4FGL_J2245.9+1544_daily_bin1495.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468863/ft1_filtered_4FGL_J2245.9+1544_daily_bin1495.fits scfile=/scratch/kocevski/468863/ft2_4FGL_J2245.9+1544_daily_bin1495.fits outfile=/scratch/kocevski/468863/cmap_HighResolution_626832001_627091201_4FGL_J2245.9+1544_daily_bin1495.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=341.491 yref=15.7479 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11213E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27660E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7181       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5578       1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13738E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28669E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12935E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.053       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1532       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0395       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9816       1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3564       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79429       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=   8019.509     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2417 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .18263        .32068E-07** at limit **
   2  Prefactor     .10000E-03    6.9518        .11743E-06** at limit **
   3  norm          .10000E-03    2.0370        .16869E-06** at limit **
   4  Prefactor     .10001E-03    5.6677        .19058E-06** at limit **
   5  Prefactor     .10000E-03    24.193        .55800E-06** at limit **
   6  Prefactor     .42762        .18676       -.43055E-08   -.14399E-03
   7  Prefactor     4.7176        4.4451       -.50035E-06    .98686E-04
   8  norm          2.5575        1.5404       -.76832E-08   -.73141E-04
   9  Prefactor     71.132        35.620       -.73281E-06   -.59050E-04
  10  Prefactor     .10000E-03    5.8844        .19643E-06** at limit **
  11  Prefactor     12.885        15.934        .89601E-07    .28656E-04
  12  Prefactor     .15557        .14314       -.68144E-07    .30611E-04
  13  Prefactor     .10002E-03    7.9139        .38039E-06** at limit **
  14  Prefactor     9.0614        25.636       -.10984E-05   -.18869E-04
  15  Prefactor     .10085E-03    6.4516       -.77649E-06** at limit **
  16  Prefactor     18.052        12.322       -.20257E-06    .31848E-04
  17  Prefactor     .10000E-03    71.151       -.52828E-05** at limit **
  18  Prefactor     9.1545        9.3346        .63446E-07    .77941E-04
  19  Prefactor     .10000E-03    16.799        .16656E-05** at limit **
  20  norm          4.0398        7.8269        .53225E-06    .88001E-04
  21  Prefactor     8.9831        9.6304        .12772E-06    .77583E-04
  22  norm          .10000E-03    70.804       -.54052E-05** at limit **
  23  Normalizat    1.3561        .21251        .65564E-06    .14985E-04
  24  Prefactor     .79448        .10817       -.56441E-06    .79153E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.427621
  Prefactor  = 4.71759
  norm       = 2.55753
  Prefactor  = 71.1317
  Prefactor  = 0.000100001
  Prefactor  = 12.8845
  Prefactor  = 0.155569
  Prefactor  = 0.000100015
  Prefactor  = 9.06144
  Prefactor  = 0.000100848
  Prefactor  = 18.0519
  Prefactor  = 0.000100001
  Prefactor  = 9.15447
  Prefactor  = 0.0001
  norm       = 4.0398
  Prefactor  = 8.98307
  norm       = 0.000100001
  Normalizat = 1.35608
  Prefactor  = 0.794479
 **********
 **   18 **HESSE 
 **********

 FCN=   8019.509     FROM HESSE     STATUS=OK           425 CALLS     2842 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .18793        .74713E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.7309        .24721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    88.642        .39996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.289        .39775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42762        .18114        .23631E-04   -1.5577    
   7  Prefactor     4.7176        4.5879        .91917E-03   -1.5274    
   8  norm          2.5575        1.5269        .83189E-04   -1.5388    
   9  Prefactor     71.132        35.472        .47599E-04   -1.4019    
  10  Prefactor     .10000E-03    30.597        .40277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.885        15.882        .11160E-03   -1.4990    
  12  Prefactor     .15557        .13581        .29353E-03   -1.5629    
  13  Prefactor     .10002E-03    83.285        .47759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0614        25.611        .13321E-03   -1.5106    
  15  Prefactor     .10085E-03    9.6689        .59115E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.052        12.317        .94264E-04   -1.4858    
  17  Prefactor     .10000E-03    72.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1545        9.3370        .13247E-03   -1.5103    
  19  Prefactor     .10000E-03    16.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0398        7.8329        .20063E-03   -1.5306    
  21  Prefactor     8.9831        9.6235        .13374E-03   -1.5108    
  22  norm          .10000E-03    72.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3561        .24460        .29680E-03   -.81908    
  24  Prefactor     .79448        .12663        .20233E-03   -.99932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13374e-09
Minuit parameter uncertainties:
  1  9.58304e-08
  2  3.81012e-06
  3  0.000174977
  4  0.00133835
  5  0.000277077
  6  0.181145
  7  4.58829
  8  1.52693
  9  35.4827
  10  0.000419195
  11  15.8872
  12  0.135809
  13  0.00226127
  14  25.6423
  15  0.00572676
  16  12.3192
  17  0.00065275
  18  9.33845
  19  9.32232e-05
  20  7.83485
  21  9.62512
  22  0.000625608
  23  0.244807
  24  0.126679
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  7.113e+01  3.548e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  7.945e-01  1.267e-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.356e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.23
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 7.20e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 5.45e-05 +/- 2.72e-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) = 8019.46481463
delta logL = 0.0437545089862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8019.45917728
delta logL = 0.0493918628454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.761       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8170       1.0000          .0000       10.000    
     3 'Normalizat'    1.3695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79169       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=   8019.459     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      315 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.762        50.130        .44692E-04    .18397E-03
   2  Index         1.8170        .49175        .65369E-02    .12806E-03
   3  Normalizat    1.3696        .23776        .29567E-03    .18648E-04
   4  Prefactor     .79168        .12651        .20272E-03    .35835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.7616
  Index      = 1.81703
  Normalizat = 1.36957
  Prefactor  = 0.791679
 **********
 **   18 **HESSE 
 **********

 FCN=   8019.459     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.762        48.252        .89384E-05   -1.3908    
   2  Index         1.8170        .47263        .26148E-03   -.69007    
   3  Normalizat    1.3696        .23753        .11827E-04   -.81513    
   4  Prefactor     .79168        .12659        .81089E-05   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25651e-10
Minuit parameter uncertainties:
  1  48.2752
  2  0.473824
  3  0.23772
  4  0.126639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468863': 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) = 8019.45917728
delta logL = 0.0493918670309

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  8.076e+01  4.828e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.817e+00  4.738e-01  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  7.917e-01  1.266e-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.370e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.34
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.82 +/- 0.47
Photon Flux (Free Index): 5.75e-08 +/- 5.35e-08
Energy Flux (Free Index): 6.54e-05 +/- 5.27e-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/468863/cmap_HighResolution_626832001_627091201_4FGL_J2245.9+1544_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.20e-08', energy_flux2='6.54e-05', photon_flux_error='3.59e-08', dlogl='4.94e-02', energy_flux='5.45e-05', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-09-28 20:35:38.829055', photon_index_error2='0.47', photon_index2='1.82', ts='15.23', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='5.27e-05', EG='1.36', time_epoch_completed='1632886538.83', return_code='0', job_id='468863', GAL2='0.79', EG2='1.37', return_code2='0', energy_flux_error='2.72e-05', photon_flux_error2='5.35e-08', ts2='15.34', photon_index='1.96' WHERE bin_id='1495' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 468863: <4FGL_J2245.9+1544_daily_bin1495> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1495 341.491 15.7479 626832001 627091201 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 :                                   634.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

