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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin46
RA = 341.491, Dec = 15.7479
tmin = 251251201, tmax = 251510401
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='461472', job_status='RUN', time_executed='2021-09-28 19:58:51.097194', time_epoch_executed='1632884331.1' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461472/ft1_4FGL_J2245.9+1544_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461472/ft2_4FGL_J2245.9+1544_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461472/ft1_4FGL_J2245.9+1544_daily_bin46.fits outfile=/scratch/kocevski/461472/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin46.fits ra=341.491 dec=15.7479 rad=12.0 tmin=251251201.0 tmax=251510401.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.46
user 1.30
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461472/ft1_filtered_4FGL_J2245.9+1544_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/461472/ft2_4FGL_J2245.9+1544_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/461472/ltcube_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.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/461472/ft2_4FGL_J2245.9+1544_daily_bin46.fits
.....................!
real 12.68
user 12.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461472/ft1_filtered_4FGL_J2245.9+1544_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/461472/ft2_4FGL_J2245.9+1544_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/461472/ltcube_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.fits outfile=/scratch/kocevski/461472/expmap_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.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/461472/ltcube_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.fits
.....................!
real 190.00
user 184.97
sys 4.72

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/461472/ft1_filtered_4FGL_J2245.9+1544_daily_bin46.fits scfile=/scratch/kocevski/461472/ft2_4FGL_J2245.9+1544_daily_bin46.fits outfile=/scratch/kocevski/461472/cmap_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461472/ft1_filtered_4FGL_J2245.9+1544_daily_bin46.fits scfile=/scratch/kocevski/461472/ft2_4FGL_J2245.9+1544_daily_bin46.fits outfile=/scratch/kocevski/461472/cmap_HighResolution_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.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/461472/ft1_filtered_4FGL_J2245.9+1544_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/461472/ft2_4FGL_J2245.9+1544_daily_bin46.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461472/Model_4FGL_J2245.9+1544_daily_bin46.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/461472/ft1_filtered_4FGL_J2245.9+1544_daily_bin46.fits.....................!
real 89.25
user 87.91
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45505       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21458       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6265       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0564       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7841       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1533       1.0000         .10000E-03   10000.    
    14 'Prefactor '    91.684       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8640       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.931       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7040       1.0000         .10000E-03   10000.    
    20 'norm      '    13.053       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.1336       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93901       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99120       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=   8847.335     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2724 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45469        .61763        .26428E-06    .13349E-02
   2  Prefactor     .10000E-03    24.675        .52498E-06** at limit **
   3  norm          .10000E-03    1.6101        .56116E-07** at limit **
   4  Prefactor     .10000E-03    8.9532        .23087E-06** at limit **
   5  Prefactor     .10000E-03    7.3939        .14182E-06** at limit **
   6  Prefactor     .21458        .14185        .26972E-07   -.76945E-04
   7  Prefactor     1.6256        3.5169        .51591E-06   -.22442E-04
   8  norm          4.0560        1.9010        .26864E-08   -.24629E-04
   9  Prefactor     .10000E-03    14.803       -.71423E-07** at limit **
  10  Prefactor     .10000E-03    7.2839        .36478E-07** at limit **
  11  Prefactor     3.7785        26.931        .45365E-06   -.21900E-04
  12  Prefactor     2.1165        .25422       -.11894E-08   -.29912E-03
  13  Prefactor     5.1538        8.1122        .33877E-05   -.14824E-03
  14  Prefactor     91.683        40.277        .10198E-06   -.98373E-05
  15  Prefactor     5.8643        6.5022        .12688E-06   -.15547E-04
  16  Prefactor     .10000E-03    7.7498        .21863E-07** at limit **
  17  Prefactor     12.898        27.086       -.13076E-05   -.19188E-03
  18  Prefactor     .10000E-03    10.197        .28095E-07** at limit **
  19  Prefactor     1.7096        31.180        .23843E-05   -.23463E-05
  20  norm          13.051        9.5747        .24647E-08   -.53612E-05
  21  Prefactor     .10000E-03    7.9896        .53462E-07** at limit **
  22  norm          7.1335        9.0269       -.10103E-07   -.17665E-05
  23  Normalizat    .93900        .20707       -.82303E-06   -.55365E-04
  24  Prefactor     .99123        .11163       -.70769E-07   -.98071E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.454686
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.214578
  Prefactor  = 1.62556
  norm       = 4.05602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.7785
  Prefactor  = 2.11653
  Prefactor  = 5.15383
  Prefactor  = 91.6826
  Prefactor  = 5.86431
  Prefactor  = 0.0001
  Prefactor  = 12.8978
  Prefactor  = 0.0001
  Prefactor  = 1.70959
  norm       = 13.0509
  Prefactor  = 0.0001
  norm       = 7.13346
  Normalizat = 0.938996
  Prefactor  = 0.991226
 **********
 **   18 **HESSE 
 **********

 FCN=   8847.335     FROM HESSE     STATUS=OK           399 CALLS     3123 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45469        .52698        .86468E-03   -1.5573    
   2  Prefactor     .10000E-03    25.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6221        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .21458        .13857        .27397E-04   -1.5615    
   7  Prefactor     1.6256        3.4731        .25226E-03   -1.5453    
   8  norm          4.0560        1.9003        .86270E-04   -1.5305    
   9  Prefactor     .10000E-03    14.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7785        27.014        .20752E-03   -1.5319    
  12  Prefactor     2.1165        .25530        .15032E-04   -1.5417    
  13  Prefactor     5.1538        7.9789        .88548E-03   -1.5254    
  14  Prefactor     91.683        40.328        .41968E-04   -1.3790    
  15  Prefactor     5.8643        6.4940        .16584E-03   -1.5224    
  16  Prefactor     .10000E-03    7.7980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.898        27.340        .11139E-03   -1.4990    
  18  Prefactor     .10000E-03    10.503        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7096        31.153        .32217E-03   -1.5446    
  20  norm          13.051        9.5725        .11087E-03   -1.4985    
  21  Prefactor     .10000E-03    8.1150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.1335        9.0248        .15019E-03   -1.5174    
  23  Normalizat    .93900        .24157        .36150E-03   -.95103    
  24  Prefactor     .99123        .13137        .19672E-03   -.93023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72049e-10
Minuit parameter uncertainties:
  1  0.526988
  2  7.05939e-05
  3  2.27417e-07
  4  2.07407e-05
  5  1.43299e-07
  6  0.138574
  7  3.4735
  8  1.90035
  9  3.46435e-05
  10  7.11478e-06
  11  20.2187
  12  0.255304
  13  7.98053
  14  40.3405
  15  6.49478
  16  1.17104e-05
  17  27.3668
  18  2.20515e-05
  19  14.6043
  20  9.57358
  21  4.70787e-06
  22  9.02654
  23  0.241854
  24  0.13141
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
489   Normalization:  9.390e-01  2.419e-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: 6.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461472/likelihoodResults_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.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) = 8847.33548246
delta logL = -0.000321511795846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8847.335161
delta logL = -5.53045538254e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9722       1.0000          .0000       10.000    
     3 'Normalizat'    .93897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99123       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=   8847.335     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    316.62        .90712E-02** at limit **
   2  Index         1.9806        8.5929        .50000       -.47654E-05
   3  Normalizat    .93900        .24252E-01    .81662E-01    .31157E-04
   4  Prefactor     .99123        .13601E-01    .46157E-01    .58345E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.98057
  Normalizat = 0.938997
  Prefactor  = 0.991226
 **********
 **   18 **HESSE 
 **********

 FCN=   8847.335     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    979.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9806        5.2952        .50000       -.64837    
   3  Normalizat    .93900        .45693E-01    .36150E-03   -.95103    
   4  Prefactor     .99123        .25673E-01    .19672E-03   -.93023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6255e-09
Minuit parameter uncertainties:
  1  2.72469e-05
  2  32.9553
  3  0.0456948
  4  0.0256731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461472': 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) = 8847.33516093
delta logL = 1.86228135135e-08

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  2.725e-05  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.981e+00  3.296e+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:  9.912e-01  2.567e-02  0.000e+00  1.000e+01 ( 1.000e+00)
491        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
492        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
489   Normalization:  9.390e-01  4.569e-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/461472/cmap_HighResolution_251251201_251510401_4FGL_J2245.9+1544_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-28 20:11:48.498115', job_id='461472', GAL2='0.99', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632885108.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.86e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='46' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 461472: <4FGL_J2245.9+1544_daily_bin46> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin46 341.491 15.7479 251251201 251510401 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 :                                   778.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

