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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1162
RA = 340.865, Dec = -25.7363
tmin = 540518401, tmax = 540777601
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='438026', job_status='RUN', time_executed='2021-09-28 18:40:58.544090', time_epoch_executed='1632879658.54' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438026/ft1_4FGL_J2243.4-2544_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438026/ft2_4FGL_J2243.4-2544_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438026/ft1_4FGL_J2243.4-2544_daily_bin1162.fits outfile=/scratch/kocevski/438026/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1162.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=540518401.0 tmax=540777601.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.73
user 3.49
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438026/ft1_filtered_4FGL_J2243.4-2544_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/438026/ft2_4FGL_J2243.4-2544_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/438026/ltcube_540518401_540777601_4FGL_J2243.4-2544_daily_bin1162.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/438026/ft2_4FGL_J2243.4-2544_daily_bin1162.fits
.....................!
real 11.67
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438026/ft1_filtered_4FGL_J2243.4-2544_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/438026/ft2_4FGL_J2243.4-2544_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/438026/ltcube_540518401_540777601_4FGL_J2243.4-2544_daily_bin1162.fits outfile=/scratch/kocevski/438026/expmap_540518401_540777601_4FGL_J2243.4-2544_daily_bin1162.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/438026/ltcube_540518401_540777601_4FGL_J2243.4-2544_daily_bin1162.fits
.....................!
real 190.52
user 185.47
sys 4.73

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438026/ft1_filtered_4FGL_J2243.4-2544_daily_bin1162.fits scfile=/scratch/kocevski/438026/ft2_4FGL_J2243.4-2544_daily_bin1162.fits outfile=/scratch/kocevski/438026/cmap_HighResolution_540518401_540777601_4FGL_J2243.4-2544_daily_bin1162.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.398       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3184       1.0000         .10000E-03   10000.    
     3 'norm      '    .88960       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.023       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6962       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2853       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7435       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.048       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6494       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.463       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56736E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4780       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1363       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1412       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=   5195.404     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2915 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.123        75.452        .82333E-06    .19459E-04
   2  Prefactor     4.8891        946.24       -.48287E-05   -.44832E-05
   3  norm          .88974        .41885       -.22409E-07    .13852E-03
   4  Prefactor     .10000E-03    11.434       -.57285E-07** at limit **
   5  Prefactor     8.2837        23.025        .12011E-07    .21448E-04
   6  Prefactor     .10000E-03    4.5429       -.12454E-06** at limit **
   7  Prefactor     44.029        64.585       -.47697E-06    .96624E-05
   8  norm          .10000E-03    7.1058        .15014E-07** at limit **
   9  Prefactor     .10000E-03    24.396        .24191E-06** at limit **
  10  Prefactor     2.7014        34.424       -.39406E-06    .15707E-04
  11  norm          2.2854        1.3251       -.39259E-07    .16167E-03
  12  norm          2.7438        2.2704        .58887E-07    .13642E-03
  13  Prefactor     .10000E-03    67.999        .15270E-06** at limit **
  14  Prefactor     .10000E-03    9.6504        .17849E-06** at limit **
  15  norm          .10000E-03    2.1387       -.80319E-08** at limit **
  16  Prefactor     .10000E-03    9.4283       -.86503E-07** at limit **
  17  Prefactor     18.049        15.742        .82251E-06    .79447E-04
  18  norm          1.6493        1.0645       -.88834E-07    .25955E-03
  19  Prefactor     49.556        85.953       -.24942E-05    .12888E-05
  20  Prefactor     .10003E-03    12.485       -.91971E-06** at limit **
  21  Prefactor     8.4790        13.818       -.17306E-06    .30722E-04
  22  norm          .10000E-03    2.3786       -.12473E-06** at limit **
  23  Prefactor     .10000E-03    19.320       -.22463E-06** at limit **
  24  Normalizat    1.1365        .29232       -.61061E-05    .13371E-03
  25  Prefactor     1.1410        .25621        .59574E-05    .13895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1235
  Prefactor  = 4.88906
  norm       = 0.889739
  Prefactor  = 0.0001
  Prefactor  = 8.28371
  Prefactor  = 0.0001
  Prefactor  = 44.0292
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70139
  norm       = 2.28539
  norm       = 2.74382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0488
  norm       = 1.6493
  Prefactor  = 49.556
  Prefactor  = 0.000100029
  Prefactor  = 8.47897
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13646
  Prefactor  = 1.14102
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.404     FROM HESSE     STATUS=OK           429 CALLS     3344 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.123        78.974        .68326E-04   -1.4539    
   2  Prefactor     4.8891        968.23        .19385E-02   -1.5266    
   3  norm          .88974        .41872        .30729E-04   -1.5519    
   4  Prefactor     .10000E-03    11.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2837        23.007        .13930E-03   -1.5132    
   6  Prefactor     .10000E-03    4.5704        .15003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.029        64.565        .60424E-04   -1.4380    
   8  norm          .10000E-03    7.1069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7014        34.273        .12405E-02   -1.5379    
  11  norm          2.2854        1.3203        .60554E-04   -1.5406    
  12  norm          2.7438        2.2695        .95562E-04   -1.5377    
  13  Prefactor     .10000E-03    68.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1507        .10286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.4330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.049        15.986        .94277E-04   -1.4858    
  18  norm          1.6493        1.0822        .46628E-04   -1.5451    
  19  Prefactor     49.556        86.104        .28509E-03   -1.4299    
  20  Prefactor     .10003E-03    94.418        .48198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4790        13.768        .68838E-03   -1.5126    
  22  norm          .10000E-03    2.4175        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1365        .29071        .28245E-03   -.88590    
  25  Prefactor     1.1410        .25628        .25630E-03   -.88166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48112e-10
Minuit parameter uncertainties:
  1  79.2172
  2  139.963
  3  0.418718
  4  1.82978e-05
  5  23.0316
  6  5.62012e-06
  7  64.668
  8  1.72048e-06
  9  3.21758e-06
  10  19.2575
  11  1.32034
  12  2.26962
  13  0.000169986
  14  1.24473e-05
  15  2.01707e-06
  16  3.04056e-06
  17  15.9898
  18  1.08218
  19  86.3211
  20  0.00330035
  21  13.7729
  22  4.58862e-06
  23  6.86172e-06
  24  0.291126
  25  0.256561
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.744e+00  2.270e+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.141e+00  2.566e-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.136e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.19
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.65e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.40e-05

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) = 5195.40225256
delta logL = 0.00221699174745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5195.40218036
delta logL = 0.00228919615256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7513       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9339       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1403       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=   5195.402     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7523        82.034        .61355E-02   -.23141E-04
   2  alpha         1.9343        3.8756        .42571        .16923E-05
   3  Normalizat    1.1385        .21878        .63809E-01    .68762E-05
   4  Prefactor     1.1403        .10368        .57975E-01    .32247E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75233
  alpha      = 1.93433
  Normalizat = 1.13849
  Prefactor  = 1.14026
 **********
 **   18 **HESSE 
 **********

 FCN=   5195.402     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .36E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7523        2.2930        .96783E-04   -1.5376    
   2  alpha         1.9343        .92567        .20927E-01   -.22824    
   3  Normalizat    1.1385        .27359        .28226E-03   -.88525    
   4  Prefactor     1.1403        .24864        .25637E-03   -.88190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56877e-14
Minuit parameter uncertainties:
  1  2.29303
  2  0.949549
  3  0.273933
  4  0.248894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438026': 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) = 5195.4021801
delta logL = 0.00228945307572

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  2.752e+00  2.293e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.934e+00  9.495e-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.140e+00  2.489e-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.138e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.93 +/- 0.95
Photon Flux (Free Index): 2.45e-08 +/- 3.48e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/438026/cmap_HighResolution_540518401_540777601_4FGL_J2243.4-2544_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.65e-08', energy_flux2='1.74e-05', photon_flux_error='2.20e-08', dlogl='2.29e-03', energy_flux='1.69e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-28 18:50:03.770670', photon_index_error2='0.95', photon_index2='1.93', ts='5.19', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.14', time_epoch_completed='1632880203.77', return_code='0', job_id='438026', GAL2='1.14', EG2='1.14', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.48e-08', ts2='5.19', photon_index='2.00' WHERE bin_id='1162' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:50:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 438026: <4FGL_J2243.4-2544_daily_bin1162> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1162 340.865 -25.7363 540518401 540777601 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 :                                   542.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            585 sec.

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

