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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin522
RA = 340.99, Dec = 20.3565
tmin = 374630401, tmax = 374889601
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='448325', job_status='RUN', time_executed='2021-09-28 19:13:58.041318', time_epoch_executed='1632881638.04' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448325

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448325/ft1_4FGL_J2243.9+2021_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448325/ft2_4FGL_J2243.9+2021_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448325/ft1_4FGL_J2243.9+2021_daily_bin522.fits outfile=/scratch/kocevski/448325/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin522.fits ra=340.99 dec=20.3565 rad=12.0 tmin=374630401.0 tmax=374889601.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.58
user 4.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448325/ft1_filtered_4FGL_J2243.9+2021_daily_bin522.fits" evtable="EVENTS" scfile=/scratch/kocevski/448325/ft2_4FGL_J2243.9+2021_daily_bin522.fits sctable="SC_DATA" outfile=/scratch/kocevski/448325/ltcube_374630401_374889601_4FGL_J2243.9+2021_daily_bin522.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/448325/ft2_4FGL_J2243.9+2021_daily_bin522.fits
.....................!
real 11.55
user 11.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448325/ft1_filtered_4FGL_J2243.9+2021_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/448325/ft2_4FGL_J2243.9+2021_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/448325/ltcube_374630401_374889601_4FGL_J2243.9+2021_daily_bin522.fits outfile=/scratch/kocevski/448325/expmap_374630401_374889601_4FGL_J2243.9+2021_daily_bin522.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/448325/ltcube_374630401_374889601_4FGL_J2243.9+2021_daily_bin522.fits
.....................!
real 191.50
user 186.03
sys 5.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/448325/ft1_filtered_4FGL_J2243.9+2021_daily_bin522.fits scfile=/scratch/kocevski/448325/ft2_4FGL_J2243.9+2021_daily_bin522.fits outfile=/scratch/kocevski/448325/cmap_374630401_374889601_4FGL_J2243.9+2021_daily_bin522.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.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.874       1.0000         .10000E-03   10000.    
     4 'norm      '    .10396E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.106       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2208       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.309       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45341       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8919       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.330       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .26065       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1775       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87051       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=   8455.242     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2948 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.984        .50702E-06** at limit **
   2  norm          .10000E-03    .34380        .12794E-06** at limit **
   3  Prefactor     42.872        21.618       -.17319E-06   -.63112E-05
   4  norm          .10000E-03    4.5455        .58577E-07** at limit **
   5  Prefactor     .10000E-03    6.2596        .31688E-06** at limit **
   6  Prefactor     .10000E-03    37.116        .24571E-06** at limit **
   7  Prefactor     13.099        16.655        .10749E-05   -.11905E-03
   8  Prefactor     2.9116        .37622       -.41922E-08   -.54327E-05
   9  Prefactor     .10000E-03    5.6906       -.67245E-07** at limit **
  10  norm          1.2208        1.0966        .98850E-07    .39911E-05
  11  Prefactor     .10000E-03    11.319        .26413E-06** at limit **
  12  norm          1.7621        1.6820        .12770E-05   -.11255E-02
  13  Prefactor     74.299        45.007       -.13367E-05   -.17814E-03
  14  Prefactor     2.0597        30.587       -.42568E-05   -.73014E-04
  15  Prefactor     .10000E-03    6.5057       -.56570E-07** at limit **
  16  Prefactor     .45341        .18462        .11669E-07    .14084E-02
  17  Prefactor     .10000E-03    6.4867       -.86502E-07** at limit **
  18  Prefactor     .10003E-03    3.9631       -.89039E-06** at limit **
  19  Prefactor     .10000E-03    7.6655       -.12340E-06** at limit **
  20  Prefactor     4.8745        33.534       -.58153E-05   -.17352E-03
  21  Prefactor     33.340        29.709        .17137E-05    .23119E-03
  22  Prefactor     .27452        5.3786       -.26860E-06    .20954E-03
  23  Prefactor     .10000E-03    6.5107       -.60292E-07** at limit **
  24  Normalizat    1.1777        .24464        .96542E-06    .10997E-03
  25  Prefactor     .87041        .11544       -.73592E-06    .32901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.8717
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0994
  Prefactor  = 2.91159
  Prefactor  = 0.0001
  norm       = 1.22085
  Prefactor  = 0.0001
  norm       = 1.76215
  Prefactor  = 74.2992
  Prefactor  = 2.05972
  Prefactor  = 0.0001
  Prefactor  = 0.453415
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 4.87451
  Prefactor  = 33.3397
  Prefactor  = 0.27452
  Prefactor  = 0.0001
  Normalizat = 1.17769
  Prefactor  = 0.870407
 **********
 **   18 **HESSE 
 **********

 FCN=   8455.242     FROM HESSE     STATUS=OK           427 CALLS     3375 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .54624        .10419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.872        21.621        .61225E-04   -1.4397    
   4  norm          .10000E-03    4.6225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.099        16.937        .55323E-03   -1.4984    
   8  Prefactor     2.9116        .37791        .19189E-04   -1.5367    
   9  Prefactor     .10000E-03    5.7173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2208        1.0740        .87147E-04   -1.5487    
  11  Prefactor     .10000E-03    11.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7621        1.7202        .54724E-03   -1.5442    
  13  Prefactor     74.299        45.488        .46577E-04   -1.3982    
  14  Prefactor     2.0597        30.244        .28666E-03   -1.5421    
  15  Prefactor     .10000E-03    6.5083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45341        .18316        .22494E-04   -1.5573    
  17  Prefactor     .10000E-03    6.5188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    16.339        .34483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8745        37.761        .18186E-03   -1.5266    
  21  Prefactor     33.340        30.304        .69409E-04   -1.4553    
  22  Prefactor     .27452        45.616        .39577E-02   -1.5603    
  23  Prefactor     .10000E-03    6.5164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1777        .28856        .35847E-03   -.87295    
  25  Prefactor     .87041        .13578        .21169E-03   -.97183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09179e-09
Minuit parameter uncertainties:
  1  8.37381e-05
  2  6.75145e-06
  3  21.6247
  4  6.89863e-06
  5  2.94882e-05
  6  5.05217e-05
  7  16.9436
  8  0.377914
  9  8.02171e-06
  10  1.07398
  11  2.61869e-05
  12  1.72022
  13  45.509
  14  15.7947
  15  3.49722e-06
  16  0.183156
  17  5.98564e-06
  18  0.00134875
  19  2.26358e-05
  20  27.1576
  21  30.3176
  22  7.08166
  23  5.47801e-06
  24  0.288953
  25  0.135837
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.762e+00  1.720e+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.704e-01  1.358e-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.178e+00  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 2.52e-05

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

Saving results to:
/scratch/kocevski/448325/likelihoodResults_374630401_374889601_4FGL_J2243.9+2021_daily_bin522.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) = 8454.10210523
delta logL = 1.13996848252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8454.08877062
delta logL = 1.15330309204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91046       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89265       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=   8454.089     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91023        7.5823        .11678E-01    .52678E-03
   2  alpha         2.9559        3.7778        .22850        .88361E-04
   3  Normalizat    1.0933        .68971E-01    .83530E-01   -.12229E-03
   4  Prefactor     .89266        .31704E-01    .44911E-01   -.27262E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.910233
  alpha      = 2.95592
  Normalizat = 1.09327
  Prefactor  = 0.892663
 **********
 **   18 **HESSE 
 **********

 FCN=   8454.089     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91023        1.7911        .52928E-04   -1.5517    
   2  alpha         2.9559        1.2012        .11316E-01    .18339    
   3  Normalizat    1.0933        .28463        .36984E-03   -.89968    
   4  Prefactor     .89266        .14027        .20909E-03   -.96398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13919e-08
Minuit parameter uncertainties:
  1  1.79117
  2  1.25498
  3  0.285033
  4  0.14033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448325': 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) = 8454.08877056
delta logL = 1.15330315097

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  9.102e-01  1.791e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.956e+00  1.255e+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:  8.927e-01  1.403e-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.093e+00  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.96 +/- 1.25
Photon Flux (Free Index): 9.57e-08 +/- 9.74e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.37e-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/448325/cmap_HighResolution_374630401_374889601_4FGL_J2243.9+2021_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-05', comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='2.19e-05', photon_flux_error='1.94e-08', dlogl='1.15e+00', energy_flux='2.58e-05', photon_flux2='9.57e-08', job_status='DONE', time_completed='2021-09-28 19:27:31.044945', photon_index_error2='1.25', photon_index2='2.96', ts='2.18', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.61e-08', energy_flux_error2='1.37e-05', EG='1.18', time_epoch_completed='1632882451.05', return_code='0', job_id='448325', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='9.74e-08', ts2='4.53', photon_index='1.72' WHERE bin_id='522' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:27:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 448325: <4FGL_J2243.9+2021_daily_bin522> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin522> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:56 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:57 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:57 2021
Terminated at Tue Sep 28 19:27:31 2021
Results reported at Tue Sep 28 19:27:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin522 340.99 20.3565 374630401 374889601 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 :                                   810.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

