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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin364
RA = 340.99, Dec = 20.3565
tmin = 333676801, tmax = 333936001
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='448069', job_status='RUN', time_executed='2021-09-28 19:14:17.620932', time_epoch_executed='1632881657.62' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448069/ft1_4FGL_J2243.9+2021_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448069/ft2_4FGL_J2243.9+2021_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448069/ft1_4FGL_J2243.9+2021_daily_bin364.fits outfile=/scratch/kocevski/448069/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin364.fits ra=340.99 dec=20.3565 rad=12.0 tmin=333676801.0 tmax=333936001.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.81
user 3.58
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448069/ft2_4FGL_J2243.9+2021_daily_bin364.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/448069/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin364.fits evtable="EVENTS" outfile="/scratch/kocevski/448069/ft1_filtered_4FGL_J2243.9+2021_daily_bin364.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/448069/ft1_filtered_4FGL_J2243.9+2021_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/448069/ft2_4FGL_J2243.9+2021_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/448069/ltcube_333676801_333936001_4FGL_J2243.9+2021_daily_bin364.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/448069/ft2_4FGL_J2243.9+2021_daily_bin364.fits
.....................!
real 11.65
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448069/ft1_filtered_4FGL_J2243.9+2021_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/448069/ft2_4FGL_J2243.9+2021_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/448069/ltcube_333676801_333936001_4FGL_J2243.9+2021_daily_bin364.fits outfile=/scratch/kocevski/448069/expmap_333676801_333936001_4FGL_J2243.9+2021_daily_bin364.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/448069/ltcube_333676801_333936001_4FGL_J2243.9+2021_daily_bin364.fits
.....................!
real 190.33
user 184.93
sys 5.04

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/448069/ft1_filtered_4FGL_J2243.9+2021_daily_bin364.fits scfile=/scratch/kocevski/448069/ft2_4FGL_J2243.9+2021_daily_bin364.fits outfile=/scratch/kocevski/448069/cmap_333676801_333936001_4FGL_J2243.9+2021_daily_bin364.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448069/ft1_filtered_4FGL_J2243.9+2021_daily_bin364.fits scfile=/scratch/kocevski/448069/ft2_4FGL_J2243.9+2021_daily_bin364.fits outfile=/scratch/kocevski/448069/cmap_HighResolution_333676801_333936001_4FGL_J2243.9+2021_daily_bin364.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.807       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9622       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14750E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.434       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71421       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4717       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4669       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0121       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11263       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.545       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3332       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34736E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.955       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.838       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2338       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86054       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91397       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=   7137.843     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2980 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.727        64.620       -.71944E-05    .76416E-05
   2  norm          1.9621        1.1705        .33827E-07    .53715E-03
   3  Prefactor     .10011E-03    168.40        .82974E-04** at limit **
   4  norm          2.4688        2.6753        .35444E-06    .45173E-04
   5  Prefactor     15.493        15.397       -.35030E-06    .31718E-04
   6  Prefactor     .10002E-03    295.46       -.19647E-04** at limit **
   7  Prefactor     13.434        13.187       -.11897E-06   -.31479E-03
   8  Prefactor     .71422        .22329       -.40232E-08    .11654E-02
   9  Prefactor     7.4716        6.5457       -.54478E-08    .96858E-05
  10  norm          .10000E-03    .44457       -.17320E-06** at limit **
  11  Prefactor     .10000E-03    12.004       -.66438E-07** at limit **
  12  norm          2.1429        1.5395        .82359E-08    .16818E-03
  13  Prefactor     .10000E-03    46.006        .12234E-05** at limit **
  14  Prefactor     9.4671        8.7406        .87096E-07    .12758E-03
  15  Prefactor     2.0115        14.854        .11654E-05    .11533E-03
  16  Prefactor     .11271        .14001       -.19721E-06   -.58938E-02
  17  Prefactor     11.546        11.765       -.74030E-06    .50596E-04
  18  Prefactor     3.3330        6.1367       -.36409E-05    .13162E-03
  19  Prefactor     .10000E-03    6.0595       -.12722E-06** at limit **
  20  Prefactor     .10022E-03    20.831       -.22704E-04** at limit **
  21  Prefactor     13.957        15.940       -.21352E-06   -.12835E-04
  22  Prefactor     23.838        9.2904        .47625E-06    .57007E-03
  23  Prefactor     1.2369        39.810       -.40988E-05   -.41568E-04
  24  Normalizat    .86026        .22606        .33290E-05    .40951E-04
  25  Prefactor     .91410        .11570       -.41558E-06    .28674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.7272
  norm       = 1.96208
  Prefactor  = 0.000100106
  norm       = 2.46882
  Prefactor  = 15.4934
  Prefactor  = 0.000100019
  Prefactor  = 13.4342
  Prefactor  = 0.714216
  Prefactor  = 7.47159
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.14292
  Prefactor  = 0.000100002
  Prefactor  = 9.46711
  Prefactor  = 2.0115
  Prefactor  = 0.112707
  Prefactor  = 11.5459
  Prefactor  = 3.33295
  Prefactor  = 0.0001
  Prefactor  = 0.00010022
  Prefactor  = 13.9566
  Prefactor  = 23.8384
  Prefactor  = 1.23693
  Normalizat = 0.860256
  Prefactor  = 0.914098
 **********
 **   18 **HESSE 
 **********

 FCN=   7137.843     FROM HESSE     STATUS=OK           455 CALLS     3435 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.727        64.743        .61998E-04   -1.4415    
   2  norm          1.9621        1.1642        .67488E-04   -1.5428    
   3  Prefactor     .10011E-03    20.276        .91253E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4688        2.6765        .69966E-03   -1.5394    
   5  Prefactor     15.493        15.401        .10176E-03   -1.4921    
   6  Prefactor     .10002E-03    295.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.434        13.182        .10928E-03   -1.4975    
   8  Prefactor     .71422        .22307        .20876E-04   -1.5539    
   9  Prefactor     7.4716        6.5494        .14672E-03   -1.5161    
  10  norm          .10000E-03    .72097        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1429        1.5408        .85644E-04   -1.5415    
  13  Prefactor     .10000E-03    46.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4671        8.7355        .13025E-03   -1.5092    
  15  Prefactor     2.0115        14.614        .29184E-03   -1.5424    
  16  Prefactor     .11271        .13363        .32025E-03   -1.5641    
  17  Prefactor     11.546        11.761        .11790E-03   -1.5028    
  18  Prefactor     3.3330        6.1455        .11085E-02   -1.5343    
  19  Prefactor     .10000E-03    6.0765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10022E-03    85.270        .52482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.957        15.923        .10722E-03   -1.4961    
  22  Prefactor     23.838        9.1823        .82043E-04   -1.4731    
  23  Prefactor     1.2369        39.568        .40449E-03   -1.5486    
  24  Normalizat    .86026        .26038        .35002E-03   -.97871    
  25  Prefactor     .91410        .13690        .18482E-03   -.95650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69642e-09
Minuit parameter uncertainties:
  1  64.8526
  2  1.16418
  3  0.002935
  4  2.67666
  5  15.4045
  6  0.00475486
  7  13.1846
  8  0.223066
  9  6.55005
  10  1.80114e-05
  11  2.85563e-05
  12  1.54081
  13  0.000554844
  14  8.73663
  15  10.847
  16  0.133627
  17  11.7634
  18  6.14663
  19  4.48943e-06
  20  0.00868363
  21  15.9276
  22  9.18287
  23  14.0013
  24  0.260761
  25  0.136953
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.143e+00  1.541e+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.141e-01  1.370e-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.603e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 2.26e-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) = 7137.79083997
delta logL = 0.0522809468184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7137.79006398
delta logL = 0.0530569340135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0846       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5274       1.0000          .0000       5.0000    
     3 'Normalizat'    .86452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91356       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=   7137.790     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0846        58.943        .71495E-02    .29953E-03
   2  alpha         1.5274        3.1153        .44641        .52193E-05
   3  Normalizat    .86453        .23455        .78901E-01    .10217E-03
   4  Prefactor     .91356        .83179E-01    .45178E-01    .63836E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08463
  alpha      = 1.52739
  Normalizat = 0.864526
  Prefactor  = 0.91356
 **********
 **   18 **HESSE 
 **********

 FCN=   7137.790     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0846        1.5689        .86844E-04   -1.5419    
   2  alpha         1.5274        .56302        .15952E-01   -.39959    
   3  Normalizat    .86453        .24693        .34926E-03   -.97718    
   4  Prefactor     .91356        .13512        .18489E-03   -.95669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09922e-11
Minuit parameter uncertainties:
  1  1.5689
  2  0.568787
  3  0.247255
  4  0.135171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448069': 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) = 7137.79006398
delta logL = 0.0530569340854

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.085e+00  1.569e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.527e+00  5.688e-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.136e-01  1.352e-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.645e-01  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.60
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.53 +/- 0.57
Photon Flux (Free Index): 1.91e-08 +/- 1.95e-08
Energy Flux (Free Index): 4.04e-05 +/- 4.44e-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/448069/cmap_HighResolution_333676801_333936001_4FGL_J2243.9+2021_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='4.04e-05', photon_flux_error='1.74e-08', dlogl='5.31e-02', energy_flux='3.14e-05', photon_flux2='1.91e-08', job_status='DONE', time_completed='2021-09-28 19:25:08.593919', photon_index_error2='0.57', photon_index2='1.53', ts='7.50', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='4.44e-05', EG='0.86', time_epoch_completed='1632882308.59', return_code='0', job_id='448069', GAL2='0.91', EG2='0.86', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='1.95e-08', ts2='7.60', photon_index='1.72' WHERE bin_id='364' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 448069: <4FGL_J2243.9+2021_daily_bin364> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin364 340.99 20.3565 333676801 333936001 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 :                                   650.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            876 sec.

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

