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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin471
RA = 340.99, Dec = 20.3565
tmin = 361411201, tmax = 361670401
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='448241', job_status='RUN', time_executed='2021-09-28 19:13:16.387287', time_epoch_executed='1632881596.39' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448241

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448241/ft1_4FGL_J2243.9+2021_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448241/ft2_4FGL_J2243.9+2021_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448241/ft1_4FGL_J2243.9+2021_daily_bin471.fits outfile=/scratch/kocevski/448241/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin471.fits ra=340.99 dec=20.3565 rad=12.0 tmin=361411201.0 tmax=361670401.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.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448241/ft1_filtered_4FGL_J2243.9+2021_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/448241/ft2_4FGL_J2243.9+2021_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/448241/ltcube_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.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/448241/ft2_4FGL_J2243.9+2021_daily_bin471.fits
.....................!
real 11.91
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448241/ft1_filtered_4FGL_J2243.9+2021_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/448241/ft2_4FGL_J2243.9+2021_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/448241/ltcube_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.fits outfile=/scratch/kocevski/448241/expmap_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.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/448241/ltcube_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.fits
.....................!
real 190.01
user 185.26
sys 4.44

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/448241/ft1_filtered_4FGL_J2243.9+2021_daily_bin471.fits scfile=/scratch/kocevski/448241/ft2_4FGL_J2243.9+2021_daily_bin471.fits outfile=/scratch/kocevski/448241/cmap_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.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/448241/ft1_filtered_4FGL_J2243.9+2021_daily_bin471.fits scfile=/scratch/kocevski/448241/ft2_4FGL_J2243.9+2021_daily_bin471.fits outfile=/scratch/kocevski/448241/cmap_HighResolution_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.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/448241/ft1_filtered_4FGL_J2243.9+2021_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/448241/ft2_4FGL_J2243.9+2021_daily_bin471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448241/Model_4FGL_J2243.9+2021_daily_bin471.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/448241/ft1_filtered_4FGL_J2243.9+2021_daily_bin471.fits.....................!
real 92.15
user 90.62
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.002       1.0000         .10000E-03   10000.    
     2 'norm      '    .88486E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.7685       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.713       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3880       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2048       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7654       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5116       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .97230E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2928       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78672       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=   8780.728     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2550 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.988        36.760       -.25011E-05   -.14504E-03
   2  norm          .88902E-01    .43262        .67392E-07   -.28354E-03
   3  Prefactor     .10000E-03    4.5245        .20214E-07** at limit **
   4  norm          5.7689        5.4872        .13320E-06   -.77727E-04
   5  Prefactor     10.713        13.121        .12055E-05   -.11374E-03
   6  Prefactor     .10000E-03    70.811       -.15495E-05** at limit **
   7  Prefactor     .10000E-03    4.6706        .38449E-07** at limit **
   8  Prefactor     1.7159        .28908       -.16297E-07   -.13392E-03
   9  Prefactor     5.3880        5.5423        .50014E-06   -.13144E-03
  10  norm          1.2048        .83501        .32316E-07   -.21575E-04
  11  Prefactor     .10000E-03    13.360        .18474E-06** at limit **
  12  norm          .10000E-03    .64027        .16956E-07** at limit **
  13  Prefactor     .10000E-03    7.9128        .67912E-07** at limit **
  14  Prefactor     8.4931        9.1559        .15563E-06    .17625E-04
  15  Prefactor     .10000E-03    30.925        .27619E-05** at limit **
  16  Prefactor     .10000E-03    .40513E-01   -.11884E-07** at limit **
  17  Prefactor     17.453        12.160        .78326E-07    .47442E-05
  18  Prefactor     7.7648        6.1432        .14154E-05   -.41758E-03
  19  Prefactor     .10000E-03    9.5041       -.10555E-06** at limit **
  20  Prefactor     .10000E-03    30.708        .82971E-07** at limit **
  21  Prefactor     .10000E-03    28.795       -.19880E-05** at limit **
  22  Prefactor     7.4976        6.3076        .93511E-07   -.96073E-04
  23  Prefactor     .10000E-03    65.690        .12694E-05** at limit **
  24  Normalizat    1.2928        .20222       -.47422E-06   -.29104E-04
  25  Prefactor     .78666        .10332       -.63145E-07   -.76343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9875
  norm       = 0.0889017
  Prefactor  = 0.0001
  norm       = 5.76886
  Prefactor  = 10.713
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.71589
  Prefactor  = 5.38798
  norm       = 1.20479
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.49315
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 17.4527
  Prefactor  = 7.7648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.49757
  Prefactor  = 0.0001
  Normalizat = 1.2928
  Prefactor  = 0.78666
 **********
 **   18 **HESSE 
 **********

 FCN=   8780.728     FROM HESSE     STATUS=OK           441 CALLS     2991 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.988        38.084        .10012E-03   -1.4908    
   2  norm          .88902E-01    1.7066        .11686E-02   -1.5648    
   3  Prefactor     .10000E-03    4.5327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.7689        5.4730        .16723E-03   -1.5228    
   5  Prefactor     10.713        13.192        .61203E-03   -1.5053    
   6  Prefactor     .10000E-03    71.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7159        .29051        .19215E-04   -1.5446    
   9  Prefactor     5.3880        5.5549        .86563E-03   -1.5244    
  10  norm          1.2048        .82594        .68683E-04   -1.5488    
  11  Prefactor     .10000E-03    13.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .60832        .27603E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.9179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4931        9.1566        .13755E-03   -1.5125    
  15  Prefactor     .10000E-03    32.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .26585        .36373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.453        12.171        .95877E-04   -1.4872    
  18  Prefactor     7.7648        6.2508        .71949E-03   -1.5151    
  19  Prefactor     .10000E-03    9.6165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.4976        6.3158        .14633E-03   -1.5160    
  23  Prefactor     .10000E-03    68.188        .36286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2928        .23958        .30627E-03   -.83782    
  25  Prefactor     .78666        .12290        .20267E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60336e-08
Minuit parameter uncertainties:
  1  38.142
  2  0.778604
  3  3.20649e-06
  4  5.47351
  5  13.1952
  6  0.000632298
  7  4.19571e-06
  8  0.29051
  9  5.55541
  10  0.825945
  11  2.57644e-05
  12  1.19197e-05
  13  6.83581e-06
  14  9.15809
  15  0.000512905
  16  2.63402e-06
  17  12.1729
  18  6.25134
  19  2.03988e-05
  20  3.41983e-06
  21  0.000495868
  22  6.31638
  23  0.000310625
  24  0.239787
  25  0.12294
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  1.192e-05  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:  7.867e-01  1.229e-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.293e+00  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 2.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448241/likelihoodResults_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.txt

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): 102
logL (Free Index) = 8780.7292454
delta logL = -0.000893917156645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8780.71454324
delta logL = 0.013808249827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10419       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2171       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78518       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8780.715     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      293 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10397        1.0651        .18346E-03    .11155E-04
   2  alpha         1.2146        1.5569        .64335E-01   -.45853E-05
   3  Normalizat    1.2944        .22838        .30611E-03    .51995E-06
   4  Prefactor     .78527        .12203        .20283E-03    .44841E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103969
  alpha      = 1.21463
  Normalizat = 1.29442
  Prefactor  = 0.785265
 **********
 **   18 **HESSE 
 **********

 FCN=   8780.715     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .60E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10397        1.0678        .73382E-05   -1.5644    
   2  alpha         1.2146        1.5623        .25734E-02   -.54001    
   3  Normalizat    1.2944        .22860        .12244E-04   -.83733    
   4  Prefactor     .78527        .12214        .81131E-05   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04325e-15
Minuit parameter uncertainties:
  1  0.66609
  2  1.75023
  3  0.228779
  4  0.12218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448241': 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) = 8780.71454194
delta logL = 0.0138095462153

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.040e-01  6.661e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.215e+00  1.750e+00  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:  7.853e-01  1.222e-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.294e+00  2.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.990 20.357

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/448241/cmap_HighResolution_361411201_361670401_4FGL_J2243.9+2021_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-05', job_status='DONE', photon_flux_upper_limit='2.97e-08', time_completed='2021-09-28 19:26:40.260199', job_id='448241', GAL2='0.79', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632882400.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.38e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='471' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 448241: <4FGL_J2243.9+2021_daily_bin471> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin471 340.99 20.3565 361411201 361670401 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 :                                   803.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            954 sec.

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

