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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin431
RA = 340.99, Dec = 20.3565
tmin = 351043201, tmax = 351302401
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='448177', job_status='RUN', time_executed='2021-09-28 19:13:14.845553', time_epoch_executed='1632881594.85' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448177

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448177/ft1_4FGL_J2243.9+2021_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448177/ft2_4FGL_J2243.9+2021_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448177/ft1_4FGL_J2243.9+2021_daily_bin431.fits outfile=/scratch/kocevski/448177/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin431.fits ra=340.99 dec=20.3565 rad=12.0 tmin=351043201.0 tmax=351302401.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.43
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448177/ft2_4FGL_J2243.9+2021_daily_bin431.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/448177/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/448177/ft1_filtered_4FGL_J2243.9+2021_daily_bin431.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.59
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448177/ft1_filtered_4FGL_J2243.9+2021_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/448177/ft2_4FGL_J2243.9+2021_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/448177/ltcube_351043201_351302401_4FGL_J2243.9+2021_daily_bin431.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/448177/ft2_4FGL_J2243.9+2021_daily_bin431.fits
.....................!
real 12.21
user 11.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448177/ft1_filtered_4FGL_J2243.9+2021_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/448177/ft2_4FGL_J2243.9+2021_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/448177/ltcube_351043201_351302401_4FGL_J2243.9+2021_daily_bin431.fits outfile=/scratch/kocevski/448177/expmap_351043201_351302401_4FGL_J2243.9+2021_daily_bin431.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/448177/ltcube_351043201_351302401_4FGL_J2243.9+2021_daily_bin431.fits
.....................!
real 190.32
user 185.06
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/448177/ft1_filtered_4FGL_J2243.9+2021_daily_bin431.fits scfile=/scratch/kocevski/448177/ft2_4FGL_J2243.9+2021_daily_bin431.fits outfile=/scratch/kocevski/448177/cmap_351043201_351302401_4FGL_J2243.9+2021_daily_bin431.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448177/ft1_filtered_4FGL_J2243.9+2021_daily_bin431.fits scfile=/scratch/kocevski/448177/ft2_4FGL_J2243.9+2021_daily_bin431.fits outfile=/scratch/kocevski/448177/cmap_HighResolution_351043201_351302401_4FGL_J2243.9+2021_daily_bin431.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .32181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.738       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6593       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2740       1.0000         .10000E-03   10000.    
    10 'norm      '    .49314       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.590       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6973       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.849       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30815E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.264       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8516       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.830       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.558       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5413       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1671       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87711       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0033       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=   8116.421     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2970 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.182       -.80747E-06** at limit **
   2  norm          .32185        .89630       -.35264E-07   -.17216E-03
   3  Prefactor     21.741        22.862        .16452E-05    .66793E-06
   4  norm          .10000E-03    3.2480       -.30494E-06** at limit **
   5  Prefactor     2.6607        19.602       -.12936E-05    .23603E-05
   6  Prefactor     .10000E-03    78.544        .35964E-06** at limit **
   7  Prefactor     7.4780        14.778        .35374E-05    .42028E-04
   8  Prefactor     .25537        .17930        .27088E-07    .68662E-03
   9  Prefactor     5.2741        5.3386       -.69774E-06    .16013E-04
  10  norm          .49340        1.1094        .56123E-07   -.13678E-03
  11  Prefactor     24.590        22.949       -.42435E-06   -.46383E-05
  12  norm          3.6975        1.8065       -.25073E-07    .12036E-03
  13  Prefactor     41.861        31.097        .76031E-05    .18333E-03
  14  Prefactor     .10000E-03    3.6842        .19744E-07** at limit **
  15  Prefactor     .10000E-03    17.907        .72230E-06** at limit **
  16  Prefactor     .30810E-01    .10975       -.30543E-06    .79889E-03
  17  Prefactor     15.265        10.154        .93074E-07    .22674E-04
  18  Prefactor     2.0782        2.4442        .11343E-06   -.96194E-03
  19  Prefactor     3.8529        10.780       -.68349E-07   -.24543E-03
  20  Prefactor     14.831        20.675       -.31488E-06    .21685E-05
  21  Prefactor     17.559        18.051       -.19928E-06    .44687E-06
  22  Prefactor     1.5449        8.6470        .15633E-05    .77738E-04
  23  Prefactor     7.1596        23.315       -.46344E-05   -.10256E-04
  24  Normalizat    .87702        .22201       -.11103E-05    .25458E-03
  25  Prefactor     1.0033        .10915        .57395E-07    .36828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.321854
  Prefactor  = 21.7406
  norm       = 0.0001
  Prefactor  = 2.66069
  Prefactor  = 0.0001
  Prefactor  = 7.47797
  Prefactor  = 0.255368
  Prefactor  = 5.27414
  norm       = 0.493396
  Prefactor  = 24.5899
  norm       = 3.69755
  Prefactor  = 41.861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0308102
  Prefactor  = 15.2651
  Prefactor  = 2.07819
  Prefactor  = 3.85295
  Prefactor  = 14.8311
  Prefactor  = 17.5585
  Prefactor  = 1.54487
  Prefactor  = 7.15956
  Normalizat = 0.877019
  Prefactor  = 1.00331
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.421     FROM HESSE     STATUS=OK           443 CALLS     3413 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .32185        .90207        .13445E-03   -1.5595    
   3  Prefactor     21.741        22.763        .85909E-04   -1.4775    
   4  norm          .10000E-03    10.700        .30936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6607        18.972        .24995E-03   -1.5382    
   6  Prefactor     .10000E-03    78.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4780        14.685        .14655E-03   -1.5161    
   8  Prefactor     .25537        .17044        .28470E-03   -1.5607    
   9  Prefactor     5.2741        5.3367        .17502E-03   -1.5249    
  10  norm          .49340        1.0693        .12724E-03   -1.5567    
  11  Prefactor     24.590        22.622        .80780E-04   -1.4716    
  12  norm          3.6975        1.8063        .82162E-04   -1.5323    
  13  Prefactor     41.861        31.120        .61967E-04   -1.4413    
  14  Prefactor     .10000E-03    3.6911        .16885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .30810E-01    .17569        .46814E-03   -1.5673    
  17  Prefactor     15.265        10.156        .10251E-03   -1.4926    
  18  Prefactor     2.0782        6.7453        .14331E-02   -1.5420    
  19  Prefactor     3.8529        11.071        .10281E-02   -1.5315    
  20  Prefactor     14.831        20.680        .10401E-03   -1.4938    
  21  Prefactor     17.559        18.050        .95583E-04   -1.4870    
  22  Prefactor     1.5449        8.2207        .34341E-03   -1.5459    
  23  Prefactor     7.1596        22.867        .14983E-03   -1.5173    
  24  Normalizat    .87702        .25123        .35861E-03   -.97272    
  25  Prefactor     1.0033        .12793        .18209E-03   -.92619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74906e-09
Minuit parameter uncertainties:
  1  5.35128e-06
  2  0.902108
  3  22.7723
  4  0.000113617
  5  14.216
  6  6.68506e-05
  7  14.6916
  8  0.170439
  9  5.33716
  10  1.06934
  11  22.6303
  12  1.80636
  13  31.132
  14  1.13005e-08
  15  4.26863e-06
  16  0.146907
  17  10.1568
  18  6.74777
  19  11.0768
  20  20.6904
  21  18.0552
  22  7.1287
  23  22.8949
  24  0.251566
  25  0.127972
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.770e-01  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.32
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 5.42e-05 +/- 2.65e-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) = 8116.37125025
delta logL = 0.0501995584927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8116.36997395
delta logL = 0.0514758560867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7875       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5993       1.0000          .0000       5.0000    
     3 'Normalizat'    .88081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0025       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=   8116.370     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7875        4.2537        .51856E-02    .39136E-04
   2  alpha         1.5993        .72434        .30297        .41402E-05
   3  Normalizat    .88081        .20177        .80849E-01    .28897E-04
   4  Prefactor     1.0025        .10843        .44809E-01    .85127E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.78748
  alpha      = 1.5993
  Normalizat = 0.880807
  Prefactor  = 1.00253
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.370     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7875        1.8601        .83510E-04   -1.5319    
   2  alpha         1.5993        .35654        .11993E-01   -.36857    
   3  Normalizat    .88081        .23145        .35792E-03   -.97138    
   4  Prefactor     1.0025        .12592        .18216E-03   -.92645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56362e-12
Minuit parameter uncertainties:
  1  1.86016
  2  0.357942
  3  0.231711
  4  0.12596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448177': 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) = 8116.36997395
delta logL = 0.0514758600784

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.787e+00  1.860e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.599e+00  3.579e-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.003e+00  1.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.808e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.42
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.60 +/- 0.36
Photon Flux (Free Index): 3.74e-08 +/- 2.23e-08
Energy Flux (Free Index): 6.52e-05 +/- 5.04e-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/448177/cmap_HighResolution_351043201_351302401_4FGL_J2243.9+2021_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='6.52e-05', photon_flux_error='2.04e-08', dlogl='5.15e-02', energy_flux='5.42e-05', photon_flux2='3.74e-08', job_status='DONE', time_completed='2021-09-28 19:24:40.244180', photon_index_error2='0.36', photon_index2='1.60', ts='12.32', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='5.04e-05', EG='0.88', time_epoch_completed='1632882280.24', return_code='0', job_id='448177', GAL2='1.00', EG2='0.88', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='2.23e-08', ts2='12.42', photon_index='1.72' WHERE bin_id='431' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 448177: <4FGL_J2243.9+2021_daily_bin431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin431 340.99 20.3565 351043201 351302401 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 :                                   684.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

