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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin699
RA = 340.99, Dec = 20.3565
tmin = 420508801, tmax = 420768001
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='449569', job_status='RUN', time_executed='2021-09-28 19:15:32.943184', time_epoch_executed='1632881732.94' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449569/ft1_4FGL_J2243.9+2021_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449569/ft2_4FGL_J2243.9+2021_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449569/ft1_4FGL_J2243.9+2021_daily_bin699.fits outfile=/scratch/kocevski/449569/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin699.fits ra=340.99 dec=20.3565 rad=12.0 tmin=420508801.0 tmax=420768001.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.46
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449569/ft1_filtered_4FGL_J2243.9+2021_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/449569/ft2_4FGL_J2243.9+2021_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/449569/ltcube_420508801_420768001_4FGL_J2243.9+2021_daily_bin699.fits outfile=/scratch/kocevski/449569/expmap_420508801_420768001_4FGL_J2243.9+2021_daily_bin699.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/449569/ltcube_420508801_420768001_4FGL_J2243.9+2021_daily_bin699.fits
.....................!
real 190.68
user 185.16
sys 5.21

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/449569/ft1_filtered_4FGL_J2243.9+2021_daily_bin699.fits scfile=/scratch/kocevski/449569/ft2_4FGL_J2243.9+2021_daily_bin699.fits outfile=/scratch/kocevski/449569/cmap_420508801_420768001_4FGL_J2243.9+2021_daily_bin699.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449569/ft1_filtered_4FGL_J2243.9+2021_daily_bin699.fits scfile=/scratch/kocevski/449569/ft2_4FGL_J2243.9+2021_daily_bin699.fits outfile=/scratch/kocevski/449569/cmap_HighResolution_420508801_420768001_4FGL_J2243.9+2021_daily_bin699.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .76245       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.9181       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.135       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59572       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .63160E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2700       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.795       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.647       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6066       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33339       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1871       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2759       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85049       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0223       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=   10948.14     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2917 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.126        .35151E-06** at limit **
   2  norm          .76245        1.0448       -.10547E-07   -.79922E-04
   3  Prefactor     .10000E-03    6.8950        .64025E-08** at limit **
   4  norm          6.9182        5.2297        .55536E-07    .31781E-04
   5  Prefactor     .10000E-03    3.7745       -.52337E-07** at limit **
   6  Prefactor     28.205        79.293       -.86422E-05   -.31725E-04
   7  Prefactor     17.137        12.224        .79200E-07   -.29653E-05
   8  Prefactor     .59573        .17709        .26813E-08    .17635E-03
   9  Prefactor     .10000E-03    3.1705       -.47346E-07** at limit **
  10  norm          .63300E-01    .63441        .29094E-06   -.45602E-03
  11  Prefactor     3.2680        21.664       -.23541E-06   -.42125E-04
  12  norm          .10000E-03    .33561       -.14640E-07** at limit **
  13  Prefactor     17.801        17.519       -.23640E-06   -.80079E-05
  14  Prefactor     .10000E-03    5.2301        .86829E-07** at limit **
  15  Prefactor     12.645        15.233        .16181E-07    .59239E-06
  16  Prefactor     3.6066        .29551       -.73337E-09    .13792E-03
  17  Prefactor     .36905        4.9986        .98470E-06   -.39273E-03
  18  Prefactor     .10000E-03    4.7291       -.19038E-06** at limit **
  19  Prefactor     .10000E-03    7.5620       -.20478E-06** at limit **
  20  Prefactor     2.1860        30.997        .33028E-06   -.11166E-04
  21  Prefactor     .10000E-03    13.773       -.30792E-06** at limit **
  22  Prefactor     4.2766        6.6026        .15136E-05    .14960E-03
  23  Prefactor     .10000E-03    13.579        .34285E-06** at limit **
  24  Normalizat    .85043        .21615       -.22366E-06   -.61358E-04
  25  Prefactor     1.0223        .10889        .14846E-06   -.12478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.762454
  Prefactor  = 0.0001
  norm       = 6.9182
  Prefactor  = 0.0001
  Prefactor  = 28.2054
  Prefactor  = 17.1366
  Prefactor  = 0.595731
  Prefactor  = 0.0001
  norm       = 0.0632996
  Prefactor  = 3.26803
  norm       = 0.0001
  Prefactor  = 17.8006
  Prefactor  = 0.0001
  Prefactor  = 12.6454
  Prefactor  = 3.60658
  Prefactor  = 0.369048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.186
  Prefactor  = 0.0001
  Prefactor  = 4.27658
  Prefactor  = 0.0001
  Normalizat = 0.850435
  Prefactor  = 1.02226
 **********
 **   18 **HESSE 
 **********

 FCN=   10948.14     FROM HESSE     STATUS=OK           431 CALLS     3348 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76245        1.0258        .11703E-03   -1.5533    
   3  Prefactor     .10000E-03    6.9180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.9182        5.2118        .15253E-03   -1.5182    
   5  Prefactor     .10000E-03    3.7885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.205        79.634        .75551E-04   -1.4645    
   7  Prefactor     17.137        12.240        .96756E-04   -1.4880    
   8  Prefactor     .59573        .17613        .23075E-04   -1.5554    
   9  Prefactor     .10000E-03    3.1850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .63300E-01    1.7776        .14726E-02   -1.5658    
  11  Prefactor     3.2680        20.763        .22394E-03   -1.5346    
  12  norm          .10000E-03    .33630        .59195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.801        17.531        .94944E-04   -1.4864    
  14  Prefactor     .10000E-03    5.2652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.645        15.247        .11264E-03   -1.4997    
  16  Prefactor     3.6066        .29656        .15140E-04   -1.5328    
  17  Prefactor     .36905        30.146        .41352E-02   -1.5586    
  18  Prefactor     .10000E-03    4.8042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1860        30.871        .27832E-03   -1.5412    
  21  Prefactor     .10000E-03    13.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2766        6.6287        .97419E-03   -1.5294    
  23  Prefactor     .10000E-03    13.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85043        .24547        .41560E-03   -.98224    
  25  Prefactor     1.0223        .12618        .20425E-03   -.91991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49711e-08
Minuit parameter uncertainties:
  1  4.24777e-06
  2  1.02586
  3  8.61417e-06
  4  5.21209
  5  3.16318e-06
  6  79.9366
  7  12.2418
  8  0.176135
  9  2.37025e-06
  10  0.67038
  11  16.4828
  12  2.92843e-07
  13  17.5365
  14  7.24729e-06
  15  15.252
  16  0.296564
  17  6.67349
  18  7.68642e-06
  19  1.08798e-05
  20  16.4397
  21  1.58935e-05
  22  6.62987
  23  8.61286e-06
  24  0.24579
  25  0.126215
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  2.928e-07  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.022e+00  1.262e-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.504e-01  2.458e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449569/likelihoodResults_420508801_420768001_4FGL_J2243.9+2021_daily_bin699.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): 0
logL (Free Index) = 10948.1370387
delta logL = -4.81111055706e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10948.1370381
delta logL = -4.28199200542e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7135       1.0000          .0000       5.0000    
     3 'Normalizat'    .85001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0224       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=   10948.14     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      232 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .44654        .59199E-03** at limit **
   2  alpha         1.6841        2.6215        .17631        .56743E-08
   3  Normalizat    .85044        .23159        .41561E-03    .33547E-03
   4  Prefactor     1.0223        .12480        .20425E-03    .72281E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.68411
  Normalizat = 0.850435
  Prefactor  = 1.02226
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .33652        .11840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6841        3.8509        .70525E-02   -.33244    
   3  Normalizat    .85044        .23176        .16624E-04   -.98224    
   4  Prefactor     1.0223        .12489        .40850E-04   -.91991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13356e-10
Minuit parameter uncertainties:
  1  5.75787e-07
  2  71.4343
  3  0.232035
  4  0.124923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449569': 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) = 10948.1370337
delta logL = 9.60262696026e-08

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  5.758e-07  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.684e+00  7.143e+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.022e+00  1.249e-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.504e-01  2.320e-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/449569/cmap_HighResolution_420508801_420768001_4FGL_J2243.9+2021_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', job_status='DONE', photon_flux_upper_limit='2.21e-08', time_completed='2021-09-28 19:31:43.046832', job_id='449569', GAL2='1.02', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632882703.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='699' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:31:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 449569: <4FGL_J2243.9+2021_daily_bin699> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin699 340.99 20.3565 420508801 420768001 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 :                                   971.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             333.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

