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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin632
RA = 340.99, Dec = 20.3565
tmin = 403142401, tmax = 403401601
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='448497', job_status='RUN', time_executed='2021-09-28 19:14:38.288091', time_epoch_executed='1632881678.29' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448497/ft1_4FGL_J2243.9+2021_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448497/ft2_4FGL_J2243.9+2021_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448497/ft1_4FGL_J2243.9+2021_daily_bin632.fits outfile=/scratch/kocevski/448497/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin632.fits ra=340.99 dec=20.3565 rad=12.0 tmin=403142401.0 tmax=403401601.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.53
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448497/ft1_filtered_4FGL_J2243.9+2021_daily_bin632.fits" evtable="EVENTS" scfile=/scratch/kocevski/448497/ft2_4FGL_J2243.9+2021_daily_bin632.fits sctable="SC_DATA" outfile=/scratch/kocevski/448497/ltcube_403142401_403401601_4FGL_J2243.9+2021_daily_bin632.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/448497/ft2_4FGL_J2243.9+2021_daily_bin632.fits
.....................!
real 11.69
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448497/ft1_filtered_4FGL_J2243.9+2021_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/448497/ft2_4FGL_J2243.9+2021_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/448497/ltcube_403142401_403401601_4FGL_J2243.9+2021_daily_bin632.fits outfile=/scratch/kocevski/448497/expmap_403142401_403401601_4FGL_J2243.9+2021_daily_bin632.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/448497/ltcube_403142401_403401601_4FGL_J2243.9+2021_daily_bin632.fits
.....................!
real 193.40
user 187.61
sys 5.47

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/448497/ft1_filtered_4FGL_J2243.9+2021_daily_bin632.fits scfile=/scratch/kocevski/448497/ft2_4FGL_J2243.9+2021_daily_bin632.fits outfile=/scratch/kocevski/448497/cmap_403142401_403401601_4FGL_J2243.9+2021_daily_bin632.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448497/ft1_filtered_4FGL_J2243.9+2021_daily_bin632.fits scfile=/scratch/kocevski/448497/ft2_4FGL_J2243.9+2021_daily_bin632.fits outfile=/scratch/kocevski/448497/cmap_HighResolution_403142401_403401601_4FGL_J2243.9+2021_daily_bin632.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .21366       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13578E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0181       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.560       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11315E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0544       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96156       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=   8649.377     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2875 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.037       -.19490E-08** at limit **
   2  norm          .21389        .53007        .29500E-06    .25744E-03
   3  Prefactor     .10000E-03    5.8139       -.27660E-06** at limit **
   4  norm          .10000E-03    1.4349       -.42639E-07** at limit **
   5  Prefactor     .10000E-03    12.961       -.18468E-06** at limit **
   6  Prefactor     23.253        50.593       -.41346E-06   -.69280E-04
   7  Prefactor     .10000E-03    6.8575       -.14954E-06** at limit **
   8  Prefactor     2.2372        .34384        .26511E-08   -.99398E-04
   9  Prefactor     .10000E-03    3.0753       -.98803E-08** at limit **
  10  norm          .10000E-03    .59318       -.27308E-06** at limit **
  11  Prefactor     .10000E-03    4.6816        .18723E-07** at limit **
  12  norm          1.2135        1.0735       -.12055E-07    .18488E-04
  13  Prefactor     .10000E-03    21.055        .17711E-07** at limit **
  14  Prefactor     .10000E-03    2.6861        .54896E-08** at limit **
  15  Prefactor     .10000E-03    13.327       -.10819E-06** at limit **
  16  Prefactor     2.0181        .25484       -.13649E-07   -.15525E-03
  17  Prefactor     .10000E-03    2.5352        .10623E-06** at limit **
  18  Prefactor     5.5063        6.0742        .27463E-05   -.12094E-03
  19  Prefactor     .10000E-03    5.3431       -.13830E-06** at limit **
  20  Prefactor     36.594        25.868        .48123E-06    .17206E-03
  21  Prefactor     .10000E-03    10.182        .46561E-06** at limit **
  22  Prefactor     .10000E-03    3.2673        .24637E-06** at limit **
  23  Prefactor     .10000E-03    5.0985       -.43752E-07** at limit **
  24  Normalizat    1.0544        .22577       -.18862E-05    .74612E-04
  25  Prefactor     .96151        .11819        .96152E-06   -.73758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.213886
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2534
  Prefactor  = 0.0001
  Prefactor  = 2.23718
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.21348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01808
  Prefactor  = 0.0001
  Prefactor  = 5.50634
  Prefactor  = 0.0001
  Prefactor  = 36.5942
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.0544
  Prefactor  = 0.961507
 **********
 **   18 **HESSE 
 **********

 FCN=   8649.377     FROM HESSE     STATUS=OK           419 CALLS     3294 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .21389        .50544        .10389E-02   -1.5615    
   3  Prefactor     .10000E-03    5.8234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4391        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.253        50.605        .82980E-04   -1.4743    
   7  Prefactor     .10000E-03    6.9140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2372        .34400        .20429E-04   -1.5409    
   9  Prefactor     .10000E-03    3.0800        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4688        .13560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2135        1.0899        .88359E-04   -1.5488    
  13  Prefactor     .10000E-03    21.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6907        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0181        .25565        .15784E-04   -1.5424    
  17  Prefactor     .10000E-03    2.5375        .14461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5063        6.1040        .85600E-03   -1.5239    
  19  Prefactor     .10000E-03    5.3608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.594        25.912        .66282E-04   -1.4497    
  21  Prefactor     .10000E-03    10.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.205        .32310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0544        .26376        .36204E-03   -.91230    
  25  Prefactor     .96151        .13945        .20424E-03   -.94024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3405e-10
Minuit parameter uncertainties:
  1  2.22936e-05
  2  0.505453
  3  1.05096e-06
  4  1.23006e-07
  5  1.11175e-05
  6  50.6983
  7  2.39569e-05
  8  0.344002
  9  1.00114e-06
  10  6.1517e-05
  11  1.12787e-05
  12  1.08988
  13  2.30003e-05
  14  1.10623e-06
  15  1.91093e-05
  16  0.255652
  17  3.60021e-07
  18  6.10473
  19  1.32117e-05
  20  25.9196
  21  1.32856e-05
  22  0.000270129
  23  6.96705e-06
  24  0.264088
  25  0.139502
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.213e+00  1.090e+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:  9.615e-01  1.395e-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.054e+00  2.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.01
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.60e-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) = 8649.37594491
delta logL = 0.00122930190992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8649.37594072
delta logL = 0.00123349695241

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2147       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6827       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96155       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=   8649.376     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2153        36.999        .10249E-01   -.85549E-04
   2  alpha         1.6831        2.7122        .44349        .15857E-04
   3  Normalizat    1.0547        .10003        .81771E-01   -.73072E-04
   4  Prefactor     .96154        .48302E-01    .45785E-01   -.17930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21527
  alpha      = 1.68306
  Normalizat = 1.05466
  Prefactor  = 0.961543
 **********
 **   18 **HESSE 
 **********

 FCN=   8649.376     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2153        1.0988        .88899E-04   -1.5487    
   2  alpha         1.6831        .64670        .19330E-01   -.33289    
   3  Normalizat    1.0547        .25428        .36201E-03   -.91221    
   4  Prefactor     .96154        .13871        .20424E-03   -.94023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54569e-10
Minuit parameter uncertainties:
  1  1.09882
  2  0.655063
  3  0.254574
  4  0.138759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448497': 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) = 8649.37594023
delta logL = 0.00123398833239

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.215e+00  1.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.683e+00  6.551e-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:  9.615e-01  1.388e-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.055e+00  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.68 +/- 0.66
Photon Flux (Free Index): 1.32e-08 +/- 1.54e-08
Energy Flux (Free Index): 1.86e-05 +/- 2.38e-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/448497/cmap_HighResolution_403142401_403401601_4FGL_J2243.9+2021_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='1.86e-05', photon_flux_error='1.23e-08', dlogl='1.23e-03', energy_flux='1.78e-05', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-28 19:27:05.114798', photon_index_error2='0.66', photon_index2='1.68', ts='6.01', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.38e-05', EG='1.05', time_epoch_completed='1632882425.11', return_code='0', job_id='448497', GAL2='0.96', EG2='1.05', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='1.54e-08', ts2='6.01', photon_index='1.72' WHERE bin_id='632' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:27:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 448497: <4FGL_J2243.9+2021_daily_bin632> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin632 340.99 20.3565 403142401 403401601 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 :                                   746.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

