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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin531
RA = 340.99, Dec = 20.3565
tmin = 376963201, tmax = 377222401
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='448339', job_status='RUN', time_executed='2021-09-28 19:13:33.632435', time_epoch_executed='1632881613.63' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448339/ft1_4FGL_J2243.9+2021_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448339/ft2_4FGL_J2243.9+2021_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448339/ft1_4FGL_J2243.9+2021_daily_bin531.fits outfile=/scratch/kocevski/448339/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin531.fits ra=340.99 dec=20.3565 rad=12.0 tmin=376963201.0 tmax=377222401.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 4.55
user 4.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448339/ft1_filtered_4FGL_J2243.9+2021_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/448339/ft2_4FGL_J2243.9+2021_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/448339/ltcube_376963201_377222401_4FGL_J2243.9+2021_daily_bin531.fits outfile=/scratch/kocevski/448339/expmap_376963201_377222401_4FGL_J2243.9+2021_daily_bin531.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/448339/ltcube_376963201_377222401_4FGL_J2243.9+2021_daily_bin531.fits
.....................!
real 190.18
user 185.34
sys 4.46

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/448339/ft1_filtered_4FGL_J2243.9+2021_daily_bin531.fits scfile=/scratch/kocevski/448339/ft2_4FGL_J2243.9+2021_daily_bin531.fits outfile=/scratch/kocevski/448339/cmap_376963201_377222401_4FGL_J2243.9+2021_daily_bin531.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/448339/ft1_filtered_4FGL_J2243.9+2021_daily_bin531.fits scfile=/scratch/kocevski/448339/ft2_4FGL_J2243.9+2021_daily_bin531.fits outfile=/scratch/kocevski/448339/cmap_HighResolution_376963201_377222401_4FGL_J2243.9+2021_daily_bin531.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .92982       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17074E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10706E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0732       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .17746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48819       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6986       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14687E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.429       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89393       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91288       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=   7288.522     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2488 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.042        .78311E-06** at limit **
   2  norm          .93030        1.0739        .28929E-07   -.21534E-04
   3  Prefactor     .10003E-03    8.1196       -.13941E-05** at limit **
   4  norm          4.3975        5.6708        .10756E-06    .21281E-04
   5  Prefactor     .10000E-03    24.142       -.47122E-06** at limit **
   6  Prefactor     .10000E-03    399.14        .39956E-04** at limit **
   7  Prefactor     3.0749        8.5546        .30320E-05    .50536E-04
   8  Prefactor     2.2481        .33492        .16833E-07    .27329E-03
   9  Prefactor     .10000E-03    8.2261       -.24370E-06** at limit **
  10  norm          .17724        .52212       -.28859E-07   -.66326E-04
  11  Prefactor     .10000E-03    5.8915        .17458E-06** at limit **
  12  norm          1.9684        1.5333        .23615E-07    .18744E-04
  13  Prefactor     .10000E-03    21.305       -.82889E-06** at limit **
  14  Prefactor     .10000E-03    5.6011       -.21485E-06** at limit **
  15  Prefactor     .10000E-03    5.5189       -.19152E-06** at limit **
  16  Prefactor     .48821        .16927        .64944E-08    .24081E-03
  17  Prefactor     .10000E-03    5.3424        .10224E-06** at limit **
  18  Prefactor     3.5546        6.7068        .18987E-05    .35221E-04
  19  Prefactor     3.6983        12.838        .19364E-06    .16519E-05
  20  Prefactor     .10000E-03    7.5443       -.13641E-06** at limit **
  21  Prefactor     .10000E-03    7.2381        .15935E-06** at limit **
  22  Prefactor     .10000E-03    8.7015       -.42931E-07** at limit **
  23  Prefactor     19.428        17.707        .15056E-06    .24739E-05
  24  Normalizat    .89414        .21288       -.14834E-05   -.40554E-05
  25  Prefactor     .91272        .11095        .50615E-07   -.59632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.930302
  Prefactor  = 0.000100027
  norm       = 4.39751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07494
  Prefactor  = 2.24811
  Prefactor  = 0.0001
  norm       = 0.177236
  Prefactor  = 0.0001
  norm       = 1.96845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.488212
  Prefactor  = 0.0001
  Prefactor  = 3.55464
  Prefactor  = 3.69828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4284
  Normalizat = 0.894141
  Prefactor  = 0.912717
 **********
 **   18 **HESSE 
 **********

 FCN=   7288.522     FROM HESSE     STATUS=OK           427 CALLS     2915 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .93030        1.0014        .89866E-03   -1.5515    
   3  Prefactor     .10003E-03    34.254        .45546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3975        5.6470        .19206E-03   -1.5289    
   5  Prefactor     .10000E-03    24.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    400.11        .20717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0749        8.5620        .11569E-02   -1.5357    
   8  Prefactor     2.2481        .33494        .18233E-04   -1.5408    
   9  Prefactor     .10000E-03    8.5508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .17724        .56633        .10121E-02   -1.5624    
  11  Prefactor     .10000E-03    5.8992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9684        1.5345        .90609E-04   -1.5427    
  13  Prefactor     .10000E-03    21.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .48821        .16806        .19402E-04   -1.5568    
  17  Prefactor     .10000E-03    5.3718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5546        6.7022        .10721E-02   -1.5331    
  19  Prefactor     3.6983        12.817        .20999E-03   -1.5323    
  20  Prefactor     .10000E-03    7.5628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.0617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.428        17.677        .90867E-04   -1.4826    
  24  Normalizat    .89414        .24734        .33813E-03   -.96666    
  25  Prefactor     .91272        .13148        .18411E-03   -.95698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80939e-08
Minuit parameter uncertainties:
  1  8.83917e-06
  2  1.00138
  3  0.00192313
  4  5.6477
  5  5.26686e-06
  6  0.000734907
  7  8.56538
  8  0.334943
  9  1.57036e-06
  10  0.566352
  11  2.08846e-06
  12  1.53449
  13  1.11232e-05
  14  5.93661e-07
  15  1.54462e-06
  16  0.168062
  17  9.04177e-07
  18  6.70361
  19  12.8262
  20  2.07707e-07
  21  1.19741e-06
  22  1.46863e-06
  23  17.6817
  24  0.247659
  25  0.131521
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.968e+00  1.534e+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.127e-01  1.315e-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:  8.941e-01  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.30
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.25e-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) = 7287.84966165
delta logL = 0.67217239461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7287.84514705
delta logL = 0.676686987671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5733       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4486       1.0000          .0000       5.0000    
     3 'Normalizat'    .85318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92178       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=   7287.845     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5734        16.994        .84709E-02    .20814E-03
   2  alpha         2.4485        3.7211        .22333        .88391E-04
   3  Normalizat    .85318        .86344E-01    .77955E-01    .26506E-04
   4  Prefactor     .92182        .39976E-01    .45282E-01    .18848E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57341
  alpha      = 2.44849
  Normalizat = 0.853181
  Prefactor  = 0.921816
 **********
 **   18 **HESSE 
 **********

 FCN=   7287.845     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5734        1.4395        .61191E-04   -1.5457    
   2  alpha         2.4485        .61454        .10933E-01   -.20607E-01
   3  Normalizat    .85318        .24019        .34506E-03   -.98125    
   4  Prefactor     .92182        .13121        .18312E-03   -.95383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24461e-11
Minuit parameter uncertainties:
  1  1.43954
  2  0.620908
  3  0.240494
  4  0.131254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448339': 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) = 7287.84514691
delta logL = 0.67668713282

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.573e+00  1.440e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.448e+00  6.209e-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.218e-01  1.313e-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:  8.532e-01  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.66
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.45 +/- 0.62
Photon Flux (Free Index): 5.89e-08 +/- 4.54e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.29e-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/448339/cmap_HighResolution_376963201_377222401_4FGL_J2243.9+2021_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='2.05e-05', photon_flux_error='1.73e-08', dlogl='6.77e-01', energy_flux='2.88e-05', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-09-28 19:24:10.359503', photon_index_error2='0.62', photon_index2='2.45', ts='6.30', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.89', time_epoch_completed='1632882250.36', return_code='0', job_id='448339', GAL2='0.92', EG2='0.85', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='4.54e-08', ts2='7.66', photon_index='1.72' WHERE bin_id='531' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 448339: <4FGL_J2243.9+2021_daily_bin531> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin531 340.99 20.3565 376963201 377222401 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 :                                   635.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

