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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin901
RA = 340.865, Dec = -25.7363
tmin = 472867201, tmax = 473126401
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='436565', job_status='RUN', time_executed='2021-09-28 18:35:41.535434', time_epoch_executed='1632879341.54' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436565

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436565/ft1_4FGL_J2243.4-2544_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436565/ft2_4FGL_J2243.4-2544_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436565/ft1_4FGL_J2243.4-2544_daily_bin901.fits outfile=/scratch/kocevski/436565/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin901.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=472867201.0 tmax=473126401.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.86
user 3.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436565/ft1_filtered_4FGL_J2243.4-2544_daily_bin901.fits" evtable="EVENTS" scfile=/scratch/kocevski/436565/ft2_4FGL_J2243.4-2544_daily_bin901.fits sctable="SC_DATA" outfile=/scratch/kocevski/436565/ltcube_472867201_473126401_4FGL_J2243.4-2544_daily_bin901.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/436565/ft2_4FGL_J2243.4-2544_daily_bin901.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436565/ft1_filtered_4FGL_J2243.4-2544_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/436565/ft2_4FGL_J2243.4-2544_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/436565/ltcube_472867201_473126401_4FGL_J2243.4-2544_daily_bin901.fits outfile=/scratch/kocevski/436565/expmap_472867201_473126401_4FGL_J2243.4-2544_daily_bin901.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/436565/ltcube_472867201_473126401_4FGL_J2243.4-2544_daily_bin901.fits
.....................!
real 190.56
user 185.54
sys 4.72

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/436565/ft1_filtered_4FGL_J2243.4-2544_daily_bin901.fits scfile=/scratch/kocevski/436565/ft2_4FGL_J2243.4-2544_daily_bin901.fits outfile=/scratch/kocevski/436565/cmap_472867201_473126401_4FGL_J2243.4-2544_daily_bin901.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436565/ft1_filtered_4FGL_J2243.4-2544_daily_bin901.fits scfile=/scratch/kocevski/436565/ft2_4FGL_J2243.4-2544_daily_bin901.fits outfile=/scratch/kocevski/436565/cmap_HighResolution_472867201_473126401_4FGL_J2243.4-2544_daily_bin901.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436565/ft1_filtered_4FGL_J2243.4-2544_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/436565/ft2_4FGL_J2243.4-2544_daily_bin901.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436565/Model_4FGL_J2243.4-2544_daily_bin901.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/436565/ft1_filtered_4FGL_J2243.4-2544_daily_bin901.fits.....................!
real 35.37
user 34.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5955       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    60.476       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.104       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2996       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4138       1.0000         .10000E-03   10000.    
    15 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13867E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.477       1.0000         .10000E-03   10000.    
    18 'norm      '    .10929E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10381E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.446       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2675       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72302       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=   3830.141     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2876 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.314       -.61867E-05** at limit **
   2  Prefactor     .10000E-03    123.45       -.64008E-04** at limit **
   3  norm          1.0277        .46875       -.47986E-07    .70642E-03
   4  Prefactor     .10000E-03    4.1019       -.27077E-06** at limit **
   5  Prefactor     8.5962        15.427       -.31229E-06   -.80083E-05
   6  Prefactor     .10000E-03    20.789       -.12026E-05** at limit **
   7  Prefactor     .10000E-03    51.142       -.10238E-04** at limit **
   8  norm          60.479        33.089        .99221E-06   -.47481E-04
   9  Prefactor     25.106        22.815       -.36206E-07    .23061E-05
  10  Prefactor     .10000E-03    5.8093       -.17888E-06** at limit **
  11  norm          1.2996        .97245       -.11994E-06    .42436E-05
  12  norm          4.6626        3.2757       -.81820E-06   -.79920E-03
  13  Prefactor     .10000E-03    91.985        .58849E-04** at limit **
  14  Prefactor     4.4213        16.681       -.91773E-06   -.81663E-04
  15  norm          .10000E-03    4.5079       -.26753E-06** at limit **
  16  Prefactor     .10000E-03    25.900        .89655E-05** at limit **
  17  Prefactor     11.463        12.454        .38060E-06   -.42224E-03
  18  norm          .10000E-03    .41372       -.51556E-07** at limit **
  19  Prefactor     .10000E-03    26.831       -.18411E-06** at limit **
  20  Prefactor     1.7766        19.920       -.20626E-05   -.20519E-03
  21  Prefactor     .10000E-03    9.0363        .11760E-06** at limit **
  22  norm          .10000E-03    3.0644        .27786E-06** at limit **
  23  Prefactor     59.439        57.291       -.54758E-05   -.12774E-04
  24  Normalizat    1.2671        .24611       -.78373E-06   -.50354E-04
  25  Prefactor     .72337        .20866        .71984E-06   -.69097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0277
  Prefactor  = 0.0001
  Prefactor  = 8.59617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 60.4788
  Prefactor  = 25.1057
  Prefactor  = 0.0001
  norm       = 1.29958
  norm       = 4.66256
  Prefactor  = 0.0001
  Prefactor  = 4.42135
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.463
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77657
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.4392
  Normalizat = 1.26707
  Prefactor  = 0.72337
 **********
 **   18 **HESSE 
 **********

 FCN=   3830.141     FROM HESSE     STATUS=OK           419 CALLS     3295 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    123.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0277        .47111        .27797E-04   -1.5505    
   4  Prefactor     .10000E-03    4.1059        .12241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5962        15.423        .13673E-03   -1.5121    
   6  Prefactor     .10000E-03    21.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    51.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          60.479        33.087        .51594E-04   -1.4151    
   9  Prefactor     25.106        22.812        .79950E-04   -1.4705    
  10  Prefactor     .10000E-03    5.8155        .14568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2996        .96874        .51242E-04   -1.5480    
  12  norm          4.6626        3.2828        .90499E-04   -1.5276    
  13  Prefactor     .10000E-03    92.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4213        16.730        .19169E-03   -1.5287    
  15  norm          .10000E-03    4.5713        .12798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.463        11.719        .11825E-03   -1.5031    
  18  norm          .10000E-03    .50799        .72438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7766        20.051        .31389E-03   -1.5441    
  21  Prefactor     .10000E-03    9.0626        .18133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.0886        .10558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     59.439        57.294        .52037E-04   -1.4164    
  24  Normalizat    1.2671        .29776        .23946E-03   -.84555    
  25  Prefactor     .72337        .25034        .26787E-03   -1.0262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53847e-10
Minuit parameter uncertainties:
  1  4.2105e-05
  2  0.000236558
  3  0.471109
  4  1.90926e-06
  5  15.43
  6  3.70948e-05
  7  1.72497e-05
  8  33.0974
  9  22.8195
  10  2.98731e-07
  11  0.968748
  12  3.2829
  13  4.11375e-05
  14  16.7476
  15  1.58161e-06
  16  7.99835e-05
  17  11.7213
  18  4.54307e-06
  19  2.0779e-06
  20  11.9417
  21  1.45261e-05
  22  3.16656e-05
  23  57.3468
  24  0.298161
  25  0.250727
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.663e+00  3.283e+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.234e-01  2.507e-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.267e+00  2.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.17
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 2.02e-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) = 3830.12253292
delta logL = 0.018428643431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3830.12024288
delta logL = 0.020718686776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8841       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8766       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72054       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=   3830.120     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8828        120.55        .45502E-02    .22528E-04
   2  alpha         1.8763        2.9084        .32433        .12578E-04
   3  Normalizat    1.2724        .22109        .54067E-01   -.32670E-05
   4  Prefactor     .72053        .15049        .42674E-01    .94157E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88276
  alpha      = 1.87632
  Normalizat = 1.27235
  Prefactor  = 0.720532
 **********
 **   18 **HESSE 
 **********

 FCN=   3830.120     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8828        3.5616        .93590E-04   -1.5266    
   2  alpha         1.8763        .59244        .12548E-01   -.25213    
   3  Normalizat    1.2724        .28195        .23906E-03   -.84395    
   4  Prefactor     .72053        .24633        .26836E-03   -1.0273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.96416e-13
Minuit parameter uncertainties:
  1  3.56175
  2  0.598521
  3  0.282291
  4  0.2467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436565': 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) = 3830.12024259
delta logL = 0.0207189761245

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.883e+00  3.562e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.876e+00  5.985e-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.205e-01  2.467e-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.272e+00  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.88 +/- 0.60
Photon Flux (Free Index): 4.05e-08 +/- 3.59e-08
Energy Flux (Free Index): 3.19e-05 +/- 2.88e-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/436565/cmap_HighResolution_472867201_473126401_4FGL_J2243.4-2544_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='3.19e-05', photon_flux_error='3.18e-08', dlogl='2.07e-02', energy_flux='2.87e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-09-28 18:43:36.435904', photon_index_error2='0.60', photon_index2='1.88', ts='6.17', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='2.88e-05', EG='1.27', time_epoch_completed='1632879816.44', return_code='0', job_id='436565', GAL2='0.72', EG2='1.27', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='3.59e-08', ts2='6.21', photon_index='2.00' WHERE bin_id='901' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:43:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 436565: <4FGL_J2243.4-2544_daily_bin901> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin901> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:25 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:26 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:26 2021
Terminated at Tue Sep 28 18:43:37 2021
Results reported at Tue Sep 28 18:43:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin901 340.865 -25.7363 472867201 473126401 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   490 sec.
    Turnaround time :                            492 sec.

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

