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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin489
RA = 340.99, Dec = 20.3565
tmin = 366076801, tmax = 366336001
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='448270', job_status='RUN', time_executed='2021-09-28 19:13:02.532497', time_epoch_executed='1632881582.53' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448270

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448270/ft1_4FGL_J2243.9+2021_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448270/ft1_4FGL_J2243.9+2021_daily_bin489.fits outfile=/scratch/kocevski/448270/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin489.fits ra=340.99 dec=20.3565 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.31
user 5.08
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.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/448270/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin489.fits evtable="EVENTS" outfile="/scratch/kocevski/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/448270/ltcube_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.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/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits
.....................!
real 15.74
user 15.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/448270/ltcube_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.fits outfile=/scratch/kocevski/448270/expmap_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.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/448270/ltcube_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.fits
.....................!
real 190.64
user 185.24
sys 5.05

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.9+2021 @ 340.99 20.3565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits scfile=/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits outfile=/scratch/kocevski/448270/cmap_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.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=340.99 yref=20.3565 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/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits scfile=/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits outfile=/scratch/kocevski/448270/cmap_HighResolution_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.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=340.99 yref=20.3565 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/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448270/Model_4FGL_J2243.9+2021_daily_bin489.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/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits.....................!
real 81.50
user 80.17
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits', '/scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits', expMap='/scratch/kocevski/448270/expmap_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.fits', expCube='/scratch/kocevski/448270/ltcube_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/448270/Model_4FGL_J2243.9+2021_daily_bin489.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.9+2021'

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/448270/ft1_filtered_4FGL_J2243.9+2021_daily_bin489.fits
Spacecraft file(s): /scratch/kocevski/448270/ft2_4FGL_J2243.9+2021_daily_bin489.fits
Exposure map: /scratch/kocevski/448270/expmap_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.fits
Exposure cube: /scratch/kocevski/448270/ltcube_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/448270/Model_4FGL_J2243.9+2021_daily_bin489.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) = 7861.74639936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.392       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.054       1.0000         .10000E-03   10000.    
    10 'norm      '    .39562       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50778E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.082       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.284       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18558E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.733       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3135       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7861.699     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2940 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.056        .27994E-06** at limit **
   2  norm          .10000E-03    .35446        .84345E-07** at limit **
   3  Prefactor     15.390        15.589       -.11882E-06   -.36657E-05
   4  norm          .10000E-03    1.5830        .60770E-07** at limit **
   5  Prefactor     .10000E-03    7.3251        .45772E-06** at limit **
   6  Prefactor     .10000E-03    23.568       -.65283E-06** at limit **
   7  Prefactor     7.5030        11.515       -.81770E-07    .47536E-05
   8  Prefactor     1.0758        .27055        .14607E-07    .11176E-02
   9  Prefactor     10.053        8.3739       -.10141E-07    .14643E-04
  10  norm          .39503        .72521        .38384E-06    .51060E-03
  11  Prefactor     .10000E-03    8.3751       -.29753E-06** at limit **
  12  norm          1.0438        1.0420        .19755E-07    .13088E-03
  13  Prefactor     22.198        36.259        .28294E-06   -.55098E-05
  14  Prefactor     .10000E-03    3.3260        .71582E-07** at limit **
  15  Prefactor     .10000E-03    15.034        .33907E-07** at limit **
  16  Prefactor     .50647E-01    .12548       -.25064E-06    .11049E-02
  17  Prefactor     12.082        11.376       -.80740E-06   -.11134E-03
  18  Prefactor     .10000E-03    3.8154        .25194E-06** at limit **
  19  Prefactor     .10000E-03    60.672       -.47589E-05** at limit **
  20  Prefactor     19.282        18.556        .93238E-07    .16525E-04
  21  Prefactor     .10000E-03    6.4439       -.28705E-07** at limit **
  22  Prefactor     .10000E-03    9.9653        .11868E-05** at limit **
  23  Prefactor     29.726        24.619        .12812E-06    .21414E-04
  24  Normalizat    1.3133        .22114       -.87294E-06    .12743E-03
  25  Prefactor     .87740        .11323        .31683E-06    .10509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3903
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.50305
  Prefactor  = 1.07582
  Prefactor  = 10.0532
  norm       = 0.39503
  Prefactor  = 0.0001
  norm       = 1.0438
  Prefactor  = 22.1983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0506473
  Prefactor  = 12.082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.726
  Normalizat = 1.31334
  Prefactor  = 0.877401
 **********
 **   18 **HESSE 
 **********

 FCN=   7861.699     FROM HESSE     STATUS=OK           435 CALLS     3375 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .59980        .10220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.390        15.589        .10209E-03   -1.4923    
   4  norm          .10000E-03    1.5896        .10895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5030        11.548        .14643E-03   -1.5160    
   8  Prefactor     1.0758        .27078        .21871E-04   -1.5501    
   9  Prefactor     10.053        8.3862        .12637E-03   -1.5074    
  10  norm          .39503        .71698        .10678E-02   -1.5582    
  11  Prefactor     .10000E-03    8.4063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0438        1.0413        .88159E-04   -1.5504    
  13  Prefactor     22.198        36.635        .85076E-04   -1.4765    
  14  Prefactor     .10000E-03    3.3327        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .50647E-01    .12773        .40662E-03   -1.5663    
  17  Prefactor     12.082        11.494        .57624E-03   -1.5013    
  18  Prefactor     .10000E-03    3.8638        .16932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    59.450        .49705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.282        18.561        .91207E-04   -1.4829    
  21  Prefactor     .10000E-03    6.4500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.726        24.630        .73477E-04   -1.4617    
  24  Normalizat    1.3133        .26000        .31236E-03   -.83169    
  25  Prefactor     .87740        .13386        .20038E-03   -.96935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92241e-10
Minuit parameter uncertainties:
  1  3.17299e-05
  2  4.41152e-06
  3  15.593
  4  3.96057e-07
  5  3.16476e-05
  6  0.000127902
  7  11.5518
  8  0.270783
  9  8.38714
  10  0.717
  11  2.90775e-05
  12  1.04134
  13  36.6718
  14  5.75216e-06
  15  8.75108e-05
  16  0.127735
  17  11.4963
  18  1.49922e-05
  19  9.59857e-05
  20  18.5669
  21  7.31772e-06
  22  3.25447e-05
  23  24.6384
  24  0.260257
  25  0.133909
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.044e+00  1.041e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.774e-01  1.339e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.313e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.02
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.53e-05

TS (Fixed Index): 3.02
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 4.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448270/likelihoodResults_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.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) = 7861.60798511
delta logL = 0.0908216241951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7861.60509205
delta logL = 0.0937146836895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1222       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4076       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7861.605     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      218 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1228        58.500        .11074E-01   -.66834E-04
   2  alpha         1.4080        4.0843        .47737       -.17625E-04
   3  Normalizat    1.3159        .19132        .70533E-01    .13283E-04
   4  Prefactor     .87661        .86975E-01    .44706E-01    .94810E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12279
  alpha      = 1.40803
  Normalizat = 1.31592
  Prefactor  = 0.87661
 **********
 **   18 **HESSE 
 **********

 FCN=   7861.605     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1228        1.0801        .88284E-04   -1.5496    
   2  alpha         1.4080        .65093        .21110E-01   -.45203    
   3  Normalizat    1.3159        .24520        .31208E-03   -.83092    
   4  Prefactor     .87661        .13245        .20044E-03   -.96963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34044e-10
Minuit parameter uncertainties:
  1  1.08015
  2  0.660377
  3  0.245418
  4  0.132497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448270': 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) = 7861.60509168
delta logL = 0.0937150536047

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.123e+00  1.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.408e+00  6.604e-01  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.766e-01  1.325e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.316e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.41 +/- 0.66
Photon Flux (Free Index): 9.35e-09 +/- 1.01e-08
Energy Flux (Free Index): 2.73e-05 +/- 4.43e-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/448270/cmap_HighResolution_366076801_366336001_4FGL_J2243.9+2021_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-05', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='2.73e-05', photon_flux_error='1.18e-08', dlogl='9.37e-02', energy_flux='1.53e-05', photon_flux2='9.35e-09', job_status='DONE', time_completed='2021-09-28 19:26:05.762259', photon_index_error2='0.66', photon_index2='1.41', ts='3.02', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.76e-08', energy_flux_error2='4.43e-05', EG='1.31', time_epoch_completed='1632882365.76', return_code='0', job_id='448270', GAL2='0.88', EG2='1.32', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.01e-08', ts2='3.21', photon_index='1.72' WHERE bin_id='489' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 448270: <4FGL_J2243.9+2021_daily_bin489> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin489> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:50 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:52 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:10:52 2021
Terminated at Tue Sep 28 19:26:06 2021
Results reported at Tue Sep 28 19:26:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin489 340.99 20.3565 366076801 366336001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.9+2021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

