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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1066
RA = 340.865, Dec = -25.7363
tmin = 515635201, tmax = 515894401
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='436807', job_status='RUN', time_executed='2021-09-28 18:36:20.181630', time_epoch_executed='1632879380.18' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1066'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436807/ft1_4FGL_J2243.4-2544_daily_bin1066.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436807/ft2_4FGL_J2243.4-2544_daily_bin1066.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436807/ft1_4FGL_J2243.4-2544_daily_bin1066.fits outfile=/scratch/kocevski/436807/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1066.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=515635201.0 tmax=515894401.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.42
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436807/ft1_filtered_4FGL_J2243.4-2544_daily_bin1066.fits" evtable="EVENTS" scfile=/scratch/kocevski/436807/ft2_4FGL_J2243.4-2544_daily_bin1066.fits sctable="SC_DATA" outfile=/scratch/kocevski/436807/ltcube_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.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/436807/ft2_4FGL_J2243.4-2544_daily_bin1066.fits
.....................!
real 11.92
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436807/ft1_filtered_4FGL_J2243.4-2544_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/436807/ft2_4FGL_J2243.4-2544_daily_bin1066.fits sctable="SC_DATA" expcube=/scratch/kocevski/436807/ltcube_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.fits outfile=/scratch/kocevski/436807/expmap_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.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/436807/ltcube_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.fits
.....................!
real 195.14
user 189.72
sys 5.01

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/436807/ft1_filtered_4FGL_J2243.4-2544_daily_bin1066.fits scfile=/scratch/kocevski/436807/ft2_4FGL_J2243.4-2544_daily_bin1066.fits outfile=/scratch/kocevski/436807/cmap_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436807/ft1_filtered_4FGL_J2243.4-2544_daily_bin1066.fits scfile=/scratch/kocevski/436807/ft2_4FGL_J2243.4-2544_daily_bin1066.fits outfile=/scratch/kocevski/436807/cmap_HighResolution_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436807/ft1_filtered_4FGL_J2243.4-2544_daily_bin1066.fits evtable="EVENTS" scfile=/scratch/kocevski/436807/ft2_4FGL_J2243.4-2544_daily_bin1066.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436807/Model_4FGL_J2243.4-2544_daily_bin1066.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/436807/ft1_filtered_4FGL_J2243.4-2544_daily_bin1066.fits.....................!
real 61.56
user 60.14
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2673       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39519E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    107.41       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .49116       1.0000         .10000E-03   10000.    
    12 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8394       1.0000         .10000E-03   10000.    
    15 'norm      '    8.1041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.214       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3097       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7870       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0631       1.0000         .10000E-03   10000.    
    22 'norm      '    .47392       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1090       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87871       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=   8242.287     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2949 TOTAL
                     EDM=   .83E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2687        10.662        .63940E-06    .13379E-05
   2  Prefactor     .10000E-03    16.494       -.12628E-06** at limit **
   3  norm          1.6901        .39407       -.44471E-08    .42070E-04
   4  Prefactor     .10000E-03    3.7491        .16188E-07** at limit **
   5  Prefactor     16.021        12.373       -.11253E-05    .85976E-06
   6  Prefactor     .10000E-03    1.5671       -.48345E-08** at limit **
   7  Prefactor     107.41        63.787       -.28467E-05   -.79372E-05
   8  norm          .10000E-03    17.894        .17039E-06** at limit **
   9  Prefactor     .10000E-03    5.1590        .18716E-08** at limit **
  10  Prefactor     .10000E-03    4.9748        .19498E-07** at limit **
  11  norm          .49114        .92798        .12744E-06    .17155E-03
  12  norm          .10000E-03    .76936        .15815E-08** at limit **
  13  Prefactor     .10000E-03    46.803        .17840E-07** at limit **
  14  Prefactor     1.8396        1.2651       -.33016E-07   -.12069E-03
  15  norm          8.1035        4.5128        .87997E-07   -.43543E-04
  16  Prefactor     10.710        11.167        .69825E-06    .55386E-05
  17  Prefactor     15.210        11.659       -.83680E-06    .66809E-05
  18  norm          1.3097        .73658        .73736E-07   -.11352E-03
  19  Prefactor     .10000E-03    11.136        .88556E-08** at limit **
  20  Prefactor     9.7868        8.6957        .17251E-07   -.25018E-05
  21  Prefactor     4.0632        6.3605       -.16486E-08    .70256E-05
  22  norm          .47420        2.0234       -.62344E-07   -.31681E-04
  23  Prefactor     .10000E-03    8.2245        .57027E-08** at limit **
  24  Normalizat    1.1089        .16182        .47134E-06   -.40922E-04
  25  Prefactor     .87880        .14789        .11247E-07    .94319E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.26869
  Prefactor  = 0.0001
  norm       = 1.69015
  Prefactor  = 0.0001
  Prefactor  = 16.0215
  Prefactor  = 0.0001
  Prefactor  = 107.408
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.491139
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83964
  norm       = 8.10347
  Prefactor  = 10.7103
  Prefactor  = 15.21
  norm       = 1.30974
  Prefactor  = 0.0001
  Prefactor  = 9.78684
  Prefactor  = 4.06322
  norm       = 0.474196
  Prefactor  = 0.0001
  Normalizat = 1.10889
  Prefactor  = 0.878799
 **********
 **   18 **HESSE 
 **********

 FCN=   8242.287     FROM HESSE     STATUS=OK           441 CALLS     3390 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2687        10.650        .17513E-03   -1.5249    
   2  Prefactor     .10000E-03    16.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6901        .39401        .26684E-04   -1.5448    
   4  Prefactor     .10000E-03    4.3059        .55660E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.021        12.351        .10007E-03   -1.4907    
   6  Prefactor     .10000E-03    1.5713        .11099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     107.41        63.619        .38805E-04   -1.3631    
   8  norm          .10000E-03    17.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .49114        .90699        .11173E-03   -1.5568    
  12  norm          .10000E-03    1.3144        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8396        8.6253        .15379E-02   -1.5437    
  15  norm          8.1035        4.5098        .63444E-03   -1.5139    
  16  Prefactor     10.710        11.143        .12243E-03   -1.5053    
  17  Prefactor     15.210        11.800        .10268E-03   -1.4928    
  18  norm          1.3097        .73672        .45286E-04   -1.5479    
  19  Prefactor     .10000E-03    11.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.7868        8.6994        .12809E-03   -1.5082    
  21  Prefactor     4.0632        6.3162        .20003E-03   -1.5305    
  22  norm          .47420        2.0600        .25152E-03   -1.5570    
  23  Prefactor     .10000E-03    8.2278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1089        .19777        .24602E-03   -.89467    
  25  Prefactor     .87880        .17866        .25422E-03   -.96886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69583e-11
Minuit parameter uncertainties:
  1  10.6534
  2  1.09812e-05
  3  0.394014
  4  3.80218e-05
  5  12.3533
  6  4.64176e-07
  7  63.6594
  8  1.26573e-06
  9  9.25833e-07
  10  7.33627e-07
  11  0.907016
  12  4.5409e-07
  13  1.25467e-05
  14  7.96845
  15  4.50996
  16  11.1454
  17  11.8016
  18  0.736725
  19  6.00001e-07
  20  8.70056
  21  6.31725
  22  1.97661
  23  5.00172e-07
  24  0.197899
  25  0.178784
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  4.541e-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:  8.788e-01  1.788e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.109e+00  1.979e-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: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436807/likelihoodResults_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.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) = 8242.29022316
delta logL = -0.00362853736806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8242.286593
delta logL = 1.62395554071e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0310       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87881       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   8242.250     FROM MIGRAD    STATUS=FAILED       205 CALLS      361 TOTAL
                     EDM=   .64E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62819E-01    20.962        .15638E-02   -.90374E-01
   2  alpha         3.4933        3.2136        .50000        .54870E-04
   3  Normalizat    1.0999        .48423E-01    .24602E-03   -.36599E-04
   4  Prefactor     .88256        .40649E-01    .25422E-03   -.27726E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8242.250     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      441 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62819E-01    20.962        .87218E-04   -.90374E-01
   2  alpha         3.4933        3.2136        .73519E-02    .54870E-04
   3  Normalizat    1.0999        .48423E-01    .11289E-03   -.36599E-04
   4  Prefactor     .88256        .40649E-01    .52408E-04   -.27726E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8242.250     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      481 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62819E-01    .82516         .0000       -.36125E-02
   2  alpha         3.4933        4.0640         .0000        .21987E-03
   3  Normalizat    1.0999        .18960         .0000       -.36507E-04
   4  Prefactor     .88256        .17516         .0000       -.27726E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0628185
  alpha      = 3.49326
  Normalizat = 1.09993
  Prefactor  = 0.882555
 **********
 **   18 **HESSE 
 **********

 FCN=   8242.250     FROM HESSE     STATUS=OK            27 CALLS      508 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62819E-01    .52507        .62554E-04   -1.5758    
   2  alpha         3.4933        3.8333        .88938E-02    6.6918    
   3  Normalizat    1.0999        .18952        .19681E-05   -.89754    
   4  Prefactor     .88256        .17497        .20338E-05   -.96753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.5459e-11
Minuit parameter uncertainties:
  1  0.362947
  2  2.61982
  3  0.189634
  4  0.175083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436807': 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) = 8242.25029247
delta logL = 0.0363021487465

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  6.282e-02  3.629e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  3.493e+00  2.620e+00  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.826e-01  1.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.100e+00  1.896e-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/436807/cmap_HighResolution_515635201_515894401_4FGL_J2243.4-2544_daily_bin1066.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-05', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-28 18:49:46.303798', job_id='436807', GAL2='0.88', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1632880186.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.63e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1066' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:49:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 436807: <4FGL_J2243.4-2544_daily_bin1066> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1066> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:41 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:42 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:35:42 2021
Terminated at Tue Sep 28 18:49:47 2021
Results reported at Tue Sep 28 18:49:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1066 340.865 -25.7363 515635201 515894401 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 :                                   803.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

