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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1470
RA = 340.865, Dec = -25.7363
tmin = 620352001, tmax = 620611201
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='438472', job_status='RUN', time_executed='2021-09-28 18:43:02.950718', time_epoch_executed='1632879782.95' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438472

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438472/ft1_4FGL_J2243.4-2544_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438472/ft2_4FGL_J2243.4-2544_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438472/ft1_4FGL_J2243.4-2544_daily_bin1470.fits outfile=/scratch/kocevski/438472/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1470.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=620352001.0 tmax=620611201.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 4.87
user 4.63
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438472/ft1_filtered_4FGL_J2243.4-2544_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/438472/ft2_4FGL_J2243.4-2544_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/438472/ltcube_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.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/438472/ft2_4FGL_J2243.4-2544_daily_bin1470.fits
.....................!
real 12.61
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438472/ft1_filtered_4FGL_J2243.4-2544_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/438472/ft2_4FGL_J2243.4-2544_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/438472/ltcube_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.fits outfile=/scratch/kocevski/438472/expmap_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.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/438472/ltcube_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.fits
.....................!
real 193.04
user 187.22
sys 5.45

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/438472/ft1_filtered_4FGL_J2243.4-2544_daily_bin1470.fits scfile=/scratch/kocevski/438472/ft2_4FGL_J2243.4-2544_daily_bin1470.fits outfile=/scratch/kocevski/438472/cmap_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438472/ft1_filtered_4FGL_J2243.4-2544_daily_bin1470.fits scfile=/scratch/kocevski/438472/ft2_4FGL_J2243.4-2544_daily_bin1470.fits outfile=/scratch/kocevski/438472/cmap_HighResolution_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438472/ft1_filtered_4FGL_J2243.4-2544_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/438472/ft2_4FGL_J2243.4-2544_daily_bin1470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438472/Model_4FGL_J2243.4-2544_daily_bin1470.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/438472/ft1_filtered_4FGL_J2243.4-2544_daily_bin1470.fits.....................!
real 52.31
user 50.88
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .76986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.699       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.832       1.0000         .10000E-03   10000.    
    11 'norm      '    9.3317       1.0000         .10000E-03   10000.    
    12 'norm      '    .10872E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.263       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.0176       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8796       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0340       1.0000         .10000E-03   10000.    
    18 'norm      '    .99675       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.142       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76226       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=   6483.664     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2897 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.185        .99605E-07** at limit **
   2  Prefactor     .10000E-03    25.470        .20617E-05** at limit **
   3  norm          .76987        .30900        .22350E-08   -.14677E-04
   4  Prefactor     6.3611        11.282        .13349E-06    .21837E-05
   5  Prefactor     .10000E-03    4.5066        .28924E-07** at limit **
   6  Prefactor     .10000E-03    3.4543        .56552E-07** at limit **
   7  Prefactor     .10000E-03    38.694       -.23561E-05** at limit **
   8  norm          10.696        11.915       -.48980E-06    .16891E-03
   9  Prefactor     .10000E-03    5.8287        .29446E-07** at limit **
  10  Prefactor     11.830        11.097       -.77694E-06    .26733E-03
  11  norm          9.3318        1.7700        .15200E-07    .10335E-03
  12  norm          .10000E-03    2.0203       -.36798E-05** at limit **
  13  Prefactor     60.191        39.996        .30401E-05    .58382E-03
  14  Prefactor     .10000E-03    2.1960        .84659E-07** at limit **
  15  norm          6.0167        3.6011       -.17691E-06    .51980E-03
  16  Prefactor     3.8885        11.789        .11316E-05    .14675E-03
  17  Prefactor     6.0311        11.097       -.43159E-06    .38112E-03
  18  norm          .99671        .78383       -.11897E-06   -.68337E-04
  19  Prefactor     26.686        52.628       -.44916E-05    .65890E-04
  20  Prefactor     9.8204        11.969        .86602E-07    .63552E-05
  21  Prefactor     .10000E-03    2.7712        .40109E-06** at limit **
  22  norm          15.142        4.4633        .33177E-07    .18869E-04
  23  Prefactor     .10000E-03    16.975       -.61904E-06** at limit **
  24  Normalizat    1.0369        .18037       -.11030E-05    .34172E-03
  25  Prefactor     .76219        .16318        .58310E-06    .27421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.769872
  Prefactor  = 6.36114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.696
  Prefactor  = 0.0001
  Prefactor  = 11.8296
  norm       = 9.3318
  norm       = 0.0001
  Prefactor  = 60.1913
  Prefactor  = 0.0001
  norm       = 6.01674
  Prefactor  = 3.88854
  Prefactor  = 6.03112
  norm       = 0.996707
  Prefactor  = 26.6856
  Prefactor  = 9.82039
  Prefactor  = 0.0001
  norm       = 15.1422
  Prefactor  = 0.0001
  Normalizat = 1.03692
  Prefactor  = 0.762191
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.664     FROM HESSE     STATUS=OK           427 CALLS     3324 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .76987        .31050        .27573E-04   -1.5532    
   4  Prefactor     6.3611        11.277        .15913E-03   -1.5203    
   5  Prefactor     .10000E-03    4.5106        .16694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4998        .14612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.696        11.896        .12249E-03   -1.5054    
   9  Prefactor     .10000E-03    5.8337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.830        11.101        .11646E-03   -1.5020    
  11  norm          9.3318        1.7704        .45039E-04   -1.5097    
  12  norm          .10000E-03    2.0862        .17215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.191        41.851        .25842E-03   -1.4155    
  14  Prefactor     .10000E-03    2.2010        .11653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0167        3.5852        .10920E-03   -1.5217    
  16  Prefactor     3.8885        11.844        .20486E-03   -1.5314    
  17  Prefactor     6.0311        11.789        .81728E-03   -1.5217    
  18  norm          .99671        .80347        .45247E-04   -1.5508    
  19  Prefactor     26.686        52.313        .77588E-04   -1.4674    
  20  Prefactor     9.8204        11.966        .12787E-03   -1.5081    
  21  Prefactor     .10000E-03    2.7839        .13102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.142        4.4650        .89572E-04   -1.4930    
  23  Prefactor     .10000E-03    16.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0369        .21271        .24164E-03   -.91804    
  25  Prefactor     .76219        .19173        .25860E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13232e-09
Minuit parameter uncertainties:
  1  2.53939e-06
  2  0.00014016
  3  0.310499
  4  11.2809
  5  1.98967e-06
  6  7.03852e-06
  7  0.000227428
  8  11.8984
  9  6.85694e-06
  10  11.1025
  11  1.77037
  12  2.66687e-05
  13  41.8714
  14  5.28826e-06
  15  3.58532
  16  11.8514
  17  11.7931
  18  0.803479
  19  52.4032
  20  11.9688
  21  1.75375e-05
  22  4.46511
  23  4.68906e-05
  24  0.212885
  25  0.191901
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  2.667e-05  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.622e-01  1.919e-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.037e+00  2.129e-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: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438472/likelihoodResults_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.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) = 6483.66604463
delta logL = -0.00228823180896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6483.66375663
delta logL = -2.32898855757e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9896       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76223       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=   6483.664     FROM MIGRAD    STATUS=FAILED        91 CALLS      250 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10142E-03    265.98        .17279E-02** at limit **
   2  alpha         1.7982        3.6564        .50000        .84106E-05
   3  Normalizat    1.0369        .55152E-01    .24164E-03   -.70808E-04
   4  Prefactor     .76219        .51631E-01    .25861E-03   -.82120E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6483.664     FROM SIMPLEX   STATUS=PROGRESS     144 CALLS      394 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10136E-03    265.98        .21027E-03** at limit **
   2  alpha         1.7981        3.6564        .74507E-04    .84106E-05
   3  Normalizat    1.0369        .55152E-01    .21637E-05   -.70808E-04
   4  Prefactor     .76219        .51631E-01    .98041E-06   -.82120E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6483.664     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      439 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8710        .34559E-03** at limit **
   2  alpha         1.7042        3.2340        .50000       -.77489E-07
   3  Normalizat    1.0369        .20076        .96656E-05   -.26582E-04
   4  Prefactor     .76219        .18787        .10344E-04    .18684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.70423
  Normalizat = 1.03692
  Prefactor  = 0.762192
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.664     FROM HESSE     STATUS=OK            29 CALLS      468 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2426        .69118E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7042        2.5620        .50000       -.32394    
   3  Normalizat    1.0369        .20058        .19331E-05   -.91804    
   4  Prefactor     .76219        .18764        .20688E-05   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56728e-11
Minuit parameter uncertainties:
  1  8.6198e-07
  2  124.912
  3  0.200724
  4  0.187798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438472': 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) = 6483.66375495
delta logL = 1.44143450598e-06

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  8.620e-07  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.704e+00  1.249e+02  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.622e-01  1.878e-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.037e+00  2.007e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/438472/cmap_HighResolution_620352001_620611201_4FGL_J2243.4-2544_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-28 18:55:24.982752', job_id='438472', GAL2='0.76', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632880524.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1470' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:55:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 438472: <4FGL_J2243.4-2544_daily_bin1470> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1470> 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) <bullet0255>, 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:55:25 2021
Results reported at Tue Sep 28 18:55:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1470 340.865 -25.7363 620352001 620611201 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 :                                   693.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

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

