/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 81 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.4-2544_daily_bin305
RA = 340.865, Dec = -25.7363
tmin = 318384001, tmax = 318643201
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='433887', job_status='RUN', time_executed='2021-09-28 18:27:37.010046', time_epoch_executed='1632878857.01' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433887/ft1_4FGL_J2243.4-2544_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433887/ft1_4FGL_J2243.4-2544_daily_bin305.fits outfile=/scratch/kocevski/433887/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin305.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=318384001.0 tmax=318643201.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.35
user 3.02
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.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/433887/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin305.fits evtable="EVENTS" outfile="/scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits" evtable="EVENTS" scfile=/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits sctable="SC_DATA" outfile=/scratch/kocevski/433887/ltcube_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.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/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits
.....................!
real 14.34
user 13.93
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/433887/ltcube_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.fits outfile=/scratch/kocevski/433887/expmap_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.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/433887/ltcube_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.fits
.....................!
real 192.40
user 187.21
sys 4.77

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.4-2544 @ 340.865 -25.7363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits scfile=/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits outfile=/scratch/kocevski/433887/cmap_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.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.865 yref=-25.7363 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits scfile=/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits outfile=/scratch/kocevski/433887/cmap_HighResolution_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.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.865 yref=-25.7363 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.58
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433887/Model_4FGL_J2243.4-2544_daily_bin305.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/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits.....................!
real 54.73
user 53.40
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits', '/scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits', expMap='/scratch/kocevski/433887/expmap_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.fits', expCube='/scratch/kocevski/433887/ltcube_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433887/Model_4FGL_J2243.4-2544_daily_bin305.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.4-2544'

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.477e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/433887/ft1_filtered_4FGL_J2243.4-2544_daily_bin305.fits
Spacecraft file(s): /scratch/kocevski/433887/ft2_4FGL_J2243.4-2544_daily_bin305.fits
Exposure map: /scratch/kocevski/433887/expmap_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.fits
Exposure cube: /scratch/kocevski/433887/ltcube_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433887/Model_4FGL_J2243.4-2544_daily_bin305.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) = 6910.50990265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16104E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8724       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7578       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4954       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0772       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21016E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.839       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0724       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7245       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.062       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.178       1.0000         .10000E-03   10000.    
    15 'norm      '    .11186E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0512       1.0000         .10000E-03   10000.    
    18 'norm      '    .39714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.032       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88151       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6910.434     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2956 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.139        .14342E-04** at limit **
   2  Prefactor     6.0488        147.99        .15966E-04    .73336E-04
   3  norm          1.7577        .40826       -.22202E-07   -.84521E-03
   4  Prefactor     4.4892        10.443        .94189E-05   -.10797E-03
   5  Prefactor     4.2362        18.348       -.49809E-05   -.14145E-03
   6  Prefactor     8.0775        7.2335        .25759E-06   -.35971E-04
   7  Prefactor     .10002E-03    234.09        .20822E-04** at limit **
   8  norm          .10000E-03    6.6620       -.47710E-07** at limit **
   9  Prefactor     18.840        18.280        .33012E-06   -.84548E-06
  10  Prefactor     8.0728        10.700        .55853E-06   -.38860E-04
  11  norm          1.7244        .80179        .82528E-07   -.20169E-03
  12  norm          2.8563        2.2116        .54465E-06   -.10543E-03
  13  Prefactor     57.060        42.989       -.76900E-06   -.14332E-04
  14  Prefactor     18.180        10.671        .26453E-06   -.40167E-04
  15  norm          .10000E-03    1.7710        .13954E-07** at limit **
  16  Prefactor     .10000E-03    7.8219        .25837E-06** at limit **
  17  Prefactor     9.0561        8.0036        .19818E-06    .15872E-04
  18  norm          .39709        .62165        .92367E-07    .29433E-03
  19  Prefactor     .10000E-03    20.636        .71982E-07** at limit **
  20  Prefactor     .10000E-03    10.005       -.19056E-06** at limit **
  21  Prefactor     .10000E-03    7.7463        .67152E-07** at limit **
  22  norm          .10000E-03    1.3340       -.57620E-07** at limit **
  23  Prefactor     26.037        29.641        .55891E-06   -.47092E-05
  24  Normalizat    .88158        .17099       -.31604E-05   -.58789E-04
  25  Prefactor     .87708        .15162        .14518E-05   -.33336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 6.04875
  norm       = 1.75771
  Prefactor  = 4.48917
  Prefactor  = 4.23625
  Prefactor  = 8.07749
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 18.8398
  Prefactor  = 8.0728
  norm       = 1.72438
  norm       = 2.85626
  Prefactor  = 57.0604
  Prefactor  = 18.1803
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.05615
  norm       = 0.397094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.037
  Normalizat = 0.881583
  Prefactor  = 0.877083
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.434     FROM HESSE     STATUS=OK           435 CALLS     3391 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0488        153.13        .16572E-03   -1.5216    
   3  norm          1.7577        .40919        .24613E-04   -1.5443    
   4  Prefactor     4.4892        10.617        .94948E-03   -1.5284    
   5  Prefactor     4.2362        18.494        .19598E-03   -1.5296    
   6  Prefactor     8.0775        7.2329        .14107E-03   -1.5139    
   7  Prefactor     .10002E-03    243.60        .40368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.840        18.280        .92277E-04   -1.4840    
  10  Prefactor     8.0728        10.701        .14112E-03   -1.5140    
  11  norm          1.7244        .79771        .49177E-04   -1.5445    
  12  norm          2.8563        2.2204        .47305E-03   -1.5370    
  13  Prefactor     57.060        43.245        .53106E-04   -1.4196    
  14  Prefactor     18.180        10.702        .93940E-04   -1.4855    
  15  norm          .10000E-03    4.5547        .20891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.0561        7.6837        .13322E-03   -1.5106    
  18  norm          .39709        .56952        .58539E-03   -1.5582    
  19  Prefactor     .10000E-03    20.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3842        .18738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.037        29.665        .78515E-04   -1.4687    
  24  Normalizat    .88158        .20361        .24500E-03   -.97110    
  25  Prefactor     .87708        .18053        .23194E-03   -.96947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07356e-09
Minuit parameter uncertainties:
  1  0.000581628
  2  61.0439
  3  0.409195
  4  10.6214
  5  17.7118
  6  7.23371
  7  0.00466015
  8  3.34224e-06
  9  18.2857
  10  10.7037
  11  0.797716
  12  2.22049
  13  43.2686
  14  10.7027
  15  4.32676e-05
  16  1.43571e-05
  17  7.68452
  18  0.569527
  19  2.0152e-05
  20  3.07477e-05
  21  9.12546e-07
  22  2.70065e-06
  23  29.6817
  24  0.203791
  25  0.180651
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.856e+00  2.220e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.771e-01  1.807e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.816e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.53
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.37e-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) = 6910.40758811
delta logL = 0.0267072780471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6910.40111094
delta logL = 0.0331844454813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6135       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1503       1.0000          .0000       5.0000    
     3 'Normalizat'    .87776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6910.401     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6141        40.936        .63078E-02    .16393E-03
   2  alpha         2.1494        3.4395        .37129        .33871E-04
   3  Normalizat    .87733        .72286E-01    .44617E-01    .16457E-04
   4  Prefactor     .87955        .53055E-01    .44739E-01    .12064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6141
  alpha      = 2.14943
  Normalizat = 0.877327
  Prefactor  = 0.879555
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.401     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6141        2.1685        .89532E-04   -1.5385    
   2  alpha         2.1494        .60690        .13228E-01   -.14069    
   3  Normalizat    .87733        .18702        .24551E-03   -.97261    
   4  Prefactor     .87955        .17715        .23164E-03   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12939e-09
Minuit parameter uncertainties:
  1  2.16852
  2  0.613147
  3  0.187159
  4  0.177269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433887': 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) = 6910.40110653
delta logL = 0.0331888523588

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.614e+00  2.169e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.149e+00  6.131e-01  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.796e-01  1.773e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.773e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.63
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.15 +/- 0.61
Photon Flux (Free Index): 3.11e-08 +/- 2.50e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.29e-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/433887/cmap_HighResolution_318384001_318643201_4FGL_J2243.4-2544_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='1.57e-05', photon_flux_error='2.15e-08', dlogl='3.32e-02', energy_flux='1.76e-05', photon_flux2='3.11e-08', job_status='DONE', time_completed='2021-09-28 18:38:09.656846', photon_index_error2='0.61', photon_index2='2.15', ts='4.53', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.88', time_epoch_completed='1632879489.66', return_code='0', job_id='433887', GAL2='0.88', EG2='0.88', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='2.50e-08', ts2='4.63', photon_index='2.00' WHERE bin_id='305' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:38:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 433887: <4FGL_J2243.4-2544_daily_bin305> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin305> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:25:54 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:25:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:25:55 2021
Terminated at Tue Sep 28 18:38:10 2021
Results reported at Tue Sep 28 18:38:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin305 340.865 -25.7363 318384001 318643201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.4-2544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

