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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1138
RA = 340.865, Dec = -25.7363
tmin = 534297601, tmax = 534556801
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='437992', job_status='RUN', time_executed='2021-09-28 18:41:01.675828', time_epoch_executed='1632879661.68' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437992/ft1_4FGL_J2243.4-2544_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437992/ft2_4FGL_J2243.4-2544_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437992/ft1_4FGL_J2243.4-2544_daily_bin1138.fits outfile=/scratch/kocevski/437992/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1138.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=534297601.0 tmax=534556801.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.53
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437992/ft1_filtered_4FGL_J2243.4-2544_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/437992/ft2_4FGL_J2243.4-2544_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/437992/ltcube_534297601_534556801_4FGL_J2243.4-2544_daily_bin1138.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/437992/ft2_4FGL_J2243.4-2544_daily_bin1138.fits
.....................!
real 11.94
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437992/ft1_filtered_4FGL_J2243.4-2544_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/437992/ft2_4FGL_J2243.4-2544_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/437992/ltcube_534297601_534556801_4FGL_J2243.4-2544_daily_bin1138.fits outfile=/scratch/kocevski/437992/expmap_534297601_534556801_4FGL_J2243.4-2544_daily_bin1138.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/437992/ltcube_534297601_534556801_4FGL_J2243.4-2544_daily_bin1138.fits
.....................!
real 191.65
user 186.25
sys 5.09

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/437992/ft1_filtered_4FGL_J2243.4-2544_daily_bin1138.fits scfile=/scratch/kocevski/437992/ft2_4FGL_J2243.4-2544_daily_bin1138.fits outfile=/scratch/kocevski/437992/cmap_534297601_534556801_4FGL_J2243.4-2544_daily_bin1138.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.54
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/437992/ft1_filtered_4FGL_J2243.4-2544_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/437992/ft2_4FGL_J2243.4-2544_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437992/Model_4FGL_J2243.4-2544_daily_bin1138.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/437992/ft1_filtered_4FGL_J2243.4-2544_daily_bin1138.fits.....................!
real 65.05
user 63.69
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.930       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.891       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.951       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6886       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17728E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2726       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.147       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1206       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.034       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.502       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.143       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9333       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71736       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1379       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.

 FCN=   8736.336     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2888 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5460        .90712E-02** at limit **
   2  Prefactor     .10000E-03    11.838        .90712E-02** at limit **
   3  norm          2.8972        .46269        .55832E-02   -.20417E-03
   4  Prefactor     .10000E-03    1.7334        .90712E-02** at limit **
   5  Prefactor     5.8026        12.167        .41686E-02   -.12915E-03
   6  Prefactor     .10000E-03    1.5814        .90712E-02** at limit **
   7  Prefactor     28.930        37.709        .18622E-02   -.12629E-03
   8  norm          6.9241        12.745        .38103E-02    .10548E-02
   9  Prefactor     20.890        15.060        .21908E-02   -.92761E-03
  10  Prefactor     16.930        11.140        .24320E-02    .21359E-02
  11  norm          2.6887        1.0129        .62121E-02    .24536E-03
  12  norm          1.7192        1.5506        .79949E-02    .44649E-03
  13  Prefactor     .10000E-03    95.267        .90712E-02** at limit **
  14  Prefactor     2.2743        7.1338        .68102E-02    .64044E-03
  15  norm          .10000E-03    2.2570        .90712E-02** at limit **
  16  Prefactor     .10000E-03    4.7193        .90712E-02** at limit **
  17  Prefactor     19.122        11.335        .22883E-02   -.20704E-02
  18  norm          2.1215        .89999        .70802E-02    .35340E-03
  19  Prefactor     26.034        36.911        .19628E-02   -.11167E-03
  20  Prefactor     17.502        12.639        .23934E-02   -.17293E-02
  21  Prefactor     10.143        8.2621        .31454E-02    .99310E-03
  22  norm          2.9334        2.3149        .59292E-02    .30330E-03
  23  Prefactor     .10000E-03    9.2938        .90712E-02** at limit **
  24  Normalizat    .71744        .16252        .67124E-01    .91856E-04
  25  Prefactor     1.1378        .14773        .52382E-01    .58348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.89717
  Prefactor  = 0.0001
  Prefactor  = 5.80264
  Prefactor  = 0.0001
  Prefactor  = 28.9303
  norm       = 6.92414
  Prefactor  = 20.8897
  Prefactor  = 16.9303
  norm       = 2.68867
  norm       = 1.71918
  Prefactor  = 0.000100002
  Prefactor  = 2.27433
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1225
  norm       = 2.1215
  Prefactor  = 26.0343
  Prefactor  = 17.5021
  Prefactor  = 10.1429
  norm       = 2.93342
  Prefactor  = 0.0001
  Normalizat = 0.71744
  Prefactor  = 1.13777
 **********
 **   18 **HESSE 
 **********

 FCN=   8736.336     FROM HESSE     STATUS=OK           421 CALLS     3309 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8972        .46324        .24656E-04   -1.5368    
   4  Prefactor     .10000E-03    1.7366        .12017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.8026        12.161        .16674E-03   -1.5226    
   6  Prefactor     .10000E-03    1.5854        .11477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.930        37.707        .74487E-04   -1.4632    
   8  norm          6.9241        12.733        .76207E-03   -1.5182    
   9  Prefactor     20.890        15.070        .87632E-04   -1.4794    
  10  Prefactor     16.930        11.145        .97278E-04   -1.4885    
  11  norm          2.6887        1.0114        .55317E-04   -1.5380    
  12  norm          1.7192        1.5408        .10625E-03   -1.5446    
  13  Prefactor     .10000E-03    96.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2743        7.1183        .27241E-03   -1.5406    
  15  norm          .10000E-03    2.2865        .13672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.122        11.762        .91532E-04   -1.4833    
  18  norm          2.1215        .92661        .42222E-04   -1.5417    
  19  Prefactor     26.034        36.915        .78513E-04   -1.4687    
  20  Prefactor     17.502        12.647        .95735E-04   -1.4871    
  21  Prefactor     10.143        8.2403        .12582E-03   -1.5071    
  22  norm          2.9334        2.3092        .12259E-03   -1.5365    
  23  Prefactor     .10000E-03    9.2986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71744        .19602        .29701E-03   -1.0321    
  25  Prefactor     1.1378        .17904        .23158E-03   -.88268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23106e-08
Minuit parameter uncertainties:
  1  4.88832e-06
  2  2.23504e-05
  3  0.463236
  4  1.61013e-06
  5  12.1659
  6  2.01381e-06
  7  37.7378
  8  12.7383
  9  15.0725
  10  11.1463
  11  1.01136
  12  1.54088
  13  0.000862487
  14  7.12095
  15  5.30084e-07
  16  9.30505e-07
  17  11.7635
  18  0.926618
  19  36.9474
  20  12.6488
  21  8.24126
  22  2.30925
  23  1.66547e-06
  24  0.196211
  25  0.179131
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.138e+00  1.791e-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:  7.174e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.01
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.66e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 9.48e-06

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

Saving results to:
/scratch/kocevski/437992/likelihoodResults_534297601_534556801_4FGL_J2243.4-2544_daily_bin1138.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) = 8736.03661471
delta logL = 0.299844199379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8736.02792787
delta logL = 0.308531034218

Fit tolerance = 1e-08

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

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

 FCN=   8736.028     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      241 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3911        21.649        .92072E-02    .39896E-03
   2  alpha         2.5834        3.7689        .30804        .70492E-04
   3  Normalizat    .70173        .53042E-01    .67769E-01    .34848E-04
   4  Prefactor     1.1439        .44529E-01    .52232E-01    .37181E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39108
  alpha      = 2.58342
  Normalizat = 0.701726
  Prefactor  = 1.1439
 **********
 **   18 **HESSE 
 **********

 FCN=   8736.028     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3911        1.4607        .82090E-04   -1.5472    
   2  alpha         2.5834        .75017        .15789E-01    .33376E-01
   3  Normalizat    .70173        .18269        .29988E-03   -1.0382    
   4  Prefactor     1.1439        .17518        .23092E-03   -.88076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44996e-09
Minuit parameter uncertainties:
  1  1.46071
  2  0.761922
  3  0.182845
  4  0.175269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437992': 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) = 8736.02792765
delta logL = 0.308531251769

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.144e+00  1.753e-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:  7.017e-01  1.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.58 +/- 0.76
Photon Flux (Free Index): 3.30e-08 +/- 3.19e-08
Energy Flux (Free Index): 1.02e-05 +/- 7.89e-06

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/437992/cmap_HighResolution_534297601_534556801_4FGL_J2243.4-2544_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-05', comment='SUCCESS', photon_flux='1.66e-08', energy_flux2='1.02e-05', photon_flux_error='1.49e-08', dlogl='3.09e-01', energy_flux='1.06e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-28 18:54:48.131735', photon_index_error2='0.76', photon_index2='2.58', ts='3.01', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='5.56e-08', energy_flux_error2='7.89e-06', EG='0.72', time_epoch_completed='1632880488.13', return_code='0', job_id='437992', GAL2='1.14', EG2='0.70', return_code2='0', energy_flux_error='9.48e-06', photon_flux_error2='3.19e-08', ts2='3.63', photon_index='2.00' WHERE bin_id='1138' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:54:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 437992: <4FGL_J2243.4-2544_daily_bin1138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1138 340.865 -25.7363 534297601 534556801 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 :                                   822.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

