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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin242
RA = 340.99, Dec = 20.3565
tmin = 302054401, tmax = 302313601
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='446866', job_status='RUN', time_executed='2021-09-28 19:09:12.518052', time_epoch_executed='1632881352.52' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446866/ft1_4FGL_J2243.9+2021_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446866/ft2_4FGL_J2243.9+2021_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446866/ft1_4FGL_J2243.9+2021_daily_bin242.fits outfile=/scratch/kocevski/446866/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin242.fits ra=340.99 dec=20.3565 rad=12.0 tmin=302054401.0 tmax=302313601.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.61
user 3.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446866/ft1_filtered_4FGL_J2243.9+2021_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/446866/ft2_4FGL_J2243.9+2021_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/446866/ltcube_302054401_302313601_4FGL_J2243.9+2021_daily_bin242.fits outfile=/scratch/kocevski/446866/expmap_302054401_302313601_4FGL_J2243.9+2021_daily_bin242.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/446866/ltcube_302054401_302313601_4FGL_J2243.9+2021_daily_bin242.fits
.....................!
real 193.24
user 187.26
sys 5.43

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/446866/ft1_filtered_4FGL_J2243.9+2021_daily_bin242.fits scfile=/scratch/kocevski/446866/ft2_4FGL_J2243.9+2021_daily_bin242.fits outfile=/scratch/kocevski/446866/cmap_302054401_302313601_4FGL_J2243.9+2021_daily_bin242.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446866/ft1_filtered_4FGL_J2243.9+2021_daily_bin242.fits scfile=/scratch/kocevski/446866/ft2_4FGL_J2243.9+2021_daily_bin242.fits outfile=/scratch/kocevski/446866/cmap_HighResolution_302054401_302313601_4FGL_J2243.9+2021_daily_bin242.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0128       1.0000         .10000E-03   10000.    
     4 'norm      '    20.339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    106.99       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47386       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5191       1.0000         .10000E-03   10000.    
    10 'norm      '    8.3417       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1540       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3064       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3616       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.936       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .41306E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.699       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82280       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98017       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=   9494.584     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2880 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.797        .14313E-05** at limit **
   2  norm          3.2895        1.3754       -.12813E-06   -.35937E-05
   3  Prefactor     9.0147        11.528       -.76050E-06   -.11146E-04
   4  norm          20.341        7.1280       -.32909E-06    .64902E-05
   5  Prefactor     .10000E-03    3.9756        .20688E-06** at limit **
   6  Prefactor     107.01        104.59        .19256E-05    .67481E-04
   7  Prefactor     .10000E-03    3.6400       -.79129E-07** at limit **
   8  Prefactor     .47387        .18574       -.41068E-07    .86642E-04
   9  Prefactor     5.5191        5.1128       -.41961E-06   -.19571E-04
  10  norm          8.3420        1.6439       -.13142E-06    .11265E-03
  11  Prefactor     .10000E-03    4.8040       -.58170E-06** at limit **
  12  norm          1.8327        1.6768       -.51207E-07    .44459E-06
  13  Prefactor     26.995        24.543        .49391E-07    .32068E-04
  14  Prefactor     15.325        14.149       -.37684E-06    .10370E-03
  15  Prefactor     .10000E-03    5.5375        .59616E-06** at limit **
  16  Prefactor     3.1540        .30270       -.26368E-08    .49979E-02
  17  Prefactor     20.170        9.8807       -.16883E-06    .89651E-04
  18  Prefactor     8.3054        8.3330        .35736E-06    .26627E-03
  19  Prefactor     .10000E-03    8.6314       -.38284E-06** at limit **
  20  Prefactor     9.3608        12.703       -.11528E-06    .59662E-04
  21  Prefactor     18.930        25.812       -.21228E-05   -.36245E-04
  22  Prefactor     .10053E-03    6.9605       -.37051E-05** at limit **
  23  Prefactor     11.661        18.767       -.26306E-06    .34970E-03
  24  Normalizat    .82253        .24687        .68653E-05    .56566E-03
  25  Prefactor     .98024        .12336       -.59541E-06    .11837E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.28947
  Prefactor  = 9.01468
  norm       = 20.3407
  Prefactor  = 0.0001
  Prefactor  = 107.012
  Prefactor  = 0.0001
  Prefactor  = 0.473872
  Prefactor  = 5.51913
  norm       = 8.34199
  Prefactor  = 0.0001
  norm       = 1.83269
  Prefactor  = 26.9952
  Prefactor  = 15.325
  Prefactor  = 0.0001
  Prefactor  = 3.15404
  Prefactor  = 20.17
  Prefactor  = 8.30542
  Prefactor  = 0.0001
  Prefactor  = 9.36082
  Prefactor  = 18.9304
  Prefactor  = 0.000100532
  Prefactor  = 11.6613
  Normalizat = 0.822534
  Prefactor  = 0.980235
 **********
 **   18 **HESSE 
 **********

 FCN=   9494.584     FROM HESSE     STATUS=OK           429 CALLS     3309 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2895        1.3741        .70202E-04   -1.5345    
   3  Prefactor     9.0147        11.531        .13351E-03   -1.5107    
   4  norm          20.341        7.1290        .88812E-04   -1.4806    
   5  Prefactor     .10000E-03    3.9789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     107.01        104.66        .38880E-04   -1.3635    
   7  Prefactor     .10000E-03    3.6534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .47387        .18451        .25257E-04   -1.5570    
   9  Prefactor     5.5191        5.1131        .85511E-03   -1.5238    
  10  norm          8.3420        1.6447        .52844E-04   -1.5130    
  11  Prefactor     .10000E-03    4.8114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8327        1.6789        .11205E-03   -1.5437    
  13  Prefactor     26.995        24.561        .77106E-04   -1.4668    
  14  Prefactor     15.325        14.103        .10231E-03   -1.4925    
  15  Prefactor     .10000E-03    5.5370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1540        .30383        .15435E-04   -1.5353    
  17  Prefactor     20.170        9.8807        .89183E-04   -1.4809    
  18  Prefactor     8.3054        8.3272        .13910E-03   -1.5132    
  19  Prefactor     .10000E-03    8.7487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.3608        12.697        .13098E-03   -1.5096    
  21  Prefactor     18.930        25.864        .92040E-04   -1.4838    
  22  Prefactor     .10053E-03    38.827        .41505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.661        18.926        .11712E-03   -1.5025    
  24  Normalizat    .82253        .27004        .42891E-03   -.99238    
  25  Prefactor     .98024        .14041        .21564E-03   -.93391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36417e-08
Minuit parameter uncertainties:
  1  7.72245e-05
  2  1.37412
  3  11.5342
  4  7.12928
  5  1.34696e-06
  6  104.842
  7  1.38652e-05
  8  0.184513
  9  5.11352
  10  1.64473
  11  2.37286e-05
  12  1.67898
  13  24.57
  14  14.106
  15  1.72021e-05
  16  0.303829
  17  9.88148
  18  8.32839
  19  3.90984e-05
  20  12.7009
  21  25.8789
  22  0.0090969
  23  18.936
  24  0.270478
  25  0.140467
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.833e+00  1.679e+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:  9.802e-01  1.405e-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.225e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.21
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 2.46e-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) = 9494.57311815
delta logL = 0.0104467927049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9494.5574472
delta logL = 0.0261177398515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2560       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3428       1.0000          .0000       5.0000    
     3 'Normalizat'    .82811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98152       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=   9494.557     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2549        1.2194        .99617E-02   -.35175E-03
   2  alpha         1.3430        .57848        .48901       -.62999E-04
   3  Normalizat    .82802        .22340        .96545E-01    .41754E-04
   4  Prefactor     .98146        .12208        .46036E-01    .72044E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25493
  alpha      = 1.34299
  Normalizat = 0.82802
  Prefactor  = 0.981463
 **********
 **   18 **HESSE 
 **********

 FCN=   9494.557     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2549        2.3782        .10183E-03   -1.5484    
   2  alpha         1.3430        1.2333        .24556E-01   -.48116    
   3  Normalizat    .82802        .25418        .42778E-03   -.99038    
   4  Prefactor     .98146        .13975        .21562E-03   -.93350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94293e-11
Minuit parameter uncertainties:
  1  2.3784
  2  1.30792
  3  0.254545
  4  0.139801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446866': 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) = 9494.5574454
delta logL = 0.0261195475614

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.255e+00  2.378e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.343e+00  1.308e+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:  9.815e-01  1.398e-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.280e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.26
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.34 +/- 1.31
Photon Flux (Free Index): 1.00e-08 +/- 2.55e-08
Energy Flux (Free Index): 3.50e-05 +/- 5.49e-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/446866/cmap_HighResolution_302054401_302313601_4FGL_J2243.9+2021_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='3.50e-05', photon_flux_error='1.90e-08', dlogl='2.61e-02', energy_flux='2.68e-05', photon_flux2='1.00e-08', job_status='DONE', time_completed='2021-09-28 19:22:27.939966', photon_index_error2='1.31', photon_index2='1.34', ts='5.21', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='5.49e-05', EG='0.82', time_epoch_completed='1632882147.94', return_code='0', job_id='446866', GAL2='0.98', EG2='0.83', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='2.55e-08', ts2='5.26', photon_index='1.72' WHERE bin_id='242' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 446866: <4FGL_J2243.9+2021_daily_bin242> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin242> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:49 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05: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:05:50 2021
Terminated at Tue Sep 28 19:22:28 2021
Results reported at Tue Sep 28 19:22:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin242 340.99 20.3565 302054401 302313601 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 :                                   794.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            999 sec.

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

