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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin917
RA = 340.865, Dec = -25.7363
tmin = 477014401, tmax = 477273601
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='436588', job_status='RUN', time_executed='2021-09-28 18:35:38.902396', time_epoch_executed='1632879338.9' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='917'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436588/ft1_4FGL_J2243.4-2544_daily_bin917.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436588/ft1_4FGL_J2243.4-2544_daily_bin917.fits outfile=/scratch/kocevski/436588/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin917.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=477014401.0 tmax=477273601.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.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/436588/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin917.fits evtable="EVENTS" outfile="/scratch/kocevski/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits" evtable="EVENTS" scfile=/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits sctable="SC_DATA" outfile=/scratch/kocevski/436588/ltcube_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.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/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits
.....................!
real 11.82
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits sctable="SC_DATA" expcube=/scratch/kocevski/436588/ltcube_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.fits outfile=/scratch/kocevski/436588/expmap_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.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/436588/ltcube_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.fits
.....................!
real 190.70
user 186.13
sys 4.27

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/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits scfile=/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits outfile=/scratch/kocevski/436588/cmap_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits scfile=/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits outfile=/scratch/kocevski/436588/cmap_HighResolution_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits evtable="EVENTS" scfile=/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436588/Model_4FGL_J2243.4-2544_daily_bin917.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/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits....................!
real 38.38
user 37.11
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits', '/scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits', expMap='/scratch/kocevski/436588/expmap_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.fits', expCube='/scratch/kocevski/436588/ltcube_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436588/Model_4FGL_J2243.4-2544_daily_bin917.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/436588/ft1_filtered_4FGL_J2243.4-2544_daily_bin917.fits
Spacecraft file(s): /scratch/kocevski/436588/ft2_4FGL_J2243.4-2544_daily_bin917.fits
Exposure map: /scratch/kocevski/436588/expmap_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.fits
Exposure cube: /scratch/kocevski/436588/ltcube_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436588/Model_4FGL_J2243.4-2544_daily_bin917.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) = 4147.49369937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25837E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.644       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4579       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.252       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9311       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.934       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.394       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9931       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0393       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32178E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.437       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5749       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77127       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0885       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=   4147.478     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2879 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    111.29        .73274E-05** at limit **
   2  Prefactor     33.758        127.35        .59353E-06    .10283E-04
   3  norm          1.4579        .66425       -.81366E-07   -.29570E-03
   4  Prefactor     1.7763        30.784        .33781E-05    .52309E-06
   5  Prefactor     30.253        32.802       -.52854E-06   -.20511E-04
   6  Prefactor     8.9320        10.276        .18468E-05   -.25478E-04
   7  Prefactor     .10000E-03    21.194        .28961E-06** at limit **
   8  norm          20.928        20.463       -.36581E-06   -.14869E-04
   9  Prefactor     .10000E-03    11.129        .24333E-07** at limit **
  10  Prefactor     28.384        21.226       -.72770E-06   -.18879E-04
  11  norm          4.9930        1.5754        .14940E-07   -.26364E-05
  12  norm          4.0334        3.4342       -.47300E-06    .15366E-03
  13  Prefactor     .10000E-03    165.71       -.11379E-04** at limit **
  14  Prefactor     .10000E-03    10.997        .72521E-07** at limit **
  15  norm          10.435        5.9240       -.17816E-06   -.14105E-03
  16  Prefactor     14.896        15.088       -.22512E-06   -.68516E-04
  17  Prefactor     .10000E-03    15.182       -.42752E-06** at limit **
  18  norm          .10000E-03    .56265        .30667E-06** at limit **
  19  Prefactor     .10000E-03    21.293        .28649E-06** at limit **
  20  Prefactor     .10000E-03    7.8124       -.48895E-07** at limit **
  21  Prefactor     9.5754        16.637       -.83812E-06   -.12460E-03
  22  norm          .10000E-03    1.7712       -.30727E-07** at limit **
  23  Prefactor     .10000E-03    21.280        .29081E-06** at limit **
  24  Normalizat    .77096        .24534       -.30257E-05   -.32245E-04
  25  Prefactor     1.0887        .21645        .99729E-06   -.16213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 33.7576
  norm       = 1.45786
  Prefactor  = 1.77633
  Prefactor  = 30.2531
  Prefactor  = 8.93196
  Prefactor  = 0.0001
  norm       = 20.9277
  Prefactor  = 0.0001
  Prefactor  = 28.3839
  norm       = 4.99304
  norm       = 4.03338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4355
  Prefactor  = 14.896
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.57541
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.770962
  Prefactor  = 1.08871
 **********
 **   18 **HESSE 
 **********

 FCN=   4147.478     FROM HESSE     STATUS=OK           425 CALLS     3304 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.07        .21452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.758        128.57        .69086E-04   -1.4545    
   3  norm          1.4579        .66146        .32466E-04   -1.5466    
   4  Prefactor     1.7763        30.790        .31389E-03   -1.5441    
   5  Prefactor     30.253        32.679        .72845E-04   -1.4607    
   6  Prefactor     8.9320        10.266        .67059E-03   -1.5110    
   7  Prefactor     .10000E-03    21.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.928        20.461        .87542E-04   -1.4793    
   9  Prefactor     .10000E-03    11.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.384        21.194        .75185E-04   -1.4642    
  11  norm          4.9930        1.5763        .44063E-04   -1.5261    
  12  norm          4.0334        3.4024        .10406E-03   -1.5306    
  13  Prefactor     .10000E-03    163.57        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.435        5.9136        .11178E-03   -1.5062    
  16  Prefactor     14.896        15.051        .10378E-03   -1.4936    
  17  Prefactor     .10000E-03    15.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1485        .88477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.8348        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5754        16.006        .12951E-03   -1.5089    
  22  norm          .10000E-03    1.7778        .83687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77096        .28076        .30078E-03   -1.0116    
  25  Prefactor     1.0887        .25054        .23456E-03   -.89828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36762e-10
Minuit parameter uncertainties:
  1  0.000792026
  2  129.651
  3  0.661463
  4  14.7994
  5  32.6987
  6  10.2678
  7  2.10142e-05
  8  20.4677
  9  1.62892e-06
  10  21.1996
  11  1.57629
  12  3.40256
  13  5.49914e-05
  14  2.65165e-05
  15  5.91389
  16  15.055
  17  0.000108561
  18  1.36519e-05
  19  1.8742e-05
  20  6.59808e-06
  21  16.013
  22  2.68463e-06
  23  2.67415e-05
  24  0.281291
  25  0.250808
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.033e+00  3.403e+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:  1.089e+00  2.508e-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:  7.710e-01  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.56
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.90e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 2.09e-05

TS (Fixed Index): 3.56
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436588/likelihoodResults_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4147.3444873
delta logL = 0.133473697247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4147.33910678
delta logL = 0.13885421417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2995       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3846       1.0000          .0000       5.0000    
     3 'Normalizat'    .75460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0967       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=   4147.339     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      228 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2995        65.747        .55721E-02    .14626E-02
   2  alpha         2.3846        3.4569        .31676        .51474E-04
   3  Normalizat    .75458        .10446        .68595E-01    .94565E-05
   4  Prefactor     1.0967        .77005E-01    .37714E-01    .78750E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.29952
  alpha      = 2.38462
  Normalizat = 0.754575
  Prefactor  = 1.09667
 **********
 **   18 **HESSE 
 **********

 FCN=   4147.339     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2995        3.4378        .87385E-04   -1.5345    
   2  alpha         2.3846        .75269        .11514E-01   -.46168E-01
   3  Normalizat    .75458        .26810        .30353E-03   -1.0178    
   4  Prefactor     1.0967        .24491        .23370E-03   -.89573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61765e-10
Minuit parameter uncertainties:
  1  3.43802
  2  0.764575
  3  0.268572
  4  0.245161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436588': 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) = 4147.33910674
delta logL = 0.138854258223

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.300e+00  3.438e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.385e+00  7.646e-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:  1.097e+00  2.452e-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:  7.546e-01  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.38 +/- 0.76
Photon Flux (Free Index): 5.63e-08 +/- 5.29e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/436588/cmap_HighResolution_477014401_477273601_4FGL_J2243.4-2544_daily_bin917.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-05', comment='SUCCESS', photon_flux='3.90e-08', energy_flux2='2.12e-05', photon_flux_error='3.29e-08', dlogl='1.39e-01', energy_flux='2.48e-05', photon_flux2='5.63e-08', job_status='DONE', time_completed='2021-09-28 18:44:29.956997', photon_index_error2='0.76', photon_index2='2.38', ts='3.56', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.77e-05', EG='0.77', time_epoch_completed='1632879869.96', return_code='0', job_id='436588', GAL2='1.10', EG2='0.75', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='5.29e-08', ts2='3.84', photon_index='2.00' WHERE bin_id='917' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:44:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 436588: <4FGL_J2243.4-2544_daily_bin917> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin917> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:27 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:28 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:35:28 2021
Terminated at Tue Sep 28 18:44:30 2021
Results reported at Tue Sep 28 18:44:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin917 340.865 -25.7363 477014401 477273601 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 :                                   530.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            543 sec.

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

