/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 25 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin26
RA = 340.99, Dec = 20.3565
tmin = 246067201, tmax = 246326401
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='446551', job_status='RUN', time_executed='2021-09-28 19:06:02.776260', time_epoch_executed='1632881162.78' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446551/ft1_4FGL_J2243.9+2021_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446551/ft2_4FGL_J2243.9+2021_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446551/ft1_4FGL_J2243.9+2021_daily_bin26.fits outfile=/scratch/kocevski/446551/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin26.fits ra=340.99 dec=20.3565 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.48
user 1.29
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446551/ft1_filtered_4FGL_J2243.9+2021_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/446551/ft2_4FGL_J2243.9+2021_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/446551/ltcube_246067201_246326401_4FGL_J2243.9+2021_daily_bin26.fits outfile=/scratch/kocevski/446551/expmap_246067201_246326401_4FGL_J2243.9+2021_daily_bin26.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/446551/ltcube_246067201_246326401_4FGL_J2243.9+2021_daily_bin26.fits
.....................!
real 190.92
user 185.75
sys 4.86

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/446551/ft1_filtered_4FGL_J2243.9+2021_daily_bin26.fits scfile=/scratch/kocevski/446551/ft2_4FGL_J2243.9+2021_daily_bin26.fits outfile=/scratch/kocevski/446551/cmap_246067201_246326401_4FGL_J2243.9+2021_daily_bin26.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.51
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446551/ft1_filtered_4FGL_J2243.9+2021_daily_bin26.fits scfile=/scratch/kocevski/446551/ft2_4FGL_J2243.9+2021_daily_bin26.fits outfile=/scratch/kocevski/446551/cmap_HighResolution_246067201_246326401_4FGL_J2243.9+2021_daily_bin26.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.574       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4497       1.0000         .10000E-03   10000.    
     4 'norm      '    6.0221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.009       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.141       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0388       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1600       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4638       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.393       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8682       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.893       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8439       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.229       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83721       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98246       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=   11483.34     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2875 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.570        28.092       -.98605E-06   -.13134E-03
   2  norm          1.3688        .78692        .18392E-07   -.99915E-04
   3  Prefactor     4.4468        10.046        .51524E-05   -.62797E-03
   4  norm          6.0217        4.7104       -.11470E-06   -.28862E-03
   5  Prefactor     12.010        9.5066       -.28225E-07   -.24447E-04
   6  Prefactor     26.138        35.978       -.10182E-05   -.65575E-04
   7  Prefactor     3.0368        10.878       -.48592E-06   -.83459E-04
   8  Prefactor     .32994        .15131        .95946E-08   -.47785E-03
   9  Prefactor     .10000E-03    5.8494        .12835E-06** at limit **
  10  norm          1.1601        .83777        .26435E-07   -.14415E-03
  11  Prefactor     .10000E-03    8.9542        .82004E-07** at limit **
  12  norm          1.4638        .98109       -.98837E-08    .12022E-03
  13  Prefactor     .10000E-03    16.146       -.41957E-06** at limit **
  14  Prefactor     .10000E-03    3.4778        .14374E-06** at limit **
  15  Prefactor     12.392        19.414       -.21462E-06   -.35154E-04
  16  Prefactor     2.8683        .25960       -.30433E-08    .20714E-03
  17  Prefactor     7.8821        8.6345        .42101E-07   -.35982E-04
  18  Prefactor     13.893        8.1632        .58464E-06   -.35320E-03
  19  Prefactor     .10000E-03    9.6139        .31732E-06** at limit **
  20  Prefactor     .10000E-03    36.244        .89104E-06** at limit **
  21  Prefactor     .10000E-03    8.7484       -.27102E-06** at limit **
  22  Prefactor     2.8517        5.5531        .11640E-05   -.66357E-04
  23  Prefactor     23.205        19.398       -.39712E-05   -.86391E-03
  24  Normalizat    .83688        .20448        .83526E-06   -.13400E-03
  25  Prefactor     .98263        .10252       -.60051E-06   -.17703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5705
  norm       = 1.36884
  Prefactor  = 4.44676
  norm       = 6.02167
  Prefactor  = 12.01
  Prefactor  = 26.1381
  Prefactor  = 3.03682
  Prefactor  = 0.329942
  Prefactor  = 0.0001
  norm       = 1.1601
  Prefactor  = 0.0001
  norm       = 1.4638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3919
  Prefactor  = 2.86828
  Prefactor  = 7.88206
  Prefactor  = 13.8928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.85166
  Prefactor  = 23.2054
  Normalizat = 0.83688
  Prefactor  = 0.982627
 **********
 **   18 **HESSE 
 **********

 FCN=   11483.34     FROM HESSE     STATUS=OK           431 CALLS     3306 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.570        28.176        .74948E-04   -1.4638    
   2  norm          1.3688        .78065        .69145E-04   -1.5474    
   3  Prefactor     4.4468        10.771        .95446E-03   -1.5286    
   4  norm          6.0217        4.7117        .16362E-03   -1.5217    
   5  Prefactor     12.010        9.4970        .11560E-03   -1.5015    
   6  Prefactor     26.138        36.009        .78352E-04   -1.4685    
   7  Prefactor     3.0368        10.862        .23276E-03   -1.5359    
   8  Prefactor     .32994        .14782        .26638E-04   -1.5593    
   9  Prefactor     .10000E-03    5.9482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1601        .82885        .79754E-04   -1.5493    
  11  Prefactor     .10000E-03    8.9894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4638        .99384        .84706E-04   -1.5466    
  13  Prefactor     .10000E-03    16.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.392        19.458        .11379E-03   -1.5004    
  16  Prefactor     2.8683        .26120        .15004E-04   -1.5369    
  17  Prefactor     7.8821        8.6359        .14282E-03   -1.5146    
  18  Prefactor     13.893        8.1942        .53731E-03   -1.4962    
  19  Prefactor     .10000E-03    9.7065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8517        5.5378        .24111E-03   -1.5370    
  23  Prefactor     23.205        21.117        .83110E-04   -1.4744    
  24  Normalizat    .83688        .23402        .40159E-03   -.98715    
  25  Prefactor     .98263        .11886        .20144E-03   -.93311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59947e-09
Minuit parameter uncertainties:
  1  28.1892
  2  0.780658
  3  10.7759
  4  4.71201
  5  9.49823
  6  36.0387
  7  10.8686
  8  0.147815
  9  8.50799e-06
  10  0.82886
  11  3.80677e-06
  12  0.993851
  13  7.08991e-05
  14  7.71197e-06
  15  19.4681
  16  0.261203
  17  8.63729
  18  8.19487
  19  2.61359e-05
  20  0.000109691
  21  3.58484e-05
  22  5.53881
  23  21.1241
  24  0.234305
  25  0.11889
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.464e+00  9.939e-01  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.826e-01  1.189e-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.369e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.89
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.65e-08 +/- 1.12e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.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) = 11482.1043803
delta logL = 1.23162083318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11482.1005392
delta logL = 1.23546192982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79972       1.0000         .10000E-03   10000.    
     2 'alpha     '    .87638       1.0000          .0000       5.0000    
     3 'Normalizat'    .84060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98430       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=   11482.10     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79976        .56136        .12439E-01   -.80826E-03
   2  alpha         .87652        .36832        .43671       -.52016E-04
   3  Normalizat    .84043        .18671        .90499E-01    .46373E-04
   4  Prefactor     .98443        .10135        .46071E-01    .26881E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.799763
  alpha      = 0.876522
  Normalizat = 0.84043
  Prefactor  = 0.984429
 **********
 **   18 **HESSE 
 **********

 FCN=   11482.10     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79976        .88049        .61978E-03   -1.5529    
   2  alpha         .87652        .53614        .19248E-02   -.70678    
   3  Normalizat    .84043        .21557        .40086E-03   -.98586    
   4  Prefactor     .98443        .11733        .20132E-03   -.93250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74406e-12
Minuit parameter uncertainties:
  1  0.880509
  2  0.543511
  3  0.215789
  4  0.117364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446551': 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) = 11482.1005386
delta logL = 1.23546260046

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  7.998e-01  8.805e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  8.765e-01  5.435e-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:  9.844e-01  1.174e-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.404e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.35
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.88 +/- 0.54
Photon Flux (Free Index): 6.59e-09 +/- 5.50e-09
Energy Flux (Free Index): 7.49e-05 +/- 7.75e-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/446551/cmap_HighResolution_246067201_246326401_4FGL_J2243.9+2021_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-08', energy_flux2='7.49e-05', photon_flux_error='1.12e-08', dlogl='1.24e+00', energy_flux='2.14e-05', photon_flux2='6.59e-09', job_status='DONE', time_completed='2021-09-28 19:20:21.713276', photon_index_error2='0.54', photon_index2='0.88', ts='13.89', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='7.75e-05', EG='0.84', time_epoch_completed='1632882021.71', return_code='0', job_id='446551', GAL2='0.98', EG2='0.84', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.50e-09', ts2='16.35', photon_index='1.72' WHERE bin_id='26' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:20:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 446551: <4FGL_J2243.9+2021_daily_bin26> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin26 340.99 20.3565 246067201 246326401 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 :                                   858.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

