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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin83
RA = 341.491, Dec = 15.7479
tmin = 260841601, tmax = 261100801
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='461527', job_status='RUN', time_executed='2021-09-28 19:59:28.350374', time_epoch_executed='1632884368.35' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='83'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461527/ft1_4FGL_J2245.9+1544_daily_bin83.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461527/ft2_4FGL_J2245.9+1544_daily_bin83.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461527/ft1_4FGL_J2245.9+1544_daily_bin83.fits outfile=/scratch/kocevski/461527/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin83.fits ra=341.491 dec=15.7479 rad=12.0 tmin=260841601.0 tmax=261100801.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/461527/ft2_4FGL_J2245.9+1544_daily_bin83.fits

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461527/ft1_filtered_4FGL_J2245.9+1544_daily_bin83.fits evtable="EVENTS" scfile=/scratch/kocevski/461527/ft2_4FGL_J2245.9+1544_daily_bin83.fits sctable="SC_DATA" expcube=/scratch/kocevski/461527/ltcube_260841601_261100801_4FGL_J2245.9+1544_daily_bin83.fits outfile=/scratch/kocevski/461527/expmap_260841601_261100801_4FGL_J2245.9+1544_daily_bin83.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/461527/ltcube_260841601_261100801_4FGL_J2245.9+1544_daily_bin83.fits
.....................!
real 192.06
user 185.99
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/461527/ft1_filtered_4FGL_J2245.9+1544_daily_bin83.fits scfile=/scratch/kocevski/461527/ft2_4FGL_J2245.9+1544_daily_bin83.fits outfile=/scratch/kocevski/461527/cmap_260841601_261100801_4FGL_J2245.9+1544_daily_bin83.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461527/ft1_filtered_4FGL_J2245.9+1544_daily_bin83.fits scfile=/scratch/kocevski/461527/ft2_4FGL_J2245.9+1544_daily_bin83.fits outfile=/scratch/kocevski/461527/cmap_HighResolution_260841601_261100801_4FGL_J2245.9+1544_daily_bin83.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40863       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6390       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0101       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9678       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5130       1.0000         .10000E-03   10000.    
    22 'norm      '    28.509       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0239       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=   7318.749     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2793 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9917        1.2971       -.21330E-08   -.14748E-03
   2  Prefactor     .10000E-03    10.950       -.15434E-07** at limit **
   3  norm          .10000E-03    6.6548        .24104E-08** at limit **
   4  Prefactor     .10000E-03    8.5846        .11245E-07** at limit **
   5  Prefactor     .10000E-03    4.6039        .43012E-09** at limit **
   6  Prefactor     .40864        .16499        .47851E-09    .14699E-02
   7  Prefactor     2.6392        1.9232       -.26640E-06   -.29912E-03
   8  norm          1.0079        1.7854       -.73526E-08   -.31580E-03
   9  Prefactor     .10000E-03    8.9952        .32070E-07** at limit **
  10  Prefactor     .10000E-03    24.091       -.38467E-08** at limit **
  11  Prefactor     15.283        18.596       -.13523E-07    .28838E-03
  12  Prefactor     .32372        .14425        .58172E-09   -.90331E-03
  13  Prefactor     .10000E-03    10.685       -.48631E-08** at limit **
  14  Prefactor     16.741        35.561       -.67763E-07    .29794E-03
  15  Prefactor     5.9675        6.5426       -.89882E-07   -.11193E-03
  16  Prefactor     .10000E-03    4.8260        .83348E-09** at limit **
  17  Prefactor     .10000E-03    17.414        .80636E-08** at limit **
  18  Prefactor     .49322        3.9030       -.35104E-07   -.26229E-04
  19  Prefactor     .10000E-03    8.1472       -.30853E-07** at limit **
  20  norm          5.7433        12.884       -.38604E-07    .31184E-03
  21  Prefactor     9.5148        12.667        .24659E-07   -.42362E-03
  22  norm          28.508        22.813       -.27192E-07    .55194E-03
  23  Normalizat    1.1733        .22837        .13419E-07   -.12696E-05
  24  Prefactor     1.0238        .12453        .32574E-07   -.84284E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99174
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.408636
  Prefactor  = 2.6392
  norm       = 1.00787
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 15.2829
  Prefactor  = 0.323718
  Prefactor  = 0.0001
  Prefactor  = 16.7411
  Prefactor  = 5.9675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.493216
  Prefactor  = 0.000100005
  norm       = 5.74331
  Prefactor  = 9.51484
  norm       = 28.5082
  Normalizat = 1.17329
  Prefactor  = 1.02382
 **********
 **   18 **HESSE 
 **********

 FCN=   7318.749     FROM HESSE     STATUS=OK           399 CALLS     3192 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9917        1.2953        .61531E-04   -1.5362    
   2  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6148        .17925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40864        .16461        .21237E-04   -1.5580    
   7  Prefactor     2.6392        5.0731        .12549E-02   -1.5383    
   8  norm          1.0079        1.4835        .14652E-02   -1.5507    
   9  Prefactor     .10000E-03    8.9988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.283        18.590        .10245E-03   -1.4926    
  12  Prefactor     .32372        .14290        .20295E-04   -1.5594    
  13  Prefactor     .10000E-03    10.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.741        35.593        .97887E-04   -1.4889    
  15  Prefactor     5.9675        6.9513        .82186E-03   -1.5219    
  16  Prefactor     .10000E-03    4.8391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .49322        8.8051        .32301E-02   -1.5568    
  19  Prefactor     .10000E-03    8.1602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7433        12.791        .16756E-03   -1.5229    
  21  Prefactor     9.5148        12.600        .12993E-03   -1.5091    
  22  norm          28.508        22.807        .75034E-04   -1.4640    
  23  Normalizat    1.1733        .26789        .32731E-03   -.87432    
  24  Prefactor     1.0238        .14806        .19646E-03   -.91940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41036e-08
Minuit parameter uncertainties:
  1  1.29533
  2  0.000202029
  3  6.17455e-05
  4  0.000154099
  5  1.1436e-05
  6  0.16461
  7  5.07394
  8  1.4836
  9  0.000415596
  10  4.46386e-05
  11  18.5973
  12  0.142896
  13  3.89492e-05
  14  35.6385
  15  6.9522
  16  3.20107e-06
  17  0.000158219
  18  4.16817
  19  0.000388221
  20  12.797
  21  12.6035
  22  22.814
  23  0.268202
  24  0.148121
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  4.156e-04  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.024e+00  1.481e-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.173e+00  2.682e-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: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461527/likelihoodResults_260841601_261100801_4FGL_J2245.9+1544_daily_bin83.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) = 7318.74916796
delta logL = -0.000527776025592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7318.7486443
delta logL = -4.11462315242e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14755E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9331       1.0000          .0000       10.000    
     3 'Normalizat'    1.1738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0236       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=   7318.749     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    61.266        .18142E-02** at limit **
   2  Index         1.8803        7.7287        .50000        .20743E-04
   3  Normalizat    1.1733        .14055E-01    .32731E-03    .78498E-04
   4  Prefactor     1.0238        .79916E-02    .19646E-03    .18581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101324
  Index      = 1.88026
  Normalizat = 1.17329
  Prefactor  = 1.02382
 **********
 **   18 **HESSE 
 **********

 FCN=   7318.749     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10132E-03    275.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8803        6.2621        .50000       -.67378    
   3  Normalizat    1.1733        .30668E-01    .13092E-04   -.87432    
   4  Prefactor     1.0238        .17437E-01    .39292E-04   -.91940    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49005e-08
Minuit parameter uncertainties:
  1  0.0384105
  2  390.641
  3  0.0306688
  4  0.0174371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461527': 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) = 7318.74863977
delta logL = 4.214944056e-07

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  1.013e-04  3.841e-02  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.880e+00  3.906e+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.024e+00  1.744e-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:  1.173e+00  3.067e-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/461527/cmap_HighResolution_260841601_261100801_4FGL_J2245.9+1544_daily_bin83.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-28 20:11:01.330334', job_id='461527', GAL2='1.02', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632885061.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='83' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:11:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 461527: <4FGL_J2245.9+1544_daily_bin83> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin83> 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) <bullet0119>, 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:11:01 2021
Results reported at Tue Sep 28 20:11:01 2021

Your job looked like:

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

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

