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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1254
RA = 340.865, Dec = -25.7363
tmin = 564364801, tmax = 564624001
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='438160', job_status='RUN', time_executed='2021-09-28 18:41:47.355024', time_epoch_executed='1632879707.36' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1254'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438160/ft1_4FGL_J2243.4-2544_daily_bin1254.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438160/ft2_4FGL_J2243.4-2544_daily_bin1254.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438160/ft1_4FGL_J2243.4-2544_daily_bin1254.fits outfile=/scratch/kocevski/438160/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1254.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=564364801.0 tmax=564624001.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.60
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438160/ft2_4FGL_J2243.4-2544_daily_bin1254.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/438160/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1254.fits evtable="EVENTS" outfile="/scratch/kocevski/438160/ft1_filtered_4FGL_J2243.4-2544_daily_bin1254.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438160/ft1_filtered_4FGL_J2243.4-2544_daily_bin1254.fits" evtable="EVENTS" scfile=/scratch/kocevski/438160/ft2_4FGL_J2243.4-2544_daily_bin1254.fits sctable="SC_DATA" outfile=/scratch/kocevski/438160/ltcube_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.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/438160/ft2_4FGL_J2243.4-2544_daily_bin1254.fits
.....................!
real 12.01
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438160/ft1_filtered_4FGL_J2243.4-2544_daily_bin1254.fits evtable="EVENTS" scfile=/scratch/kocevski/438160/ft2_4FGL_J2243.4-2544_daily_bin1254.fits sctable="SC_DATA" expcube=/scratch/kocevski/438160/ltcube_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.fits outfile=/scratch/kocevski/438160/expmap_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.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/438160/ltcube_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.fits
.....................!
real 190.63
user 185.34
sys 4.95

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/438160/ft1_filtered_4FGL_J2243.4-2544_daily_bin1254.fits scfile=/scratch/kocevski/438160/ft2_4FGL_J2243.4-2544_daily_bin1254.fits outfile=/scratch/kocevski/438160/cmap_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.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/438160/ft1_filtered_4FGL_J2243.4-2544_daily_bin1254.fits scfile=/scratch/kocevski/438160/ft2_4FGL_J2243.4-2544_daily_bin1254.fits outfile=/scratch/kocevski/438160/cmap_HighResolution_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65654       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26758E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7116       1.0000         .10000E-03   10000.    
    12 'norm      '    .10284E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9313       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6405       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.424       1.0000         .10000E-03   10000.    
    18 'norm      '    .73951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5582       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.606       1.0000         .10000E-03   10000.    
    22 'norm      '    2.1325       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32194       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92752       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1675       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.

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

 FCN=   4198.526     FROM MIGRAD    STATUS=FAILED      1054 CALLS     3468 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.601        .18142E-02** at limit **
   2  Prefactor     .10000E-03    40.912        .18142E-02** at limit **
   3  norm          3.2123        .84420        .29533E-04    .14667E-03
   4  Prefactor     .10000E-03    12.428        .18142E-02** at limit **
   5  Prefactor     .74099        182.28        .58547E-02   -.12809E-03
   6  Prefactor     8.8005        25.050        .13516E-03   -.18505E-04
   7  Prefactor     .10653E-03    54.774        .14012    ** at limit **
   8  norm          6.8300        67.423        .15358E-03    .15323E-04
   9  Prefactor     33.295        36.753        .69491E-04    .15378E-04
  10  Prefactor     .10000E-03    12.617        .18142E-02** at limit **
  11  norm          1.7118        1.0287        .48536E-04   -.23517E-03
  12  norm          .10000E-03    13.623        .17951E-02** at limit **
  13  Prefactor     .10000E-03    49.625        .18142E-02** at limit **
  14  Prefactor     7.9374        26.963        .14237E-03   -.30823E-04
  15  norm          .10000E-03    3.2078        .11312E-02** at limit **
  16  Prefactor     2.6394        41.764        .25091E-03   -.29723E-04
  17  Prefactor     31.430        28.823        .71478E-04   -.12963E-03
  18  norm          .73844        1.1729        .74947E-03   -.14442E-03
  19  Prefactor     .10000E-03    87.217        .18142E-02** at limit **
  20  Prefactor     6.5575        11.991        .15671E-03   -.13131E-04
  21  Prefactor     27.618        35.333        .76248E-04   -.68736E-04
  22  norm          2.1323        6.4921        .12214E-02   -.25820E-04
  23  Prefactor     .36061        100.23        .15950        .11974E-02
  24  Normalizat    .92769        .33783        .30946E-03   -.55143E-04
  25  Prefactor     1.1673        .27674        .24165E-03    .52559E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4198.526     FROM SIMPLEX   STATUS=UNCHANGED   1361 CALLS     4829 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.601        .69527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.912        .32351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2123        .84420        .85945E-06   -1.5349    
   4  Prefactor     .10000E-03    12.428        .21701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .74099        182.28        .88268E-06   -1.5536    
   6  Prefactor     8.8005        25.050        .84483E-06   -1.5115    
   7  Prefactor     .10653E-03    54.774        .98531E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8300        67.423        .84893E-06   -1.5185    
   9  Prefactor     33.295        36.753        .81372E-06   -1.4553    
  10  Prefactor     .10000E-03    12.617        .53808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7118        1.0287        .86484E-06   -1.5446    
  12  norm          .10000E-03    13.623        .70262E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.625        .95916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9374        26.963        .84652E-06   -1.5144    
  15  norm          .10000E-03    3.2078        .21086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6394        41.764        .86034E-06   -1.5383    
  17  Prefactor     31.430        28.823        .81408E-06   -1.4586    
  18  norm          .73844        1.1729        .86944E-06   -1.5536    
  19  Prefactor     .10000E-03    87.217        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5575        11.991        .84873E-06   -1.5196    
  21  Prefactor     27.618        35.333        .81334E-06   -1.4656    
  22  norm          2.1323        6.4921        .85711E-06   -1.5416    
  23  Prefactor     .36061        100.23        .82180E-06   -1.5588    
  24  Normalizat    .92769        .33783        .53456E-06   -.95494    
  25  Prefactor     1.1673        .27674        .48907E-06   -.87343    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4198.526     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     5260 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.601        .36285E-03** at limit **
   2  Prefactor     .10000E-03    40.912        .36285E-03** at limit **
   3  norm          3.2123        .84407        .11813E-05   -.15533E-03
   4  Prefactor     .10000E-03    12.434        .36285E-03** at limit **
   5  Prefactor     .74227        181.89        .23419E-03    .41360E-04
   6  Prefactor     8.8006        25.042        .54065E-05    .25234E-05
   7  Prefactor     .10516E-03    53.791        .14206    ** at limit **
   8  norm          6.8300        67.234        .61434E-05   -.33310E-05
   9  Prefactor     33.295        36.751        .27796E-05   -.49080E-05
  10  Prefactor     .10000E-03    12.620        .36285E-03** at limit **
  11  norm          1.7118        1.0283        .19414E-05   -.52702E-03
  12  norm          .10000E-03    13.734        .35903E-03** at limit **
  13  Prefactor     .10000E-03    49.628        .36285E-03** at limit **
  14  Prefactor     7.9376        26.951        .56949E-05    .63881E-05
  15  norm          .10000E-03    3.2078        .22625E-03** at limit **
  16  Prefactor     2.6395        41.673        .10037E-04    .79291E-05
  17  Prefactor     31.430        28.783        .28591E-05    .11134E-04
  18  norm          .73844        1.1689        .29979E-04    .53091E-04
  19  Prefactor     .10000E-03    87.217        .36285E-03** at limit **
  20  Prefactor     6.5576        11.982        .62682E-05   -.79803E-05
  21  Prefactor     27.619        35.315        .30499E-05    .74550E-06
  22  norm          2.1323        6.2785        .48856E-04   -.13613E-03
  23  Prefactor     .36077        42.497        .28911       -.29597E-04
  24  Normalizat    .92769        .33650        .12378E-04   -.19710E-03
  25  Prefactor     1.1673        .27659        .48330E-04   -.30255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.21233
  Prefactor  = 0.0001
  Prefactor  = 0.742272
  Prefactor  = 8.80062
  Prefactor  = 0.000105155
  norm       = 6.82995
  Prefactor  = 33.2946
  Prefactor  = 0.0001
  norm       = 1.71177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.93757
  norm       = 0.0001
  Prefactor  = 2.63951
  Prefactor  = 31.4295
  norm       = 0.738441
  Prefactor  = 0.0001
  Prefactor  = 6.55755
  Prefactor  = 27.6185
  norm       = 2.13225
  Prefactor  = 0.360766
  Normalizat = 0.927691
  Prefactor  = 1.16732
 **********
 **   18 **HESSE 
 **********

 FCN=   4198.526     FROM HESSE     STATUS=OK           421 CALLS     5681 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.601        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.912        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2123        .84411        .36596E-06   -1.5349    
   4  Prefactor     .10000E-03    12.434        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .74227        181.66        .93675E-05   -1.5536    
   6  Prefactor     8.8006        25.005        .10813E-05   -1.5115    
   7  Prefactor     .10516E-03    53.991        .14165       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8300        65.608        .12287E-05   -1.5185    
   9  Prefactor     33.295        36.699        .55592E-06   -1.4553    
  10  Prefactor     .10000E-03    12.620        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7118        1.0283        .38829E-06   -1.5446    
  12  norm          .10000E-03    13.738        .71806E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.628        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9376        26.915        .11390E-05   -1.5144    
  15  norm          .10000E-03    3.2078        .45250E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6395        41.648        .20073E-05   -1.5383    
  17  Prefactor     31.430        28.402        .57182E-06   -1.4586    
  18  norm          .73844        1.1679        .11992E-05   -1.5536    
  19  Prefactor     .10000E-03    87.218        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5576        11.985        .12536E-05   -1.5196    
  21  Prefactor     27.619        34.701        .60999E-06   -1.4656    
  22  norm          2.1323        6.5176        .19542E-05   -1.5416    
  23  Prefactor     .36077        128.95        .13661       -1.5588    
  24  Normalizat    .92769        .33759        .24756E-05   -.95494    
  25  Prefactor     1.1673        .27669        .96661E-05   -.87343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65159e-10
Minuit parameter uncertainties:
  1  8.09608e-07
  2  2.09049e-05
  3  0.844111
  4  1.02583e-05
  5  23.2944
  6  25.0347
  7  0.0333972
  8  42.3974
  9  36.7234
  10  1.36435e-05
  11  1.02835
  12  0.000112003
  13  2.55962e-05
  14  26.9564
  15  4.55836e-06
  16  20.9865
  17  28.4143
  18  1.16791
  19  3.91897e-05
  20  11.9896
  21  34.7262
  22  6.51976
  23  13.669
  24  0.338361
  25  0.277032
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.120e-04  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.167e+00  2.770e-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:  9.277e-01  3.384e-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: 8.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438160/likelihoodResults_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.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): 102
logL (Free Index) = 4198.52685085
delta logL = -0.000351234401933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4198.52649758
delta logL = 2.03241415875e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13863E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1277       1.0000          .0000       5.0000    
     3 'Normalizat'    .92758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1674       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=   4198.486     FROM MIGRAD    STATUS=FAILED       190 CALLS      361 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21631E-01    .31449        .25060E-03    .14937E-01
   2  alpha         4.6144        4.1715        .90098E-01   -.13687E-03
   3  Normalizat    .89574        .32356        .31435E-03    .11971E-04
   4  Prefactor     1.1841        .27049        .24014E-03    .30015E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4198.486     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      436 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21631E-01    .31449        .16351E-03   -1.5679    
   2  alpha         4.6144        4.1715        .35050E-01    2.1336    
   3  Normalizat    .89574        .32356        .22206E-03   -.96610    
   4  Prefactor     1.1841        .27049        .18421E-03   -.86822    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4198.486     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      466 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21631E-01    1.1097        .50120E-04    .67141E-04
   2  alpha         4.6144        3.9104        .18020E-01   -.28580E-06
   3  Normalizat    .89574        .32295        .12574E-04    .54249E-06
   4  Prefactor     1.1841        .27091        .96057E-05    .23671E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0216306
  alpha      = 4.61445
  Normalizat = 0.895744
  Prefactor  = 1.1841
 **********
 **   18 **HESSE 
 **********

 FCN=   4198.486     FROM HESSE     STATUS=OK            27 CALLS      493 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21631E-01    3.2757        .20048E-05   -1.5679    
   2  alpha         4.6144        3.7747        .72078E-03    2.1336    
   3  Normalizat    .89574        .32243        .25148E-05   -.96610    
   4  Prefactor     1.1841        .27153        .19211E-05   -.86822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22917e-12
Minuit parameter uncertainties:
  1  0.531172
  2  11.4598
  3  0.323123
  4  0.271854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438160': 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) = 4198.48602895
delta logL = 0.0404706668405

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.163e-02  5.312e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  4.614e+00  1.146e+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.184e+00  2.719e-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.957e-01  3.231e-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/438160/cmap_HighResolution_564364801_564624001_4FGL_J2243.4-2544_daily_bin1254.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-05', job_status='DONE', photon_flux_upper_limit='8.35e-08', time_completed='2021-09-28 18:52:40.832370', job_id='438160', GAL2='1.18', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1632880360.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.05e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1254' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:52:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 438160: <4FGL_J2243.4-2544_daily_bin1254> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1254 340.865 -25.7363 564364801 564624001 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 :                                   650.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

