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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin64
RA = 341.491, Dec = 15.7479
tmin = 255916801, tmax = 256176001
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='461498', job_status='RUN', time_executed='2021-09-28 19:57:44.869565', time_epoch_executed='1632884264.87' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461498/ft1_4FGL_J2245.9+1544_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461498/ft2_4FGL_J2245.9+1544_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461498/ft1_4FGL_J2245.9+1544_daily_bin64.fits outfile=/scratch/kocevski/461498/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin64.fits ra=341.491 dec=15.7479 rad=12.0 tmin=255916801.0 tmax=256176001.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.44
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461498/ft1_filtered_4FGL_J2245.9+1544_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/461498/ft2_4FGL_J2245.9+1544_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/461498/ltcube_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.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/461498/ft2_4FGL_J2245.9+1544_daily_bin64.fits
.....................!
real 12.71
user 12.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461498/ft1_filtered_4FGL_J2245.9+1544_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/461498/ft2_4FGL_J2245.9+1544_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/461498/ltcube_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.fits outfile=/scratch/kocevski/461498/expmap_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.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/461498/ltcube_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.fits
.....................!
real 190.08
user 185.00
sys 4.74

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/461498/ft1_filtered_4FGL_J2245.9+1544_daily_bin64.fits scfile=/scratch/kocevski/461498/ft2_4FGL_J2245.9+1544_daily_bin64.fits outfile=/scratch/kocevski/461498/cmap_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.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/461498/ft1_filtered_4FGL_J2245.9+1544_daily_bin64.fits scfile=/scratch/kocevski/461498/ft2_4FGL_J2245.9+1544_daily_bin64.fits outfile=/scratch/kocevski/461498/cmap_HighResolution_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0880       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50825E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12837E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .57248E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.027       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57634       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9336       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23164E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .40141E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.894       1.0000         .10000E-03   10000.    
    20 'norm      '    16.661       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3871       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81787       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1301       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=   7577.658     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2779 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2904        1.0515        .14063E-07   -.45317E-04
   2  Prefactor     .10000E-03    18.528        .38127E-06** at limit **
   3  norm          .10000E-03    1.4565        .62407E-07** at limit **
   4  Prefactor     7.0934        11.190        .35530E-05    .21378E-04
   5  Prefactor     5.1985        8.4895        .31007E-06   -.85914E-05
   6  Prefactor     .50847E-01    .12780        .20757E-07   -.16112E-02
   7  Prefactor     .10001E-03    3.5013        .34127E-06** at limit **
   8  norm          .16166E-01    .68790        .95525E-07   -.25728E-03
   9  Prefactor     .10000E-03    40.876        .56573E-07** at limit **
  10  Prefactor     .10000E-03    17.260        .38495E-06** at limit **
  11  Prefactor     27.016        27.905       -.97842E-08   -.29931E-04
  12  Prefactor     .57638        .18525        .47708E-08   -.19352E-03
  13  Prefactor     4.9279        9.0114        .33329E-06   -.43273E-05
  14  Prefactor     15.097        38.860       -.60828E-06   -.11761E-03
  15  Prefactor     .10000E-03    2.3296        .45345E-07** at limit **
  16  Prefactor     .10000E-03    13.234       -.49416E-07** at limit **
  17  Prefactor     .10000E-03    90.360        .14137E-05** at limit **
  18  Prefactor     .10001E-03    3.8130       -.33048E-06** at limit **
  19  Prefactor     19.888        18.295       -.11042E-06    .33824E-04
  20  norm          16.664        11.679        .45221E-07    .43665E-05
  21  Prefactor     8.3893        9.0886        .13436E-06    .68693E-05
  22  norm          .10000E-03    4.9592        .22971E-07** at limit **
  23  Normalizat    .81774        .22471       -.77170E-06   -.46105E-04
  24  Prefactor     1.1299        .12240       -.33264E-06   -.96065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.0934
  Prefactor  = 5.19852
  Prefactor  = 0.0508472
  Prefactor  = 0.000100009
  norm       = 0.0161664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0163
  Prefactor  = 0.576379
  Prefactor  = 4.92791
  Prefactor  = 15.0967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 19.8879
  norm       = 16.6638
  Prefactor  = 8.38928
  norm       = 0.0001
  Normalizat = 0.817743
  Prefactor  = 1.12992
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.658     FROM HESSE     STATUS=OK           411 CALLS     3190 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2904        1.0510        .27126E-04   -1.5405    
   2  Prefactor     .10000E-03    18.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4689        .10259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0934        11.182        .75338E-03   -1.5175    
   5  Prefactor     5.1985        8.4806        .17636E-03   -1.5252    
   6  Prefactor     .50847E-01    .12611        .43860E-03   -1.5663    
   7  Prefactor     .10001E-03    19.878        .30931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .16166E-01    .90703        .27757E-01   -1.5683    
   9  Prefactor     .10000E-03    41.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.016        28.022        .77060E-04   -1.4668    
  12  Prefactor     .57638        .18506        .18920E-04   -1.5556    
  13  Prefactor     4.9279        8.9960        .18107E-03   -1.5264    
  14  Prefactor     15.097        38.780        .10291E-03   -1.4931    
  15  Prefactor     .10000E-03    2.3368        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    91.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    16.086        .31908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.888        18.016        .89798E-04   -1.4816    
  20  norm          16.664        11.673        .98123E-04   -1.4891    
  21  Prefactor     8.3893        9.0804        .13843E-03   -1.5129    
  22  norm          .10000E-03    4.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81774        .25455        .36666E-03   -.99414    
  24  Prefactor     1.1299        .14051        .18151E-03   -.88516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32128e-08
Minuit parameter uncertainties:
  1  1.05102
  2  3.24364e-05
  3  1.21917e-06
  4  11.1858
  5  8.48257
  6  0.126114
  7  0.000829596
  8  0.24144
  9  2.64038e-05
  10  2.86276e-06
  11  28.0354
  12  0.185057
  13  8.99851
  14  38.8449
  15  1.65844e-06
  16  2.33847e-05
  17  0.000384339
  18  0.000719333
  19  18.0209
  20  11.6742
  21  9.08187
  22  2.80905e-06
  23  0.254917
  24  0.140558
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.640e-05  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.130e+00  1.406e-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.177e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 7.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461498/likelihoodResults_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.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): 102
logL (Free Index) = 7577.65822974
delta logL = -0.000115582246508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7577.65811389
delta logL = 2.68795702141e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0802       1.0000          .0000       10.000    
     3 'Normalizat'    .81774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1299       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=   7577.658     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      253 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.6894        .90712E-02** at limit **
   2  Index         2.1520        8.8416        .50000       -.11767E-04
   3  Normalizat    .81774        .15310E-02    .82810E-01    .74254E-04
   4  Prefactor     1.1299        .88101E-03    .36547E-01   -.28121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.15203
  Normalizat = 0.817744
  Prefactor  = 1.12992
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.658     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    585.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1520        6.0671        .50000       -.60601    
   3  Normalizat    .81774        .15508E-01    .36666E-03   -.99414    
   4  Prefactor     1.1299        .89448E-02    .18151E-03   -.88516    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76441e-07
Minuit parameter uncertainties:
  1  0.00497633
  2  159.241
  3  0.015508
  4  0.0089448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461498': 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): 102
logL (Free Index) = 7577.65811367
delta logL = 4.89408193971e-07

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.976e-03  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.152e+00  1.592e+02  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.130e+00  8.945e-03  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.177e-01  1.551e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 341.491 15.748

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/461498/cmap_HighResolution_255916801_256176001_4FGL_J2245.9+1544_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='7.06e-08', time_completed='2021-09-28 20:09:46.871925', job_id='461498', GAL2='1.13', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632884986.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='64' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:09:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 461498: <4FGL_J2245.9+1544_daily_bin64> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin64> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:55:41 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:55:42 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:42 2021
Terminated at Tue Sep 28 20:09:47 2021
Results reported at Tue Sep 28 20:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin64 341.491 15.7479 255916801 256176001 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 :                                   721.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             340.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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

