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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1338
RA = 340.865, Dec = -25.7363
tmin = 586137601, tmax = 586396801
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='438281', job_status='RUN', time_executed='2021-09-28 18:40:56.212016', time_epoch_executed='1632879656.21' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438281

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438281/ft1_4FGL_J2243.4-2544_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438281/ft1_4FGL_J2243.4-2544_daily_bin1338.fits outfile=/scratch/kocevski/438281/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1338.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=586137601.0 tmax=586396801.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.56
user 4.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.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/438281/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1338.fits evtable="EVENTS" outfile="/scratch/kocevski/438281/ft1_filtered_4FGL_J2243.4-2544_daily_bin1338.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438281/ft1_filtered_4FGL_J2243.4-2544_daily_bin1338.fits" evtable="EVENTS" scfile=/scratch/kocevski/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.fits sctable="SC_DATA" outfile=/scratch/kocevski/438281/ltcube_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.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/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.fits
.....................!
real 10.06
user 9.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438281/ft1_filtered_4FGL_J2243.4-2544_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/438281/ltcube_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.fits outfile=/scratch/kocevski/438281/expmap_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.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/438281/ltcube_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.fits
.....................!
real 190.12
user 185.35
sys 4.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/438281/ft1_filtered_4FGL_J2243.4-2544_daily_bin1338.fits scfile=/scratch/kocevski/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.fits outfile=/scratch/kocevski/438281/cmap_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438281/ft1_filtered_4FGL_J2243.4-2544_daily_bin1338.fits scfile=/scratch/kocevski/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.fits outfile=/scratch/kocevski/438281/cmap_HighResolution_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438281/ft1_filtered_4FGL_J2243.4-2544_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/438281/ft2_4FGL_J2243.4-2544_daily_bin1338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438281/Model_4FGL_J2243.4-2544_daily_bin1338.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/438281/ft1_filtered_4FGL_J2243.4-2544_daily_bin1338.fits....................!
real 36.15
user 34.85
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24460E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.579       1.0000         .10000E-03   10000.    
     3 'norm      '    .79506       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3496       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8826       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5116       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.940       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9951       1.0000         .10000E-03   10000.    
    18 'norm      '    .41023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.486       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12099E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.8132       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96224       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=   3819.957     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2890 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.631       -.24025E-05** at limit **
   2  Prefactor     34.560        64.503       -.16925E-05   -.52503E-04
   3  norm          .79505        .37291       -.30983E-08    .42281E-04
   4  Prefactor     2.4148        6.9366        .59651E-06   -.33141E-04
   5  Prefactor     4.7810        16.592        .28387E-06   -.61282E-05
   6  Prefactor     .10000E-03    2.3699        .74852E-08** at limit **
   7  Prefactor     .10000E-03    71.308        .10223E-05** at limit **
   8  norm          5.3496        18.900        .52727E-05   -.51865E-04
   9  Prefactor     6.8865        26.310        .42317E-06    .39087E-05
  10  Prefactor     .10000E-03    54.114        .10812E-05** at limit **
  11  norm          1.5114        1.1266        .15230E-08    .17449E-04
  12  norm          .10000E-03    .95578       -.16660E-07** at limit **
  13  Prefactor     .10000E-03    32.127        .21738E-06** at limit **
  14  Prefactor     25.941        15.127        .60371E-08   -.39975E-05
  15  norm          .10000E-03    1.9172       -.27756E-07** at limit **
  16  Prefactor     .10000E-03    6.1323       -.31939E-07** at limit **
  17  Prefactor     3.9938        10.850        .60285E-06   -.21378E-04
  18  norm          .41023        .52611       -.30423E-07   -.32943E-04
  19  Prefactor     51.489        51.911        .11654E-06    .16293E-04
  20  Prefactor     .10000E-03    89.716       -.17746E-05** at limit **
  21  Prefactor     .10000E-03    5.0121       -.35642E-07** at limit **
  22  norm          3.8134        3.6374       -.10401E-08    .19755E-05
  23  Prefactor     .10000E-03    21.239        .27041E-08** at limit **
  24  Normalizat    1.1619        .24898       -.42061E-06    .46489E-05
  25  Prefactor     .96212        .21937       -.17182E-06   -.54037E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 34.5598
  norm       = 0.79505
  Prefactor  = 2.41485
  Prefactor  = 4.781
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.34962
  Prefactor  = 6.88645
  Prefactor  = 0.0001
  norm       = 1.51144
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99376
  norm       = 0.410235
  Prefactor  = 51.4894
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.81336
  Prefactor  = 0.0001
  Normalizat = 1.16194
  Prefactor  = 0.96212
 **********
 **   18 **HESSE 
 **********

 FCN=   3819.957     FROM HESSE     STATUS=OK           427 CALLS     3317 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.560        64.674        .68148E-04   -1.4532    
   3  norm          .79505        .37552        .25148E-04   -1.5530    
   4  Prefactor     2.4148        6.9152        .26342E-03   -1.5397    
   5  Prefactor     4.7810        16.577        .18402E-03   -1.5271    
   6  Prefactor     .10000E-03    2.3714        .92920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    72.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3496        19.011        .86878E-03   -1.5245    
   9  Prefactor     6.8865        26.311        .15293E-03   -1.5183    
  10  Prefactor     .10000E-03    55.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5114        1.1324        .54997E-04   -1.5462    
  12  norm          .10000E-03    .95899        .59010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.941        15.156        .78654E-04   -1.4689    
  15  norm          .10000E-03    1.9230        .83525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1334        .14944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.9938        10.944        .20178E-03   -1.5308    
  18  norm          .41023        .50923        .44450E-03   -1.5580    
  19  Prefactor     51.489        51.935        .55893E-04   -1.4272    
  20  Prefactor     .10000E-03    93.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0148        .13503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8134        3.6413        .11209E-03   -1.5317    
  23  Prefactor     .10000E-03    21.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1619        .30438        .25297E-03   -.87787    
  25  Prefactor     .96212        .26774        .24812E-03   -.94003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39194e-10
Minuit parameter uncertainties:
  1  0.000363202
  2  64.8057
  3  0.375525
  4  6.91746
  5  16.5934
  6  6.05148e-09
  7  0.000801107
  8  19.0323
  9  26.3552
  10  0.000313469
  11  1.13238
  12  1.44513e-06
  13  0.000110436
  14  15.1582
  15  2.15466e-06
  16  3.7183e-06
  17  10.9496
  18  0.50923
  19  51.9804
  20  0.000890777
  21  3.79635e-06
  22  3.64155
  23  3.10805e-06
  24  0.304842
  25  0.268113
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.445e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.621e-01  2.681e-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.162e+00  3.048e-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: 5.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438281/likelihoodResults_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.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) = 3819.96098272
delta logL = -0.0044137571731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3819.95656894
delta logL = 2.15741238208e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9952       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96215       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=   3819.957     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      231 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1781        .59046E-03** at limit **
   2  alpha         1.8238        3.4118        .16906       -.64792E-07
   3  Normalizat    1.1619        .28705        .25297E-03    .53502E-04
   4  Prefactor     .96212        .26029        .24812E-03    .58604E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.82377
  Normalizat = 1.16194
  Prefactor  = 0.96212
 **********
 **   18 **HESSE 
 **********

 FCN=   3819.957     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .97263        .11809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8238        2.9368        .67624E-02   -.27390    
   3  Normalizat    1.1619        .28738        .10119E-04   -.87787    
   4  Prefactor     .96212        .26058        .99246E-05   -.94003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59648e-11
Minuit parameter uncertainties:
  1  1.57123e-05
  2  143.194
  3  0.287769
  4  0.260925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438281': 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) = 3819.95656823
delta logL = 7.30130068405e-07

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.571e-05  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.824e+00  1.432e+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:  9.621e-01  2.609e-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.162e+00  2.878e-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/438281/cmap_HighResolution_586137601_586396801_4FGL_J2243.4-2544_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-05', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-09-28 18:49:37.343697', job_id='438281', GAL2='0.96', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632880177.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1338' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 438281: <4FGL_J2243.4-2544_daily_bin1338> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1338> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:37 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:39 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:39 2021
Terminated at Tue Sep 28 18:49:38 2021
Results reported at Tue Sep 28 18:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1338 340.865 -25.7363 586137601 586396801 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 :                                   518.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            541 sec.

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

