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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin895
RA = 340.99, Dec = 20.3565
tmin = 471312001, tmax = 471571201
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='449840', job_status='RUN', time_executed='2021-09-28 19:19:17.126018', time_epoch_executed='1632881957.13' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449840

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449840/ft1_4FGL_J2243.9+2021_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449840/ft2_4FGL_J2243.9+2021_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449840/ft1_4FGL_J2243.9+2021_daily_bin895.fits outfile=/scratch/kocevski/449840/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin895.fits ra=340.99 dec=20.3565 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.03
user 4.78
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449840/ft1_filtered_4FGL_J2243.9+2021_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/449840/ft2_4FGL_J2243.9+2021_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/449840/ltcube_471312001_471571201_4FGL_J2243.9+2021_daily_bin895.fits outfile=/scratch/kocevski/449840/expmap_471312001_471571201_4FGL_J2243.9+2021_daily_bin895.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/449840/ltcube_471312001_471571201_4FGL_J2243.9+2021_daily_bin895.fits
.....................!
real 189.96
user 184.76
sys 4.88

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/449840/ft1_filtered_4FGL_J2243.9+2021_daily_bin895.fits scfile=/scratch/kocevski/449840/ft2_4FGL_J2243.9+2021_daily_bin895.fits outfile=/scratch/kocevski/449840/cmap_471312001_471571201_4FGL_J2243.9+2021_daily_bin895.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449840/ft1_filtered_4FGL_J2243.9+2021_daily_bin895.fits scfile=/scratch/kocevski/449840/ft2_4FGL_J2243.9+2021_daily_bin895.fits outfile=/scratch/kocevski/449840/cmap_HighResolution_471312001_471571201_4FGL_J2243.9+2021_daily_bin895.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.349       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0366       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.672       1.0000         .10000E-03   10000.    
     4 'norm      '    29.828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30360E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12520E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9694       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.369       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3213       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.142       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69672       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0600       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=   7804.043     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2947 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.349        78.322       -.54233E-06    .19119E-04
   2  norm          1.0360        1.6729       -.53703E-06   -.15140E-02
   3  Prefactor     29.672        18.130        .22650E-06    .17871E-03
   4  norm          29.828        10.421        .25791E-06    .95982E-04
   5  Prefactor     18.026        16.471        .25627E-06    .36564E-05
   6  Prefactor     .10001E-03    535.14       -.15991E-03** at limit **
   7  Prefactor     .10000E-03    9.6807       -.56498E-07** at limit **
   8  Prefactor     2.4174        .38872       -.15547E-07    .53156E-03
   9  Prefactor     .10000E-03    2.3725        .64691E-07** at limit **
  10  norm          .10000E-03    .45496       -.35249E-07** at limit **
  11  Prefactor     .10000E-03    91.188        .25373E-05** at limit **
  12  norm          3.9692        2.4132       -.24553E-07    .10407E-03
  13  Prefactor     .10000E-03    38.922       -.42010E-07** at limit **
  14  Prefactor     10.666        15.089        .89003E-07   -.70135E-05
  15  Prefactor     1.1193        12.739       -.12009E-05   -.54755E-05
  16  Prefactor     1.4680        .27131        .17703E-08    .17449E-02
  17  Prefactor     .10000E-03    20.442        .16688E-06** at limit **
  18  Prefactor     .10000E-03    4.1713        .15794E-07** at limit **
  19  Prefactor     33.367        20.794       -.47547E-07    .20309E-04
  20  Prefactor     10.958        11.028        .65985E-07    .29080E-04
  21  Prefactor     .10000E-03    26.798       -.37139E-06** at limit **
  22  Prefactor     6.3186        8.9285       -.44675E-05   -.18402E-03
  23  Prefactor     26.153        28.407        .41505E-05    .22187E-04
  24  Normalizat    .69677        .27741        .13692E-05    .20921E-03
  25  Prefactor     1.0600        .13615        .33371E-06    .51570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.349
  norm       = 1.03602
  Prefactor  = 29.6724
  norm       = 29.8277
  Prefactor  = 18.0257
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.41736
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96916
  Prefactor  = 0.0001
  Prefactor  = 10.6663
  Prefactor  = 1.11926
  Prefactor  = 1.46802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3673
  Prefactor  = 10.9585
  Prefactor  = 0.0001
  Prefactor  = 6.31862
  Prefactor  = 26.1529
  Normalizat = 0.696774
  Prefactor  = 1.05999
 **********
 **   18 **HESSE 
 **********

 FCN=   7804.043     FROM HESSE     STATUS=OK           429 CALLS     3376 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.349        78.146        .51648E-04   -1.4153    
   2  norm          1.0360        1.6516        .13259E-03   -1.5504    
   3  Prefactor     29.672        18.126        .73552E-04   -1.4618    
   4  norm          29.828        10.354        .73360E-04   -1.4615    
   5  Prefactor     18.026        16.502        .94331E-04   -1.4859    
   6  Prefactor     .10001E-03    527.78        .21385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4174        .38965        .20759E-04   -1.5397    
   9  Prefactor     .10000E-03    2.3729        .13289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .73700        .11390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    94.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9692        2.4116        .10035E-03   -1.5309    
  13  Prefactor     .10000E-03    39.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.666        15.044        .12267E-03   -1.5055    
  15  Prefactor     1.1193        105.06        .59124E-02   -1.5496    
  16  Prefactor     1.4680        .27298        .18083E-04   -1.5466    
  17  Prefactor     .10000E-03    20.962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2024        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.367        20.759        .69368E-04   -1.4552    
  20  Prefactor     10.958        11.029        .12102E-03   -1.5046    
  21  Prefactor     .10000E-03    27.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.3186        8.9602        .15965E-03   -1.5205    
  23  Prefactor     26.153        28.308        .78350E-04   -1.4685    
  24  Normalizat    .69677        .29985        .46756E-03   -1.0402    
  25  Prefactor     1.0600        .15173        .20395E-03   -.90756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82562e-08
Minuit parameter uncertainties:
  1  78.2793
  2  1.65166
  3  18.1291
  4  10.3543
  5  16.5058
  6  0.00378714
  7  1.14843e-05
  8  0.389649
  9  1.7858e-07
  10  1.46581e-06
  11  0.000309305
  12  2.41162
  13  7.16985e-06
  14  15.0489
  15  21.7258
  16  0.272978
  17  3.84963e-05
  18  1.87708e-06
  19  20.7632
  20  11.0306
  21  2.34123e-05
  22  8.96215
  23  28.3222
  24  0.300555
  25  0.151788
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.969e+00  2.412e+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.060e+00  1.518e-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:  6.968e-01  3.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.95
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 5.81e-05 +/- 3.53e-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) = 7804.04181192
delta logL = 0.000698867761457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7804.04176553
delta logL = 0.000745263138924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9895       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7346       1.0000          .0000       5.0000    
     3 'Normalizat'    .69600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0599       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7804.042     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9895        2.3696        .10006E-03   -.94316E-03
   2  alpha         1.7346        .48711        .13316E-01   -.74920E-04
   3  Normalizat    .69599        .28203        .46779E-03    .36333E-04
   4  Prefactor     1.0599        .15031        .20395E-03    .79657E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.98952
  alpha      = 1.73461
  Normalizat = 0.695991
  Prefactor  = 1.05994
 **********
 **   18 **HESSE 
 **********

 FCN=   7804.042     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9895        2.3825        .40024E-05   -1.5308    
   2  alpha         1.7346        .48962        .53262E-03   -.31115    
   3  Normalizat    .69599        .28211        .18712E-04   -1.0405    
   4  Prefactor     1.0599        .15038        .40789E-04   -.90757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64707e-10
Minuit parameter uncertainties:
  1  2.38259
  2  0.49314
  3  0.282698
  4  0.150442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449840': 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) = 7804.04176553
delta logL = 0.000745264621401

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.990e+00  2.383e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.735e+00  4.931e-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.060e+00  1.504e-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:  6.960e-01  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.93
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.73 +/- 0.49
Photon Flux (Free Index): 4.61e-08 +/- 4.39e-08
Energy Flux (Free Index): 5.71e-05 +/- 4.24e-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/449840/cmap_HighResolution_471312001_471571201_4FGL_J2243.9+2021_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='5.71e-05', photon_flux_error='2.72e-08', dlogl='7.45e-04', energy_flux='5.81e-05', photon_flux2='4.61e-08', job_status='DONE', time_completed='2021-09-28 19:30:43.428218', photon_index_error2='0.49', photon_index2='1.73', ts='17.95', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.24e-05', EG='0.70', time_epoch_completed='1632882643.43', return_code='0', job_id='449840', GAL2='1.06', EG2='0.70', return_code2='0', energy_flux_error='3.53e-05', photon_flux_error2='4.39e-08', ts2='17.93', photon_index='1.72' WHERE bin_id='895' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 449840: <4FGL_J2243.9+2021_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin895 340.99 20.3565 471312001 471571201 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 :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

