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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin392
RA = 340.99, Dec = 20.3565
tmin = 340934401, tmax = 341193601
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='448113', job_status='RUN', time_executed='2021-09-28 19:13:22.833058', time_epoch_executed='1632881602.83' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448113/ft1_4FGL_J2243.9+2021_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448113/ft2_4FGL_J2243.9+2021_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448113/ft1_4FGL_J2243.9+2021_daily_bin392.fits outfile=/scratch/kocevski/448113/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin392.fits ra=340.99 dec=20.3565 rad=12.0 tmin=340934401.0 tmax=341193601.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.39
user 3.15
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448113/ft1_filtered_4FGL_J2243.9+2021_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/448113/ft2_4FGL_J2243.9+2021_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/448113/ltcube_340934401_341193601_4FGL_J2243.9+2021_daily_bin392.fits outfile=/scratch/kocevski/448113/expmap_340934401_341193601_4FGL_J2243.9+2021_daily_bin392.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/448113/ltcube_340934401_341193601_4FGL_J2243.9+2021_daily_bin392.fits
.....................!
real 189.37
user 185.30
sys 3.74

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/448113/ft1_filtered_4FGL_J2243.9+2021_daily_bin392.fits scfile=/scratch/kocevski/448113/ft2_4FGL_J2243.9+2021_daily_bin392.fits outfile=/scratch/kocevski/448113/cmap_340934401_341193601_4FGL_J2243.9+2021_daily_bin392.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/448113/ft1_filtered_4FGL_J2243.9+2021_daily_bin392.fits scfile=/scratch/kocevski/448113/ft2_4FGL_J2243.9+2021_daily_bin392.fits outfile=/scratch/kocevski/448113/cmap_HighResolution_340934401_341193601_4FGL_J2243.9+2021_daily_bin392.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    112.14       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.034       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2992       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37569       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6600       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0575       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.101       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.828       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0021       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1508       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89902       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91324       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=   7507.469     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2986 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     112.14        73.565        .10006E-06    .51078E-07
   2  norm          3.1233        1.3166        .29460E-07   -.11908E-04
   3  Prefactor     .10000E-03    32.345       -.12420E-05** at limit **
   4  norm          2.9490        4.7203        .46584E-07   -.47273E-05
   5  Prefactor     12.034        17.228        .16149E-06   -.82463E-05
   6  Prefactor     16.221        87.683        .11927E-04    .42240E-05
   7  Prefactor     8.2999        11.902        .81798E-07   -.84121E-05
   8  Prefactor     .37573        .20926        .14728E-07   -.13702E-03
   9  Prefactor     .10000E-03    6.0177        .23550E-07** at limit **
  10  norm          .10000E-03    .46291       -.17446E-06** at limit **
  11  Prefactor     5.6590        14.480        .68525E-06    .27370E-04
  12  norm          2.0575        1.4016        .21637E-08   -.32879E-04
  13  Prefactor     24.100        21.865       -.10644E-06   -.50634E-04
  14  Prefactor     11.828        9.2950        .34354E-07   -.32203E-04
  15  Prefactor     1.9985        17.711        .39178E-05    .11609E-05
  16  Prefactor     .10000E-03    .38109E-01    .65886E-07** at limit **
  17  Prefactor     3.2593        11.194        .33246E-06    .29262E-08
  18  Prefactor     1.1504        8.2591        .75115E-06   -.15327E-04
  19  Prefactor     .10000E-03    4.8191        .39414E-07** at limit **
  20  Prefactor     .10000E-03    10.013        .99299E-07** at limit **
  21  Prefactor     6.5963        16.884        .12027E-06   -.48702E-08
  22  Prefactor     19.421        8.9350        .15716E-06   -.49559E-04
  23  Prefactor     .10000E-03    10.091       -.64051E-07** at limit **
  24  Normalizat    .89893        .22223       -.16548E-05   -.30053E-04
  25  Prefactor     .91327        .11317        .24871E-06   -.57914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 112.143
  norm       = 3.12335
  Prefactor  = 0.0001
  norm       = 2.94904
  Prefactor  = 12.0342
  Prefactor  = 16.2208
  Prefactor  = 8.29987
  Prefactor  = 0.375725
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.65896
  norm       = 2.05749
  Prefactor  = 24.1
  Prefactor  = 11.8279
  Prefactor  = 1.99851
  Prefactor  = 0.0001
  Prefactor  = 3.25927
  Prefactor  = 1.15044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.59628
  Prefactor  = 19.4209
  Prefactor  = 0.0001
  Normalizat = 0.898933
  Prefactor  = 0.913265
 **********
 **   18 **HESSE 
 **********

 FCN=   7507.469     FROM HESSE     STATUS=OK           437 CALLS     3423 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     112.14        73.599        .37986E-04   -1.3586    
   2  norm          3.1233        1.3134        .61563E-04   -1.5354    
   3  Prefactor     .10000E-03    33.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9490        4.7011        .22792E-03   -1.5364    
   5  Prefactor     12.034        17.178        .11548E-03   -1.5014    
   6  Prefactor     16.221        88.785        .99060E-04   -1.4902    
   7  Prefactor     8.2999        11.919        .13916E-03   -1.5132    
   8  Prefactor     .37573        .20727        .26274E-04   -1.5585    
   9  Prefactor     .10000E-03    6.1842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5526        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6590        14.444        .84424E-03   -1.5232    
  12  norm          2.0575        1.3995        .82040E-04   -1.5421    
  13  Prefactor     24.100        21.792        .81594E-04   -1.4726    
  14  Prefactor     11.828        9.2877        .11648E-03   -1.5020    
  15  Prefactor     1.9985        17.795        .14634E-02   -1.5425    
  16  Prefactor     .10000E-03    .47380E-01    .32307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.2593        11.178        .22434E-03   -1.5347    
  18  Prefactor     1.1504        8.2996        .43135E-03   -1.5493    
  19  Prefactor     .10000E-03    4.8353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5963        16.880        .15625E-03   -1.5194    
  22  Prefactor     19.421        8.9531        .45441E-03   -1.4826    
  23  Prefactor     .10000E-03    10.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89893        .25858        .34868E-03   -.96498    
  25  Prefactor     .91327        .13414        .18484E-03   -.95679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2063e-10
Minuit parameter uncertainties:
  1  73.6587
  2  1.31342
  3  0.000138619
  4  4.70168
  5  17.1848
  6  76.0737
  7  11.922
  8  0.207274
  9  8.06382e-07
  10  3.13878e-05
  11  14.4529
  12  1.39952
  13  21.7989
  14  9.28887
  15  11.9316
  16  1.849e-07
  17  11.1847
  18  6.18098
  19  1.97156e-06
  20  5.08754e-06
  21  16.8924
  22  8.95373
  23  2.07317e-06
  24  0.258935
  25  0.134184
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.057e+00  1.400e+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.133e-01  1.342e-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.989e-01  2.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.32e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 2.05e-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) = 7507.38025312
delta logL = 0.0886507626401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7507.37973324
delta logL = 0.089170643625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0941       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5042       1.0000          .0000       5.0000    
     3 'Normalizat'    .90279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91241       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=   7507.380     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0954        3.2302        .71311E-02   -.90198E-04
   2  alpha         1.5040        .93504        .40338       -.11551E-04
   3  Normalizat    .90340        .20975        .78598E-01    .25229E-04
   4  Prefactor     .91220        .11127        .45163E-01    .31279E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09535
  alpha      = 1.50404
  Normalizat = 0.903401
  Prefactor  = 0.9122
 **********
 **   18 **HESSE 
 **********

 FCN=   7507.380     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0954        1.4181        .82653E-04   -1.5418    
   2  alpha         1.5040        .48190        .15452E-01   -.40975    
   3  Normalizat    .90340        .24314        .34790E-03   -.96341    
   4  Prefactor     .91220        .13087        .18493E-03   -.95716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60046e-13
Minuit parameter uncertainties:
  1  1.41809
  2  0.485524
  3  0.243432
  4  0.130915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448113': 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) = 7507.37972896
delta logL = 0.0891749226403

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.095e+00  1.418e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.504e+00  4.855e-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.122e-01  1.309e-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:  9.034e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.04
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.50 +/- 0.49
Photon Flux (Free Index): 1.88e-08 +/- 1.56e-08
Energy Flux (Free Index): 4.24e-05 +/- 4.55e-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/448113/cmap_HighResolution_340934401_341193601_4FGL_J2243.9+2021_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-08', energy_flux2='4.24e-05', photon_flux_error='1.58e-08', dlogl='8.92e-02', energy_flux='3.01e-05', photon_flux2='1.88e-08', job_status='DONE', time_completed='2021-09-28 19:24:22.822602', photon_index_error2='0.49', photon_index2='1.50', ts='5.86', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='4.55e-05', EG='0.90', time_epoch_completed='1632882262.82', return_code='0', job_id='448113', GAL2='0.91', EG2='0.90', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='1.56e-08', ts2='6.04', photon_index='1.72' WHERE bin_id='392' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 448113: <4FGL_J2243.9+2021_daily_bin392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin392 340.99 20.3565 340934401 341193601 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 :                                   660.00 sec.
    Max Memory :                                 1164 MB
    Average Memory :                             257.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

