/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 179 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.4-2544_daily_bin339
RA = 340.865, Dec = -25.7363
tmin = 327196801, tmax = 327456001
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='433939', job_status='RUN', time_executed='2021-09-28 18:29:10.671074', time_epoch_executed='1632878950.67' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433939/ft1_4FGL_J2243.4-2544_daily_bin339.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433939/ft2_4FGL_J2243.4-2544_daily_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433939/ft1_4FGL_J2243.4-2544_daily_bin339.fits outfile=/scratch/kocevski/433939/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin339.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=327196801.0 tmax=327456001.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.35
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433939/ft1_filtered_4FGL_J2243.4-2544_daily_bin339.fits" evtable="EVENTS" scfile=/scratch/kocevski/433939/ft2_4FGL_J2243.4-2544_daily_bin339.fits sctable="SC_DATA" outfile=/scratch/kocevski/433939/ltcube_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.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/433939/ft2_4FGL_J2243.4-2544_daily_bin339.fits
.....................!
real 12.34
user 11.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433939/ft1_filtered_4FGL_J2243.4-2544_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/433939/ft2_4FGL_J2243.4-2544_daily_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/433939/ltcube_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.fits outfile=/scratch/kocevski/433939/expmap_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.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/433939/ltcube_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.fits
.....................!
real 190.14
user 185.30
sys 4.49

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/433939/ft1_filtered_4FGL_J2243.4-2544_daily_bin339.fits scfile=/scratch/kocevski/433939/ft2_4FGL_J2243.4-2544_daily_bin339.fits outfile=/scratch/kocevski/433939/cmap_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433939/ft1_filtered_4FGL_J2243.4-2544_daily_bin339.fits scfile=/scratch/kocevski/433939/ft2_4FGL_J2243.4-2544_daily_bin339.fits outfile=/scratch/kocevski/433939/cmap_HighResolution_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.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/433939/ft1_filtered_4FGL_J2243.4-2544_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/433939/ft2_4FGL_J2243.4-2544_daily_bin339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433939/Model_4FGL_J2243.4-2544_daily_bin339.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/433939/ft1_filtered_4FGL_J2243.4-2544_daily_bin339.fits.....................!
real 54.25
user 52.92
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17197E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.527       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7081       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.203       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3390       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8276       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.972       1.0000         .10000E-03   10000.    
    18 'norm      '    .69475       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.834       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.189       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0368       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86437       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=   6997.705     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2928 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.718        .99140E-07** at limit **
   2  Prefactor     .10000E-03    34.147        .13099E-06** at limit **
   3  norm          2.0270        .44154        .94266E-08   -.21167E-03
   4  Prefactor     .10000E-03    6.9712        .56562E-07** at limit **
   5  Prefactor     .10050E-03    8.3913        .79972E-06** at limit **
   6  Prefactor     .10000E-03    2.6943        .25264E-07** at limit **
   7  Prefactor     .10000E-03    75.196       -.24070E-05** at limit **
   8  norm          7.7835        9.6646       -.37158E-06    .12531E-05
   9  Prefactor     16.526        14.896        .82031E-07   -.22438E-04
  10  Prefactor     .10000E-03    5.2327       -.42982E-06** at limit **
  11  norm          .10000E-03    .27204        .27220E-07** at limit **
  12  norm          1.7044        2.4716       -.52903E-05    .94512E-03
  13  Prefactor     19.249        47.383        .44274E-04    .84711E-04
  14  Prefactor     1.3390        3.7766        .17561E-05   -.23505E-02
  15  norm          .10000E-03    1.5508       -.48275E-07** at limit **
  16  Prefactor     1.8103        34.980       -.39618E-05   -.66879E-03
  17  Prefactor     14.983        11.756        .58932E-06    .36807E-03
  18  norm          .69489        .57765       -.90952E-07   -.19726E-03
  19  Prefactor     24.791        36.196       -.18243E-04   -.21272E-03
  20  Prefactor     10.188        8.2560       -.95087E-07   -.24434E-04
  21  Prefactor     .10000E-03    4.4034       -.66481E-07** at limit **
  22  norm          .10000E-03    .80334        .17891E-07** at limit **
  23  Prefactor     .10000E-03    10.773        .84601E-08** at limit **
  24  Normalizat    1.0366        .16779       -.38587E-05    .19111E-03
  25  Prefactor     .86463        .15024        .20051E-05   -.26954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.02702
  Prefactor  = 0.0001
  Prefactor  = 0.000100502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.78353
  Prefactor  = 16.5261
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.70443
  Prefactor  = 19.2492
  Prefactor  = 1.33895
  norm       = 0.0001
  Prefactor  = 1.81026
  Prefactor  = 14.9829
  norm       = 0.694893
  Prefactor  = 24.7914
  Prefactor  = 10.1881
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03661
  Prefactor  = 0.864627
 **********
 **   18 **HESSE 
 **********

 FCN=   6997.705     FROM HESSE     STATUS=OK           427 CALLS     3355 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0270        .44209        .25200E-04   -1.5423    
   4  Prefactor     .10000E-03    7.0325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10050E-03    153.61        .46202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7099        .13407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7835        9.6613        .14373E-03   -1.5150    
   9  Prefactor     16.526        14.899        .98521E-04   -1.4895    
  10  Prefactor     .10000E-03    5.2687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .43006        .84816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7044        2.4708        .11034E-03   -1.5447    
  13  Prefactor     19.249        47.470        .91400E-04   -1.4830    
  14  Prefactor     1.3390        7.7327        .18945E-02   -1.5477    
  15  norm          .10000E-03    1.5710        .10151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8103        42.561        .15438E-02   -1.5439    
  17  Prefactor     14.983        12.153        .10351E-03   -1.4934    
  18  norm          .69489        .56274        .46290E-04   -1.5541    
  19  Prefactor     24.791        36.448        .80383E-04   -1.4712    
  20  Prefactor     10.188        8.2540        .12553E-03   -1.5069    
  21  Prefactor     .10000E-03    4.4165        .17121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .81037        .73214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0366        .19789        .23443E-03   -.91814    
  25  Prefactor     .86463        .17819        .23748E-03   -.97388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01565e-08
Minuit parameter uncertainties:
  1  7.83157e-06
  2  1.91175e-05
  3  0.442095
  4  9.43835e-06
  5  0.0176145
  6  5.90353e-06
  7  5.75994e-05
  8  9.66322
  9  14.9024
  10  0.000106844
  11  1.32093e-06
  12  2.47096
  13  47.5636
  14  6.43645
  15  2.10617e-06
  16  17.5688
  17  12.155
  18  0.562748
  19  36.4812
  20  8.2549
  21  1.99712e-05
  22  1.31149e-06
  23  6.97759e-06
  24  0.198031
  25  0.178308
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.704e+00  2.471e+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:  8.646e-01  1.783e-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.037e+00  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.65e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.52e-05

TS (Fixed Index): 1.44
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 5.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433939/likelihoodResults_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.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) = 6997.36540608
delta logL = 0.33933997557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6997.35461743
delta logL = 0.35012862708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2663       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6214       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87055       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=   6997.355     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2665        23.792        .98953E-02    .63933E-03
   2  alpha         2.6213        3.7787        .29494        .59686E-04
   3  Normalizat    1.0220        .51397E-01    .43063E-01    .10976E-04
   4  Prefactor     .87064        .43953E-01    .44629E-01    .13045E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26646
  alpha      = 2.62128
  Normalizat = 1.02199
  Prefactor  = 0.870638
 **********
 **   18 **HESSE 
 **********

 FCN=   6997.355     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2665        1.5723        .77702E-04   -1.5483    
   2  alpha         2.6213        .78886        .14670E-01    .48531E-01
   3  Normalizat    1.0220        .18621        .23578E-03   -.92297    
   4  Prefactor     .87064        .17350        .23660E-03   -.97175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69544e-12
Minuit parameter uncertainties:
  1  1.57236
  2  0.802612
  3  0.186331
  4  0.173613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433939': 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) = 6997.35461727
delta logL = 0.350128792435

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.266e+00  1.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.621e+00  8.026e-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:  8.706e-01  1.736e-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.022e+00  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 2.62 +/- 0.80
Photon Flux (Free Index): 3.21e-08 +/- 3.09e-08
Energy Flux (Free Index): 9.58e-06 +/- 8.30e-06

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/433939/cmap_HighResolution_327196801_327456001_4FGL_J2243.4-2544_daily_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', comment='SUCCESS', photon_flux='1.65e-08', energy_flux2='9.58e-06', photon_flux_error='2.39e-08', dlogl='3.50e-01', energy_flux='1.05e-05', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-09-28 18:41:10.073008', photon_index_error2='0.80', photon_index2='2.62', ts='1.44', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='5.80e-08', energy_flux_error2='8.30e-06', EG='1.04', time_epoch_completed='1632879670.07', return_code='0', job_id='433939', GAL2='0.87', EG2='1.02', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.09e-08', ts2='2.14', photon_index='2.00' WHERE bin_id='339' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:41:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 433939: <4FGL_J2243.4-2544_daily_bin339> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin339> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:25:58 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:26:00 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:26:00 2021
Terminated at Tue Sep 28 18:41:10 2021
Results reported at Tue Sep 28 18:41:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin339 340.865 -25.7363 327196801 327456001 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

