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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1442
RA = 340.865, Dec = -25.7363
tmin = 613094401, tmax = 613353601
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='438431', job_status='RUN', time_executed='2021-09-28 18:42:24.731371', time_epoch_executed='1632879744.73' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438431

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438431/ft1_4FGL_J2243.4-2544_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438431/ft2_4FGL_J2243.4-2544_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438431/ft1_4FGL_J2243.4-2544_daily_bin1442.fits outfile=/scratch/kocevski/438431/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1442.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=613094401.0 tmax=613353601.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.27
user 2.08
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438431/ft1_filtered_4FGL_J2243.4-2544_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/438431/ft2_4FGL_J2243.4-2544_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/438431/ltcube_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.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/438431/ft2_4FGL_J2243.4-2544_daily_bin1442.fits
.....................!
real 9.41
user 9.07
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438431/ft1_filtered_4FGL_J2243.4-2544_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/438431/ft2_4FGL_J2243.4-2544_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/438431/ltcube_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.fits outfile=/scratch/kocevski/438431/expmap_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.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/438431/ltcube_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.fits
.....................!
real 145.57
user 141.74
sys 3.60

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/438431/ft1_filtered_4FGL_J2243.4-2544_daily_bin1442.fits scfile=/scratch/kocevski/438431/ft2_4FGL_J2243.4-2544_daily_bin1442.fits outfile=/scratch/kocevski/438431/cmap_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.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.44
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438431/ft1_filtered_4FGL_J2243.4-2544_daily_bin1442.fits scfile=/scratch/kocevski/438431/ft2_4FGL_J2243.4-2544_daily_bin1442.fits outfile=/scratch/kocevski/438431/cmap_HighResolution_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.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.47
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438431/ft1_filtered_4FGL_J2243.4-2544_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/438431/ft2_4FGL_J2243.4-2544_daily_bin1442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438431/Model_4FGL_J2243.4-2544_daily_bin1442.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/438431/ft1_filtered_4FGL_J2243.4-2544_daily_bin1442.fits.....................!
real 40.85
user 39.76
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7526       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .44022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6679       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.204       1.0000         .10000E-03   10000.    
     8 'norm      '    5.3303       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2342       1.0000         .10000E-03   10000.    
    12 'norm      '    .10947E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    124.26       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.674       1.0000         .10000E-03   10000.    
    15 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2467       1.0000         .10000E-03   10000.    
    18 'norm      '    .88763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.8418       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95915       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1320       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=   6668.908     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2957 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8210        73.638       -.13430E-07    .10168E-04
   2  Prefactor     .10000E-03    31.794       -.85962E-10** at limit **
   3  norm          .44025        .26754       -.52338E-10   -.27805E-05
   4  Prefactor     20.115        11.827       -.33143E-08   -.53057E-05
   5  Prefactor     .10000E-03    8.5236       -.36156E-09** at limit **
   6  Prefactor     1.6676        4.0304       -.91411E-07   -.41844E-04
   7  Prefactor     39.395        53.010       -.63967E-08   -.41896E-04
   8  norm          5.3335        34.259       -.13701E-07    .79735E-04
   9  Prefactor     1.7880        23.179        .81222E-08    .12258E-05
  10  Prefactor     .10000E-03    6.9414       -.68659E-09** at limit **
  11  norm          1.2352        .91763       -.67508E-09   -.16177E-04
  12  norm          .10000E-03    .95749       -.12254E-09** at limit **
  13  Prefactor     124.25        52.713        .14266E-07   -.70943E-03
  14  Prefactor     16.675        10.718        .33915E-08    .82877E-04
  15  norm          .10000E-03    1.6562        .29805E-08** at limit **
  16  Prefactor     .10000E-03    4.6234        .29908E-08** at limit **
  17  Prefactor     2.2540        6.1121       -.11144E-06   -.51107E-04
  18  norm          .88726        .57777        .75391E-08   -.52052E-04
  19  Prefactor     .10000E-03    23.592       -.15580E-09** at limit **
  20  Prefactor     .10000E-03    2.4147       -.11223E-09** at limit **
  21  Prefactor     .10000E-03    3.5400        .22800E-08** at limit **
  22  norm          8.8420        4.1028       -.11922E-08    .56255E-05
  23  Prefactor     .10000E-03    34.787       -.54928E-09** at limit **
  24  Normalizat    .95942        .18977        .33487E-07   -.12818E-05
  25  Prefactor     1.1317        .17593       -.74169E-08    .90449E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82103
  Prefactor  = 0.0001
  norm       = 0.440247
  Prefactor  = 20.1148
  Prefactor  = 0.0001
  Prefactor  = 1.6676
  Prefactor  = 39.3946
  norm       = 5.33352
  Prefactor  = 1.78805
  Prefactor  = 0.0001
  norm       = 1.23519
  norm       = 0.0001
  Prefactor  = 124.247
  Prefactor  = 16.6751
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.25404
  norm       = 0.887265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84198
  Prefactor  = 0.0001
  Normalizat = 0.959423
  Prefactor  = 1.13166
 **********
 **   18 **HESSE 
 **********

 FCN=   6668.908     FROM HESSE     STATUS=OK           429 CALLS     3386 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8210        74.280        .31667E-03   -1.5438    
   2  Prefactor     .10000E-03    31.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .44025        .27495        .31945E-03   -1.5575    
   4  Prefactor     20.115        11.841        .44652E-03   -1.4811    
   5  Prefactor     .10000E-03    8.5450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6676        5.8334        .16324E-02   -1.5450    
   7  Prefactor     39.395        52.975        .64015E-04   -1.4452    
   8  norm          5.3335        34.129        .17408E-03   -1.5246    
   9  Prefactor     1.7880        23.162        .31297E-03   -1.5441    
  10  Prefactor     .10000E-03    6.9732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2352        .89829        .64702E-04   -1.5486    
  12  norm          .10000E-03    .96117        .77831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     124.25        52.767        .36108E-04   -1.3474    
  14  Prefactor     16.675        10.753        .98085E-04   -1.4891    
  15  norm          .10000E-03    1.6947        .20489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6288        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2540        8.8001        .13708E-02   -1.5408    
  18  norm          .88726        .64063        .42155E-04   -1.5520    
  19  Prefactor     .10000E-03    23.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4171        .12393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5605        .14993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.8420        4.1062        .10872E-03   -1.5113    
  23  Prefactor     .10000E-03    34.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95942        .23311        .27127E-03   -.94402    
  25  Prefactor     1.1317        .21344        .23949E-03   -.88461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35571e-09
Minuit parameter uncertainties:
  1  23.2911
  2  3.35548e-05
  3  0.274948
  4  11.8422
  5  1.93571e-07
  6  5.83537
  7  53.0386
  8  27.0059
  9  12.8766
  10  5.98071e-07
  11  0.898296
  12  4.17068e-07
  13  52.7865
  14  10.7542
  15  1.12937e-08
  16  6.86039e-07
  17  8.80516
  18  0.640639
  19  2.18038e-06
  20  5.88939e-07
  21  8.12257e-07
  22  4.10637
  23  2.28445e-05
  24  0.233352
  25  0.213606
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  4.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.132e+00  2.136e-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.594e-01  2.334e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438431/likelihoodResults_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.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) = 6668.91303221
delta logL = -0.00484363270334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6668.90813643
delta logL = 5.21536494489e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1901       1.0000          .0000       5.0000    
     3 'Normalizat'    .95937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1317       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=   6668.908     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      362 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10023E-03    .35887        .58915E-02** at limit **
   2  alpha         4.1906        2.6731        .20000        .16729E-06
   3  Normalizat    .95937        .73250E-02    .27128E-03    .33164E-03
   4  Prefactor     1.1317        .69907E-02    .23949E-03   -.40873E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100235
  alpha      = 4.19059
  Normalizat = 0.959372
  Prefactor  = 1.13168
 **********
 **   18 **HESSE 
 **********

 FCN=   6668.908     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      397 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10023E-03    .37483        .68939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.1906        4.5865        .80000E-02    .74264    
   3  Normalizat    .95937        .86040E-02    .54255E-04   -.94404    
   4  Prefactor     1.1317        .82095E-02    .95795E-05   -.88460    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93212e-11
Minuit parameter uncertainties:
  1  0.000593329
  2  119.76
  3  0.00860403
  4  0.00820953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438431': 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): 102
logL (Free Index) = 6668.90813643
delta logL = 5.21527608726e-05

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.002e-04  5.933e-04  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  4.191e+00  1.198e+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:  1.132e+00  8.210e-03  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.594e-01  8.604e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/438431/cmap_HighResolution_613094401_613353601_4FGL_J2243.4-2544_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-09-28 18:51:37.753294', job_id='438431', GAL2='1.13', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632880297.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.22e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1442' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:51:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 438431: <4FGL_J2243.4-2544_daily_bin1442> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1442 340.865 -25.7363 613094401 613353601 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 :                                   522.46 sec.
    Max Memory :                                 1202 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            651 sec.

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

