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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin726
RA = 340.865, Dec = -25.7363
tmin = 427507201, tmax = 427766401
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='435218', job_status='RUN', time_executed='2021-09-28 18:30:48.405355', time_epoch_executed='1632879048.41' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435218

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435218/ft1_4FGL_J2243.4-2544_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435218/ft2_4FGL_J2243.4-2544_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435218/ft1_4FGL_J2243.4-2544_daily_bin726.fits outfile=/scratch/kocevski/435218/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin726.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=427507201.0 tmax=427766401.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 5.71
user 5.43
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435218/ft2_4FGL_J2243.4-2544_daily_bin726.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/435218/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin726.fits evtable="EVENTS" outfile="/scratch/kocevski/435218/ft1_filtered_4FGL_J2243.4-2544_daily_bin726.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/435218/ft1_filtered_4FGL_J2243.4-2544_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/435218/ft2_4FGL_J2243.4-2544_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/435218/ltcube_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.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/435218/ft2_4FGL_J2243.4-2544_daily_bin726.fits
.....................!
real 11.98
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435218/ft1_filtered_4FGL_J2243.4-2544_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/435218/ft2_4FGL_J2243.4-2544_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/435218/ltcube_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.fits outfile=/scratch/kocevski/435218/expmap_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.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/435218/ltcube_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.fits
.....................!
real 189.85
user 185.76
sys 3.78

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/435218/ft1_filtered_4FGL_J2243.4-2544_daily_bin726.fits scfile=/scratch/kocevski/435218/ft2_4FGL_J2243.4-2544_daily_bin726.fits outfile=/scratch/kocevski/435218/cmap_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435218/ft1_filtered_4FGL_J2243.4-2544_daily_bin726.fits scfile=/scratch/kocevski/435218/ft2_4FGL_J2243.4-2544_daily_bin726.fits outfile=/scratch/kocevski/435218/cmap_HighResolution_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/435218/ft1_filtered_4FGL_J2243.4-2544_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/435218/ft2_4FGL_J2243.4-2544_daily_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/435218/Model_4FGL_J2243.4-2544_daily_bin726.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/435218/ft1_filtered_4FGL_J2243.4-2544_daily_bin726.fits.....................!
real 33.08
user 31.88
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7468       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    181.23       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.389       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59789E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8855       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.329       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8596       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.029       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.9911       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11794E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0932       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72813       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=   2960.173     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3891 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.360       -.29746E-06** at limit **
   2  Prefactor     .10000E-03    39.300       -.20547E-06** at limit **
   3  norm          1.7468        .51133        .49156E-08   -.63299E-05
   4  Prefactor     .10000E-03    5.7440       -.35296E-08** at limit **
   5  Prefactor     .10000E-03    7.8323       -.50600E-08** at limit **
   6  Prefactor     .10000E-03    13.713        .29418E-06** at limit **
   7  Prefactor     181.23        120.70        .10339E-06   -.77363E-05
   8  norm          .10000E-03    17.137        .21328E-08** at limit **
   9  Prefactor     24.391        27.712       -.84466E-06   -.79458E-04
  10  Prefactor     .10032E-03    24.891        .45175E-06** at limit **
  11  norm          1.8856        1.4818       -.16621E-08   -.63377E-04
  12  norm          .10000E-03    1.3433       -.76494E-07** at limit **
  13  Prefactor     34.310        75.068       -.20945E-05   -.99621E-04
  14  Prefactor     .10000E-03    16.980       -.29236E-06** at limit **
  15  norm          .10000E-03    3.8814       -.39564E-06** at limit **
  16  Prefactor     .10000E-03    11.184       -.22191E-06** at limit **
  17  Prefactor     5.8518        12.440        .46719E-05   -.37526E-03
  18  norm          .10000E-03    .44005       -.63597E-06** at limit **
  19  Prefactor     .10000E-03    29.546        .14007E-06** at limit **
  20  Prefactor     15.018        25.937        .40101E-05    .21422E-03
  21  Prefactor     .10000E-03    11.627       -.46599E-06** at limit **
  22  norm          2.9897        8.0534        .12947E-06   -.34996E-04
  23  Prefactor     .10000E-03    536.35       -.56025E-05** at limit **
  24  Normalizat    1.0934        .27969       -.57431E-07   -.31275E-04
  25  Prefactor     .72798        .23559       -.41459E-06   -.65240E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 181.226
  norm       = 0.0001
  Prefactor  = 24.391
  Prefactor  = 0.000100319
  norm       = 1.88562
  norm       = 0.0001
  Prefactor  = 34.3096
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85183
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0182
  Prefactor  = 0.0001
  norm       = 2.98966
  Prefactor  = 0.000100004
  Normalizat = 1.09339
  Prefactor  = 0.727977
 **********
 **   18 **HESSE 
 **********

 FCN=   2960.173     FROM HESSE     STATUS=OK           425 CALLS     4316 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7468        .51214        .20333E-04   -1.5444    
   4  Prefactor     .10000E-03    5.7584        .12734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8361        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     181.23        120.86        .29986E-04   -1.3007    
   8  norm          .10000E-03    17.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.391        27.835        .81113E-04   -1.4720    
  10  Prefactor     .10032E-03    47.990        .70291E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8856        1.4799        .56619E-04   -1.5433    
  12  norm          .10000E-03    1.3447        .61521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.310        76.830        .68395E-04   -1.4536    
  14  Prefactor     .10000E-03    17.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9188        .10481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.205        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8518        13.372        .82952E-03   -1.5224    
  18  norm          .10000E-03    .58386        .71672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.018        26.897        .10332E-03   -1.4933    
  21  Prefactor     .10000E-03    11.664        .18128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9897        8.0555        .23472E-03   -1.5362    
  23  Prefactor     .10000E-03    539.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0934        .35213        .24668E-03   -.89964    
  25  Prefactor     .72798        .29465        .25447E-03   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57409e-10
Minuit parameter uncertainties:
  1  2.73076e-05
  2  2.8618e-05
  3  0.512146
  4  2.88132e-06
  5  1.42778e-06
  6  6.63531e-05
  7  121.022
  8  1.63666e-05
  9  27.8502
  10  0.00783482
  11  1.47997
  12  2.26366e-06
  13  77.0532
  14  1.5602e-05
  15  2.64897e-05
  16  2.66241e-05
  17  13.3789
  18  1.51976e-05
  19  2.28907e-05
  20  26.9191
  21  4.08449e-05
  22  8.05841
  23  0.00311624
  24  0.352886
  25  0.295288
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  2.264e-06  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:  7.280e-01  2.953e-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:  1.093e+00  3.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435218/likelihoodResults_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.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) = 2960.17614804
delta logL = -0.00326742612879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2960.16016287
delta logL = 0.0127177460436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96922E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6164       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73592       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2960.160     FROM MIGRAD    STATUS=FAILED       104 CALLS      368 TOTAL
                     EDM=   .35E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94594E-02    12.019        .25454E-03    .15797E-01
   2  alpha         4.6309        2.6574        .50000        .64197E-03
   3  Normalizat    1.0799        .93109E-01    .24798E-03   -.18499E-04
   4  Prefactor     .73546        .79470E-01    .25328E-03    .67329E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2960.160     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      459 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94594E-02    12.019        .34522E-04    .15797E-01
   2  alpha         4.6309        2.6574        .10868E-01    .64197E-03
   3  Normalizat    1.0799        .93109E-01    .20465E-03   -.18499E-04
   4  Prefactor     .73546        .79470E-01    .86977E-04    .67329E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2960.160     FROM MIGRAD    STATUS=FAILED        45 CALLS      504 TOTAL
                     EDM=   .22E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94589E-02    13.435         .0000        .29980E-03
   2  alpha         4.6309        3.5143         .0000        .64362E-03
   3  Normalizat    1.0799        .10263         .0000       -.10659E-04
   4  Prefactor     .73546        .88014E-01     .0000        .51619E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00945894
  alpha      = 4.63089
  Normalizat = 1.07988
  Prefactor  = 0.735463
 **********
 **   18 **HESSE 
 **********

 FCN=   2960.160     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      533 TOTAL
                     EDM=   .45E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94589E-02    13.796        .20363E-05   -1.5689    
   2  alpha         4.6309        4.0424        .50000        1.0205    
   3  Normalizat    1.0799        .10535        .19838E-05   -.90400    
   4  Prefactor     .73546        .90446E-01    .20262E-05   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000445566
Minuit parameter uncertainties:
  1  0.718809
  2  42.9193
  3  0.105372
  4  0.0904645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435218': 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): 1
logL (Free Index) = 2960.16015748
delta logL = 0.0127231336232

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  9.459e-03  7.188e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  4.631e+00  4.292e+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:  7.355e-01  9.046e-02  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:  1.080e+00  1.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

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/435218/cmap_HighResolution_427507201_427766401_4FGL_J2243.4-2544_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-28 18:39:15.127522', job_id='435218', GAL2='0.74', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1632879555.13', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.27e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='726' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:39:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 435218: <4FGL_J2243.4-2544_daily_bin726> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin726> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:30:34 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:30: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 18:30:36 2021
Terminated at Tue Sep 28 18:39:15 2021
Results reported at Tue Sep 28 18:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin726 340.865 -25.7363 427507201 427766401 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 :                                   505.14 sec.
    Max Memory :                                 1225 MB
    Average Memory :                             354.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   519 sec.
    Turnaround time :                            521 sec.

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

