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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin693
RA = 340.99, Dec = 20.3565
tmin = 418953601, tmax = 419212801
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='449562', job_status='RUN', time_executed='2021-09-28 19:17:39.799497', time_epoch_executed='1632881859.8' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449562/ft1_4FGL_J2243.9+2021_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449562/ft2_4FGL_J2243.9+2021_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449562/ft1_4FGL_J2243.9+2021_daily_bin693.fits outfile=/scratch/kocevski/449562/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin693.fits ra=340.99 dec=20.3565 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.53
user 5.32
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449562/ft1_filtered_4FGL_J2243.9+2021_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/449562/ft2_4FGL_J2243.9+2021_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/449562/ltcube_418953601_419212801_4FGL_J2243.9+2021_daily_bin693.fits outfile=/scratch/kocevski/449562/expmap_418953601_419212801_4FGL_J2243.9+2021_daily_bin693.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/449562/ltcube_418953601_419212801_4FGL_J2243.9+2021_daily_bin693.fits
.....................!
real 191.09
user 186.30
sys 4.48

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/449562/ft1_filtered_4FGL_J2243.9+2021_daily_bin693.fits scfile=/scratch/kocevski/449562/ft2_4FGL_J2243.9+2021_daily_bin693.fits outfile=/scratch/kocevski/449562/cmap_418953601_419212801_4FGL_J2243.9+2021_daily_bin693.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449562/ft1_filtered_4FGL_J2243.9+2021_daily_bin693.fits scfile=/scratch/kocevski/449562/ft2_4FGL_J2243.9+2021_daily_bin693.fits outfile=/scratch/kocevski/449562/cmap_HighResolution_418953601_419212801_4FGL_J2243.9+2021_daily_bin693.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/449562/ft1_filtered_4FGL_J2243.9+2021_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/449562/ft2_4FGL_J2243.9+2021_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/449562/Model_4FGL_J2243.9+2021_daily_bin693.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/449562/ft1_filtered_4FGL_J2243.9+2021_daily_bin693.fits.....................!
real 53.52
user 52.28
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.4501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.699       1.0000         .10000E-03   10000.    
     4 'norm      '    23.006       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5461       1.0000         .10000E-03   10000.    
     6 'Prefactor '    197.03       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.4084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0386       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31962E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.736       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35443E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8135       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8510       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30643       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6677       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.771       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99130       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86538       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=   4342.677     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2961 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.341        .12652E-06** at limit **
   2  norm          7.4501        2.7041        .10785E-07   -.51831E-04
   3  Prefactor     12.698        19.466       -.36340E-06   -.35259E-04
   4  norm          23.006        10.304        .18327E-05    .12042E-02
   5  Prefactor     6.5897        55.249        .38564E-05    .31830E-04
   6  Prefactor     197.07        161.10        .10889E-04    .23235E-03
   7  Prefactor     6.4085        17.247        .45124E-06    .14269E-04
   8  Prefactor     1.0384        .49570       -.20997E-07   -.78167E-03
   9  Prefactor     .10021E-03    11.990        .10320E-05** at limit **
  10  norm          3.9122        2.1882       -.94751E-07   -.91444E-04
  11  Prefactor     11.736        17.119       -.47423E-07   -.24360E-04
  12  norm          .10000E-03    1.5836        .37421E-08** at limit **
  13  Prefactor     .10000E-03    68.221       -.59236E-06** at limit **
  14  Prefactor     .10004E-03    18.449       -.62900E-06** at limit **
  15  Prefactor     .10000E-03    12.412        .14174E-07** at limit **
  16  Prefactor     3.8135        .50335        .16784E-07   -.53136E-03
  17  Prefactor     2.8480        22.379        .96005E-05   -.50786E-03
  18  Prefactor     .30514        9.1231        .64594E-06   -.13791E-03
  19  Prefactor     .10000E-03    6.7537       -.15139E-10** at limit **
  20  Prefactor     6.6637        34.439        .70584E-06   -.53270E-05
  21  Prefactor     39.772        37.494        .36511E-06    .46079E-06
  22  Prefactor     .10000E-03    4.8177        .14596E-08** at limit **
  23  Prefactor     .10000E-03    10.454        .23670E-08** at limit **
  24  Normalizat    .99105        .36930       -.24182E-05   -.47631E-04
  25  Prefactor     .86547        .18278       -.84325E-06   -.99114E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.45006
  Prefactor  = 12.6982
  norm       = 23.0056
  Prefactor  = 6.58973
  Prefactor  = 197.074
  Prefactor  = 6.40847
  Prefactor  = 1.03843
  Prefactor  = 0.000100209
  norm       = 3.91223
  Prefactor  = 11.7356
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 3.81352
  Prefactor  = 2.848
  Prefactor  = 0.305145
  Prefactor  = 0.0001
  Prefactor  = 6.66372
  Prefactor  = 39.7724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.991051
  Prefactor  = 0.865469
 **********
 **   18 **HESSE 
 **********

 FCN=   4342.677     FROM HESSE     STATUS=OK           443 CALLS     3404 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.4501        2.7058        .62643E-04   -1.5162    
   3  Prefactor     12.698        19.485        .11241E-03   -1.4995    
   4  norm          23.006        10.645        .83511E-04   -1.4748    
   5  Prefactor     6.5897        55.807        .15685E-03   -1.5195    
   6  Prefactor     197.07        167.01        .14391E-03   -1.2891    
   7  Prefactor     6.4085        17.245        .15855E-03   -1.5202    
   8  Prefactor     1.0384        .49277        .27735E-04   -1.5504    
   9  Prefactor     .10021E-03    141.51        .43672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9122        2.1907        .68052E-04   -1.5312    
  11  Prefactor     11.736        17.119        .11694E-03   -1.5023    
  12  norm          .10000E-03    1.6058        .80932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    68.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    21.110        .83353E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8135        .50414        .15974E-04   -1.5317    
  17  Prefactor     2.8480        33.290        .12039E-02   -1.5370    
  18  Prefactor     .30514        54.454        .38041E-02   -1.5598    
  19  Prefactor     .10000E-03    6.7562        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6637        34.618        .15540E-03   -1.5192    
  21  Prefactor     39.772        37.481        .63559E-04   -1.4446    
  22  Prefactor     .10000E-03    4.8353        .14124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99105        .43346        .41404E-03   -.93331    
  25  Prefactor     .86547        .21767        .22730E-03   -.97358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35427e-09
Minuit parameter uncertainties:
  1  2.74366e-05
  2  2.70587
  3  19.4951
  4  10.6455
  5  38.402
  6  167.41
  7  17.2581
  8  0.492773
  9  0.0108994
  10  2.19072
  11  17.1261
  12  1.38376e-06
  13  0.000155708
  14  0.00188849
  15  3.15732e-06
  16  0.504136
  17  19.4873
  18  8.15881
  19  2.31066e-06
  20  30.4041
  21  37.5035
  22  7.63111e-06
  23  7.08062e-06
  24  0.43501
  25  0.217889
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  1.384e-06  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.655e-01  2.179e-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.911e-01  4.350e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449562/likelihoodResults_418953601_419212801_4FGL_J2243.9+2021_daily_bin693.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) = 4342.67740288
delta logL = -0.000266232925242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4342.6771294
delta logL = 7.24225992599e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4155       1.0000          .0000       5.0000    
     3 'Normalizat'    .99121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86540       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4342.677     FROM MIGRAD    STATUS=FAILED        91 CALLS      286 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10024E-03    72.683        .13937E-02** at limit **
   2  alpha         2.3693        3.5008        .50000        .73517E-05
   3  Normalizat    .99105        .51973E-01    .41404E-03   -.96569E-04
   4  Prefactor     .86547        .27049E-01    .22730E-03   -.13088E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4342.677     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      429 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10024E-03    72.683        .29434E-03** at limit **
   2  alpha         2.3693        3.5008        .50590E-04    .73517E-05
   3  Normalizat    .99105        .51973E-01    .10981E-05   -.96569E-04
   4  Prefactor     .86547        .27049E-01    .53528E-06   -.13088E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4342.677     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      471 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    310.60        .27873E-03** at limit **
   2  alpha         2.3192        3.2424        .50000        .88357E-07
   3  Normalizat    .99105        .13281        .16562E-04    .33842E-03
   4  Prefactor     .86547        .69100E-01    .45459E-04    .64477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.31918
  Normalizat = 0.991051
  Prefactor  = 0.865471
 **********
 **   18 **HESSE 
 **********

 FCN=   4342.677     FROM HESSE     STATUS=OK            29 CALLS      500 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7500        .55747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3192        2.5648        .50000       -.72393E-01
   3  Normalizat    .99105        .40408        .33123E-05   -.93331    
   4  Prefactor     .86547        .21081        .90918E-05   -.97358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39047e-10
Minuit parameter uncertainties:
  1  9.06026e-06
  2  101.343
  3  0.405332
  4  0.211003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449562': 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) = 4342.67712906
delta logL = 7.58848727855e-06

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.000e-04  9.060e-06  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.319e+00  1.013e+02  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.655e-01  2.110e-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.911e-01  4.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.990 20.357

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.74e-05', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-28 19:27:30.339907', job_id='449562', GAL2='0.87', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632882450.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='7.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='693' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:27:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 449562: <4FGL_J2243.9+2021_daily_bin693> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin693> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:22 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:23 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:15:23 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_bin693 340.99 20.3565 418953601 419212801 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            729 sec.

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

