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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1324
RA = 340.99, Dec = 20.3565
tmin = 582508801, tmax = 582768001
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='452828', job_status='RUN', time_executed='2021-09-28 19:25:47.612691', time_epoch_executed='1632882347.61' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452828/ft1_4FGL_J2243.9+2021_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452828/ft2_4FGL_J2243.9+2021_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452828/ft1_4FGL_J2243.9+2021_daily_bin1324.fits outfile=/scratch/kocevski/452828/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1324.fits ra=340.99 dec=20.3565 rad=12.0 tmin=582508801.0 tmax=582768001.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.65
user 3.45
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452828/ft1_filtered_4FGL_J2243.9+2021_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/452828/ft2_4FGL_J2243.9+2021_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/452828/ltcube_582508801_582768001_4FGL_J2243.9+2021_daily_bin1324.fits outfile=/scratch/kocevski/452828/expmap_582508801_582768001_4FGL_J2243.9+2021_daily_bin1324.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/452828/ltcube_582508801_582768001_4FGL_J2243.9+2021_daily_bin1324.fits
.....................!
real 191.16
user 185.68
sys 5.01

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/452828/ft1_filtered_4FGL_J2243.9+2021_daily_bin1324.fits scfile=/scratch/kocevski/452828/ft2_4FGL_J2243.9+2021_daily_bin1324.fits outfile=/scratch/kocevski/452828/cmap_582508801_582768001_4FGL_J2243.9+2021_daily_bin1324.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452828/ft1_filtered_4FGL_J2243.9+2021_daily_bin1324.fits scfile=/scratch/kocevski/452828/ft2_4FGL_J2243.9+2021_daily_bin1324.fits outfile=/scratch/kocevski/452828/cmap_HighResolution_582508801_582768001_4FGL_J2243.9+2021_daily_bin1324.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37542       1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.381       1.0000         .10000E-03   10000.    
     4 'norm      '    9.2978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72653       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11990E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4878       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    207.45       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.521       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12653E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.716       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.0901       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.024       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1447       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86864       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9778.991     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     2494 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11822E-03    8953.0       -.29522E-04** at limit **
   2  norm          .10000E-03    .36890        .73165E-06** at limit **
   3  Prefactor     11.390        12.618        .79103E-06   -.24533E-02
   4  norm          9.2994        5.2249        .47805E-06   -.65005E-03
   5  Prefactor     7.6810        1.5307       -.32894E-06   -.86567E-03
   6  Prefactor     .10001E-03    36.596       -.32838E-05** at limit **
   7  Prefactor     .10000E-03    5.9013        .14303E-05** at limit **
   8  Prefactor     .72647        .22394       -.23549E-06   -.14172E-02
   9  Prefactor     .10000E-03    6.3446       -.10433E-05** at limit **
  10  norm          5.5343        1.4705        .44333E-06    .78117E-03
  11  Prefactor     .10000E-03    31.349        .11553E-04** at limit **
  12  norm          2.4877        1.6346       -.69227E-07   -.39171E-04
  13  Prefactor     .10001E-03    13.385        .10586E-05** at limit **
  14  Prefactor     207.45        9.1507       -.51444E-06    .41251E-02
  15  Prefactor     20.545        22.214       -.37571E-05    .13536E-02
  16  Prefactor     1.8612        .25341        .43221E-07    .92663E-03
  17  Prefactor     .10000E-03    8.6074        .52330E-07** at limit **
  18  Prefactor     11.603        4.6313       -.67819E-07   -.15218E-01
  19  Prefactor     .10000E-03    5.6289       -.13800E-05** at limit **
  20  Prefactor     .10002E-03    13.011       -.19581E-05** at limit **
  21  Prefactor     24.711        3.1815       -.51072E-06    .23292E-02
  22  Prefactor     9.0876        5.8397        .11486E-05    .74766E-02
  23  Prefactor     18.029        10.349        .77595E-06   -.14877E-02
  24  Normalizat    1.1447        .26994       -.13314E-05    .17266E-03
  25  Prefactor     .86876        .13988        .42545E-05    .34824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000118216
  norm       = 0.0001
  Prefactor  = 11.3903
  norm       = 9.29936
  Prefactor  = 7.681
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.72647
  Prefactor  = 0.0001
  norm       = 5.53434
  Prefactor  = 0.000100005
  norm       = 2.48773
  Prefactor  = 0.000100011
  Prefactor  = 207.454
  Prefactor  = 20.5451
  Prefactor  = 1.86124
  Prefactor  = 0.0001
  Prefactor  = 11.6032
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 24.7113
  Prefactor  = 9.08757
  Prefactor  = 18.0289
  Normalizat = 1.14471
  Prefactor  = 0.868757
 **********
 **   18 **HESSE 
 **********

 FCN=   9778.991     FROM HESSE     STATUS=OK           491 CALLS     2985 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11822E-03    39.288        .16682       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .26955        .25692E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.390        17.768        .29688E-02   -1.5033    
   4  norm          9.2994        5.2510        .32858E-02   -1.5098    
   5  Prefactor     7.6810        14.411        .36162E-02   -1.5154    
   6  Prefactor     .10001E-03    36.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8614        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72647        .23170        .56080E-02   -1.5538    
   9  Prefactor     .10000E-03    6.2745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5343        1.4727        .42693E-02   -1.5237    
  11  Prefactor     .10000E-03    30.931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4877        1.6499        .64790E-02   -1.5393    
  13  Prefactor     .10001E-03    13.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     207.45        24.798        .70162E-03   -1.2817    
  15  Prefactor     20.545        24.573        .22104E-02   -1.4801    
  16  Prefactor     1.8612        .25256        .37971E-02   -1.5435    
  17  Prefactor     .10000E-03    8.4459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.603        7.7005        .29388E-02   -1.5027    
  19  Prefactor     .10000E-03    5.6015        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    13.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.711        33.093        .20144E-02   -1.4713    
  22  Prefactor     9.0876        6.6019        .33233E-02   -1.5105    
  23  Prefactor     18.029        17.348        .23585E-02   -1.4859    
  24  Normalizat    1.1447        .23437        .86417E-01   -.88329    
  25  Prefactor     .86876        .12005        .44604E-01   -.97242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08712e-07
Minuit parameter uncertainties:
  1  0.0535387
  2  1.92526e-06
  3  17.7761
  4  5.25128
  5  14.4174
  6  0.000888474
  7  2.11818e-05
  8  0.231701
  9  1.27941e-05
  10  1.47276
  11  0.00074797
  12  1.64991
  13  0.000780169
  14  24.7991
  15  24.585
  16  0.252564
  17  1.34317e-05
  18  7.70117
  19  2.29274e-05
  20  0.000989589
  21  33.1176
  22  6.60247
  23  17.3531
  24  0.234585
  25  0.120086
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.488e+00  1.650e+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.688e-01  1.201e-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.145e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.02
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 3.64e-05 +/- 2.42e-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) = 9778.98668681
delta logL = 0.00474220713477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9778.98663642
delta logL = 0.00479259621716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4731       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86889       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=   9778.987     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4731        44.545        .65001E-02   -.20344E-04
   2  alpha         1.7621        3.0369        .43066        .55246E-04
   3  Normalizat    1.1439        .12749        .86438E-01   -.26655E-04
   4  Prefactor     .86889        .53827E-01    .44607E-01   -.22584E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.47309
  alpha      = 1.76206
  Normalizat = 1.14392
  Prefactor  = 0.868892
 **********
 **   18 **HESSE 
 **********

 FCN=   9778.987     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4731        1.6389        .99381E-04   -1.5393    
   2  alpha         1.7621        .47519        .15069E-01   -.29964    
   3  Normalizat    1.1439        .25904        .38277E-03   -.88354    
   4  Prefactor     .86889        .13939        .23124E-03   -.97237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98773e-11
Minuit parameter uncertainties:
  1  1.63894
  2  0.478379
  3  0.259334
  4  0.13945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452828': 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) = 9778.98663642
delta logL = 0.00479259694293

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.473e+00  1.639e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.762e+00  4.784e-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.689e-01  1.394e-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.144e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.06
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.76 +/- 0.48
Photon Flux (Free Index): 2.96e-08 +/- 2.48e-08
Energy Flux (Free Index): 3.43e-05 +/- 3.11e-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/452828/cmap_HighResolution_582508801_582768001_4FGL_J2243.9+2021_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='3.43e-05', photon_flux_error='1.86e-08', dlogl='4.79e-03', energy_flux='3.64e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-28 19:38:47.434798', photon_index_error2='0.48', photon_index2='1.76', ts='6.02', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.11e-05', EG='1.14', time_epoch_completed='1632883127.43', return_code='0', job_id='452828', GAL2='0.87', EG2='1.14', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='2.48e-08', ts2='6.06', photon_index='1.72' WHERE bin_id='1324' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 452828: <4FGL_J2243.9+2021_daily_bin1324> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1324> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:25:34 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:25:36 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:25:36 2021
Terminated at Tue Sep 28 19:38:48 2021
Results reported at Tue Sep 28 19:38:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1324 340.99 20.3565 582508801 582768001 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 :                                   773.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             362.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

