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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin549
RA = 340.99, Dec = 20.3565
tmin = 381628801, tmax = 381888001
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='448366', job_status='RUN', time_executed='2021-09-28 19:11:17.257870', time_epoch_executed='1632881477.26' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448366/ft1_4FGL_J2243.9+2021_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448366/ft2_4FGL_J2243.9+2021_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448366/ft1_4FGL_J2243.9+2021_daily_bin549.fits outfile=/scratch/kocevski/448366/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin549.fits ra=340.99 dec=20.3565 rad=12.0 tmin=381628801.0 tmax=381888001.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.99
user 3.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448366/ft2_4FGL_J2243.9+2021_daily_bin549.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/448366/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin549.fits evtable="EVENTS" outfile="/scratch/kocevski/448366/ft1_filtered_4FGL_J2243.9+2021_daily_bin549.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448366/ft1_filtered_4FGL_J2243.9+2021_daily_bin549.fits" evtable="EVENTS" scfile=/scratch/kocevski/448366/ft2_4FGL_J2243.9+2021_daily_bin549.fits sctable="SC_DATA" outfile=/scratch/kocevski/448366/ltcube_381628801_381888001_4FGL_J2243.9+2021_daily_bin549.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/448366/ft2_4FGL_J2243.9+2021_daily_bin549.fits
.....................!
real 11.66
user 11.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448366/ft1_filtered_4FGL_J2243.9+2021_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/448366/ft2_4FGL_J2243.9+2021_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/448366/ltcube_381628801_381888001_4FGL_J2243.9+2021_daily_bin549.fits outfile=/scratch/kocevski/448366/expmap_381628801_381888001_4FGL_J2243.9+2021_daily_bin549.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/448366/ltcube_381628801_381888001_4FGL_J2243.9+2021_daily_bin549.fits
.....................!
real 190.91
user 186.33
sys 4.27

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/448366/ft1_filtered_4FGL_J2243.9+2021_daily_bin549.fits scfile=/scratch/kocevski/448366/ft2_4FGL_J2243.9+2021_daily_bin549.fits outfile=/scratch/kocevski/448366/cmap_381628801_381888001_4FGL_J2243.9+2021_daily_bin549.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/448366/ft1_filtered_4FGL_J2243.9+2021_daily_bin549.fits scfile=/scratch/kocevski/448366/ft2_4FGL_J2243.9+2021_daily_bin549.fits outfile=/scratch/kocevski/448366/cmap_HighResolution_381628801_381888001_4FGL_J2243.9+2021_daily_bin549.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10974E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .40857       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4235       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68476       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7577       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .74698       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29548E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.770       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13638E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.898       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.642       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2489       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9516       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82419       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=   8774.087     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2942 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.043        .10631E-06** at limit **
   2  norm          .40863        .81198        .60085E-07   -.24297E-03
   3  Prefactor     2.4237        14.560        .72636E-05   -.86690E-04
   4  norm          .10000E-03    1.7293       -.67238E-07** at limit **
   5  Prefactor     .10000E-03    12.381       -.12087E-06** at limit **
   6  Prefactor     .50557        44.988       -.43456E-05    .78813E-04
   7  Prefactor     2.7630        8.2685        .20526E-06    .40303E-04
   8  Prefactor     2.7360        .34413        .48858E-08    .39032E-03
   9  Prefactor     .10000E-03    7.5998       -.49687E-07** at limit **
  10  norm          .74674        .67253        .60794E-08    .14482E-03
  11  Prefactor     .10000E-03    28.926       -.64158E-06** at limit **
  12  norm          2.8718        1.8457       -.10352E-07   -.83227E-05
  13  Prefactor     .10000E-03    44.770        .19675E-07** at limit **
  14  Prefactor     17.761        10.443        .14297E-06    .55810E-04
  15  Prefactor     .10000E-03    36.989        .89271E-07** at limit **
  16  Prefactor     1.8471        .24058        .31139E-08    .41242E-03
  17  Prefactor     17.893        10.986        .19048E-06    .50994E-04
  18  Prefactor     .10000E-03    3.6129       -.48179E-07** at limit **
  19  Prefactor     2.7434        10.687       -.15892E-06   -.27179E-04
  20  Prefactor     36.630        22.412       -.15674E-05   -.22340E-03
  21  Prefactor     .10000E-03    7.4301        .11750E-06** at limit **
  22  Prefactor     7.2492        6.3939        .87898E-06    .28991E-03
  23  Prefactor     5.9417        19.654       -.32850E-05   -.10336E-03
  24  Normalizat    1.0480        .22251       -.89728E-06    .10255E-03
  25  Prefactor     .82417        .11169        .39231E-06    .18676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.408626
  Prefactor  = 2.4237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.505572
  Prefactor  = 2.76305
  Prefactor  = 2.73603
  Prefactor  = 0.0001
  norm       = 0.746742
  Prefactor  = 0.0001
  norm       = 2.87183
  Prefactor  = 0.0001
  Prefactor  = 17.7614
  Prefactor  = 0.0001
  Prefactor  = 1.84705
  Prefactor  = 17.8928
  Prefactor  = 0.0001
  Prefactor  = 2.74341
  Prefactor  = 36.6305
  Prefactor  = 0.0001
  Prefactor  = 7.24924
  Prefactor  = 5.94168
  Normalizat = 1.04798
  Prefactor  = 0.824174
 **********
 **   18 **HESSE 
 **********

 FCN=   8774.087     FROM HESSE     STATUS=OK           437 CALLS     3379 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .40863        .79524        .11360E-03   -1.5580    
   3  Prefactor     2.4237        14.829        .13145E-02   -1.5397    
   4  norm          .10000E-03    1.7387        .12028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .50557        41.160        .19465       -1.5566    
   7  Prefactor     2.7630        8.2614        .24512E-03   -1.5376    
   8  Prefactor     2.7360        .34475        .18705E-04   -1.5377    
   9  Prefactor     .10000E-03    7.7521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .74674        .66473        .70240E-04   -1.5535    
  11  Prefactor     .10000E-03    29.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8718        1.8437        .98161E-04   -1.5369    
  13  Prefactor     .10000E-03    45.733        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.761        10.445        .95013E-04   -1.4865    
  15  Prefactor     .10000E-03    37.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8471        .24097        .15754E-04   -1.5436    
  17  Prefactor     17.893        10.987        .94671E-04   -1.4862    
  18  Prefactor     .10000E-03    3.6347        .17383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7434        10.683        .24611E-03   -1.5377    
  20  Prefactor     36.630        22.505        .66208E-04   -1.4497    
  21  Prefactor     .10000E-03    7.4395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.2492        6.4160        .14898E-03   -1.5169    
  23  Prefactor     5.9417        19.805        .16460E-03   -1.5220    
  24  Normalizat    1.0480        .26059        .35388E-03   -.91440    
  25  Prefactor     .82417        .13184        .21158E-03   -.98843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35954e-10
Minuit parameter uncertainties:
  1  1.02092e-05
  2  0.795264
  3  11.9942
  4  4.93001e-06
  5  2.29588e-05
  6  9.12902
  7  8.26481
  8  0.344754
  9  8.9123e-06
  10  0.664733
  11  9.69865e-05
  12  1.84371
  13  5.20045e-05
  14  10.4465
  15  3.5184e-05
  16  0.240967
  17  10.9882
  18  4.23504e-06
  19  10.6909
  20  22.5106
  21  1.62567e-05
  22  6.41665
  23  19.8268
  24  0.260908
  25  0.131886
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.872e+00  1.844e+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:  8.242e-01  1.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.048e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 2.70e-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) = 8773.0251703
delta logL = 1.06143893153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8773.01813575
delta logL = 1.06847347274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9765       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4201       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83166       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=   8773.018     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9765        19.581        .73717E-03    .15938E-02
   2  alpha         2.4201        3.6727        .26762        .77807E-04
   3  Normalizat    1.0138        .10435        .81008E-01    .26411E-04
   4  Prefactor     .83167        .44389E-01    .44128E-01    .93344E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97648
  alpha      = 2.42012
  Normalizat = 1.01378
  Prefactor  = 0.831666
 **********
 **   18 **HESSE 
 **********

 FCN=   8773.018     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9765        1.6401        .29487E-04   -1.5427    
   2  alpha         2.4201        .51486        .97958E-02   -.31956E-01
   3  Normalizat    1.0138        .24490        .35859E-03   -.92570    
   4  Prefactor     .83167        .13140        .21046E-03   -.98571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95958e-09
Minuit parameter uncertainties:
  1  1.64011
  2  0.518574
  3  0.245168
  4  0.131447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448366': 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) = 8773.01813575
delta logL = 1.06847347624

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.976e+00  1.640e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.420e+00  5.186e-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:  8.317e-01  1.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.014e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.31
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.42 +/- 0.52
Photon Flux (Free Index): 7.01e-08 +/- 4.44e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.49e-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/448366/cmap_HighResolution_381628801_381888001_4FGL_J2243.9+2021_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='2.52e-05', photon_flux_error='2.08e-08', dlogl='1.07e+00', energy_flux='4.21e-05', photon_flux2='7.01e-08', job_status='DONE', time_completed='2021-09-28 19:24:05.644347', photon_index_error2='0.52', photon_index2='2.42', ts='6.19', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.05', time_epoch_completed='1632882245.64', return_code='0', job_id='448366', GAL2='0.83', EG2='1.01', return_code2='0', energy_flux_error='2.70e-05', photon_flux_error2='4.44e-08', ts2='8.31', photon_index='1.72' WHERE bin_id='549' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 448366: <4FGL_J2243.9+2021_daily_bin549> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin549 340.99 20.3565 381628801 381888001 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 :                                   766.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            787 sec.

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

