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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin82
RA = 341.491, Dec = 15.7479
tmin = 260582401, tmax = 260841601
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='461526', job_status='RUN', time_executed='2021-09-28 19:55:55.074898', time_epoch_executed='1632884155.07' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461526/ft1_4FGL_J2245.9+1544_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461526/ft2_4FGL_J2245.9+1544_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461526/ft1_4FGL_J2245.9+1544_daily_bin82.fits outfile=/scratch/kocevski/461526/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin82.fits ra=341.491 dec=15.7479 rad=12.0 tmin=260582401.0 tmax=260841601.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.57
user 1.39
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461526/ft1_filtered_4FGL_J2245.9+1544_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/461526/ft2_4FGL_J2245.9+1544_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/461526/ltcube_260582401_260841601_4FGL_J2245.9+1544_daily_bin82.fits outfile=/scratch/kocevski/461526/expmap_260582401_260841601_4FGL_J2245.9+1544_daily_bin82.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/461526/ltcube_260582401_260841601_4FGL_J2245.9+1544_daily_bin82.fits
.....................!
real 192.67
user 187.24
sys 5.12

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/461526/ft1_filtered_4FGL_J2245.9+1544_daily_bin82.fits scfile=/scratch/kocevski/461526/ft2_4FGL_J2245.9+1544_daily_bin82.fits outfile=/scratch/kocevski/461526/cmap_260582401_260841601_4FGL_J2245.9+1544_daily_bin82.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.14

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4053       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1255       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11243E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .72406       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7460       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.565       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14397       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8142       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4006       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.907       1.0000         .10000E-03   10000.    
    20 'norm      '    15.679       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .55389       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .78560       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1154       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=   7940.308     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2746 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4053        1.0263        .18122E-07   -.50896E-04
   2  Prefactor     7.1248        10.500        .64890E-06   -.40488E-03
   3  norm          3.5740        4.0294        .10250E-05    .37263E-03
   4  Prefactor     .10000E-03    3.3899        .75428E-06** at limit **
   5  Prefactor     .10000E-03    6.2790        .77214E-07** at limit **
   6  Prefactor     .72409        .20300        .89118E-08   -.51336E-03
   7  Prefactor     .10000E-03    4.6075        .49645E-07** at limit **
   8  norm          1.7460        1.2359       -.23846E-08    .23643E-04
   9  Prefactor     38.574        23.222        .25857E-05    .44748E-03
  10  Prefactor     .10000E-03    3.3978       -.79154E-06** at limit **
  11  Prefactor     .10000E-03    7.1090       -.20599E-06** at limit **
  12  Prefactor     .14399        .91369E-01   -.36335E-08   -.51883E-03
  13  Prefactor     4.8141        6.6694        .18771E-05   -.13339E-02
  14  Prefactor     12.210        29.790        .50887E-05    .15884E-03
  15  Prefactor     7.4003        8.1487        .11928E-06   -.77711E-04
  16  Prefactor     .10000E-03    11.821       -.12838E-06** at limit **
  17  Prefactor     12.741        20.732        .38097E-06    .17499E-04
  18  Prefactor     .10000E-03    7.7356        .30335E-06** at limit **
  19  Prefactor     18.912        18.425        .11341E-05    .11590E-03
  20  norm          15.669        16.096       -.42256E-06   -.12743E-03
  21  Prefactor     .54383        10.872        .31472E-06   -.59691E-04
  22  norm          .10000E-03    23.146        .28930E-06** at limit **
  23  Normalizat    .78565        .21884       -.14388E-05   -.61020E-04
  24  Prefactor     1.1153        .11894       -.18605E-06   -.93571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4053
  Prefactor  = 7.12482
  norm       = 3.57402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.724087
  Prefactor  = 0.0001
  norm       = 1.74601
  Prefactor  = 38.5743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.143986
  Prefactor  = 4.81413
  Prefactor  = 12.2096
  Prefactor  = 7.40028
  Prefactor  = 0.0001
  Prefactor  = 12.7412
  Prefactor  = 0.0001
  Prefactor  = 18.9123
  norm       = 15.6688
  Prefactor  = 0.543829
  norm       = 0.0001
  Normalizat = 0.78565
  Prefactor  = 1.11533
 **********
 **   18 **HESSE 
 **********

 FCN=   7940.308     FROM HESSE     STATUS=OK           405 CALLS     3151 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4053        1.0263        .26400E-04   -1.5398    
   2  Prefactor     7.1248        10.660        .75138E-03   -1.5174    
   3  norm          3.5740        4.0350        .18409E-03   -1.5330    
   4  Prefactor     .10000E-03    3.4100        .16059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.376        .42295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .72409        .20277        .20206E-04   -1.5538    
   7  Prefactor     .10000E-03    4.6994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7460        1.2378        .81224E-04   -1.5444    
   9  Prefactor     38.574        23.718        .32271E-03   -1.4465    
  10  Prefactor     .10000E-03    3.4179        .16065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .14399        .88827E-01    .20593E-04   -1.5632    
  13  Prefactor     4.8141        8.7943        .91676E-03   -1.5269    
  14  Prefactor     12.210        30.158        .11467E-03   -1.5009    
  15  Prefactor     7.4003        8.1261        .14743E-03   -1.5164    
  16  Prefactor     .10000E-03    11.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.741        20.743        .11223E-03   -1.4994    
  18  Prefactor     .10000E-03    7.9747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.912        18.415        .92110E-04   -1.4838    
  20  norm          15.669        17.772        .10115E-03   -1.4916    
  21  Prefactor     .54383        80.606        .45731E-02   -1.5560    
  22  norm          .10000E-03    23.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78565        .24652        .37103E-03   -1.0060    
  24  Prefactor     1.1153        .13637        .18258E-03   -.88978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20537e-08
Minuit parameter uncertainties:
  1  1.02627
  2  10.6627
  3  4.03527
  4  3.76445e-05
  5  1.47177e-05
  6  0.202774
  7  5.03862e-06
  8  1.23786
  9  23.7239
  10  3.59112e-05
  11  1.56688e-05
  12  0.088827
  13  8.79664
  14  30.1955
  15  8.12728
  16  4.11575e-06
  17  20.755
  18  7.6585e-06
  19  18.4208
  20  17.7779
  21  13.2587
  22  4.84209e-05
  23  0.246872
  24  0.136408
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
489   Normalization:  7.857e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.28
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.90e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.82e-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) = 7939.78225892
delta logL = 0.526021762807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7939.78182498
delta logL = 0.526455711903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.211       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5653       1.0000          .0000       10.000    
     3 'Normalizat'    .79817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7939.782     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      270 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.086        977.60        .12718E-02   -.42906E-06
   2  Index         1.5634        3.0339        .18659        .70681E-04
   3  Normalizat    .79807        .13039        .83205E-01    .32947E-04
   4  Prefactor     1.1119        .54616E-01    .37156E-01   -.19450E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.0864
  Index      = 1.56336
  Normalizat = 0.798072
  Prefactor  = 1.11195
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.782     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.086        41.796        .50874E-04   -1.4130    
   2  Index         1.5634        .37507        .65622E-02   -.75780    
   3  Normalizat    .79807        .23088        .36843E-03   -1.0014    
   4  Prefactor     1.1119        .13422        .18283E-03   -.89086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60444e-10
Minuit parameter uncertainties:
  1  41.8161
  2  0.375741
  3  0.231163
  4  0.134261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461526': 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) = 7939.7817966
delta logL = 0.526484083854

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  6.209e+01  4.182e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.563e+00  3.757e-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.112e+00  1.343e-01  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  7.981e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.34
Ra Dec: 341.491 15.748
Photon Index (Free Index): 1.56 +/- 0.38
Photon Flux (Free Index): 2.59e-08 +/- 1.98e-08
Energy Flux (Free Index): 6.62e-05 +/- 6.76e-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/461526/cmap_HighResolution_260582401_260841601_4FGL_J2245.9+1544_daily_bin82.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.90e-08', energy_flux2='6.62e-05', photon_flux_error='2.40e-08', dlogl='5.26e-01', energy_flux='2.95e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-09-28 20:06:39.138605', photon_index_error2='0.38', photon_index2='1.56', ts='10.28', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='6.76e-05', EG='0.79', time_epoch_completed='1632884799.14', return_code='0', job_id='461526', GAL2='1.11', EG2='0.80', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.98e-08', ts2='11.34', photon_index='1.96' WHERE bin_id='82' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:06:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 461526: <4FGL_J2245.9+1544_daily_bin82> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin82 341.491 15.7479 260582401 260841601 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 :                                   643.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            656 sec.

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

