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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin635
RA = 340.99, Dec = 20.3565
tmin = 403920001, tmax = 404179201
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='448502', job_status='RUN', time_executed='2021-09-28 19:11:29.777993', time_epoch_executed='1632881489.78' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448502

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448502/ft1_4FGL_J2243.9+2021_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448502/ft2_4FGL_J2243.9+2021_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448502/ft1_4FGL_J2243.9+2021_daily_bin635.fits outfile=/scratch/kocevski/448502/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin635.fits ra=340.99 dec=20.3565 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.13
user 9.79
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448502/ft1_filtered_4FGL_J2243.9+2021_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/448502/ft2_4FGL_J2243.9+2021_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/448502/ltcube_403920001_404179201_4FGL_J2243.9+2021_daily_bin635.fits outfile=/scratch/kocevski/448502/expmap_403920001_404179201_4FGL_J2243.9+2021_daily_bin635.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/448502/ltcube_403920001_404179201_4FGL_J2243.9+2021_daily_bin635.fits
.....................!
real 189.70
user 185.24
sys 4.16

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/448502/ft1_filtered_4FGL_J2243.9+2021_daily_bin635.fits scfile=/scratch/kocevski/448502/ft2_4FGL_J2243.9+2021_daily_bin635.fits outfile=/scratch/kocevski/448502/cmap_403920001_404179201_4FGL_J2243.9+2021_daily_bin635.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448502/ft1_filtered_4FGL_J2243.9+2021_daily_bin635.fits scfile=/scratch/kocevski/448502/ft2_4FGL_J2243.9+2021_daily_bin635.fits outfile=/scratch/kocevski/448502/cmap_HighResolution_403920001_404179201_4FGL_J2243.9+2021_daily_bin635.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.498       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.770       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1090       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11081E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9967       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.835       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3413       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63867       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=   5388.111     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2919 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    231.14        .90712E-02** at limit **
   2  norm          .10000E-03    .43779        .23906E-01** at limit **
   3  Prefactor     .10000E-03    11.247        .90712E-02** at limit **
   4  norm          .10000E-03    2.6671        .90712E-02** at limit **
   5  Prefactor     3.7915        10.656        .51823E-02    .37869E-03
   6  Prefactor     .10000E-03    37.019        .90712E-02** at limit **
   7  Prefactor     13.497        13.091        .27255E-02    .35893E-04
   8  Prefactor     1.3480        .33543        .45520E-02   -.88045E-06
   9  Prefactor     .10000E-03    4.4067        .90712E-02** at limit **
  10  norm          1.8947        1.2459        .75558E-02    .14067E-03
  11  Prefactor     15.767        23.049        .25214E-02   -.55938E-03
  12  norm          1.0099        1.5248        .21411E-01    .10256E-04
  13  Prefactor     46.341        42.353        .14725E-02    .46666E-03
  14  Prefactor     17.390        17.128        .24010E-02   -.40368E-03
  15  Prefactor     .10000E-03    7.6929        .90712E-02** at limit **
  16  Prefactor     1.7754        .29087        .33939E-02    .53742E-04
  17  Prefactor     5.1066        16.848        .44469E-02   -.56833E-03
  18  Prefactor     .10000E-03    9.1157        .90712E-02** at limit **
  19  Prefactor     .10000E-03    4.1067        .90712E-02** at limit **
  20  Prefactor     5.9926        30.567        .40992E-02   -.24761E-03
  21  Prefactor     .10000E-03    13.658        .90712E-02** at limit **
  22  Prefactor     .10000E-03    1.6800        .90712E-02** at limit **
  23  Prefactor     25.834        19.746        .19703E-02   -.62152E-03
  24  Normalizat    1.3414        .26400        .68164E-01    .82260E-05
  25  Prefactor     .63867        .13005        .41579E-01    .17371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.79147
  Prefactor  = 0.0001
  Prefactor  = 13.4971
  Prefactor  = 1.34795
  Prefactor  = 0.0001
  norm       = 1.89467
  Prefactor  = 15.7675
  norm       = 1.0099
  Prefactor  = 46.3408
  Prefactor  = 17.3899
  Prefactor  = 0.0001
  Prefactor  = 1.77537
  Prefactor  = 5.1066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.8336
  Normalizat = 1.3414
  Prefactor  = 0.638672
 **********
 **   18 **HESSE 
 **********

 FCN=   5388.111     FROM HESSE     STATUS=OK           427 CALLS     3346 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    235.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .57625        .94311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6780        .11705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7915        10.641        .20729E-03   -1.5319    
   6  Prefactor     .10000E-03    37.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.497        13.149        .10902E-03   -1.4973    
   8  Prefactor     1.3480        .33576        .20143E-04   -1.5476    
   9  Prefactor     .10000E-03    4.4127        .15048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8947        1.2391        .62454E-04   -1.5433    
  11  Prefactor     15.767        23.036        .10086E-03   -1.4914    
  12  norm          1.0099        1.2970        .10641E-02   -1.5507    
  13  Prefactor     46.341        42.446        .58898E-04   -1.4345    
  14  Prefactor     17.390        17.021        .96041E-04   -1.4874    
  15  Prefactor     .10000E-03    7.6949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7754        .29263        .15003E-04   -1.5441    
  17  Prefactor     5.1066        16.803        .17788E-03   -1.5256    
  18  Prefactor     .10000E-03    9.4934        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1089        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9926        30.717        .16397E-03   -1.5218    
  21  Prefactor     .10000E-03    13.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.6818        .92910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.834        19.766        .78813E-04   -1.4691    
  24  Normalizat    1.3414        .31357        .30156E-03   -.82339    
  25  Prefactor     .63867        .15319        .21917E-03   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91e-09
Minuit parameter uncertainties:
  1  0.000463326
  2  1.59643e-07
  3  3.27875e-06
  4  1.87296e-07
  5  10.6463
  6  5.81618e-06
  7  13.1517
  8  0.335759
  9  4.24501e-07
  10  1.23915
  11  23.0493
  12  1.29703
  13  42.4735
  14  17.0254
  15  1.16358e-06
  16  0.292626
  17  16.8187
  18  1.18086e-06
  19  6.67829e-07
  20  27.1567
  21  3.93401e-06
  22  4.16367e-07
  23  19.7711
  24  0.314017
  25  0.15329
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.010e+00  1.297e+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:  6.387e-01  1.533e-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.341e+00  3.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.14e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.90e-05

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

Saving results to:
/scratch/kocevski/448502/likelihoodResults_403920001_404179201_4FGL_J2243.9+2021_daily_bin635.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) = 5387.69370925
delta logL = 0.417617592856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5387.60512885
delta logL = 0.506197990188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27611       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5799       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67975       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=   5387.605     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      254 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27546        2.7816        .59399E-02    .26309E-02
   2  alpha         3.5812        3.8422        .24316        .10398E-03
   3  Normalizat    1.2128        .64393E-01    .70878E-01    .56090E-04
   4  Prefactor     .67960        .33093E-01    .42131E-01   -.30015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.275456
  alpha      = 3.58119
  Normalizat = 1.21285
  Prefactor  = 0.679597
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.605     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27546        6.6843        .26841E-04   -1.5603    
   2  alpha         3.5812        4.2767        .91929E-02    .44724    
   3  Normalizat    1.2128        .33743        .31362E-03   -.86207    
   4  Prefactor     .67960        .16148        .21290E-03   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.81861e-10
Minuit parameter uncertainties:
  1  2.71369
  2  4.88505
  3  0.338042
  4  0.161593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448502': 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): 102
logL (Free Index) = 5387.60512765
delta logL = 0.506199193723

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.755e-01  2.714e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.581e+00  4.885e+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:  6.796e-01  1.616e-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.213e+00  3.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 340.990 20.357
Photon Index (Free Index): 3.58 +/- 4.89
Photon Flux (Free Index): 1.16e-07 +/- 1.72e-07
Energy Flux (Free Index): 2.03e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/448502/cmap_HighResolution_403920001_404179201_4FGL_J2243.9+2021_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-05', comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='2.03e-05', photon_flux_error='1.46e-08', dlogl='5.06e-01', energy_flux='1.48e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-28 19:22:38.174743', photon_index_error2='4.89', photon_index2='3.58', ts='1.45', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='6.21e-08', energy_flux_error2='1.47e-05', EG='1.34', time_epoch_completed='1632882158.17', return_code='0', job_id='448502', GAL2='0.68', EG2='1.21', return_code2='102', energy_flux_error='1.90e-05', photon_flux_error2='1.72e-07', ts2='2.57', photon_index='1.72' WHERE bin_id='635' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:38 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin635 340.99 20.3565 403920001 404179201 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 :                                   664.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            687 sec.

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

