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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin650
RA = 340.99, Dec = 20.3565
tmin = 407808001, tmax = 408067201
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='448526', job_status='RUN', time_executed='2021-09-28 19:14:25.020032', time_epoch_executed='1632881665.02' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448526/ft1_4FGL_J2243.9+2021_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448526/ft2_4FGL_J2243.9+2021_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448526/ft1_4FGL_J2243.9+2021_daily_bin650.fits outfile=/scratch/kocevski/448526/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin650.fits ra=340.99 dec=20.3565 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.11
user 3.84
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448526/ft1_filtered_4FGL_J2243.9+2021_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/448526/ft2_4FGL_J2243.9+2021_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/448526/ltcube_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.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/448526/ft2_4FGL_J2243.9+2021_daily_bin650.fits
.....................!
real 12.02
user 11.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448526/ft1_filtered_4FGL_J2243.9+2021_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/448526/ft2_4FGL_J2243.9+2021_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/448526/ltcube_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.fits outfile=/scratch/kocevski/448526/expmap_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.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/448526/ltcube_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.fits
.....................!
real 191.03
user 186.34
sys 4.32

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/448526/ft1_filtered_4FGL_J2243.9+2021_daily_bin650.fits scfile=/scratch/kocevski/448526/ft2_4FGL_J2243.9+2021_daily_bin650.fits outfile=/scratch/kocevski/448526/cmap_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.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/448526/ft1_filtered_4FGL_J2243.9+2021_daily_bin650.fits scfile=/scratch/kocevski/448526/ft2_4FGL_J2243.9+2021_daily_bin650.fits outfile=/scratch/kocevski/448526/cmap_HighResolution_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .15563E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.088       1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.10       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0458       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10456E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7368       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.057       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93966       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92803       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=   6447.790     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2864 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.387        .12194E-06** at limit **
   2  norm          .10000E-03    .54778       -.57936E-07** at limit **
   3  Prefactor     .10000E-03    10.430       -.42477E-06** at limit **
   4  norm          1.7326        5.6633        .67622E-05   -.22941E-03
   5  Prefactor     .10000E-03    25.504        .13069E-06** at limit **
   6  Prefactor     56.053        128.15        .19244E-05   -.23347E-04
   7  Prefactor     109.10        23.316       -.24086E-06    .43652E-04
   8  Prefactor     2.0346        .38341        .81165E-07    .84889E-02
   9  Prefactor     .10000E-03    7.6341        .46420E-07** at limit **
  10  norm          3.0459        1.6948        .67921E-07   -.62719E-03
  11  Prefactor     .10000E-03    8.7635        .16300E-07** at limit **
  12  norm          .10000E-03    1.4213        .76385E-07** at limit **
  13  Prefactor     52.426        44.994        .36346E-06    .74271E-04
  14  Prefactor     21.666        15.460        .12751E-05    .71414E-03
  15  Prefactor     6.1967        19.028        .52205E-07    .21412E-04
  16  Prefactor     1.7366        .31554        .17650E-07    .34369E-02
  17  Prefactor     7.8237        10.396        .49492E-07   -.27611E-05
  18  Prefactor     .10000E-03    5.6935        .45793E-07** at limit **
  19  Prefactor     10.057        21.580        .56506E-06    .38053E-04
  20  Prefactor     .10000E-03    6.2829        .28684E-06** at limit **
  21  Prefactor     .10000E-03    30.303        .69412E-06** at limit **
  22  Prefactor     .10000E-03    1.8219        .59766E-07** at limit **
  23  Prefactor     .10000E-03    8.7414        .43054E-07** at limit **
  24  Normalizat    .93980        .29004        .32260E-06    .22698E-03
  25  Prefactor     .92798        .14398       -.11836E-05    .16818E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.73261
  Prefactor  = 0.000100002
  Prefactor  = 56.0527
  Prefactor  = 109.097
  Prefactor  = 2.03463
  Prefactor  = 0.0001
  norm       = 3.04593
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.426
  Prefactor  = 21.6657
  Prefactor  = 6.19671
  Prefactor  = 1.73662
  Prefactor  = 7.82368
  Prefactor  = 0.0001
  Prefactor  = 10.0566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.939802
  Prefactor  = 0.927977
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.790     FROM HESSE     STATUS=OK           419 CALLS     3283 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.4033        .11275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7326        5.6935        .15952E-02   -1.5445    
   5  Prefactor     .10000E-03    25.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     56.053        127.87        .53563E-04   -1.4209    
   7  Prefactor     109.10        23.345        .19253E-03   -1.3615    
   8  Prefactor     2.0346        .38740        .20655E-04   -1.5423    
   9  Prefactor     .10000E-03    7.7065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0459        1.6914        .36215E-03   -1.5359    
  11  Prefactor     .10000E-03    8.7685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.3989        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.426        45.077        .55391E-04   -1.4259    
  14  Prefactor     21.666        15.315        .86022E-04   -1.4777    
  15  Prefactor     6.1967        19.027        .16129E-03   -1.5210    
  16  Prefactor     1.7366        .31665        .17789E-04   -1.5444    
  17  Prefactor     7.8237        10.394        .14336E-03   -1.5148    
  18  Prefactor     .10000E-03    5.7175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.057        21.572        .12635E-03   -1.5074    
  20  Prefactor     .10000E-03    6.2866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8241        .10585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.7493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93980        .33673        .40783E-03   -.95075    
  25  Prefactor     .92798        .16853        .21383E-03   -.95170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59519e-09
Minuit parameter uncertainties:
  1  4.2872e-06
  2  7.12299e-05
  3  0.000155507
  4  5.69531
  5  0.000475713
  6  128.504
  7  23.3474
  8  0.387397
  9  3.13408e-05
  10  1.69145
  11  2.28615e-05
  12  6.84762e-05
  13  45.1068
  14  15.3177
  15  19.0461
  16  0.316645
  17  10.396
  18  3.184e-05
  19  21.5885
  20  4.69827e-06
  21  0.000175261
  22  5.89972e-06
  23  2.92065e-05
  24  0.337485
  25  0.168621
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  6.848e-05  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.280e-01  1.686e-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:  9.398e-01  3.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/448526/likelihoodResults_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.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) = 6447.79083642
delta logL = -0.000645622192678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6447.05396357
delta logL = 0.736227231037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57222       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1001       1.0000          .0000       5.0000    
     3 'Normalizat'    .87651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93943       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=   6447.054     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      262 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57460        8.6643        .11562E-01    .13332E-02
   2  alpha         3.0988        3.8502        .23454        .79845E-04
   3  Normalizat    .87622        .60950E-01    .94648E-01   -.82653E-05
   4  Prefactor     .93944        .31918E-01    .45506E-01   -.29761E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.574601
  alpha      = 3.09881
  Normalizat = 0.876215
  Prefactor  = 0.93944
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.054     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      297 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57460        24.982        .55687E-03   -1.5556    
   2  alpha         3.0988        3.6460        .11729E-01    .24187    
   3  Normalizat    .87622        .34642        .41930E-03   -.97301    
   4  Prefactor     .93944        .18415        .21213E-03   -.94776    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.92413e-07
Minuit parameter uncertainties:
  1  7.5802
  2  6.40632
  3  0.347302
  4  0.18427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448526': 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) = 6447.05395962
delta logL = 0.736231179088

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  5.746e-01  7.580e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  3.099e+00  6.406e+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.394e-01  1.843e-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.762e-01  3.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 340.990 20.357
Photon Index (Free Index): 3.10 +/- 6.41
Photon Flux (Free Index): 8.22e-08 +/- 9.81e-08
Energy Flux (Free Index): 1.74e-05 +/- 4.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/448526/cmap_HighResolution_407808001_408067201_4FGL_J2243.9+2021_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-05', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='7.36e-01', photon_flux2='8.22e-08', job_status='DONE', time_completed='2021-09-28 19:26:03.484637', photon_index_error2='6.41', photon_index2='3.10', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='4.50e-05', EG='0.94', time_epoch_completed='1632882363.48', return_code='0', job_id='448526', GAL2='0.94', EG2='0.88', return_code2='102', photon_flux_error2='9.81e-08', ts2='1.51', photon_index='1.72' WHERE bin_id='650' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 448526: <4FGL_J2243.9+2021_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin650 340.99 20.3565 407808001 408067201 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 :                                   696.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

