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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin513
RA = 340.99, Dec = 20.3565
tmin = 372297601, tmax = 372556801
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='448310', job_status='RUN', time_executed='2021-09-28 19:11:11.197090', time_epoch_executed='1632881471.2' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448310

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448310/ft1_4FGL_J2243.9+2021_daily_bin513.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448310/ft2_4FGL_J2243.9+2021_daily_bin513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448310/ft1_4FGL_J2243.9+2021_daily_bin513.fits outfile=/scratch/kocevski/448310/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin513.fits ra=340.99 dec=20.3565 rad=12.0 tmin=372297601.0 tmax=372556801.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.32
user 3.11
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448310/ft1_filtered_4FGL_J2243.9+2021_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/448310/ft2_4FGL_J2243.9+2021_daily_bin513.fits sctable="SC_DATA" expcube=/scratch/kocevski/448310/ltcube_372297601_372556801_4FGL_J2243.9+2021_daily_bin513.fits outfile=/scratch/kocevski/448310/expmap_372297601_372556801_4FGL_J2243.9+2021_daily_bin513.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/448310/ltcube_372297601_372556801_4FGL_J2243.9+2021_daily_bin513.fits
.....................!
real 189.87
user 185.40
sys 4.12

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/448310/ft1_filtered_4FGL_J2243.9+2021_daily_bin513.fits scfile=/scratch/kocevski/448310/ft2_4FGL_J2243.9+2021_daily_bin513.fits outfile=/scratch/kocevski/448310/cmap_372297601_372556801_4FGL_J2243.9+2021_daily_bin513.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448310/ft1_filtered_4FGL_J2243.9+2021_daily_bin513.fits scfile=/scratch/kocevski/448310/ft2_4FGL_J2243.9+2021_daily_bin513.fits outfile=/scratch/kocevski/448310/cmap_HighResolution_372297601_372556801_4FGL_J2243.9+2021_daily_bin513.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.792       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.519       1.0000         .10000E-03   10000.    
     4 'norm      '    7.0351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71254E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3557       1.0000         .10000E-03   10000.    
    10 'norm      '    .53158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1554       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8201       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.347       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2837       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1643       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85212       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=   8292.279     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2951 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.791        49.106       -.15213E-05    .21190E-04
   2  norm          6.5974        1.4984       -.29964E-07    .61068E-04
   3  Prefactor     16.518        15.414       -.27763E-05    .13237E-03
   4  norm          7.0346        5.7637        .64701E-06   -.30264E-03
   5  Prefactor     .10009E-03    11.272       -.43919E-06** at limit **
   6  Prefactor     .10000E-03    49.979       -.16239E-07** at limit **
   7  Prefactor     .10000E-03    7.9961       -.14308E-07** at limit **
   8  Prefactor     2.8713        .37959       -.70379E-08    .10175E-02
   9  Prefactor     3.3555        5.2082        .89188E-06   -.21975E-03
  10  norm          .53157        .74236       -.12831E-06   -.13528E-02
  11  Prefactor     .10000E-03    7.4250       -.14929E-07** at limit **
  12  norm          1.1554        1.1342       -.19008E-07    .54674E-05
  13  Prefactor     .10000E-03    163.47        .31467E-06** at limit **
  14  Prefactor     .10000E-03    4.6962       -.56025E-07** at limit **
  15  Prefactor     .10000E-03    11.050       -.35670E-07** at limit **
  16  Prefactor     .42993        .16064        .13174E-07   -.29431E-03
  17  Prefactor     .10000E-03    4.1682       -.19112E-07** at limit **
  18  Prefactor     6.8205        6.6833       -.21265E-05    .11799E-03
  19  Prefactor     .10000E-03    5.3657        .32500E-07** at limit **
  20  Prefactor     .10000E-03    5.7350       -.10474E-07** at limit **
  21  Prefactor     14.346        24.455        .19033E-05   -.52145E-04
  22  Prefactor     4.2854        4.8288       -.19997E-05   -.94054E-04
  23  Prefactor     .10000E-03    18.461        .17593E-06** at limit **
  24  Normalizat    1.1643        .21917        .13411E-05    .47967E-05
  25  Prefactor     .85215        .11506        .11405E-06    .10004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.7911
  norm       = 6.59744
  Prefactor  = 16.5184
  norm       = 7.03459
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.87128
  Prefactor  = 3.35546
  norm       = 0.531567
  Prefactor  = 0.0001
  norm       = 1.15543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.429926
  Prefactor  = 0.0001
  Prefactor  = 6.82049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3464
  Prefactor  = 4.28542
  Prefactor  = 0.0001
  Normalizat = 1.16431
  Prefactor  = 0.852147
 **********
 **   18 **HESSE 
 **********

 FCN=   8292.279     FROM HESSE     STATUS=OK           437 CALLS     3388 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.791        49.127        .60582E-04   -1.4383    
   2  norm          6.5974        1.4985        .51118E-04   -1.5194    
   3  Prefactor     16.518        15.377        .98543E-04   -1.4895    
   4  norm          7.0346        5.7245        .15125E-03   -1.5177    
   5  Prefactor     .10009E-03    15.894        .85220E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8713        .38248        .18889E-04   -1.5369    
   9  Prefactor     3.3555        5.1676        .22092E-03   -1.5342    
  10  norm          .53157        .62966        .90056E-03   -1.5562    
  11  Prefactor     .10000E-03    7.4588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1554        1.1341        .42963E-04   -1.5493    
  13  Prefactor     .10000E-03    166.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .42993        .15891        .20992E-04   -1.5577    
  17  Prefactor     .10000E-03    4.1950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.8205        6.7097        .15364E-03   -1.5186    
  19  Prefactor     .10000E-03    5.3819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.346        24.389        .10574E-03   -1.4950    
  22  Prefactor     4.2854        4.9506        .19466E-03   -1.5294    
  23  Prefactor     .10000E-03    18.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1643        .25838        .33705E-03   -.87713    
  25  Prefactor     .85215        .13633        .20969E-03   -.97834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85182e-10
Minuit parameter uncertainties:
  1  49.1721
  2  1.49855
  3  15.3806
  4  5.72497
  5  0.00233774
  6  1.24316e-05
  7  1.83868e-06
  8  0.382476
  9  5.16831
  10  0.629669
  11  1.99489e-06
  12  1.13415
  13  0.00033926
  14  2.38821e-06
  15  3.15452e-06
  16  0.158914
  17  3.15156e-06
  18  6.71044
  19  1.6227e-06
  20  5.66129e-06
  21  24.4062
  22  4.95109
  23  6.39841e-05
  24  0.258658
  25  0.13638
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.155e+00  1.134e+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.521e-01  1.364e-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.164e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.30e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/448310/likelihoodResults_372297601_372556801_4FGL_J2243.9+2021_daily_bin513.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) = 8290.93996623
delta logL = 1.33858495062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8290.90618432
delta logL = 1.37236686556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62706       1.0000         .10000E-03   10000.    
     2 'alpha     '    .66861       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85491       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=   8290.906     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62483        .59818        .11779E-01   -.35442E-03
   2  alpha         .66726        .42882        .43513       -.42112E-04
   3  Normalizat    1.1628        .20991        .76163E-01    .27560E-04
   4  Prefactor     .85507        .11427        .44428E-01    .11183E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.624827
  alpha      = 0.667264
  Normalizat = 1.16275
  Prefactor  = 0.85507
 **********
 **   18 **HESSE 
 **********

 FCN=   8290.906     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62483        .92925        .60913E-03   -1.5550    
   2  alpha         .66726        .59677        .20524E-01   -.82286    
   3  Normalizat    1.1628        .24814        .33710E-03   -.87762    
   4  Prefactor     .85507        .13528        .20934E-03   -.97729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88725e-09
Minuit parameter uncertainties:
  1  0.929271
  2  0.609757
  3  0.248389
  4  0.135335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448310': 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) = 8290.90618094
delta logL = 1.37237024131

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.551e-01  1.353e-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.163e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.61
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.67 +/- 0.61
Photon Flux (Free Index): 6.42e-09 +/- 6.19e-09
Energy Flux (Free Index): 1.11e-04 +/- 1.27e-04

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/448310/cmap_HighResolution_372297601_372556801_4FGL_J2243.9+2021_daily_bin513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-05', comment='SUCCESS', photon_flux='1.30e-08', energy_flux2='1.11e-04', photon_flux_error='1.28e-08', dlogl='1.37e+00', energy_flux='1.69e-05', photon_flux2='6.42e-09', job_status='DONE', time_completed='2021-09-28 19:24:42.134113', photon_index_error2='0.61', photon_index2='0.67', ts='2.87', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='5.02e-08', energy_flux_error2='1.27e-04', EG='1.16', time_epoch_completed='1632882282.13', return_code='0', job_id='448310', GAL2='0.86', EG2='1.16', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='6.19e-09', ts2='5.61', photon_index='1.72' WHERE bin_id='513' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 448310: <4FGL_J2243.9+2021_daily_bin513> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin513> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:54 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:10:56 2021
Terminated at Tue Sep 28 19:24:43 2021
Results reported at Tue Sep 28 19:24:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin513 340.99 20.3565 372297601 372556801 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 :                                   808.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

