/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 124 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin223
RA = 340.99, Dec = 20.3565
tmin = 297129601, tmax = 297388801
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='446838', job_status='RUN', time_executed='2021-09-28 19:08:00.664622', time_epoch_executed='1632881280.66' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446838/ft1_4FGL_J2243.9+2021_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446838/ft2_4FGL_J2243.9+2021_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446838/ft1_4FGL_J2243.9+2021_daily_bin223.fits outfile=/scratch/kocevski/446838/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin223.fits ra=340.99 dec=20.3565 rad=12.0 tmin=297129601.0 tmax=297388801.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.59
user 3.39
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446838/ft1_filtered_4FGL_J2243.9+2021_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/446838/ft2_4FGL_J2243.9+2021_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/446838/ltcube_297129601_297388801_4FGL_J2243.9+2021_daily_bin223.fits outfile=/scratch/kocevski/446838/expmap_297129601_297388801_4FGL_J2243.9+2021_daily_bin223.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/446838/ltcube_297129601_297388801_4FGL_J2243.9+2021_daily_bin223.fits
.....................!
real 190.71
user 185.96
sys 4.45

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/446838/ft1_filtered_4FGL_J2243.9+2021_daily_bin223.fits scfile=/scratch/kocevski/446838/ft2_4FGL_J2243.9+2021_daily_bin223.fits outfile=/scratch/kocevski/446838/cmap_297129601_297388801_4FGL_J2243.9+2021_daily_bin223.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446838/ft1_filtered_4FGL_J2243.9+2021_daily_bin223.fits scfile=/scratch/kocevski/446838/ft2_4FGL_J2243.9+2021_daily_bin223.fits outfile=/scratch/kocevski/446838/cmap_HighResolution_297129601_297388801_4FGL_J2243.9+2021_daily_bin223.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.3574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.010       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.579       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2652       1.0000         .10000E-03   10000.    
    10 'norm      '    7.0653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7817       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.774       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7026       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2650       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0522       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95162       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=   10012.55     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2852 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.665       -.11065E-04** at limit **
   2  norm          2.3574        1.1818       -.23077E-06   -.36261E-03
   3  Prefactor     10.012        12.889       -.14833E-06    .63455E-06
   4  norm          .10000E-03    1.5560        .33826E-06** at limit **
   5  Prefactor     5.5509        11.039       -.10220E-05   -.79008E-04
   6  Prefactor     68.558        83.730       -.23243E-04    .77405E-05
   7  Prefactor     .10000E-03    11.867       -.45468E-07** at limit **
   8  Prefactor     .26500        .16793       -.81655E-08    .12073E-03
   9  Prefactor     9.2652        8.5906       -.17759E-06    .19282E-04
  10  norm          7.0653        1.5915        .96415E-08    .27841E-03
  11  Prefactor     .10000E-03    8.3240       -.44881E-05** at limit **
  12  norm          1.7819        1.4264       -.13972E-06   -.39469E-04
  13  Prefactor     26.774        32.413        .17581E-05    .81576E-04
  14  Prefactor     .10000E-03    9.8773        .38274E-05** at limit **
  15  Prefactor     6.8783        36.553       -.94226E-04    .17290E-04
  16  Prefactor     5.7027        .40446        .29288E-06   -.35194E-02
  17  Prefactor     .10000E-03    5.6674       -.12701E-05** at limit **
  18  Prefactor     .10000E-03    6.1672        .18714E-05** at limit **
  19  Prefactor     3.2277        23.890       -.14184E-04   -.29857E-04
  20  Prefactor     .10000E-03    22.636        .43070E-05** at limit **
  21  Prefactor     .10000E-03    11.531        .20514E-05** at limit **
  22  Prefactor     5.2638        4.6537        .17097E-05   -.11292E-03
  23  Prefactor     .10000E-03    26.918        .88119E-05** at limit **
  24  Normalizat    1.0523        .23172        .10387E-05    .14626E-03
  25  Prefactor     .95159        .12099        .25502E-05   -.14125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.35741
  Prefactor  = 10.0121
  norm       = 0.0001
  Prefactor  = 5.55087
  Prefactor  = 68.5584
  Prefactor  = 0.0001
  Prefactor  = 0.265004
  Prefactor  = 9.26521
  norm       = 7.06526
  Prefactor  = 0.0001
  norm       = 1.78189
  Prefactor  = 26.7735
  Prefactor  = 0.0001
  Prefactor  = 6.8783
  Prefactor  = 5.70272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.22767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26383
  Prefactor  = 0.000100001
  Normalizat = 1.05231
  Prefactor  = 0.95159
 **********
 **   18 **HESSE 
 **********

 FCN=   10012.55     FROM HESSE     STATUS=OK           425 CALLS     3277 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3574        1.1775        .74034E-04   -1.5401    
   3  Prefactor     10.012        12.884        .12665E-03   -1.5075    
   4  norm          .10000E-03    1.5600        .12188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5509        11.015        .17051E-03   -1.5237    
   6  Prefactor     68.558        83.761        .48470E-04   -1.4050    
   7  Prefactor     .10000E-03    12.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26500        .16650        .30914E-04   -1.5605    
   9  Prefactor     9.2652        8.5954        .13167E-03   -1.5099    
  10  norm          7.0653        1.5925        .57209E-04   -1.5176    
  11  Prefactor     .10000E-03    8.3383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7819        1.4316        .10409E-03   -1.5441    
  13  Prefactor     26.774        32.439        .77422E-04   -1.4673    
  14  Prefactor     .10000E-03    10.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8783        36.698        .15252E-03   -1.5183    
  16  Prefactor     5.7027        .40625        .15515E-04   -1.5230    
  17  Prefactor     .10000E-03    5.6972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2277        23.943        .22481E-03   -1.5349    
  20  Prefactor     .10000E-03    22.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2638        4.6532        .17517E-03   -1.5249    
  23  Prefactor     .10000E-03    27.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0523        .26980        .40984E-03   -.91298    
  25  Prefactor     .95159        .14159        .22920E-03   -.94361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35893e-10
Minuit parameter uncertainties:
  1  1.34582e-05
  2  1.17749
  3  12.8876
  4  3.64666e-06
  5  11.0193
  6  83.9058
  7  4.67529e-05
  8  0.166498
  9  8.59651
  10  1.59251
  11  8.25891e-06
  12  1.43165
  13  32.46
  14  8.01435e-05
  15  31.8057
  16  0.406253
  17  2.58153e-05
  18  4.37195e-05
  19  17.5916
  20  0.000162106
  21  2.8592e-05
  22  4.65349
  23  0.000325713
  24  0.270148
  25  0.141641
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.782e+00  1.432e+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.516e-01  1.416e-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.052e+00  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.16
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 2.10e-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) = 10012.4469618
delta logL = 0.100763542303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10012.4364452
delta logL = 0.111280118352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5516       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4004       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95236       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=   10012.44     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5490        1.7207        .85475E-02   -.11996E-03
   2  alpha         1.4001        .63509        .47857       -.34276E-04
   3  Normalizat    1.0557        .22446        .92410E-01    .12053E-03
   4  Prefactor     .95242        .12028        .45669E-01    .18059E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54896
  alpha      = 1.40008
  Normalizat = 1.05565
  Prefactor  = 0.952417
 **********
 **   18 **HESSE 
 **********

 FCN=   10012.44     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5490        1.5321        .10344E-03   -1.5459    
   2  alpha         1.4001        .65395        .21350E-01   -.45556    
   3  Normalizat    1.0557        .26081        .40935E-03   -.91189    
   4  Prefactor     .95242        .14071        .22917E-03   -.94333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68909e-09
Minuit parameter uncertainties:
  1  1.53216
  2  0.663573
  3  0.261131
  4  0.140759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446838': 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) = 10012.4364416
delta logL = 0.111283679274

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.549e+00  1.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.400e+00  6.636e-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.524e-01  1.408e-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.056e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.38
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.40 +/- 0.66
Photon Flux (Free Index): 1.28e-08 +/- 1.64e-08
Energy Flux (Free Index): 3.83e-05 +/- 4.69e-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/446838/cmap_HighResolution_297129601_297388801_4FGL_J2243.9+2021_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='3.83e-05', photon_flux_error='1.62e-08', dlogl='1.11e-01', energy_flux='2.61e-05', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-09-28 19:21:36.806485', photon_index_error2='0.66', photon_index2='1.40', ts='9.16', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='4.69e-05', EG='1.05', time_epoch_completed='1632882096.81', return_code='0', job_id='446838', GAL2='0.95', EG2='1.06', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='1.64e-08', ts2='9.38', photon_index='1.72' WHERE bin_id='223' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:21:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 446838: <4FGL_J2243.9+2021_daily_bin223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin223 340.99 20.3565 297129601 297388801 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 :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

