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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1497
RA = 340.865, Dec = -25.7363
tmin = 627350401, tmax = 627609601
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='438511', job_status='RUN', time_executed='2021-09-28 18:42:45.096860', time_epoch_executed='1632879765.1' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438511

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438511/ft1_4FGL_J2243.4-2544_daily_bin1497.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438511/ft2_4FGL_J2243.4-2544_daily_bin1497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438511/ft1_4FGL_J2243.4-2544_daily_bin1497.fits outfile=/scratch/kocevski/438511/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1497.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=627350401.0 tmax=627609601.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 2.73
user 2.51
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438511/ft1_filtered_4FGL_J2243.4-2544_daily_bin1497.fits" evtable="EVENTS" scfile=/scratch/kocevski/438511/ft2_4FGL_J2243.4-2544_daily_bin1497.fits sctable="SC_DATA" outfile=/scratch/kocevski/438511/ltcube_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.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/438511/ft2_4FGL_J2243.4-2544_daily_bin1497.fits
.....................!
real 12.32
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438511/ft1_filtered_4FGL_J2243.4-2544_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/438511/ft2_4FGL_J2243.4-2544_daily_bin1497.fits sctable="SC_DATA" expcube=/scratch/kocevski/438511/ltcube_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.fits outfile=/scratch/kocevski/438511/expmap_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.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/438511/ltcube_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.fits
.....................!
real 190.45
user 185.21
sys 4.93

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/438511/ft1_filtered_4FGL_J2243.4-2544_daily_bin1497.fits scfile=/scratch/kocevski/438511/ft2_4FGL_J2243.4-2544_daily_bin1497.fits outfile=/scratch/kocevski/438511/cmap_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438511/ft1_filtered_4FGL_J2243.4-2544_daily_bin1497.fits scfile=/scratch/kocevski/438511/ft2_4FGL_J2243.4-2544_daily_bin1497.fits outfile=/scratch/kocevski/438511/cmap_HighResolution_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438511/ft1_filtered_4FGL_J2243.4-2544_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/438511/ft2_4FGL_J2243.4-2544_daily_bin1497.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438511/Model_4FGL_J2243.4-2544_daily_bin1497.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/438511/ft1_filtered_4FGL_J2243.4-2544_daily_bin1497.fits.....................!
real 54.95
user 53.68
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .65133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.320       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4461       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1426       1.0000         .10000E-03   10000.    
    12 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.314       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29396E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.045       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9413       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.275       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87344       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3084       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=   7106.993     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2524 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5547        .17253E-06** at limit **
   2  Prefactor     .10000E-03    14.971        .11835E-04** at limit **
   3  norm          .65131        .29728        .29278E-08   -.58372E-03
   4  Prefactor     .10000E-03    2.9241        .96420E-08** at limit **
   5  Prefactor     31.962        17.802       -.26728E-05   -.16967E-03
   6  Prefactor     13.320        9.0566       -.46648E-06   -.18222E-02
   7  Prefactor     .10000E-03    37.631       -.52943E-05** at limit **
   8  norm          2.3907        64.233        .12616E-03   -.38594E-04
   9  Prefactor     6.4279        23.023       -.89782E-05   -.33118E-04
  10  Prefactor     .10000E-03    4.1468       -.84918E-07** at limit **
  11  norm          2.1426        .97065        .28369E-07   -.39220E-04
  12  norm          .10000E-03    1.0632        .49456E-08** at limit **
  13  Prefactor     14.271        40.843       -.19168E-04   -.26739E-03
  14  Prefactor     .10000E-03    7.5883       -.58708E-06** at limit **
  15  norm          .10000E-03    2.7732       -.27973E-06** at limit **
  16  Prefactor     .10000E-03    4.7820       -.50559E-07** at limit **
  17  Prefactor     .10013E-03    5.0009        .13080E-05** at limit **
  18  norm          1.5886        .78359       -.10506E-06   -.47888E-02
  19  Prefactor     .10000E-03    14.353       -.12003E-04** at limit **
  20  Prefactor     10.044        10.633        .33865E-06   -.49769E-04
  21  Prefactor     .10000E-03    9.4247        .13063E-05** at limit **
  22  norm          1.9445        2.6907        .14884E-05    .10839E-03
  23  Prefactor     19.116        37.889       -.46927E-04   -.23578E-04
  24  Normalizat    .87336        .19103       -.11844E-05   -.71208E-03
  25  Prefactor     1.3086        .17369       -.52505E-06   -.69933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.651312
  Prefactor  = 0.0001
  Prefactor  = 31.9619
  Prefactor  = 13.3198
  Prefactor  = 0.0001
  norm       = 2.39075
  Prefactor  = 6.42791
  Prefactor  = 0.0001
  norm       = 2.14263
  norm       = 0.0001
  Prefactor  = 14.2705
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  norm       = 1.5886
  Prefactor  = 0.0001
  Prefactor  = 10.044
  Prefactor  = 0.0001
  norm       = 1.94451
  Prefactor  = 19.1156
  Normalizat = 0.873361
  Prefactor  = 1.30855
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.993     FROM HESSE     STATUS=OK           421 CALLS     2945 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .65131        .29693        .30154E-04   -1.5547    
   4  Prefactor     .10000E-03    2.9315        .14077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.962        17.811        .70876E-04   -1.4577    
   6  Prefactor     13.320        9.0808        .54874E-03   -1.4978    
   7  Prefactor     .10000E-03    37.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3907        63.085        .26157E-03   -1.5399    
   9  Prefactor     6.4279        22.986        .15830E-03   -1.5201    
  10  Prefactor     .10000E-03    4.1545        .16760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1426        .97015        .54163E-04   -1.5415    
  12  norm          .10000E-03    1.0711        .84159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.271        40.308        .10587E-03   -1.4952    
  14  Prefactor     .10000E-03    7.7588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8689        .27365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7849        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10013E-03    27.502        .30917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5886        .68987        .44013E-04   -1.5456    
  19  Prefactor     .10000E-03    14.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.044        10.633        .12643E-03   -1.5074    
  21  Prefactor     .10000E-03    9.5505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9445        2.6711        .15676E-03   -1.5429    
  23  Prefactor     19.116        37.847        .91227E-04   -1.4833    
  24  Normalizat    .87336        .23039        .29213E-03   -.97403    
  25  Prefactor     1.3086        .21229        .23161E-03   -.83053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56955e-09
Minuit parameter uncertainties:
  1  1.21621e-06
  2  3.34451e-06
  3  0.296935
  4  6.12997e-06
  5  17.8137
  6  9.08174
  7  3.16629e-05
  8  24.5902
  9  23.0179
  10  1.64573e-05
  11  0.970153
  12  8.17124e-07
  13  40.3845
  14  6.61657e-06
  15  4.22803e-05
  16  7.12171e-06
  17  0.00377156
  18  0.689874
  19  9.23569e-06
  20  10.6352
  21  2.34634e-05
  22  2.67125
  23  37.8948
  24  0.230654
  25  0.212428
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.309e+00  2.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.734e-01  2.307e-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.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438511/likelihoodResults_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.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) = 7106.99767686
delta logL = -0.00439349270528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7106.99328778
delta logL = -4.4091093514e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10974E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0100       1.0000          .0000       5.0000    
     3 'Normalizat'    .87340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3086       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=   7106.920     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      302 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63064E-02    .42488        .36728E-02    .10473E-01
   2  alpha         5.0000        2.6468        .50000    ** at limit **
   3  Normalizat    .84484        .37860E-01    .29213E-03    .22809E-03
   4  Prefactor     1.3256        .35346E-01    .23161E-03    .41553E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0063064
  alpha      = 5
  Normalizat = 0.844838
  Prefactor  = 1.32557
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.920     FROM HESSE     STATUS=OK            33 CALLS      335 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63064E-02    .20960E-01    .14032E-03   -1.5692    
   2  alpha         5.0000        4.9986        .50000        1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .84484        .23626        .11685E-04   -.98426    
   4  Prefactor     1.3256        .21694        .46322E-04   -.82550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53086e-08
Minuit parameter uncertainties:
  1  0.0209604
  2  0.00194724
  3  0.236552
  4  0.217083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438511': 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) = 7106.92046595
delta logL = 0.0728174116875

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.326e+00  2.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.448e-01  2.366e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/438511/cmap_HighResolution_627350401_627609601_4FGL_J2243.4-2544_daily_bin1497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='4.09e-08', time_completed='2021-09-28 18:54:38.634686', job_id='438511', GAL2='1.33', fit_tolerance='1e-08', EG2='0.84', EG='0.87', time_epoch_completed='1632880478.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='7.28e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1497' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:54:38 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1497 340.865 -25.7363 627350401 627609601 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 :                                   676.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

