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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1590
RA = 340.865, Dec = -25.7363
tmin = 651456001, tmax = 651715201
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='438620', job_status='RUN', time_executed='2021-09-28 18:41:31.473007', time_epoch_executed='1632879691.47' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438620/ft1_4FGL_J2243.4-2544_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438620/ft2_4FGL_J2243.4-2544_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438620/ft1_4FGL_J2243.4-2544_daily_bin1590.fits outfile=/scratch/kocevski/438620/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1590.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=651456001.0 tmax=651715201.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.52
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438620/ft1_filtered_4FGL_J2243.4-2544_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/438620/ft2_4FGL_J2243.4-2544_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/438620/ltcube_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.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/438620/ft2_4FGL_J2243.4-2544_daily_bin1590.fits
.....................!
real 17.98
user 17.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438620/ft1_filtered_4FGL_J2243.4-2544_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/438620/ft2_4FGL_J2243.4-2544_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/438620/ltcube_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.fits outfile=/scratch/kocevski/438620/expmap_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.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/438620/ltcube_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.fits
.....................!
real 191.64
user 185.81
sys 5.47

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/438620/ft1_filtered_4FGL_J2243.4-2544_daily_bin1590.fits scfile=/scratch/kocevski/438620/ft2_4FGL_J2243.4-2544_daily_bin1590.fits outfile=/scratch/kocevski/438620/cmap_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438620/ft1_filtered_4FGL_J2243.4-2544_daily_bin1590.fits scfile=/scratch/kocevski/438620/ft2_4FGL_J2243.4-2544_daily_bin1590.fits outfile=/scratch/kocevski/438620/cmap_HighResolution_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.093       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .80483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24628E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.085       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3676       1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.493       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5989       1.0000         .10000E-03   10000.    
    15 'norm      '    .12576E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3771       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17554E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.182       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95986       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87110       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=   4130.112     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2944 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.097        32.702       -.35647E-06   -.76577E-04
   2  Prefactor     .10000E-03    105.15        .38685E-05** at limit **
   3  norm          .80484        .40006       -.30362E-08   -.10828E-03
   4  Prefactor     .10000E-03    24.375        .73375E-06** at limit **
   5  Prefactor     6.9393        26.225       -.22260E-06    .46515E-05
   6  Prefactor     .10084E-03    50.861        .81472E-05** at limit **
   7  Prefactor     .10000E-03    37.953       -.14525E-06** at limit **
   8  norm          1.5558        44.166        .44725E-05    .36504E-03
   9  Prefactor     38.378        33.921        .51179E-06    .53628E-04
  10  Prefactor     27.075        20.684        .19479E-06    .10744E-03
  11  norm          1.3679        1.3828       -.37692E-07    .54357E-04
  12  norm          .10000E-03    1.9636       -.71045E-06** at limit **
  13  Prefactor     43.511        71.197       -.31694E-05    .14969E-04
  14  Prefactor     5.5989        14.566       -.32532E-06    .61289E-04
  15  norm          .10000E-03    4.8456       -.87856E-06** at limit **
  16  Prefactor     .10000E-03    14.016       -.52235E-06** at limit **
  17  Prefactor     7.3554        9.2618        .21739E-05    .69607E-03
  18  norm          .10000E-03    .21160       -.23361E-06** at limit **
  19  Prefactor     42.672        53.134        .15316E-05    .83154E-04
  20  Prefactor     .10000E-03    23.479       -.43217E-06** at limit **
  21  Prefactor     .10000E-03    6.3954       -.48832E-06** at limit **
  22  norm          11.183        5.3581       -.42733E-07    .26401E-04
  23  Prefactor     .10000E-03    37.586        .46298E-06** at limit **
  24  Normalizat    .95987        .23857        .97525E-06    .20835E-03
  25  Prefactor     .87102        .19732       -.77369E-08    .28305E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.097
  Prefactor  = 0.000100005
  norm       = 0.804836
  Prefactor  = 0.0001
  Prefactor  = 6.9393
  Prefactor  = 0.000100843
  Prefactor  = 0.0001
  norm       = 1.5558
  Prefactor  = 38.3778
  Prefactor  = 27.0752
  norm       = 1.36791
  norm       = 0.0001
  Prefactor  = 43.5114
  Prefactor  = 5.5989
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.35541
  norm       = 0.0001
  Prefactor  = 42.6718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.183
  Prefactor  = 0.0001
  Normalizat = 0.95987
  Prefactor  = 0.871015
 **********
 **   18 **HESSE 
 **********

 FCN=   4130.112     FROM HESSE     STATUS=OK           425 CALLS     3369 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.097        32.739        .71856E-04   -1.4592    
   2  Prefactor     .10000E-03    105.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .80484        .40168        .27756E-04   -1.5529    
   4  Prefactor     .10000E-03    24.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.9393        26.182        .15231E-03   -1.5181    
   6  Prefactor     .10084E-03    99.491        .40177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5558        57.822        .17064E-02   -1.5459    
   9  Prefactor     38.378        33.568        .64692E-04   -1.4468    
  10  Prefactor     27.075        20.769        .76977E-04   -1.4667    
  11  norm          1.3679        1.3659        .72188E-04   -1.5474    
  12  norm          .10000E-03    1.9219        .86254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.511        71.508        .60789E-04   -1.4388    
  14  Prefactor     5.5989        14.640        .16978E-03   -1.5235    
  15  norm          .10000E-03    8.8120        .25759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3554        9.6705        .14767E-03   -1.5165    
  18  norm          .10000E-03    .22188        .58201E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.672        53.149        .61364E-04   -1.4401    
  20  Prefactor     .10000E-03    24.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.4520        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.183        5.3595        .99545E-04   -1.5039    
  23  Prefactor     .10000E-03    37.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95987        .28211        .25471E-03   -.94387    
  25  Prefactor     .87102        .23503        .23713E-03   -.97161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1894e-08
Minuit parameter uncertainties:
  1  32.7583
  2  0.00142677
  3  0.401685
  4  1.49454e-05
  5  26.225
  6  0.0183464
  7  4.75761e-05
  8  18.9886
  9  33.5846
  10  20.7749
  11  1.36595
  12  1.93678e-05
  13  71.649
  14  14.6495
  15  9.20283e-05
  16  3.67385e-05
  17  9.67255
  18  3.34283e-06
  19  53.208
  20  0.000109666
  21  3.19793e-05
  22  5.35968
  23  5.87537e-05
  24  0.282553
  25  0.235301
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.937e-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:  8.710e-01  2.353e-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.599e-01  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438620/likelihoodResults_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.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) = 4130.114582
delta logL = -0.00247213612965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4130.11210996
delta logL = -1.03117599792e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0007       1.0000          .0000       5.0000    
     3 'Normalizat'    .95989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87104       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=   4130.005     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      286 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13380E-01    .26581E-01    .34370E-02   -.67747E-02
   2  alpha         5.0000        4.2824        .50000    ** at limit **
   3  Normalizat    .91640        .26687        .25471E-03    .48561E-04
   4  Prefactor     .89484        .23157        .23713E-03    .25314E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0133797
  alpha      = 5
  Normalizat = 0.916398
  Prefactor  = 0.894841
 **********
 **   18 **HESSE 
 **********

 FCN=   4130.005     FROM HESSE     STATUS=OK            33 CALLS      319 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13380E-01    .31092E-01    .14380E-03   -1.5731    
   2  alpha         5.0000        4.3423        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .91640        .27564        .10188E-04   -.95886    
   4  Prefactor     .89484        .23477        .94851E-05   -.96322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78548e-11
Minuit parameter uncertainties:
  1  0.031092
  2  0.000113502
  3  0.27607
  4  0.235037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438620': 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) = 4130.00549484
delta logL = 0.106615020593

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.338e-02  3.109e-02  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  5.000e+00  1.135e-04  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:  8.948e-01  2.350e-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.164e-01  2.761e-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/438620/cmap_HighResolution_651456001_651715201_4FGL_J2243.4-2544_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-05', job_status='DONE', photon_flux_upper_limit='6.66e-08', time_completed='2021-09-28 18:50:38.862956', job_id='438620', GAL2='0.89', fit_tolerance='1e-08', EG2='0.92', EG='0.96', time_epoch_completed='1632880238.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.07e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1590' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 438620: <4FGL_J2243.4-2544_daily_bin1590> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1590> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:41:02 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:41:04 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:41:04 2021
Terminated at Tue Sep 28 18:50:39 2021
Results reported at Tue Sep 28 18:50:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1590 340.865 -25.7363 651456001 651715201 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 :                                   540.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            577 sec.

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

