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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin534
RA = 340.99, Dec = 20.3565
tmin = 377740801, tmax = 378000001
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='448344', job_status='RUN', time_executed='2021-09-28 19:13:49.596135', time_epoch_executed='1632881629.6' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='534'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448344/ft1_4FGL_J2243.9+2021_daily_bin534.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448344/ft2_4FGL_J2243.9+2021_daily_bin534.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448344/ft1_4FGL_J2243.9+2021_daily_bin534.fits outfile=/scratch/kocevski/448344/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin534.fits ra=340.99 dec=20.3565 rad=12.0 tmin=377740801.0 tmax=378000001.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.47
user 4.21
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448344/ft1_filtered_4FGL_J2243.9+2021_daily_bin534.fits evtable="EVENTS" scfile=/scratch/kocevski/448344/ft2_4FGL_J2243.9+2021_daily_bin534.fits sctable="SC_DATA" expcube=/scratch/kocevski/448344/ltcube_377740801_378000001_4FGL_J2243.9+2021_daily_bin534.fits outfile=/scratch/kocevski/448344/expmap_377740801_378000001_4FGL_J2243.9+2021_daily_bin534.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/448344/ltcube_377740801_378000001_4FGL_J2243.9+2021_daily_bin534.fits
.....................!
real 190.97
user 185.70
sys 4.94

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/448344/ft1_filtered_4FGL_J2243.9+2021_daily_bin534.fits scfile=/scratch/kocevski/448344/ft2_4FGL_J2243.9+2021_daily_bin534.fits outfile=/scratch/kocevski/448344/cmap_377740801_378000001_4FGL_J2243.9+2021_daily_bin534.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448344/ft1_filtered_4FGL_J2243.9+2021_daily_bin534.fits scfile=/scratch/kocevski/448344/ft2_4FGL_J2243.9+2021_daily_bin534.fits outfile=/scratch/kocevski/448344/cmap_HighResolution_377740801_378000001_4FGL_J2243.9+2021_daily_bin534.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.028       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9248       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5433       1.0000         .10000E-03   10000.    
    10 'norm      '    .10616E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.336       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4647       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.780       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48143E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.568       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.210       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.804       1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.678       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55415       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2124       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=   8923.713     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2928 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.163        .15001E-05** at limit **
   2  norm          .10000E-03    .54556        .42038E-06** at limit **
   3  Prefactor     22.024        16.557        .51477E-06   -.13611E-04
   4  norm          1.9246        4.2489        .45518E-06    .19217E-03
   5  Prefactor     .10000E-03    5.8307        .15089E-06** at limit **
   6  Prefactor     .10000E-03    91.419        .17026E-05** at limit **
   7  Prefactor     7.7125        10.670        .10168E-06   -.49329E-04
   8  Prefactor     1.9839        .33628        .13518E-07   -.30159E-03
   9  Prefactor     6.5434        6.3221        .40440E-07    .58262E-06
  10  norm          .10000E-03    .61610       -.15894E-06** at limit **
  11  Prefactor     38.349        24.949        .95009E-06    .68062E-04
  12  norm          2.4637        1.7952       -.25214E-06   -.34267E-03
  13  Prefactor     20.773        37.560        .60427E-06    .57675E-06
  14  Prefactor     .10000E-03    45.097        .38113E-05** at limit **
  15  Prefactor     33.576        26.361        .26513E-06   -.12799E-04
  16  Prefactor     1.4761        .25798       -.15955E-07   -.78931E-03
  17  Prefactor     13.206        12.818       -.26258E-06   -.66260E-04
  18  Prefactor     .10000E-03    3.1652        .12138E-06** at limit **
  19  Prefactor     .10000E-03    4.3661        .78991E-07** at limit **
  20  Prefactor     .10000E-03    12.554        .31274E-06** at limit **
  21  Prefactor     25.805        30.431        .39508E-06    .17295E-05
  22  Prefactor     27.679        10.740       -.71958E-06   -.17679E-04
  23  Prefactor     .10000E-03    26.294       -.20278E-06** at limit **
  24  Normalizat    .55431        .29137       -.24575E-05   -.13314E-03
  25  Prefactor     1.2123        .14484        .24574E-06   -.32163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0237
  norm       = 1.9246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.71248
  Prefactor  = 1.98387
  Prefactor  = 6.54343
  norm       = 0.0001
  Prefactor  = 38.3492
  norm       = 2.46374
  Prefactor  = 20.7727
  Prefactor  = 0.000100004
  Prefactor  = 33.5756
  Prefactor  = 1.47612
  Prefactor  = 13.2061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.8045
  Prefactor  = 27.6787
  Prefactor  = 0.0001
  Normalizat = 0.554308
  Prefactor  = 1.21234
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.713     FROM HESSE     STATUS=OK           435 CALLS     3363 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .82856        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.024        16.571        .85342E-04   -1.4769    
   4  norm          1.9246        6.6655        .14973E-02   -1.5431    
   5  Prefactor     .10000E-03    5.8414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    91.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7125        10.661        .14438E-03   -1.5152    
   8  Prefactor     1.9839        .33565        .21219E-04   -1.5426    
   9  Prefactor     6.5434        6.3281        .15689E-03   -1.5196    
  10  norm          .10000E-03    1.2498        .13783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.349        24.631        .64733E-04   -1.4469    
  12  norm          2.4637        1.7784        .10366E-03   -1.5394    
  13  Prefactor     20.773        37.723        .87865E-04   -1.4796    
  14  Prefactor     .10000E-03    58.568        .52308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.576        26.433        .69163E-04   -1.4548    
  16  Prefactor     1.4761        .25858        .17948E-04   -1.5465    
  17  Prefactor     13.206        12.726        .11021E-03   -1.4981    
  18  Prefactor     .10000E-03    3.1865        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.805        30.478        .78861E-04   -1.4692    
  22  Prefactor     27.679        10.494        .76149E-04   -1.4655    
  23  Prefactor     .10000E-03    26.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .55431        .29436        .52675E-03   -1.0996    
  25  Prefactor     1.2123        .14979        .19738E-03   -.85952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60869e-10
Minuit parameter uncertainties:
  1  0.00012208
  2  2.08407e-05
  3  16.574
  4  6.6681
  5  2.46446e-06
  6  0.000258301
  7  10.6639
  8  0.335653
  9  6.32876
  10  2.10258e-05
  11  24.6375
  12  1.77841
  13  37.7668
  14  0.000994231
  15  26.4425
  16  0.258581
  17  12.7285
  18  5.35059e-06
  19  2.65608e-06
  20  1.28022e-05
  21  30.4968
  22  10.4949
  23  7.3442e-05
  24  0.295193
  25  0.149846
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.464e+00  1.778e+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:  1.212e+00  1.498e-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:  5.543e-01  2.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.55
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 3.61e-05 +/- 2.61e-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) = 8923.66778247
delta logL = 0.0456990550047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8923.66714833
delta logL = 0.0463331915962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5061       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9092       1.0000          .0000       5.0000    
     3 'Normalizat'    .54658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2134       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=   8923.667     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5074        36.225        .64532E-02    .44129E-04
   2  alpha         1.9094        3.3047        .42707        .20692E-04
   3  Normalizat    .54625        .11888        .11959        .60503E-04
   4  Prefactor     1.2133        .44552E-01    .34322E-01   -.50694E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.50738
  alpha      = 1.90942
  Normalizat = 0.546248
  Prefactor  = 1.21333
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.667     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5074        1.7388        .99504E-04   -1.5391    
   2  alpha         1.9094        .62350        .15008E-01   -.23849    
   3  Normalizat    .54625        .27504        .53034E-03   -1.1032    
   4  Prefactor     1.2133        .14838        .19728E-03   -.85922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6607e-10
Minuit parameter uncertainties:
  1  1.73887
  2  0.630554
  3  0.275732
  4  0.148427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448344': 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) = 8923.66714447
delta logL = 0.0463370547732

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.507e+00  1.739e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.909e+00  6.306e-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:  1.213e+00  1.484e-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:  5.462e-01  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.62
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.91 +/- 0.63
Photon Flux (Free Index): 3.70e-08 +/- 4.03e-08
Energy Flux (Free Index): 3.06e-05 +/- 2.60e-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/448344/cmap_HighResolution_377740801_378000001_4FGL_J2243.9+2021_daily_bin534.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='3.06e-05', photon_flux_error='2.01e-08', dlogl='4.63e-02', energy_flux='3.61e-05', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-28 19:26:15.931539', photon_index_error2='0.63', photon_index2='1.91', ts='8.55', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='0.55', time_epoch_completed='1632882375.93', return_code='0', job_id='448344', GAL2='1.21', EG2='0.55', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='4.03e-08', ts2='8.62', photon_index='1.72' WHERE bin_id='534' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 448344: <4FGL_J2243.9+2021_daily_bin534> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin534> 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) <bullet0276>, 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:26:16 2021
Results reported at Tue Sep 28 19:26:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin534 340.99 20.3565 377740801 378000001 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

