/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 184 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin368
RA = 340.99, Dec = 20.3565
tmin = 334713601, tmax = 334972801
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='448075', job_status='RUN', time_executed='2021-09-28 19:13:49.703006', time_epoch_executed='1632881629.7' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448075

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448075/ft1_4FGL_J2243.9+2021_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448075/ft2_4FGL_J2243.9+2021_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448075/ft1_4FGL_J2243.9+2021_daily_bin368.fits outfile=/scratch/kocevski/448075/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin368.fits ra=340.99 dec=20.3565 rad=12.0 tmin=334713601.0 tmax=334972801.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.46
user 3.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448075/ft1_filtered_4FGL_J2243.9+2021_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/448075/ft2_4FGL_J2243.9+2021_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/448075/ltcube_334713601_334972801_4FGL_J2243.9+2021_daily_bin368.fits outfile=/scratch/kocevski/448075/expmap_334713601_334972801_4FGL_J2243.9+2021_daily_bin368.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/448075/ltcube_334713601_334972801_4FGL_J2243.9+2021_daily_bin368.fits
.....................!
real 190.67
user 185.46
sys 4.83

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/448075/ft1_filtered_4FGL_J2243.9+2021_daily_bin368.fits scfile=/scratch/kocevski/448075/ft2_4FGL_J2243.9+2021_daily_bin368.fits outfile=/scratch/kocevski/448075/cmap_334713601_334972801_4FGL_J2243.9+2021_daily_bin368.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448075/ft1_filtered_4FGL_J2243.9+2021_daily_bin368.fits scfile=/scratch/kocevski/448075/ft2_4FGL_J2243.9+2021_daily_bin368.fits outfile=/scratch/kocevski/448075/cmap_HighResolution_334713601_334972801_4FGL_J2243.9+2021_daily_bin368.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3893       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9855       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3988       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.868       1.0000         .10000E-03   10000.    
    10 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3049       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2889       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19808       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3069       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3114       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7512       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4566       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62428       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=   7040.729     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2565 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.274       -.84317E-06** at limit **
   2  norm          2.3892        1.0726        .39337E-07   -.44786E-04
   3  Prefactor     .10000E-03    9.5731        .21031E-06** at limit **
   4  norm          .10000E-03    1.5707        .15856E-07** at limit **
   5  Prefactor     8.9692        17.984       -.18891E-07   -.58553E-04
   6  Prefactor     .10005E-03    48.011        .97056E-05** at limit **
   7  Prefactor     7.3984        8.6528        .21840E-06   -.27973E-04
   8  Prefactor     1.0968        .27737        .10336E-07   -.57091E-04
   9  Prefactor     15.867        9.0629        .23995E-08   -.25521E-04
  10  norm          .10000E-03    .64767       -.96584E-07** at limit **
  11  Prefactor     1.3065        64.994        .36139E-05   -.17577E-04
  12  norm          3.2893        1.7692        .29639E-07   -.38446E-05
  13  Prefactor     .10006E-03    59.876       -.11681E-04** at limit **
  14  Prefactor     .10000E-03    5.9903        .59391E-06** at limit **
  15  Prefactor     .10000E-03    4.6954       -.60597E-08** at limit **
  16  Prefactor     .19808        .12000       -.11816E-07    .63028E-03
  17  Prefactor     11.572        7.5689       -.27991E-06    .77300E-04
  18  Prefactor     9.3065        6.3277        .56987E-06   -.34433E-03
  19  Prefactor     .10041E-03    5.9359        .17463E-05** at limit **
  20  Prefactor     3.3075        12.020        .10246E-04   -.42633E-03
  21  Prefactor     .10000E-03    6.1916       -.59076E-06** at limit **
  22  Prefactor     .10000E-03    2.8735       -.43929E-07** at limit **
  23  Prefactor     1.7517        24.773        .15459E-05   -.33845E-04
  24  Normalizat    1.4568        .21141       -.47114E-06   -.11094E-03
  25  Prefactor     .62420        .10996       -.67632E-06   -.10691E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.38921
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.96919
  Prefactor  = 0.000100054
  Prefactor  = 7.39843
  Prefactor  = 1.09677
  Prefactor  = 15.8673
  norm       = 0.0001
  Prefactor  = 1.30649
  norm       = 3.28927
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.198081
  Prefactor  = 11.572
  Prefactor  = 9.30647
  Prefactor  = 0.000100409
  Prefactor  = 3.30754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75174
  Normalizat = 1.45676
  Prefactor  = 0.624198
 **********
 **   18 **HESSE 
 **********

 FCN=   7040.729     FROM HESSE     STATUS=OK           431 CALLS     2996 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3892        1.0706        .56044E-04   -1.5399    
   3  Prefactor     .10000E-03    9.6411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5761        .10268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9692        18.090        .13371E-03   -1.5109    
   6  Prefactor     .10005E-03    51.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3984        8.6663        .14745E-03   -1.5164    
   8  Prefactor     1.0968        .27888        .19927E-04   -1.5499    
   9  Prefactor     15.867        9.0718        .10054E-03   -1.4911    
  10  norm          .10000E-03    1.2084        .12392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3065        60.447        .38645E-03   -1.5479    
  12  norm          3.2893        1.7684        .79559E-04   -1.5345    
  13  Prefactor     .10006E-03    65.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6966        .17757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19808        .11671        .21581E-04   -1.5619    
  17  Prefactor     11.572        7.5737        .58882E-03   -1.5027    
  18  Prefactor     9.3065        6.3246        .65684E-03   -1.5098    
  19  Prefactor     .10041E-03    48.770        .38895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3075        12.410        .11123E-02   -1.5344    
  21  Prefactor     .10000E-03    6.2083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8942        .13876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7517        24.908        .31682E-03   -1.5443    
  24  Normalizat    1.4568        .25027        .27117E-03   -.79001    
  25  Prefactor     .62420        .13027        .21117E-03   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10486e-08
Minuit parameter uncertainties:
  1  0.000202615
  2  1.07063
  3  2.52483e-05
  4  1.11534e-06
  5  18.1012
  6  0.00336377
  7  8.66779
  8  0.278883
  9  9.07261
  10  3.37695e-07
  11  17.7918
  12  1.76843
  13  0.00406905
  14  6.53188e-05
  15  2.85816e-07
  16  0.116706
  17  7.57437
  18  6.3251
  19  0.00893747
  20  12.4199
  21  7.11169e-05
  22  3.33697e-06
  23  13.2173
  24  0.25048
  25  0.130335
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.289e+00  1.768e+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:  6.242e-01  1.303e-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.457e+00  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.78
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.71e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 4.82e-05 +/- 2.59e-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) = 7040.48271911
delta logL = 0.245955944535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7040.47909828
delta logL = 0.24957677466

Fit tolerance = 1e-08

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

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

 FCN=   7040.479     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      267 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9275        1.7444        .70957E-04    .63194E-03
   2  alpha         2.0127        .43129        .10400E-01    .18680E-04
   3  Normalizat    1.4436        .24139        .27213E-03    .30915E-04
   4  Prefactor     .62682        .12885        .21067E-03   -.63515E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92749
  alpha      = 2.01266
  Normalizat = 1.44363
  Prefactor  = 0.626822
 **********
 **   18 **HESSE 
 **********

 FCN=   7040.479     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9275        1.7113        .14191E-04   -1.5366    
   2  alpha         2.0127        .42309        .41600E-03   -.19619    
   3  Normalizat    1.4436        .24154        .10885E-04   -.79375    
   4  Prefactor     .62682        .12896        .84269E-05   -1.0647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06964e-11
Minuit parameter uncertainties:
  1  1.71136
  2  0.425222
  3  0.241733
  4  0.129026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448075': 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) = 7040.47909827
delta logL = 0.249576780639

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.927e+00  1.711e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.013e+00  4.252e-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:  6.268e-01  1.290e-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.444e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.25
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.01 +/- 0.43
Photon Flux (Free Index): 5.06e-08 +/- 3.25e-08
Energy Flux (Free Index): 3.40e-05 +/- 2.26e-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/448075/cmap_HighResolution_334713601_334972801_4FGL_J2243.9+2021_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.71e-08', energy_flux2='3.40e-05', photon_flux_error='2.00e-08', dlogl='2.50e-01', energy_flux='4.82e-05', photon_flux2='5.06e-08', job_status='DONE', time_completed='2021-09-28 19:24:26.197058', photon_index_error2='0.43', photon_index2='2.01', ts='12.78', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.26e-05', EG='1.46', time_epoch_completed='1632882266.2', return_code='0', job_id='448075', GAL2='0.63', EG2='1.44', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='3.25e-08', ts2='13.25', photon_index='1.72' WHERE bin_id='368' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 448075: <4FGL_J2243.9+2021_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin368 340.99 20.3565 334713601 334972801 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 :                                   635.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            832 sec.

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

