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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin953
RA = 340.99, Dec = 20.3565
tmin = 486345601, tmax = 486604801
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='449923', job_status='RUN', time_executed='2021-09-28 19:18:04.418803', time_epoch_executed='1632881884.42' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='953'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449923

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449923/ft1_4FGL_J2243.9+2021_daily_bin953.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449923/ft2_4FGL_J2243.9+2021_daily_bin953.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449923/ft1_4FGL_J2243.9+2021_daily_bin953.fits outfile=/scratch/kocevski/449923/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin953.fits ra=340.99 dec=20.3565 rad=12.0 tmin=486345601.0 tmax=486604801.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.68
user 3.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449923/ft1_filtered_4FGL_J2243.9+2021_daily_bin953.fits evtable="EVENTS" scfile=/scratch/kocevski/449923/ft2_4FGL_J2243.9+2021_daily_bin953.fits sctable="SC_DATA" expcube=/scratch/kocevski/449923/ltcube_486345601_486604801_4FGL_J2243.9+2021_daily_bin953.fits outfile=/scratch/kocevski/449923/expmap_486345601_486604801_4FGL_J2243.9+2021_daily_bin953.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/449923/ltcube_486345601_486604801_4FGL_J2243.9+2021_daily_bin953.fits
.....................!
real 189.51
user 184.98
sys 4.18

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/449923/ft1_filtered_4FGL_J2243.9+2021_daily_bin953.fits scfile=/scratch/kocevski/449923/ft2_4FGL_J2243.9+2021_daily_bin953.fits outfile=/scratch/kocevski/449923/cmap_486345601_486604801_4FGL_J2243.9+2021_daily_bin953.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/449923/ft1_filtered_4FGL_J2243.9+2021_daily_bin953.fits scfile=/scratch/kocevski/449923/ft2_4FGL_J2243.9+2021_daily_bin953.fits outfile=/scratch/kocevski/449923/cmap_HighResolution_486345601_486604801_4FGL_J2243.9+2021_daily_bin953.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4364       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    218.29       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0540       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2680       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4235       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.171       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3249       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29678E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9954       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.912       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5391       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2030       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58846       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1772       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=   10154.73     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2964 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.620        .28576E-06** at limit **
   2  norm          1.4195        .88765        .24313E-08   -.24051E-05
   3  Prefactor     .10000E-03    12.885        .10833E-06** at limit **
   4  norm          4.4369        4.1652        .86130E-06   -.82061E-05
   5  Prefactor     .10000E-03    6.0861        .96666E-08** at limit **
   6  Prefactor     218.30        119.02       -.17479E-06    .24493E-04
   7  Prefactor     6.0553        11.203        .12855E-06    .38092E-04
   8  Prefactor     2.9368        .34041        .30785E-08    .12609E-03
   9  Prefactor     .10000E-03    4.3428       -.15157E-08** at limit **
  10  norm          3.2679        1.2577        .86919E-07    .39653E-03
  11  Prefactor     .10000E-03    9.3197       -.12284E-06** at limit **
  12  norm          3.4237        1.8521       -.94407E-08   -.12886E-03
  13  Prefactor     41.168        37.810        .44127E-06    .21905E-04
  14  Prefactor     .10000E-03    8.0510        .12018E-06** at limit **
  15  Prefactor     37.383        26.834       -.52029E-06    .42841E-04
  16  Prefactor     2.3247        .27953       -.11846E-07   -.23792E-02
  17  Prefactor     .10000E-03    7.8504        .94189E-06** at limit **
  18  Prefactor     9.9981        7.9985        .65525E-07    .62352E-04
  19  Prefactor     .10000E-03    7.1057       -.36858E-08** at limit **
  20  Prefactor     25.897        23.714        .10841E-05    .10926E-03
  21  Prefactor     .10000E-03    18.109       -.62382E-06** at limit **
  22  Prefactor     4.5398        4.9959        .10507E-05   -.18589E-05
  23  Prefactor     2.2033        12.942        .65734E-05   -.22910E-06
  24  Normalizat    .58835        .26667       -.34029E-06    .23138E-03
  25  Prefactor     1.1772        .13441       -.10318E-06    .52630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.41946
  Prefactor  = 0.0001
  norm       = 4.43691
  Prefactor  = 0.0001
  Prefactor  = 218.301
  Prefactor  = 6.05526
  Prefactor  = 2.9368
  Prefactor  = 0.0001
  norm       = 3.2679
  Prefactor  = 0.0001
  norm       = 3.42374
  Prefactor  = 41.1684
  Prefactor  = 0.0001
  Prefactor  = 37.3828
  Prefactor  = 2.32471
  Prefactor  = 0.000100004
  Prefactor  = 9.99812
  Prefactor  = 0.0001
  Prefactor  = 25.8974
  Prefactor  = 0.0001
  Prefactor  = 4.53976
  Prefactor  = 2.20333
  Normalizat = 0.588349
  Prefactor  = 1.17723
 **********
 **   18 **HESSE 
 **********

 FCN=   10154.73     FROM HESSE     STATUS=OK           427 CALLS     3391 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4195        .87728        .72165E-04   -1.5470    
   3  Prefactor     .10000E-03    12.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4369        4.1646        .95593E-03   -1.5287    
   5  Prefactor     .10000E-03    6.1041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     218.30        118.75        .27374E-04   -1.2742    
   7  Prefactor     6.0553        11.146        .16318E-03   -1.5216    
   8  Prefactor     2.9368        .33991        .19117E-04   -1.5365    
   9  Prefactor     .10000E-03    4.3803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2679        1.2550        .33345E-03   -1.5346    
  11  Prefactor     .10000E-03    9.3405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4237        1.8511        .97944E-04   -1.5338    
  13  Prefactor     41.168        37.923        .62473E-04   -1.4424    
  14  Prefactor     .10000E-03    8.1028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.383        26.853        .65562E-04   -1.4484    
  16  Prefactor     2.3247        .28170        .16470E-04   -1.5403    
  17  Prefactor     .10000E-03    47.161        .52250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9981        7.9864        .12674E-03   -1.5075    
  19  Prefactor     .10000E-03    7.1659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.897        23.678        .78696E-04   -1.4690    
  21  Prefactor     .10000E-03    18.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.5398        4.9691        .94478E-03   -1.5282    
  23  Prefactor     2.2033        12.914        .13859E-02   -1.5411    
  24  Normalizat    .58835        .27215        .50970E-03   -1.0848    
  25  Prefactor     1.1772        .14179        .20588E-03   -.87035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56863e-10
Minuit parameter uncertainties:
  1  3.96528e-06
  2  0.877287
  3  5.85903e-05
  4  4.16485
  5  4.19934e-07
  6  118.878
  7  11.1501
  8  0.339906
  9  7.24768e-07
  10  1.25504
  11  5.57513e-07
  12  1.85113
  13  37.945
  14  2.56434e-05
  15  26.8614
  16  0.281703
  17  0.000864712
  18  7.98722
  19  2.34753e-05
  20  23.687
  21  0.000145795
  22  4.96951
  23  10.6717
  24  0.27277
  25  0.141835
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.424e+00  1.851e+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.177e+00  1.418e-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.883e-01  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.68
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 2.71e-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) = 10154.2621853
delta logL = 0.468338803614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10154.2592689
delta logL = 0.471255272518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9895       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1386       1.0000          .0000       5.0000    
     3 'Normalizat'    .56562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1814       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=   10154.26     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      242 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9895        28.083        .58697E-02    .11000E-02
   2  alpha         2.1386        3.5556        .24869        .46804E-04
   3  Normalizat    .56562        .14035        .11701        .13976E-03
   4  Prefactor     1.1814        .52680E-01    .35085E-01   -.37189E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98953
  alpha      = 2.13864
  Normalizat = 0.565622
  Prefactor  = 1.18144
 **********
 **   18 **HESSE 
 **********

 FCN=   10154.26     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9895        1.8021        .83040E-04   -1.5362    
   2  alpha         2.1386        .44999        .12225E-01   -.14505    
   3  Normalizat    .56562        .25192        .51893E-03   -1.0946    
   4  Prefactor     1.1814        .14037        .20543E-03   -.86904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59174e-10
Minuit parameter uncertainties:
  1  1.80209
  2  0.452513
  3  0.252434
  4  0.140414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449923': 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) = 10154.2592689
delta logL = 0.471255274699

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.990e+00  1.802e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.139e+00  4.525e-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.181e+00  1.404e-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.656e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.57
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.14 +/- 0.45
Photon Flux (Free Index): 6.37e-08 +/- 4.14e-08
Energy Flux (Free Index): 3.41e-05 +/- 2.03e-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/449923/cmap_HighResolution_486345601_486604801_4FGL_J2243.9+2021_daily_bin953.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='3.41e-05', photon_flux_error='2.09e-08', dlogl='4.71e-01', energy_flux='5.02e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2021-09-28 19:31:57.787858', photon_index_error2='0.45', photon_index2='2.14', ts='10.68', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.59', time_epoch_completed='1632882717.79', return_code='0', job_id='449923', GAL2='1.18', EG2='0.57', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='4.14e-08', ts2='11.57', photon_index='1.72' WHERE bin_id='953' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:31:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 449923: <4FGL_J2243.9+2021_daily_bin953> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin953> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:47 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:49 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:15:49 2021
Terminated at Tue Sep 28 19:31:58 2021
Results reported at Tue Sep 28 19:31:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin953 340.99 20.3565 486345601 486604801 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 :                                   831.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

