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


Performing analysis on: 4FGL_J2245.9+1544_daily_bin1115
RA = 341.491, Dec = 15.7479
tmin = 528336001, tmax = 528595201
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='467241', job_status='RUN', time_executed='2021-09-28 20:18:33.530897', time_epoch_executed='1632885513.53' WHERE source_name='4FGL J2245.9+1544' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467241/ft1_4FGL_J2245.9+1544_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467241/ft2_4FGL_J2245.9+1544_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467241/ft1_4FGL_J2245.9+1544_daily_bin1115.fits outfile=/scratch/kocevski/467241/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1115.fits ra=341.491 dec=15.7479 rad=12.0 tmin=528336001.0 tmax=528595201.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 3.46
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467241/ft2_4FGL_J2245.9+1544_daily_bin1115.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/467241/ft1_filteredMKT_4FGL_J2245.9+1544_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/467241/ft1_filtered_4FGL_J2245.9+1544_daily_bin1115.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467241/ft1_filtered_4FGL_J2245.9+1544_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/467241/ft2_4FGL_J2245.9+1544_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/467241/ltcube_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.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/467241/ft2_4FGL_J2245.9+1544_daily_bin1115.fits
.....................!
real 11.76
user 11.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467241/ft1_filtered_4FGL_J2245.9+1544_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/467241/ft2_4FGL_J2245.9+1544_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/467241/ltcube_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.fits outfile=/scratch/kocevski/467241/expmap_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.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/467241/ltcube_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.fits
.....................!
real 191.69
user 186.00
sys 5.38

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/467241/ft1_filtered_4FGL_J2245.9+1544_daily_bin1115.fits scfile=/scratch/kocevski/467241/ft2_4FGL_J2245.9+1544_daily_bin1115.fits outfile=/scratch/kocevski/467241/cmap_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467241/ft1_filtered_4FGL_J2245.9+1544_daily_bin1115.fits scfile=/scratch/kocevski/467241/ft2_4FGL_J2245.9+1544_daily_bin1115.fits outfile=/scratch/kocevski/467241/cmap_HighResolution_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5836       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.499       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0362       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1595       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2318       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.147       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.623       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3516       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80558       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0191       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=   8370.079     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2313 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .29989        .18395E-07** at limit **
   2  Prefactor     3.5833        9.1979        .45566E-05   -.98953E-03
   3  norm          .10000E-03    1.4204       -.26868E-07** at limit **
   4  Prefactor     9.0543        10.116        .54471E-06   -.31708E-03
   5  Prefactor     13.498        11.510       -.61435E-07    .93778E-05
   6  Prefactor     3.0362        .36440       -.98731E-09   -.66204E-04
   7  Prefactor     5.1598        5.4395       -.47751E-06    .61805E-03
   8  norm          1.8179        1.4314        .15205E-07    .90969E-06
   9  Prefactor     5.4103        19.281       -.14481E-06   -.20249E-04
  10  Prefactor     24.279        14.807       -.22294E-06   -.16315E-03
  11  Prefactor     .10000E-03    51.817       -.11552E-05** at limit **
  12  Prefactor     1.2317        .21889       -.21548E-08   -.11660E-04
  13  Prefactor     .10000E-03    15.296        .47527E-05** at limit **
  14  Prefactor     13.139        31.490       -.51708E-05   -.20188E-03
  15  Prefactor     12.621        8.8260        .44155E-06   -.52932E-03
  16  Prefactor     .10000E-03    5.7094        .19531E-05** at limit **
  17  Prefactor     .10000E-03    13.773       -.46311E-05** at limit **
  18  Prefactor     5.3524        6.2712        .28582E-07   -.68477E-04
  19  Prefactor     .10000E-03    5.5701       -.11184E-05** at limit **
  20  norm          .10000E-03    10.872        .22329E-06** at limit **
  21  Prefactor     .10000E-03    7.3315        .25230E-05** at limit **
  22  norm          .10000E-03    6.6663       -.29077E-05** at limit **
  23  Normalizat    .80571        .23377        .14000E-06   -.10277E-03
  24  Prefactor     1.0190        .12328       -.14411E-06   -.12425E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.58326
  norm       = 0.0001
  Prefactor  = 9.05426
  Prefactor  = 13.4979
  Prefactor  = 3.03617
  Prefactor  = 5.15982
  norm       = 1.81795
  Prefactor  = 5.41033
  Prefactor  = 24.2794
  Prefactor  = 0.0001
  Prefactor  = 1.23169
  Prefactor  = 0.000100004
  Prefactor  = 13.1388
  Prefactor  = 12.6209
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 5.35242
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Normalizat = 0.805705
  Prefactor  = 1.01899
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.079     FROM HESSE     STATUS=OK           397 CALLS     2710 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .30552        .48879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5833        11.071        .10674E-02   -1.5329    
   3  norm          .10000E-03    1.4312        .10647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0543        10.181        .66599E-03   -1.5106    
   5  Prefactor     13.498        11.520        .10902E-03   -1.4973    
   6  Prefactor     3.0362        .36527        .18068E-04   -1.5359    
   7  Prefactor     5.1598        5.4962        .88493E-03   -1.5254    
   8  norm          1.8179        1.4344        .92576E-04   -1.5438    
   9  Prefactor     5.4103        19.284        .17274E-03   -1.5243    
  10  Prefactor     24.279        14.823        .81301E-04   -1.4722    
  11  Prefactor     .10000E-03    53.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2317        .21907        .16784E-04   -1.5486    
  13  Prefactor     .10000E-03    15.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.139        32.022        .11047E-03   -1.4983    
  15  Prefactor     12.621        8.9075        .56373E-03   -1.4997    
  16  Prefactor     .10000E-03    5.7993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3524        6.2725        .17372E-03   -1.5245    
  19  Prefactor     .10000E-03    5.5983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.8282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80571        .26702        .40422E-03   -.99857    
  24  Prefactor     1.0190        .14216        .20222E-03   -.92099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32409e-09
Minuit parameter uncertainties:
  1  1.25603e-07
  2  11.0776
  3  1.54797e-06
  4  10.1834
  5  11.5223
  6  0.365271
  7  5.49674
  8  1.43443
  9  19.3066
  10  14.8252
  11  0.000218063
  12  0.21907
  13  0.000484751
  14  32.0641
  15  8.90843
  16  0.000132831
  17  0.000496794
  18  6.27323
  19  7.51211e-05
  20  6.16608e-06
  21  0.00018441
  22  0.000215696
  23  0.267457
  24  0.142209
Done.

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

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  5.410e+00  1.931e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  3.328e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
490    Prefactor:  1.019e+00  1.422e-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.057e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/467241/likelihoodResults_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.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) = 8370.07825939
delta logL = 0.000840687616801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8370.07350464
delta logL = 0.00559543709278

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2160       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4825       1.0000          .0000       10.000    
     3 'Normalizat'    .80407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0193       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8370.073     FROM MIGRAD    STATUS=FAILED        85 CALLS      277 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2140        1308.5        .27628E-03   -.13272E-02
   2  Index         2.4834        6.9853        .11166E-01   -.44449E-03
   3  Normalizat    .80276        .23274        .40484E-03   -.51143E-03
   4  Prefactor     1.0200        .11598        .20211E-03   -.94970E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8370.073     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      373 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2140        1308.5        .48418E-03   -.13272E-02
   2  Index         2.4834        6.9853        .39266E-02   -.44449E-03
   3  Normalizat    .80276        .23274        .24663E-03   -.51143E-03
   4  Prefactor     1.0200        .11598        .10373E-03   -.94970E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8370.073     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      405 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2090        53.544        .11051E-04   -.12551E-03
   2  Index         2.4847        6.2403        .44664E-03   -.22959E-04
   3  Normalizat    .80275        .25466        .16194E-04    .30609E-04
   4  Prefactor     1.0200        .14206        .40423E-04   -.32737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.20896
  Index      = 2.48468
  Normalizat = 0.80275
  Prefactor  = 1.02003
 **********
 **   18 **HESSE 
 **********

 FCN=   8370.073     FROM HESSE     STATUS=OK            23 CALLS      428 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2090        48.229        .22102E-05   -1.5411    
   2  Index         2.4847        6.2420        .17866E-04   -.52714    
   3  Normalizat    .80275        .25439        .32387E-05   -.99967    
   4  Prefactor     1.0200        .14199        .80846E-05   -.92065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24727e-10
Minuit parameter uncertainties:
  1  20.6617
  2  4.44303
  3  0.254772
  4  0.142041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467241': 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) = 8370.07349063
delta logL = 0.00560944427161

Extracting fit parameters...

4FGL J2245.9+1544
   Spectrum: PowerLaw
283    Prefactor:  2.209e+00  2.066e+01  1.000e-04  1.000e+04 ( 1.000e-14)
284        Index:  2.485e+00  4.443e+00  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.020e+00  1.420e-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.027e-01  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/467241/cmap_HighResolution_528336001_528595201_4FGL_J2245.9+1544_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-28 20:31:03.979896', job_id='467241', GAL2='1.02', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1632886263.98', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.61e-03', ts2='0.11', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1115' AND source_name='4FGL J2245.9+1544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 467241: <4FGL_J2245.9+1544_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2245.9+1544_daily_bin1115 341.491 15.7479 528336001 528595201 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 :                                   748.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

