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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin419
RA = 340.99, Dec = 20.3565
tmin = 347932801, tmax = 348192001
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='448157', job_status='RUN', time_executed='2021-09-28 19:14:36.715822', time_epoch_executed='1632881676.72' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448157

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448157/ft1_4FGL_J2243.9+2021_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448157/ft2_4FGL_J2243.9+2021_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448157/ft1_4FGL_J2243.9+2021_daily_bin419.fits outfile=/scratch/kocevski/448157/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin419.fits ra=340.99 dec=20.3565 rad=12.0 tmin=347932801.0 tmax=348192001.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.44
user 3.21
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448157/ft1_filtered_4FGL_J2243.9+2021_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/448157/ft2_4FGL_J2243.9+2021_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/448157/ltcube_347932801_348192001_4FGL_J2243.9+2021_daily_bin419.fits outfile=/scratch/kocevski/448157/expmap_347932801_348192001_4FGL_J2243.9+2021_daily_bin419.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/448157/ltcube_347932801_348192001_4FGL_J2243.9+2021_daily_bin419.fits
.....................!
real 191.25
user 185.26
sys 5.29

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/448157/ft1_filtered_4FGL_J2243.9+2021_daily_bin419.fits scfile=/scratch/kocevski/448157/ft2_4FGL_J2243.9+2021_daily_bin419.fits outfile=/scratch/kocevski/448157/cmap_347932801_348192001_4FGL_J2243.9+2021_daily_bin419.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.76
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448157/ft1_filtered_4FGL_J2243.9+2021_daily_bin419.fits scfile=/scratch/kocevski/448157/ft2_4FGL_J2243.9+2021_daily_bin419.fits outfile=/scratch/kocevski/448157/cmap_HighResolution_347932801_348192001_4FGL_J2243.9+2021_daily_bin419.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7313       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9850       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9553       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8926       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33759E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1833       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.093       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0087       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2516       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83374       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=   7617.995     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3030 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.728        .21741E-05** at limit **
   2  norm          .10000E-03    .55839       -.23595E-07** at limit **
   3  Prefactor     .10000E-03    7.8109       -.44400E-06** at limit **
   4  norm          1.7309        3.8035        .22881E-05    .10754E-02
   5  Prefactor     6.8485        13.248        .15930E-06    .31504E-04
   6  Prefactor     .10000E-03    28.642       -.24592E-05** at limit **
   7  Prefactor     .99077        7.5558        .42847E-06    .12994E-03
   8  Prefactor     .30707        .16560        .51562E-08    .12801E-03
   9  Prefactor     5.9854        5.6019       -.62905E-07   -.41579E-05
  10  norm          2.8057        1.3326        .12817E-06    .54597E-03
  11  Prefactor     1.9582        43.496        .47708E-06    .20030E-04
  12  norm          2.8924        1.8042       -.40102E-07    .12812E-04
  13  Prefactor     15.888        22.822       -.17372E-06    .47520E-05
  14  Prefactor     4.6095        11.283        .35694E-06    .10168E-03
  15  Prefactor     17.302        23.069       -.39532E-07    .16371E-04
  16  Prefactor     .33705E-01    .95793E-01    .86597E-07   -.40353E-03
  17  Prefactor     .10000E-03    5.2539       -.36546E-06** at limit **
  18  Prefactor     2.1805        8.5045       -.10592E-05   -.10587E-03
  19  Prefactor     13.089        12.361        .10615E-06   -.14175E-05
  20  Prefactor     .90911        64.276        .13661E-04   -.22886E-03
  21  Prefactor     .10000E-03    10.388       -.23531E-06** at limit **
  22  Prefactor     .10000E-03    3.1492        .27735E-05** at limit **
  23  Prefactor     2.9457        40.339        .85750E-05    .79201E-04
  24  Normalizat    1.2522        .22922       -.28976E-05    .34705E-03
  25  Prefactor     .83346        .11678        .19470E-05   -.37057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.73091
  Prefactor  = 6.84847
  Prefactor  = 0.000100001
  Prefactor  = 0.99077
  Prefactor  = 0.307073
  Prefactor  = 5.98536
  norm       = 2.80566
  Prefactor  = 1.95819
  norm       = 2.89237
  Prefactor  = 15.888
  Prefactor  = 4.6095
  Prefactor  = 17.3023
  Prefactor  = 0.0337051
  Prefactor  = 0.0001
  Prefactor  = 2.18051
  Prefactor  = 13.0886
  Prefactor  = 0.909113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.94573
  Normalizat = 1.25222
  Prefactor  = 0.833465
 **********
 **   18 **HESSE 
 **********

 FCN=   7617.995     FROM HESSE     STATUS=OK           443 CALLS     3473 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0569        .12595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7309        4.6518        .14733E-02   -1.5445    
   5  Prefactor     6.8485        13.210        .15329E-03   -1.5185    
   6  Prefactor     .10000E-03    28.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .99077        19.951        .43947E-02   -1.5509    
   8  Prefactor     .30707        .16330        .24347E-04   -1.5597    
   9  Prefactor     5.9854        5.6012        .16413E-03   -1.5219    
  10  norm          2.8057        1.3162        .62322E-04   -1.5373    
  11  Prefactor     1.9582        42.933        .29672E-03   -1.5428    
  12  norm          2.8924        1.8023        .85839E-04   -1.5368    
  13  Prefactor     15.888        22.777        .10047E-03   -1.4911    
  14  Prefactor     4.6095        11.334        .93688E-03   -1.5279    
  15  Prefactor     17.302        22.840        .96247E-04   -1.4876    
  16  Prefactor     .33705E-01    .11078        .38505E-03   -1.5671    
  17  Prefactor     .10000E-03    5.2945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1805        8.4226        .27859E-03   -1.5413    
  19  Prefactor     13.089        12.349        .11070E-03   -1.4984    
  20  Prefactor     .90911        120.91        .60051E-02   -1.5517    
  21  Prefactor     .10000E-03    10.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1548        .15068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9457        39.898        .23399E-03   -1.5365    
  24  Normalizat    1.2522        .25882        .29406E-03   -.85004    
  25  Prefactor     .83346        .13132        .19226E-03   -.98506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1461e-08
Minuit parameter uncertainties:
  1  0.000289447
  2  7.5161e-06
  3  2.87611e-05
  4  4.65282
  5  13.216
  6  0.000335053
  7  8.89495
  8  0.163304
  9  5.60165
  10  1.31626
  11  18.3524
  12  1.80229
  13  22.7898
  14  11.3392
  15  22.8513
  16  0.110776
  17  2.21015e-05
  18  8.42719
  19  12.3518
  20  21.0113
  21  2.67675e-05
  22  4.38172e-05
  23  21.6993
  24  0.259088
  25  0.131372
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.892e+00  1.802e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.335e-01  1.314e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.252e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.98
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 4.24e-05 +/- 2.64e-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) = 7617.99526028
delta logL = 1.36691960506e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7617.99526023
delta logL = 1.41315013025e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8924       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7148       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83349       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=   7617.995     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      223 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8923        1.7233        .85854E-04    .17775E-02
   2  alpha         1.7147        .46602        .12849E-01    .10436E-03
   3  Normalizat    1.2522        .23596        .29406E-03   -.60698E-04
   4  Prefactor     .83347        .12929        .19226E-03   -.10703E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.89231
  alpha      = 1.71474
  Normalizat = 1.25224
  Prefactor  = 0.833465
 **********
 **   18 **HESSE 
 **********

 FCN=   7617.995     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8923        1.7241        .17171E-04   -1.5368    
   2  alpha         1.7147        .46621        .51395E-03   -.31951    
   3  Normalizat    1.2522        .23617        .11762E-04   -.85004    
   4  Prefactor     .83347        .12941        .76903E-05   -.98506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80345e-10
Minuit parameter uncertainties:
  1  1.72412
  2  0.469262
  3  0.23637
  4  0.129461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448157': 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) = 7617.99526022
delta logL = 1.42905082612e-06

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.892e+00  1.724e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.715e+00  4.693e-01  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.335e-01  1.295e-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.252e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.98
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.71 +/- 0.47
Photon Flux (Free Index): 3.26e-08 +/- 2.77e-08
Energy Flux (Free Index): 4.24e-05 +/- 3.46e-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/448157/cmap_HighResolution_347932801_348192001_4FGL_J2243.9+2021_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='4.24e-05', photon_flux_error='2.03e-08', dlogl='1.43e-06', energy_flux='4.24e-05', photon_flux2='3.26e-08', job_status='DONE', time_completed='2021-09-28 19:26:15.545702', photon_index_error2='0.47', photon_index2='1.71', ts='14.98', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='3.46e-05', EG='1.25', time_epoch_completed='1632882375.55', return_code='0', job_id='448157', GAL2='0.83', EG2='1.25', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='2.77e-08', ts2='14.98', photon_index='1.72' WHERE bin_id='419' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 448157: <4FGL_J2243.9+2021_daily_bin419> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin419 340.99 20.3565 347932801 348192001 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 :                                   697.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

