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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin496
RA = 340.99, Dec = 20.3565
tmin = 367891201, tmax = 368150401
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='448282', job_status='RUN', time_executed='2021-09-28 19:13:16.210882', time_epoch_executed='1632881596.21' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448282/ft1_4FGL_J2243.9+2021_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448282/ft2_4FGL_J2243.9+2021_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448282/ft1_4FGL_J2243.9+2021_daily_bin496.fits outfile=/scratch/kocevski/448282/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin496.fits ra=340.99 dec=20.3565 rad=12.0 tmin=367891201.0 tmax=368150401.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.34
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448282/ft1_filtered_4FGL_J2243.9+2021_daily_bin496.fits" evtable="EVENTS" scfile=/scratch/kocevski/448282/ft2_4FGL_J2243.9+2021_daily_bin496.fits sctable="SC_DATA" outfile=/scratch/kocevski/448282/ltcube_367891201_368150401_4FGL_J2243.9+2021_daily_bin496.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/448282/ft2_4FGL_J2243.9+2021_daily_bin496.fits
.....................!
real 12.22
user 11.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448282/ft1_filtered_4FGL_J2243.9+2021_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/448282/ft2_4FGL_J2243.9+2021_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/448282/ltcube_367891201_368150401_4FGL_J2243.9+2021_daily_bin496.fits outfile=/scratch/kocevski/448282/expmap_367891201_368150401_4FGL_J2243.9+2021_daily_bin496.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/448282/ltcube_367891201_368150401_4FGL_J2243.9+2021_daily_bin496.fits
.....................!
real 192.58
user 187.25
sys 4.94

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/448282/ft1_filtered_4FGL_J2243.9+2021_daily_bin496.fits scfile=/scratch/kocevski/448282/ft2_4FGL_J2243.9+2021_daily_bin496.fits outfile=/scratch/kocevski/448282/cmap_367891201_368150401_4FGL_J2243.9+2021_daily_bin496.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/448282/ft1_filtered_4FGL_J2243.9+2021_daily_bin496.fits scfile=/scratch/kocevski/448282/ft2_4FGL_J2243.9+2021_daily_bin496.fits outfile=/scratch/kocevski/448282/cmap_HighResolution_367891201_368150401_4FGL_J2243.9+2021_daily_bin496.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/448282/ft1_filtered_4FGL_J2243.9+2021_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/448282/ft2_4FGL_J2243.9+2021_daily_bin496.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448282/Model_4FGL_J2243.9+2021_daily_bin496.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/448282/ft1_filtered_4FGL_J2243.9+2021_daily_bin496.fits....................!
real 74.45
user 73.06
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18916E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.4200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.834       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2875       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5867       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50345       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3836       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.747       1.0000         .10000E-03   10000.    
    12 'norm      '    .90880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.870       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.713       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3727       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99978       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82026       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=   7087.848     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2920 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    145.30        .90712E-02** at limit **
   2  norm          1.4199        .91115        .90766E-02    .36120E-03
   3  Prefactor     13.833        13.456        .26923E-02   -.39941E-03
   4  norm          .10000E-03    1.2889        .90712E-02** at limit **
   5  Prefactor     12.255        13.515        .28607E-02   -.84727E-04
   6  Prefactor     6.2880        166.81        .40021E-02   -.72000E-04
   7  Prefactor     4.5875        8.4922        .46987E-02    .20591E-03
   8  Prefactor     .50346        .22005        .53779E-02    .78924E-03
   9  Prefactor     .10000E-03    2.3474        .90712E-02** at limit **
  10  norm          2.3837        1.0418        .66328E-03   -.27424E-04
  11  Prefactor     12.748        16.796        .28048E-02    .26906E-03
  12  norm          .90913        .88908        .12839E-01   -.42502E-03
  13  Prefactor     15.872        28.730        .25134E-02   -.54970E-04
  14  Prefactor     .10000E-03    19.962        .90712E-02** at limit **
  15  Prefactor     .10000E-03    18.673        .90712E-02** at limit **
  16  Prefactor     .23563        .15038        .52743E-02    .15839E-02
  17  Prefactor     .10000E-03    12.710        .90712E-02** at limit **
  18  Prefactor     22.271        8.9877        .21219E-02    .58479E-04
  19  Prefactor     .10000E-03    4.1371        .90712E-02** at limit **
  20  Prefactor     21.714        17.273        .21490E-02    .62963E-03
  21  Prefactor     .10000E-03    6.5190        .90712E-02** at limit **
  22  Prefactor     1.3734        4.7475        .92998E-02    .11373E-02
  23  Prefactor     .10000E-03    7.5247        .90712E-02** at limit **
  24  Normalizat    .99980        .20878        .70455E-01    .20024E-04
  25  Prefactor     .82022        .10813        .43980E-01    .10751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.4199
  Prefactor  = 13.8327
  norm       = 0.0001
  Prefactor  = 12.2548
  Prefactor  = 6.28797
  Prefactor  = 4.58747
  Prefactor  = 0.503463
  Prefactor  = 0.0001
  norm       = 2.38367
  Prefactor  = 12.7482
  norm       = 0.909129
  Prefactor  = 15.8725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.235628
  Prefactor  = 0.0001
  Prefactor  = 22.2706
  Prefactor  = 0.0001
  Prefactor  = 21.7142
  Prefactor  = 0.0001
  Prefactor  = 1.37342
  Prefactor  = 0.0001
  Normalizat = 0.999795
  Prefactor  = 0.820223
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.848     FROM HESSE     STATUS=OK           431 CALLS     3351 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4199        .90711        .61938E-04   -1.5470    
   3  Prefactor     13.833        13.449        .10769E-03   -1.4964    
   4  norm          .10000E-03    1.2928        .93331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.255        13.516        .11443E-03   -1.5008    
   6  Prefactor     6.2880        166.62        .16008E-03   -1.5206    
   7  Prefactor     4.5875        8.4979        .18795E-03   -1.5280    
   8  Prefactor     .50346        .21763        .24028E-04   -1.5566    
   9  Prefactor     .10000E-03    2.3489        .12597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3837        1.0415        .26531E-04   -1.5399    
  11  Prefactor     12.748        16.790        .11219E-03   -1.4994    
  12  norm          .90913        .92631        .76493E-03   -1.5517    
  13  Prefactor     15.872        28.683        .10054E-03   -1.4911    
  14  Prefactor     .10000E-03    20.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23563        .14613        .23787E-04   -1.5611    
  17  Prefactor     .10000E-03    12.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.271        8.9752        .84878E-04   -1.4764    
  19  Prefactor     .10000E-03    4.1420        .16724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.714        17.284        .85959E-04   -1.4776    
  21  Prefactor     .10000E-03    6.5222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3734        4.7284        .32358E-03   -1.5474    
  23  Prefactor     .10000E-03    7.5352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99980        .24484        .31169E-03   -.93037    
  25  Prefactor     .82022        .12773        .18612E-03   -.98987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26842e-09
Minuit parameter uncertainties:
  1  0.000268655
  2  0.907116
  3  13.4518
  4  3.51017e-07
  5  13.5189
  6  64.9381
  7  8.50018
  8  0.217626
  9  5.63608e-08
  10  1.04154
  11  16.796
  12  0.926325
  13  28.7077
  14  5.67696e-05
  15  2.93883e-05
  16  0.146126
  17  1.07042e-05
  18  8.97572
  19  6.5428e-08
  20  17.2883
  21  1.67501e-06
  22  4.72973
  23  8.5573e-08
  24  0.245119
  25  0.127772
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  9.091e-01  9.263e-01  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.202e-01  1.278e-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.998e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.03e-08 +/- 1.05e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.36e-05

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) = 7087.77737268
delta logL = 0.070735473093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7087.77215996
delta logL = 0.075948194275

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81347       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3689       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81988       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=   7087.772     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81351        .89700        .12490E-01   -.39869E-03
   2  alpha         1.3689        .74907        .48409       -.27762E-04
   3  Normalizat    1.0030        .19653        .70351E-01    .17663E-04
   4  Prefactor     .81994        .10760        .43975E-01    .70676E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.81351
  alpha      = 1.36886
  Normalizat = 1.00302
  Prefactor  = 0.819935
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.772     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81351        .91241        .72684E-03   -1.5528    
   2  alpha         1.3689        .81831        .24896E-01   -.46952    
   3  Normalizat    1.0030        .23108        .31123E-03   -.92929    
   4  Prefactor     .81994        .12705        .18614E-03   -.98998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82341e-09
Minuit parameter uncertainties:
  1  0.912426
  2  0.837895
  3  0.231308
  4  0.127099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448282': 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) = 7087.77215969
delta logL = 0.0759484624068

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  8.135e-01  9.124e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.369e+00  8.379e-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.199e-01  1.271e-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.003e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.37 +/- 0.84
Photon Flux (Free Index): 6.60e-09 +/- 9.29e-09
Energy Flux (Free Index): 2.15e-05 +/- 3.62e-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/448282/cmap_HighResolution_367891201_368150401_4FGL_J2243.9+2021_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-08', energy_flux2='2.15e-05', photon_flux_error='1.05e-08', dlogl='7.59e-02', energy_flux='1.33e-05', photon_flux2='6.60e-09', job_status='DONE', time_completed='2021-09-28 19:24:10.266872', photon_index_error2='0.84', photon_index2='1.37', ts='4.66', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='3.62e-05', EG='1.00', time_epoch_completed='1632882250.27', return_code='0', job_id='448282', GAL2='0.82', EG2='1.00', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='9.29e-09', ts2='4.81', photon_index='1.72' WHERE bin_id='496' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 448282: <4FGL_J2243.9+2021_daily_bin496> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin496> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:51 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:53 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:53 2021
Terminated at Tue Sep 28 19:24:11 2021
Results reported at Tue Sep 28 19:24:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin496 340.99 20.3565 367891201 368150401 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 :                                   653.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

