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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1105
RA = 341.491, Dec = 15.7479
tmin = 525744001, tmax = 526003201
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='467227', job_status='RUN', time_executed='2021-09-28 20:18:32.784020', time_epoch_executed='1632885512.78' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467227

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467227/ft1_4FGL_J2245.9+1544_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467227/ft2_4FGL_J2245.9+1544_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467227/ft1_4FGL_J2245.9+1544_daily_bin1105.fits outfile=/scratch/kocevski/467227/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1105.fits ra=341.491 dec=15.7479 rad=12.0 tmin=525744001.0 tmax=526003201.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 4.31
user 4.06
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467227/ft2_4FGL_J2245.9+1544_daily_bin1105.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/467227/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/467227/ft1_filtered_4FGL_J2245.9+1544_daily_bin1105.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467227/ft1_filtered_4FGL_J2245.9+1544_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/467227/ft2_4FGL_J2245.9+1544_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/467227/ltcube_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.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/467227/ft2_4FGL_J2245.9+1544_daily_bin1105.fits
.....................!
real 12.02
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467227/ft1_filtered_4FGL_J2245.9+1544_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/467227/ft2_4FGL_J2245.9+1544_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/467227/ltcube_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.fits outfile=/scratch/kocevski/467227/expmap_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.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/467227/ltcube_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.fits
.....................!
real 190.97
user 184.97
sys 5.63

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/467227/ft1_filtered_4FGL_J2245.9+1544_daily_bin1105.fits scfile=/scratch/kocevski/467227/ft2_4FGL_J2245.9+1544_daily_bin1105.fits outfile=/scratch/kocevski/467227/cmap_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467227/ft1_filtered_4FGL_J2245.9+1544_daily_bin1105.fits scfile=/scratch/kocevski/467227/ft2_4FGL_J2245.9+1544_daily_bin1105.fits outfile=/scratch/kocevski/467227/cmap_HighResolution_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4169       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8948       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35650E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .13211E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4136       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.432       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70395E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2374       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88871       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=   8631.598     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2856 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .46594        .39490E-09** at limit **
   2  Prefactor     9.4075        16.972        .21137E-05    .63333E-06
   3  norm          .10000E-03    2.1379       -.13329E-07** at limit **
   4  Prefactor     .10000E-03    8.9606       -.66128E-07** at limit **
   5  Prefactor     .10000E-03    8.0446       -.25224E-07** at limit **
   6  Prefactor     2.8946        .36818       -.20251E-08   -.75251E-06
   7  Prefactor     .10000E-03    4.1306        .23114E-07** at limit **
   8  norm          .10000E-03    .94092       -.19615E-07** at limit **
   9  Prefactor     27.900        28.305       -.61562E-06    .15828E-05
  10  Prefactor     .10000E-03    15.441       -.54104E-07** at limit **
  11  Prefactor     51.637        34.873       -.23276E-05   -.40947E-05
  12  Prefactor     .28948        .16676        .45416E-07    .27529E-03
  13  Prefactor     20.127        13.723        .40244E-06    .50485E-05
  14  Prefactor     .10000E-03    46.241       -.41894E-06** at limit **
  15  Prefactor     .10000E-03    6.5224        .56627E-08** at limit **
  16  Prefactor     8.4151        12.654        .31704E-06    .25484E-05
  17  Prefactor     61.425        42.192       -.51484E-05   -.11602E-05
  18  Prefactor     2.2139        1.4143        .24833E-07   -.40521E-03
  19  Prefactor     .10000E-03    9.4317        .22172E-07** at limit **
  20  norm          .10000E-03    4.5656        .78711E-08** at limit **
  21  Prefactor     .20309E-01    4.3050       -.70849E-07   -.39204E-05
  22  norm          .10000E-03    4.5002       -.31449E-08** at limit **
  23  Normalizat    1.2375        .22914        .71490E-06   -.15580E-04
  24  Prefactor     .88871        .11911       -.31781E-07    .33684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.40751
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89465
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 27.9001
  Prefactor  = 0.0001
  Prefactor  = 51.6374
  Prefactor  = 0.28948
  Prefactor  = 20.1266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.41509
  Prefactor  = 61.4249
  Prefactor  = 2.21386
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0203089
  norm       = 0.0001
  Normalizat = 1.23754
  Prefactor  = 0.888708
 **********
 **   18 **HESSE 
 **********

 FCN=   8631.598     FROM HESSE     STATUS=OK           409 CALLS     3265 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .48736        .12369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.4075        16.990        .13060E-03   -1.5094    
   3  norm          .10000E-03    2.1501        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8946        .36682        .18750E-04   -1.5368    
   7  Prefactor     .10000E-03    42.716        .36306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2674        .17496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.900        28.312        .75844E-04   -1.4651    
  10  Prefactor     .10000E-03    15.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.637        34.777        .55807E-04   -1.4270    
  12  Prefactor     .28948        .16438        .25600E-04   -1.5600    
  13  Prefactor     20.127        13.730        .89275E-04   -1.4810    
  14  Prefactor     .10000E-03    46.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4151        12.660        .13821E-03   -1.5128    
  17  Prefactor     61.425        42.178        .51194E-04   -1.4139    
  18  Prefactor     2.2139        8.3656        .13817E-02   -1.5410    
  19  Prefactor     .10000E-03    9.4523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .20309E-01    6.1363        .68215E-01   -1.5680    
  22  norm          .10000E-03    4.5003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2375        .27523        .35018E-03   -.85451    
  24  Prefactor     .88871        .14072        .21577E-03   -.96537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56695e-10
Minuit parameter uncertainties:
  1  9.63716e-07
  2  16.9983
  3  1.68376e-06
  4  3.13159e-06
  5  1.26921e-05
  6  0.366818
  7  0.000294782
  8  3.90524e-06
  9  28.3256
  10  5.88693e-06
  11  34.7907
  12  0.16438
  13  13.7323
  14  1.61071e-05
  15  5.1111e-06
  16  12.6645
  17  42.1982
  18  8.37
  19  3.3512e-07
  20  1.53883e-06
  21  0.704365
  22  1.61447e-07
  23  0.275559
  24  0.140781
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.790e+01  2.833e+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:  8.887e-01  1.408e-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.238e+00  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 341.491 15.748
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 2.17e-05

TS (Fixed Index): 1.91
Ra Dec: 341.491 15.748
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467227/likelihoodResults_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.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): 0
logL (Free Index) = 8631.59362638
delta logL = 0.00467697405475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8631.59075863
delta logL = 0.00754472924746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.432       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0674       1.0000          .0000       10.000    
     3 'Normalizat'    1.2333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88959       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=   8631.591     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.428        37.383        .79434E-04    .91484E-04
   2  Index         2.0677        .95631        .11452E-01    .54570E-04
   3  Normalizat    1.2330        .26564        .35068E-03    .16877E-03
   4  Prefactor     .88978        .14035        .21563E-03    .19465E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4277
  Index      = 2.06769
  Normalizat = 1.23297
  Prefactor  = 0.889783
 **********
 **   18 **HESSE 
 **********

 FCN=   8631.591     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.428        33.370        .15887E-04   -1.4699    
   2  Index         2.0677        .85384        .45808E-03   -.62668    
   3  Normalizat    1.2330        .26443        .14027E-04   -.85590    
   4  Prefactor     .88978        .14023        .86252E-05   -.96499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16135e-11
Minuit parameter uncertainties:
  1  33.394
  2  0.860298
  3  0.264715
  4  0.140285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467227': 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) = 8631.5907576
delta logL = 0.0075457594503

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.543e+01  3.339e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.068e+00  8.603e-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:  8.898e-01  1.403e-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.233e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 341.491 15.748
Photon Index (Free Index): 2.07 +/- 0.86
Photon Flux (Free Index): 3.34e-08 +/- 5.56e-08
Energy Flux (Free Index): 1.97e-05 +/- 2.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/467227/cmap_HighResolution_525744001_526003201_4FGL_J2245.9+1544_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-03', comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='1.97e-05', photon_flux_error='2.87e-08', dlogl='7.55e-03', energy_flux='2.14e-05', photon_flux2='3.34e-08', job_status='DONE', time_completed='2021-09-28 20:31:56.831924', photon_index_error2='0.86', photon_index2='2.07', ts='1.91', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.27e-05', EG='1.24', time_epoch_completed='1632886316.83', return_code='0', job_id='467227', GAL2='0.89', EG2='1.23', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='5.56e-08', ts2='1.93', photon_index='1.96' WHERE bin_id='1105' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:31:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 467227: <4FGL_J2245.9+1544_daily_bin1105> in cluster <slac> Done

Job <4FGL_J2245.9+1544_daily_bin1105> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:15:38 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:15: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 20:15:40 2021
Terminated at Tue Sep 28 20:31:57 2021
Results reported at Tue Sep 28 20:31:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1105 341.491 15.7479 525744001 526003201 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 :                                   800.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

