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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1466
RA = 340.865, Dec = -25.7363
tmin = 619315201, tmax = 619574401
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='438467', job_status='RUN', time_executed='2021-09-28 18:42:15.105425', time_epoch_executed='1632879735.11' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438467

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438467/ft1_4FGL_J2243.4-2544_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438467/ft2_4FGL_J2243.4-2544_daily_bin1466.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438467/ft1_4FGL_J2243.4-2544_daily_bin1466.fits outfile=/scratch/kocevski/438467/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1466.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=619315201.0 tmax=619574401.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.28
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438467/ft1_filtered_4FGL_J2243.4-2544_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/438467/ft2_4FGL_J2243.4-2544_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/438467/ltcube_619315201_619574401_4FGL_J2243.4-2544_daily_bin1466.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/438467/ft2_4FGL_J2243.4-2544_daily_bin1466.fits
.....................!
real 12.33
user 11.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438467/ft1_filtered_4FGL_J2243.4-2544_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/438467/ft2_4FGL_J2243.4-2544_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/438467/ltcube_619315201_619574401_4FGL_J2243.4-2544_daily_bin1466.fits outfile=/scratch/kocevski/438467/expmap_619315201_619574401_4FGL_J2243.4-2544_daily_bin1466.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/438467/ltcube_619315201_619574401_4FGL_J2243.4-2544_daily_bin1466.fits
.....................!
real 191.30
user 185.58
sys 5.18

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/438467/ft1_filtered_4FGL_J2243.4-2544_daily_bin1466.fits scfile=/scratch/kocevski/438467/ft2_4FGL_J2243.4-2544_daily_bin1466.fits outfile=/scratch/kocevski/438467/cmap_619315201_619574401_4FGL_J2243.4-2544_daily_bin1466.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438467/ft1_filtered_4FGL_J2243.4-2544_daily_bin1466.fits scfile=/scratch/kocevski/438467/ft2_4FGL_J2243.4-2544_daily_bin1466.fits outfile=/scratch/kocevski/438467/cmap_HighResolution_619315201_619574401_4FGL_J2243.4-2544_daily_bin1466.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438467/ft1_filtered_4FGL_J2243.4-2544_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/438467/ft2_4FGL_J2243.4-2544_daily_bin1466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438467/Model_4FGL_J2243.4-2544_daily_bin1466.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/438467/ft1_filtered_4FGL_J2243.4-2544_daily_bin1466.fits.....................!
real 39.05
user 37.75
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .72927       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2314       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.127       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    40.769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.583       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.348       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.668       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.328       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.967       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8870       1.0000         .10000E-03   10000.    
    22 'norm      '    20.907       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90699       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78887       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=   4256.040     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2852 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.882        .33146E-05** at limit **
   2  Prefactor     .10000E-03    52.747       -.41816E-04** at limit **
   3  norm          .72927        .39822        .10077E-06    .13280E-03
   4  Prefactor     8.2282        10.433        .17987E-06   -.29580E-04
   5  Prefactor     29.130        23.940        .27048E-05   -.15498E-04
   6  Prefactor     .10000E-03    3.3141       -.29851E-06** at limit **
   7  Prefactor     .10000E-03    25.777       -.15001E-04** at limit **
   8  norm          40.758        28.278       -.73620E-05   -.54397E-04
   9  Prefactor     25.766        23.192        .32442E-05   -.17235E-04
  10  Prefactor     .10000E-03    9.1271        .57895E-06** at limit **
  11  norm          10.583        2.2642        .13472E-06    .88310E-05
  12  norm          4.4112        3.0226        .36689E-06   -.35593E-03
  13  Prefactor     .10000E-03    39.120        .33304E-04** at limit **
  14  Prefactor     10.346        18.443       -.60888E-05   -.12468E-03
  15  norm          .10000E-03    1.4365       -.29314E-06** at limit **
  16  Prefactor     .10000E-03    5.7301        .40058E-06** at limit **
  17  Prefactor     11.670        13.607        .17182E-05   -.16092E-03
  18  norm          .10000E-03    .27904       -.54547E-07** at limit **
  19  Prefactor     22.399        92.084        .14072E-03    .46526E-05
  20  Prefactor     15.965        17.737        .81960E-06   -.36021E-04
  21  Prefactor     9.8870        14.037       -.17754E-07   -.81605E-04
  22  norm          20.908        7.2980        .24441E-06   -.23431E-03
  23  Prefactor     .10000E-03    43.793        .17769E-04** at limit **
  24  Normalizat    .90681        .25039       -.54915E-05   -.15979E-04
  25  Prefactor     .78902        .21067       -.11413E-05   -.12525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.729266
  Prefactor  = 8.22818
  Prefactor  = 29.1298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.7584
  Prefactor  = 25.7662
  Prefactor  = 0.0001
  norm       = 10.5831
  norm       = 4.41124
  Prefactor  = 0.0001
  Prefactor  = 10.3464
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6701
  norm       = 0.0001
  Prefactor  = 22.3993
  Prefactor  = 15.9655
  Prefactor  = 9.88697
  norm       = 20.9084
  Prefactor  = 0.0001
  Normalizat = 0.906808
  Prefactor  = 0.789018
 **********
 **   18 **HESSE 
 **********

 FCN=   4256.040     FROM HESSE     STATUS=OK           431 CALLS     3283 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .72927        .39708        .29530E-04   -1.5537    
   4  Prefactor     8.2282        10.429        .13974E-03   -1.5134    
   5  Prefactor     29.130        23.940        .74235E-04   -1.4628    
   6  Prefactor     .10000E-03    3.3227        .11598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          40.758        28.287        .31390E-03   -1.4430    
   9  Prefactor     25.766        23.189        .78928E-04   -1.4692    
  10  Prefactor     .10000E-03    9.1616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.583        2.2649        .43731E-04   -1.5057    
  12  norm          4.4112        3.0213        .89928E-04   -1.5288    
  13  Prefactor     .10000E-03    39.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.346        18.572        .12456E-03   -1.5065    
  15  norm          .10000E-03    1.4386        .76321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7310        .15247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.670        13.395        .11728E-03   -1.5025    
  18  norm          .10000E-03    .29662        .64756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.399        91.882        .84768E-04   -1.4761    
  20  Prefactor     15.965        17.750        .10023E-03   -1.4909    
  21  Prefactor     9.8870        13.959        .12744E-03   -1.5079    
  22  norm          20.908        7.3105        .87598E-04   -1.4793    
  23  Prefactor     .10000E-03    43.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90681        .29912        .27368E-03   -.96221    
  25  Prefactor     .78902        .25054        .25966E-03   -1.0013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77617e-10
Minuit parameter uncertainties:
  1  2.8221e-05
  2  9.49325e-05
  3  0.397077
  4  10.431
  5  23.9484
  6  1.68325e-06
  7  2.53049e-05
  8  28.2963
  9  23.1972
  10  5.46765e-05
  11  2.26494
  12  3.02138
  13  0.0001133
  14  18.5825
  15  2.18429e-06
  16  9.53347e-07
  17  13.398
  18  1.0805e-06
  19  90.9744
  20  17.756
  21  13.9636
  22  7.31086
  23  4.28365e-05
  24  0.299671
  25  0.250905
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.411e+00  3.021e+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:  7.890e-01  2.509e-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.068e-01  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.51
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 2.92e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.86e-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) = 4255.60491973
delta logL = 0.43535244805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4255.60320482
delta logL = 0.43706735562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2686       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4455       1.0000          .0000       5.0000    
     3 'Normalizat'    .92253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78456       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=   4255.603     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      194 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2686        3.1351        .48753E-02    .57605E-02
   2  alpha         1.4453        .49800        .33663       -.15020E-04
   3  Normalizat    .92250        .23078        .45189E-01    .12043E-04
   4  Prefactor     .78457        .20666        .43516E-01    .79704E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.26856
  alpha      = 1.44531
  Normalizat = 0.922497
  Prefactor  = 0.784569
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.603     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2686        3.3399        .95004E-04   -1.5295    
   2  alpha         1.4453        .56648        .13853E-01   -.43551    
   3  Normalizat    .92250        .26974        .27172E-03   -.95674    
   4  Prefactor     .78457        .24213        .26051E-03   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64278e-09
Minuit parameter uncertainties:
  1  3.34006
  2  0.572548
  3  0.270131
  4  0.24246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438467': 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) = 4255.60320476
delta logL = 0.437067412669

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.269e+00  3.340e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.445e+00  5.725e-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:  7.846e-01  2.425e-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.225e-01  2.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.38
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.45 +/- 0.57
Photon Flux (Free Index): 2.38e-08 +/- 2.30e-08
Energy Flux (Free Index): 4.65e-05 +/- 4.68e-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/438467/cmap_HighResolution_619315201_619574401_4FGL_J2243.4-2544_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='4.65e-05', photon_flux_error='2.92e-08', dlogl='4.37e-01', energy_flux='2.72e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-09-28 18:50:52.736762', photon_index_error2='0.57', photon_index2='1.45', ts='8.51', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='4.68e-05', EG='0.91', time_epoch_completed='1632880252.74', return_code='0', job_id='438467', GAL2='0.78', EG2='0.92', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='2.30e-08', ts2='9.38', photon_index='2.00' WHERE bin_id='1466' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:50:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 438467: <4FGL_J2243.4-2544_daily_bin1466> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1466 340.865 -25.7363 619315201 619574401 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 :                                   493.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            603 sec.

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

