/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 194 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin381
RA = 340.99, Dec = 20.3565
tmin = 338083201, tmax = 338342401
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='448097', job_status='RUN', time_executed='2021-09-28 19:13:59.622649', time_epoch_executed='1632881639.62' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448097

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448097/ft1_4FGL_J2243.9+2021_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448097/ft2_4FGL_J2243.9+2021_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448097/ft1_4FGL_J2243.9+2021_daily_bin381.fits outfile=/scratch/kocevski/448097/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin381.fits ra=340.99 dec=20.3565 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.70
user 6.40
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448097/ft1_filtered_4FGL_J2243.9+2021_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/448097/ft2_4FGL_J2243.9+2021_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/448097/ltcube_338083201_338342401_4FGL_J2243.9+2021_daily_bin381.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/448097/ft2_4FGL_J2243.9+2021_daily_bin381.fits
.....................!
real 11.58
user 11.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448097/ft1_filtered_4FGL_J2243.9+2021_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/448097/ft2_4FGL_J2243.9+2021_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/448097/ltcube_338083201_338342401_4FGL_J2243.9+2021_daily_bin381.fits outfile=/scratch/kocevski/448097/expmap_338083201_338342401_4FGL_J2243.9+2021_daily_bin381.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/448097/ltcube_338083201_338342401_4FGL_J2243.9+2021_daily_bin381.fits
.....................!
real 192.12
user 185.96
sys 5.63

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/448097/ft1_filtered_4FGL_J2243.9+2021_daily_bin381.fits scfile=/scratch/kocevski/448097/ft2_4FGL_J2243.9+2021_daily_bin381.fits outfile=/scratch/kocevski/448097/cmap_338083201_338342401_4FGL_J2243.9+2021_daily_bin381.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448097/ft1_filtered_4FGL_J2243.9+2021_daily_bin381.fits scfile=/scratch/kocevski/448097/ft2_4FGL_J2243.9+2021_daily_bin381.fits outfile=/scratch/kocevski/448097/cmap_HighResolution_338083201_338342401_4FGL_J2243.9+2021_daily_bin381.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .53845       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .61142       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2182       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.482       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17028E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4438       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.060       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.333       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3026       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2640       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74464       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=   6781.261     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2860 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.430       -.67141E-09** at limit **
   2  norm          .53842        .82708        .80950E-06   -.91632E-03
   3  Prefactor     .10000E-03    4.3029       -.30820E-06** at limit **
   4  norm          .10000E-03    3.4217        .45644E-08** at limit **
   5  Prefactor     .10000E-03    5.2585        .41918E-06** at limit **
   6  Prefactor     .10000E-03    31.476       -.14692E-05** at limit **
   7  Prefactor     .10000E-03    9.7098        .62755E-06** at limit **
   8  Prefactor     .33848        .21264        .33512E-07   -.49542E-03
   9  Prefactor     .10000E-03    4.0890        .21457E-06** at limit **
  10  norm          .61137        1.1183        .47965E-06    .85169E-04
  11  Prefactor     .10000E-03    20.711        .22899E-05** at limit **
  12  norm          3.2183        1.6674       -.16870E-07   -.88249E-04
  13  Prefactor     .10000E-03    13.875       -.15644E-05** at limit **
  14  Prefactor     .10000E-03    7.0446       -.14536E-06** at limit **
  15  Prefactor     13.484        15.349       -.11148E-06   -.26583E-04
  16  Prefactor     .17112E-01    .75683E-01    .88505E-07   -.15865E-02
  17  Prefactor     .10000E-03    7.2007        .14188E-07** at limit **
  18  Prefactor     9.4448        9.8507        .52670E-07   -.75909E-04
  19  Prefactor     28.061        19.715        .70657E-07   -.30463E-04
  20  Prefactor     28.324        21.611       -.61265E-06   -.22664E-03
  21  Prefactor     .10000E-03    6.3250       -.58120E-06** at limit **
  22  Prefactor     5.3020        7.4713        .35777E-06   -.65171E-04
  23  Prefactor     .10000E-03    7.6721        .42723E-06** at limit **
  24  Normalizat    1.2639        .21873       -.60520E-06   -.17372E-03
  25  Prefactor     .74470        .10948       -.39183E-06   -.22292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.538421
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.338483
  Prefactor  = 0.0001
  norm       = 0.611369
  Prefactor  = 0.000100002
  norm       = 3.21826
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.4838
  Prefactor  = 0.0171118
  Prefactor  = 0.0001
  Prefactor  = 9.44477
  Prefactor  = 28.061
  Prefactor  = 28.3245
  Prefactor  = 0.0001
  Prefactor  = 5.30197
  Prefactor  = 0.0001
  Normalizat = 1.26394
  Prefactor  = 0.7447
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.261     FROM HESSE     STATUS=OK           425 CALLS     3285 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .53842        .83994        .22854E-03   -1.5561    
   3  Prefactor     .10000E-03    4.3251        .16711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.4810        .14868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33848        .20718        .28365E-04   -1.5592    
   9  Prefactor     .10000E-03    4.1202        .16272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .61137        1.0640        .11211E-02   -1.5552    
  11  Prefactor     .10000E-03    21.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2183        1.6688        .74480E-04   -1.5349    
  13  Prefactor     .10000E-03    14.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.484        15.287        .10909E-03   -1.4973    
  16  Prefactor     .17112E-01    .15413        .41240E-03   -1.5682    
  17  Prefactor     .10000E-03    7.2644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4448        9.7947        .13041E-03   -1.5093    
  19  Prefactor     28.061        19.737        .75630E-04   -1.4648    
  20  Prefactor     28.324        21.869        .75266E-04   -1.4643    
  21  Prefactor     .10000E-03    6.3709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3020        7.4987        .17454E-03   -1.5247    
  23  Prefactor     .10000E-03    7.7055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2639        .25830        .29281E-03   -.84649    
  25  Prefactor     .74470        .13007        .19406E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7375e-10
Minuit parameter uncertainties:
  1  1.56614e-06
  2  0.839961
  3  2.94586e-05
  4  1.83032e-06
  5  4.30228e-05
  6  0.000379296
  7  7.97982e-05
  8  0.207176
  9  1.88989e-05
  10  1.06406
  11  0.00045406
  12  1.66884
  13  0.000266761
  14  1.5541e-05
  15  15.2912
  16  0.102413
  17  8.65473e-06
  18  9.79632
  19  19.7414
  20  21.8754
  21  6.25032e-05
  22  7.50006
  23  5.40817e-05
  24  0.258563
  25  0.130127
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.218e+00  1.669e+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:  7.447e-01  1.301e-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.264e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.83
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.63e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 4.71e-05 +/- 2.44e-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) = 6781.25941195
delta logL = 0.00160216445329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6781.25938378
delta logL = 0.00163033484569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2212       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6869       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74440       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=   6781.259     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      221 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2221        43.641        .56428E-02   -.13609E-03
   2  alpha         1.6871        2.5266        .37674       -.29883E-05
   3  Normalizat    1.2653        .29652        .66159E-01    .91874E-05
   4  Prefactor     .74440        .73723E-01    .42989E-01    .10100E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.22206
  alpha      = 1.68715
  Normalizat = 1.26529
  Prefactor  = 0.744402
 **********
 **   18 **HESSE 
 **********

 FCN=   6781.259     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2221        1.6762        .74753E-04   -1.5349    
   2  alpha         1.6871        .49186        .13633E-01   -.33116    
   3  Normalizat    1.2653        .24640        .29268E-03   -.84608    
   4  Prefactor     .74440        .12912        .19410E-03   -1.0181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02865e-12
Minuit parameter uncertainties:
  1  1.67626
  2  0.495481
  3  0.246628
  4  0.129175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448097': 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) = 6781.25938346
delta logL = 0.00163064997196

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.222e+00  1.676e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.687e+00  4.955e-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:  7.444e-01  1.292e-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.265e+00  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.82
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.69 +/- 0.50
Photon Flux (Free Index): 3.51e-08 +/- 2.72e-08
Energy Flux (Free Index): 4.89e-05 +/- 4.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/448097/cmap_HighResolution_338083201_338342401_4FGL_J2243.9+2021_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.63e-08', energy_flux2='4.89e-05', photon_flux_error='1.88e-08', dlogl='1.63e-03', energy_flux='4.71e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-28 19:24:46.932019', photon_index_error2='0.50', photon_index2='1.69', ts='15.83', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='4.15e-05', EG='1.26', time_epoch_completed='1632882286.93', return_code='0', job_id='448097', GAL2='0.74', EG2='1.27', return_code2='0', energy_flux_error='2.44e-05', photon_flux_error2='2.72e-08', ts2='15.82', photon_index='1.72' WHERE bin_id='381' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 448097: <4FGL_J2243.9+2021_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin381 340.99 20.3565 338083201 338342401 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

