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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin556
RA = 340.99, Dec = 20.3565
tmin = 383443201, tmax = 383702401
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='448376', job_status='RUN', time_executed='2021-09-28 19:13:55.196036', time_epoch_executed='1632881635.2' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448376

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448376/ft1_4FGL_J2243.9+2021_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448376/ft2_4FGL_J2243.9+2021_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448376/ft1_4FGL_J2243.9+2021_daily_bin556.fits outfile=/scratch/kocevski/448376/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin556.fits ra=340.99 dec=20.3565 rad=12.0 tmin=383443201.0 tmax=383702401.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.39
user 3.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448376/ft2_4FGL_J2243.9+2021_daily_bin556.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/448376/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin556.fits evtable="EVENTS" outfile="/scratch/kocevski/448376/ft1_filtered_4FGL_J2243.9+2021_daily_bin556.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448376/ft1_filtered_4FGL_J2243.9+2021_daily_bin556.fits" evtable="EVENTS" scfile=/scratch/kocevski/448376/ft2_4FGL_J2243.9+2021_daily_bin556.fits sctable="SC_DATA" outfile=/scratch/kocevski/448376/ltcube_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.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/448376/ft2_4FGL_J2243.9+2021_daily_bin556.fits
.....................!
real 11.82
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448376/ft1_filtered_4FGL_J2243.9+2021_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/448376/ft2_4FGL_J2243.9+2021_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/448376/ltcube_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.fits outfile=/scratch/kocevski/448376/expmap_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.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/448376/ltcube_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.fits
.....................!
real 190.60
user 185.14
sys 5.07

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/448376/ft1_filtered_4FGL_J2243.9+2021_daily_bin556.fits scfile=/scratch/kocevski/448376/ft2_4FGL_J2243.9+2021_daily_bin556.fits outfile=/scratch/kocevski/448376/cmap_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.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.53
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/448376/ft1_filtered_4FGL_J2243.9+2021_daily_bin556.fits', '/scratch/kocevski/448376/ft2_4FGL_J2243.9+2021_daily_bin556.fits', expMap='/scratch/kocevski/448376/expmap_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.fits', expCube='/scratch/kocevski/448376/ltcube_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/448376/Model_4FGL_J2243.9+2021_daily_bin556.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/448376/ft1_filtered_4FGL_J2243.9+2021_daily_bin556.fits
Spacecraft file(s): /scratch/kocevski/448376/ft2_4FGL_J2243.9+2021_daily_bin556.fits
Exposure map: /scratch/kocevski/448376/expmap_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.fits
Exposure cube: /scratch/kocevski/448376/ltcube_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/448376/Model_4FGL_J2243.9+2021_daily_bin556.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 9458.56792164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8730       1.0000         .10000E-03   10000.    
     4 'norm      '    .23204E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6041       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9665       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .54418       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.521       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7911       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.273       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2010       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88481       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9458.486     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     2073 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4435        .29933E-05** at limit **
   2  norm          .10000E-03    .73447        .25712E-06** at limit **
   3  Prefactor     4.8740        1.8764        .60143E-06    .10041E-03
   4  norm          .10001E-03    1750.3       -.39526E-04** at limit **
   5  Prefactor     .10000E-03    5.4575        .38176E-05** at limit **
   6  Prefactor     .10000E-03    53.672        .45644E-05** at limit **
   7  Prefactor     5.5993        11.786       -.41859E-05   -.75267E-04
   8  Prefactor     .57689        .20126       -.51131E-07   -.28610E-03
   9  Prefactor     .10000E-03    2.2085       -.93714E-06** at limit **
  10  norm          5.9665        1.6414        .40336E-07   -.43445E-04
  11  Prefactor     .10000E-03    5.7213       -.37571E-05** at limit **
  12  norm          .54380        1.6777        .19893E-05    .44873E-04
  13  Prefactor     26.388        1.2552        .11823E-07   -.64632E-03
  14  Prefactor     .10000E-03    6.7093       -.11470E-05** at limit **
  15  Prefactor     20.525        1.7480       -.25885E-06    .16368E-02
  16  Prefactor     1.7911        .23961       -.25390E-07   -.34785E-03
  17  Prefactor     .10000E-03    4.7902        .72127E-06** at limit **
  18  Prefactor     .10000E-03    1.7357       -.80924E-06** at limit **
  19  Prefactor     .10000E-03    4.4136       -.38895E-07** at limit **
  20  Prefactor     .10000E-03    8.1688        .32798E-05** at limit **
  21  Prefactor     .10000E-03    14.565        .11385E-05** at limit **
  22  Prefactor     16.273        1.1706        .38461E-07    .13012E-02
  23  Prefactor     .10000E-03    18.298        .42392E-06** at limit **
  24  Normalizat    1.2010        .25649       -.12178E-05   -.11214E-05
  25  Prefactor     .88487        .12970       -.12573E-07    .63657E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.874
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.59935
  Prefactor  = 0.576889
  Prefactor  = 0.0001
  norm       = 5.96653
  Prefactor  = 0.0001
  norm       = 0.543798
  Prefactor  = 26.3882
  Prefactor  = 0.0001
  Prefactor  = 20.5246
  Prefactor  = 1.79106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2726
  Prefactor  = 0.0001
  Normalizat = 1.20097
  Prefactor  = 0.884873
 **********
 **   18 **HESSE 
 **********

 FCN=   9458.486     FROM HESSE     STATUS=OK           481 CALLS     2554 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .41850        .24150E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8740        9.8233        .45555E-02   -1.5266    
   4  norm          .10001E-03    2.9841        .91385E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5993        12.015        .42425E-02   -1.5235    
   8  Prefactor     .57689        .20343        .55722E-02   -1.5556    
   9  Prefactor     .10000E-03    2.2068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9665        1.6447        .41097E-02   -1.5219    
  11  Prefactor     .10000E-03    5.7538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .54380        1.6975        .11450E-01   -1.5560    
  13  Prefactor     26.388        29.131        .19495E-02   -1.4680    
  14  Prefactor     .10000E-03    6.7015        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.525        21.043        .22104E-02   -1.4802    
  16  Prefactor     1.7911        .24676        .37328E-02   -1.5440    
  17  Prefactor     .10000E-03    4.7758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.426        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.273        8.9863        .24822E-02   -1.4901    
  23  Prefactor     .10000E-03    18.229        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2010        .22349        .81427E-01   -.86573    
  25  Prefactor     .88487        .11029        .44811E-01   -.96672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61382e-08
Minuit parameter uncertainties:
  1  9.12784e-05
  2  9.5245e-07
  3  9.82659
  4  0.000306135
  5  1.47675e-05
  6  3.73172e-05
  7  12.0202
  8  0.203432
  9  3.52083e-06
  10  1.64474
  11  1.48673e-05
  12  1.69767
  13  29.1463
  14  1.57895e-05
  15  21.0504
  16  0.246765
  17  7.51317e-06
  18  3.43079e-06
  19  4.60146e-06
  20  0.000128295
  21  3.28743e-06
  22  8.98707
  23  1.66607e-05
  24  0.223669
  25  0.110316
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  5.438e-01  1.698e+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.849e-01  1.103e-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.201e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448376/likelihoodResults_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.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): 102
logL (Free Index) = 9457.31305685
delta logL = 1.17315979736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9457.3107194
delta logL = 1.17549724418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49462       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1880       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90181       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=   9457.311     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      229 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49463        4.6033        .10798E-01    .69861E-02
   2  alpha         3.1880        3.7072        .23930        .19055E-03
   3  Normalizat    1.1240        .50041E-01    .83648E-01   -.15251E-03
   4  Prefactor     .90180        .25584E-01    .45028E-01   -.71543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.494634
  alpha      = 3.18801
  Normalizat = 1.12402
  Prefactor  = 0.9018
 **********
 **   18 **HESSE 
 **********

 FCN=   9457.311     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49463        12.654        .49322E-03   -1.5567    
   2  alpha         3.1880        4.0255        .11961E-01    .27880    
   3  Normalizat    1.1240        .25952        .37036E-03   -.88984    
   4  Prefactor     .90180        .12783        .21057E-03   -.96078    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.77191e-08
Minuit parameter uncertainties:
  1  5.00441
  2  5.24477
  3  0.259814
  4  0.127876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448376': 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) = 9457.31071939
delta logL = 1.17549725681

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  4.946e-01  5.004e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.188e+00  5.245e+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.018e-01  1.279e-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.124e+00  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 340.990 20.357
Photon Index (Free Index): 3.19 +/- 5.24
Photon Flux (Free Index): 8.59e-08 +/- 1.36e-07
Energy Flux (Free Index): 1.74e-05 +/- 2.03e-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/448376/cmap_HighResolution_383443201_383702401_4FGL_J2243.9+2021_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-05', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='1.18e+00', photon_flux2='8.59e-08', job_status='DONE', time_completed='2021-09-28 19:26:56.046612', photon_index_error2='5.24', photon_index2='3.19', ts='0.12', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.72e-08', energy_flux_error2='2.03e-05', EG='1.20', time_epoch_completed='1632882416.05', return_code='0', job_id='448376', GAL2='0.90', EG2='1.12', return_code2='102', photon_flux_error2='1.36e-07', ts2='2.52', photon_index='1.72' WHERE bin_id='556' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 448376: <4FGL_J2243.9+2021_daily_bin556> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin556 340.99 20.3565 383443201 383702401 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 :                                   779.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

