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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin43
RA = 340.99, Dec = 20.3565
tmin = 250473601, tmax = 250732801
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='446577', job_status='RUN', time_executed='2021-09-28 19:05:51.808443', time_epoch_executed='1632881151.81' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446577

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446577/ft1_4FGL_J2243.9+2021_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446577/ft1_4FGL_J2243.9+2021_daily_bin43.fits outfile=/scratch/kocevski/446577/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin43.fits ra=340.99 dec=20.3565 rad=12.0 tmin=250473601.0 tmax=250732801.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.36
user 1.16
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.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/446577/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/446577/ltcube_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.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/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits
.....................!
real 12.73
user 12.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/446577/ltcube_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.fits outfile=/scratch/kocevski/446577/expmap_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.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/446577/ltcube_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.fits
.....................!
real 191.68
user 186.01
sys 5.19

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/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits scfile=/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits outfile=/scratch/kocevski/446577/cmap_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits scfile=/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits outfile=/scratch/kocevski/446577/cmap_HighResolution_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/446577/Model_4FGL_J2243.9+2021_daily_bin43.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/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits.....................!
real 110.14
user 108.64
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits', '/scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits', expMap='/scratch/kocevski/446577/expmap_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.fits', expCube='/scratch/kocevski/446577/ltcube_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/446577/Model_4FGL_J2243.9+2021_daily_bin43.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/446577/ft1_filtered_4FGL_J2243.9+2021_daily_bin43.fits
Spacecraft file(s): /scratch/kocevski/446577/ft2_4FGL_J2243.9+2021_daily_bin43.fits
Exposure map: /scratch/kocevski/446577/expmap_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.fits
Exposure cube: /scratch/kocevski/446577/ltcube_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/446577/Model_4FGL_J2243.9+2021_daily_bin43.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) = 11083.3950894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .87754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3681       1.0000         .10000E-03   10000.    
     4 'norm      '    .10845E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    101.79       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .99331E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7583       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7778       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8553       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.376       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12714E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59021       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1615       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11083.39     FROM MIGRAD    STATUS=CONVERGED   1013 CALLS     3362 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.044        .18142E-02** at limit **
   2  norm          .87741        .60216        .68063E-03    .24915E-02
   3  Prefactor     6.3670        7.8330        .15905E-03    .10007E-03
   4  norm          .10000E-03    12.913        .25287E-02** at limit **
   5  Prefactor     .10000E-03    4.1861        .18142E-02** at limit **
   6  Prefactor     101.84        78.704        .19925E-03   -.12126E-03
   7  Prefactor     .10000E-03    4.8452        .18142E-02** at limit **
   8  Prefactor     .99318E-01    .10647        .37418E-03   -.56105E-02
   9  Prefactor     .10000E-03    1.2816        .11636E-02** at limit **
  10  norm          .10000E-03    1.8222        .12203E-02** at limit **
  11  Prefactor     .10000E-03    29.924        .36285E-03** at limit **
  12  norm          1.7585        1.1553        .88360E-04   -.16906E-03
  13  Prefactor     .74330        135.01        .66834E-02    .87150E-04
  14  Prefactor     7.2881        6.6693        .14858E-03    .13298E-03
  15  Prefactor     .10000E-03    7.6722        .18142E-02** at limit **
  16  Prefactor     1.7778        .20502        .14875E-04    .50818E-02
  17  Prefactor     .10000E-03    2.7705        .17098E-02** at limit **
  18  Prefactor     1.8564        5.3459        .30601E-03    .53015E-03
  19  Prefactor     .10000E-03    4.9690        .18142E-02** at limit **
  20  Prefactor     3.8079        16.894        .20689E-03    .52093E-04
  21  Prefactor     .10000E-03    8.4133        .18142E-02** at limit **
  22  Prefactor     11.374        6.5665        .11878E-03    .37596E-03
  23  Prefactor     .10000E-03    8.3018        .18142E-02** at limit **
  24  Normalizat    .59009        .21803        .43689E-03    .67652E-03
  25  Prefactor     1.1615        .11730        .17848E-03    .87313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.877413
  Prefactor  = 6.36696
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 101.836
  Prefactor  = 0.0001
  Prefactor  = 0.0993184
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.7585
  Prefactor  = 0.743299
  Prefactor  = 7.2881
  Prefactor  = 0.0001
  Prefactor  = 1.77779
  Prefactor  = 0.0001
  Prefactor  = 1.85637
  Prefactor  = 0.0001
  Prefactor  = 3.80786
  Prefactor  = 0.0001
  Prefactor  = 11.3736
  Prefactor  = 0.0001
  Normalizat = 0.590091
  Prefactor  = 1.1615
 **********
 **   18 **HESSE 
 **********

 FCN=   11083.39     FROM HESSE     STATUS=OK           407 CALLS     3769 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .87741        .60204        .13613E-03   -1.5521    
   3  Prefactor     6.3670        7.8326        .63622E-05   -1.5203    
   4  norm          .10000E-03    13.163        .50574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1869        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     101.84        78.694        .39850E-04   -1.3686    
   7  Prefactor     .10000E-03    4.8471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .99318E-01    .10637        .14967E-04   -1.5645    
   9  Prefactor     .10000E-03    1.2817        .23271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.8383        .24406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.926        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7585        1.1552        .35344E-05   -1.5443    
  13  Prefactor     .74330        136.87        .26734E-03   -1.5536    
  14  Prefactor     7.2881        6.6689        .59432E-05   -1.5168    
  15  Prefactor     .10000E-03    7.6727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7778        .20386        .29750E-05   -1.5441    
  17  Prefactor     .10000E-03    2.7706        .34196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8564        5.3444        .12241E-04   -1.5435    
  19  Prefactor     .10000E-03    4.9701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8079        16.886        .82756E-05   -1.5318    
  21  Prefactor     .10000E-03    8.4138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.374        6.5653        .47512E-05   -1.5033    
  23  Prefactor     .10000E-03    8.3024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .59009        .21799        .17476E-04   -1.0841    
  25  Prefactor     1.1615        .11726        .35696E-04   -.87524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44258e-09
Minuit parameter uncertainties:
  1  8.26699e-06
  2  0.602047
  3  7.83384
  4  0.000186412
  5  7.45279e-06
  6  78.7751
  7  3.66933e-05
  8  0.106374
  9  4.49143e-07
  10  9.83466e-05
  11  9.79017e-05
  12  1.15526
  13  20.2186
  14  6.66959
  15  1.60736e-05
  16  0.203861
  17  1.09116e-05
  18  5.34576
  19  6.5689e-06
  20  16.0446
  21  3.99749e-05
  22  6.56568
  23  2.42449e-05
  24  0.218308
  25  0.117288
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.758e+00  1.155e+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:  1.162e+00  1.173e-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:  5.901e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.96
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.69e-05

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) = 11082.5472698
delta logL = 0.846801401316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11082.4466275
delta logL = 0.947443738023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0010       1.0000         .10000E-03   10000.    
     2 'alpha     '    .96999       1.0000          .0000       5.0000    
     3 'Normalizat'    .59303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1646       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=   11082.45     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0009        .68638        .13850E-01   -.10595E-02
   2  alpha         .96984        .36233        .42283       -.59167E-04
   3  Normalizat    .59304        .18791        .98376E-01    .39163E-03
   4  Prefactor     1.1646        .10537        .35528E-01    .83815E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00086
  alpha      = 0.969836
  Normalizat = 0.59304
  Prefactor  = 1.16457
 **********
 **   18 **HESSE 
 **********

 FCN=   11082.45     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0009        1.0636        .67471E-03   -1.5508    
   2  alpha         .96984        .53617        .18124E-01   -.65867    
   3  Normalizat    .59304        .20592        .43600E-03   -1.0828    
   4  Prefactor     1.1646        .11591        .17833E-03   -.87429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03283e-10
Minuit parameter uncertainties:
  1  1.06365
  2  0.542969
  3  0.206182
  4  0.115934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446577': 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) = 11082.4466274
delta logL = 0.947443850846

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.001e+00  1.064e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  9.698e-01  5.430e-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:  1.165e+00  1.159e-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:  5.930e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.86
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.97 +/- 0.54
Photon Flux (Free Index): 7.80e-09 +/- 6.95e-09
Energy Flux (Free Index): 7.17e-05 +/- 7.28e-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/446577/cmap_HighResolution_250473601_250732801_4FGL_J2243.9+2021_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='7.17e-05', photon_flux_error='1.30e-08', dlogl='9.47e-01', energy_flux='2.58e-05', photon_flux2='7.80e-09', job_status='DONE', time_completed='2021-09-28 19:20:46.392095', photon_index_error2='0.54', photon_index2='0.97', ts='12.96', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='7.28e-05', EG='0.59', time_epoch_completed='1632882046.39', return_code='0', job_id='446577', GAL2='1.16', EG2='0.59', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.95e-09', ts2='14.86', photon_index='1.72' WHERE bin_id='43' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:20:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 446577: <4FGL_J2243.9+2021_daily_bin43> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin43> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:29 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05:30 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:05:30 2021
Terminated at Tue Sep 28 19:20:47 2021
Results reported at Tue Sep 28 19:20:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin43 340.99 20.3565 250473601 250732801 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 :                                   891.00 sec.
    Max Memory :                                 1246 MB
    Average Memory :                             349.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   11 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

