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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1461
RA = 340.865, Dec = -25.7363
tmin = 618019201, tmax = 618278401
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='438459', job_status='RUN', time_executed='2021-09-28 18:42:19.110193', time_epoch_executed='1632879739.11' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438459/ft1_4FGL_J2243.4-2544_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438459/ft1_4FGL_J2243.4-2544_daily_bin1461.fits outfile=/scratch/kocevski/438459/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1461.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=618019201.0 tmax=618278401.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.13
user 4.88
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.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/438459/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1461.fits evtable="EVENTS" outfile="/scratch/kocevski/438459/ft1_filtered_4FGL_J2243.4-2544_daily_bin1461.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/438459/ft1_filtered_4FGL_J2243.4-2544_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/438459/ltcube_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.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/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.fits
.....................!
real 11.62
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438459/ft1_filtered_4FGL_J2243.4-2544_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/438459/ltcube_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.fits outfile=/scratch/kocevski/438459/expmap_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.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/438459/ltcube_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.fits
.....................!
real 190.71
user 185.08
sys 5.18

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/438459/ft1_filtered_4FGL_J2243.4-2544_daily_bin1461.fits scfile=/scratch/kocevski/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.fits outfile=/scratch/kocevski/438459/cmap_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438459/ft1_filtered_4FGL_J2243.4-2544_daily_bin1461.fits scfile=/scratch/kocevski/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.fits outfile=/scratch/kocevski/438459/cmap_HighResolution_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438459/ft1_filtered_4FGL_J2243.4-2544_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/438459/ft2_4FGL_J2243.4-2544_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438459/Model_4FGL_J2243.4-2544_daily_bin1461.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/438459/ft1_filtered_4FGL_J2243.4-2544_daily_bin1461.fits.....................!
real 39.67
user 38.15
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10475E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12090E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.967       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.795       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .34215       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7223       1.0000         .10000E-03   10000.    
    13 'Prefactor '    73.675       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.310       1.0000         .10000E-03   10000.    
    15 'norm      '    .13405E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10972E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .23462       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3785       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9033       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94167       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=   4320.265     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3064 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0535        .11543E-07** at limit **
   2  Prefactor     .10000E-03    14.701        .14903E-07** at limit **
   3  norm          .33645        .24063        .51325E-08   -.13860E-03
   4  Prefactor     .10000E-03    6.1690        .11137E-06** at limit **
   5  Prefactor     .10000E-03    195.04        .69697E-05** at limit **
   6  Prefactor     .10000E-03    2.6367       -.14840E-07** at limit **
   7  Prefactor     .10000E-03    486.92       -.53239E-05** at limit **
   8  norm          19.963        31.434        .77327E-06   -.98809E-04
   9  Prefactor     23.798        30.134        .14483E-06   -.21196E-04
  10  Prefactor     .10000E-03    31.180        .23065E-05** at limit **
  11  norm          .34134        1.2741       -.11225E-05    .72412E-03
  12  norm          3.7200        4.3757       -.20434E-06   -.18010E-03
  13  Prefactor     73.736        88.308        .59402E-06   -.15416E-03
  14  Prefactor     15.316        17.554       -.23094E-06   -.13645E-03
  15  norm          .10016E-03    5.0199       -.25930E-06** at limit **
  16  Prefactor     42.235        29.339       -.18077E-05   -.41661E-03
  17  Prefactor     .10001E-03    11.452        .31509E-05** at limit **
  18  norm          .23419        .87624       -.46777E-06   -.14037E-02
  19  Prefactor     .10000E-03    39.938       -.15228E-06** at limit **
  20  Prefactor     .10000E-03    7.5987       -.26644E-07** at limit **
  21  Prefactor     .10000E-03    6.8761        .89364E-07** at limit **
  22  norm          2.3786        3.1798        .42670E-07   -.54089E-04
  23  Prefactor     2.9010        138.37        .35430E-06   -.68032E-05
  24  Normalizat    1.0849        .23852       -.23261E-05   -.15780E-03
  25  Prefactor     .94224        .20917        .23151E-05   -.31038E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.336454
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.9632
  Prefactor  = 23.7981
  Prefactor  = 0.000100001
  norm       = 0.34134
  norm       = 3.71997
  Prefactor  = 73.7365
  Prefactor  = 15.3163
  norm       = 0.000100162
  Prefactor  = 42.2353
  Prefactor  = 0.000100009
  norm       = 0.234186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37859
  Prefactor  = 2.90096
  Normalizat = 1.08494
  Prefactor  = 0.942239
 **********
 **   18 **HESSE 
 **********

 FCN=   4320.265     FROM HESSE     STATUS=OK           423 CALLS     3487 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0539        .17050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .33645        .24189        .26552E-04   -1.5592    
   4  Prefactor     .10000E-03    6.1872        .15941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    198.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6412        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    490.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.963        31.292        .44817E-03   -1.4814    
   9  Prefactor     23.798        30.170        .82116E-04   -1.4732    
  10  Prefactor     .10000E-03    31.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .34134        1.2106        .12854E-03   -1.5591    
  12  norm          3.7200        4.4051        .11263E-03   -1.5322    
  13  Prefactor     73.736        88.963        .46775E-04   -1.3988    
  14  Prefactor     15.316        17.740        .10236E-03   -1.4925    
  15  norm          .10016E-03    25.044        .24750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.235        26.889        .61685E-04   -1.4407    
  17  Prefactor     .10001E-03    50.809        .34267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .23419        .76271        .85812E-04   -1.5611    
  19  Prefactor     .10000E-03    39.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6254        .17696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9061        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3786        3.1483        .12754E-03   -1.5400    
  23  Prefactor     2.9010        137.23        .23847E-03   -1.5367    
  24  Normalizat    1.0849        .28734        .25156E-03   -.90237    
  25  Prefactor     .94224        .24970        .24288E-03   -.94680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91718e-09
Minuit parameter uncertainties:
  1  7.42761e-07
  2  5.21698e-08
  3  0.241894
  4  1.09127e-05
  5  0.00199957
  6  1.40499e-06
  7  0.000652706
  8  31.3172
  9  30.1895
  10  0.000286165
  11  1.2107
  12  4.4055
  13  89.1237
  14  17.7459
  15  0.00402532
  16  26.8963
  17  0.00135999
  18  0.76274
  19  4.60987e-05
  20  4.67319e-06
  21  1.21054e-05
  22  3.14857
  23  40.0021
  24  0.287754
  25  0.250005
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.720e+00  4.406e+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:  9.422e-01  2.500e-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.085e+00  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 2.71e-05

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

Saving results to:
/scratch/kocevski/438459/likelihoodResults_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.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) = 4319.79907274
delta logL = 0.465992273362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4319.7932984
delta logL = 0.471766618033

Fit tolerance = 1e-08

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

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

 FCN=   4319.793     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      264 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4835        3.1269        .74407E-04    .70039E-03
   2  alpha         2.7227        .82798        .10303E-01    .52788E-04
   3  Normalizat    1.0452        .27158        .25523E-03    .11581E-03
   4  Prefactor     .96298        .24401        .24033E-03    .20167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48347
  alpha      = 2.72271
  Normalizat = 1.0452
  Prefactor  = 0.962984
 **********
 **   18 **HESSE 
 **********

 FCN=   4319.793     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4835        2.8689        .29763E-05   -1.5393    
   2  alpha         2.7227        .76109        .41211E-03    .89200E-01
   3  Normalizat    1.0452        .27115        .10209E-04   -.91531    
   4  Prefactor     .96298        .24383        .48065E-04   -.93974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60876e-10
Minuit parameter uncertainties:
  1  2.86908
  2  0.773467
  3  0.271513
  4  0.244105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438459': 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) = 4319.79329838
delta logL = 0.47176664189

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.483e+00  2.869e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.723e+00  7.735e-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:  9.630e-01  2.441e-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.045e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.72 +/- 0.77
Photon Flux (Free Index): 7.51e-08 +/- 6.72e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.56e-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/438459/cmap_HighResolution_618019201_618278401_4FGL_J2243.4-2544_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-05', comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='2.07e-05', photon_flux_error='4.26e-08', dlogl='4.72e-01', energy_flux='2.29e-05', photon_flux2='7.51e-08', job_status='DONE', time_completed='2021-09-28 18:52:24.202421', photon_index_error2='0.77', photon_index2='2.72', ts='1.97', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.56e-05', EG='1.08', time_epoch_completed='1632880344.2', return_code='0', job_id='438459', GAL2='0.96', EG2='1.05', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='6.72e-08', ts2='2.93', photon_index='2.00' WHERE bin_id='1461' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:52:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 438459: <4FGL_J2243.4-2544_daily_bin1461> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1461 340.865 -25.7363 618019201 618278401 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 :                                   567.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            694 sec.

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

