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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1412
RA = 340.865, Dec = -25.7363
tmin = 605318401, tmax = 605577601
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='438387', job_status='RUN', time_executed='2021-09-28 18:42:13.422367', time_epoch_executed='1632879733.42' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438387/ft1_4FGL_J2243.4-2544_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438387/ft2_4FGL_J2243.4-2544_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438387/ft1_4FGL_J2243.4-2544_daily_bin1412.fits outfile=/scratch/kocevski/438387/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1412.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.52
user 5.25
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438387/ft2_4FGL_J2243.4-2544_daily_bin1412.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/438387/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1412.fits evtable="EVENTS" outfile="/scratch/kocevski/438387/ft1_filtered_4FGL_J2243.4-2544_daily_bin1412.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/438387/ft1_filtered_4FGL_J2243.4-2544_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/438387/ft2_4FGL_J2243.4-2544_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/438387/ltcube_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.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/438387/ft2_4FGL_J2243.4-2544_daily_bin1412.fits
.....................!
real 11.70
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438387/ft1_filtered_4FGL_J2243.4-2544_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/438387/ft2_4FGL_J2243.4-2544_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/438387/ltcube_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.fits outfile=/scratch/kocevski/438387/expmap_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.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/438387/ltcube_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.fits
.....................!
real 190.76
user 185.82
sys 4.54

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/438387/ft1_filtered_4FGL_J2243.4-2544_daily_bin1412.fits scfile=/scratch/kocevski/438387/ft2_4FGL_J2243.4-2544_daily_bin1412.fits outfile=/scratch/kocevski/438387/cmap_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.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/438387/ft1_filtered_4FGL_J2243.4-2544_daily_bin1412.fits scfile=/scratch/kocevski/438387/ft2_4FGL_J2243.4-2544_daily_bin1412.fits outfile=/scratch/kocevski/438387/cmap_HighResolution_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12715E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54527E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .91180       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.549       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
    11 'norm      '    .79235       1.0000         .10000E-03   10000.    
    12 'norm      '    .13119E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.329       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6880       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.283       1.0000         .10000E-03   10000.    
    18 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15109E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.230       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.8870       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92969       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=   3439.174     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2966 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.720        .11717E-05** at limit **
   2  Prefactor     .10000E-03    150.47        .25231E-05** at limit **
   3  norm          .91185        .45166        .65342E-08   -.67194E-04
   4  Prefactor     14.921        17.230        .48737E-06    .59094E-05
   5  Prefactor     11.255        34.999       -.27801E-05    .15491E-04
   6  Prefactor     31.546        15.737        .57350E-07    .20082E-05
   7  Prefactor     .10000E-03    30.655       -.60322E-06** at limit **
   8  norm          .10000E-03    18.956       -.75774E-06** at limit **
   9  Prefactor     14.543        28.617       -.70782E-06    .10135E-04
  10  Prefactor     12.701        24.588       -.58487E-06    .23951E-04
  11  norm          .79247        1.4175        .20604E-07    .10804E-03
  12  norm          .10000E-03    3.6749       -.18660E-05** at limit **
  13  Prefactor     27.259        81.503       -.57801E-05    .54199E-05
  14  Prefactor     8.6921        19.736        .13434E-06   -.51201E-05
  15  norm          .10000E-03    2.4177        .58311E-07** at limit **
  16  Prefactor     .10000E-03    12.640        .75261E-07** at limit **
  17  Prefactor     15.263        16.491       -.38353E-06   -.15899E-03
  18  norm          .10000E-03    .47791        .22091E-06** at limit **
  19  Prefactor     .10000E-03    51.722       -.46813E-06** at limit **
  20  Prefactor     11.229        19.528        .89255E-08    .44913E-05
  21  Prefactor     .10000E-03    18.338        .10352E-05** at limit **
  22  norm          4.8870        4.7540        .21670E-07    .11287E-04
  23  Prefactor     .10000E-03    70.304       -.92354E-06** at limit **
  24  Normalizat    1.0855        .28735       -.11800E-06   -.66540E-04
  25  Prefactor     .92974        .23002        .27648E-08   -.26827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.911849
  Prefactor  = 14.9209
  Prefactor  = 11.2553
  Prefactor  = 31.546
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.543
  Prefactor  = 12.7008
  norm       = 0.792467
  norm       = 0.0001
  Prefactor  = 27.2592
  Prefactor  = 8.69208
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2631
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.229
  Prefactor  = 0.0001
  norm       = 4.88701
  Prefactor  = 0.0001
  Normalizat = 1.08546
  Prefactor  = 0.929743
 **********
 **   18 **HESSE 
 **********

 FCN=   3439.174     FROM HESSE     STATUS=OK           435 CALLS     3401 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    150.80        .21114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .91185        .45362        .26958E-04   -1.5517    
   4  Prefactor     14.921        17.209        .10365E-03   -1.4935    
   5  Prefactor     11.255        34.726        .11960E-03   -1.5037    
   6  Prefactor     31.546        15.800        .71336E-04   -1.4584    
   7  Prefactor     .10000E-03    30.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.543        28.570        .10509E-03   -1.4945    
  10  Prefactor     12.701        24.551        .11254E-03   -1.4995    
  11  norm          .79247        1.2857        .88940E-03   -1.5530    
  12  norm          .10000E-03    3.6500        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.259        81.206        .76633E-04   -1.4663    
  14  Prefactor     8.6921        19.907        .13599E-03   -1.5118    
  15  norm          .10000E-03    2.4250        .89030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.263        15.834        .10245E-03   -1.4926    
  18  norm          .10000E-03    .56842        .75263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.229        19.530        .11955E-03   -1.5038    
  21  Prefactor     .10000E-03    18.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.8870        4.7562        .12238E-03   -1.5266    
  23  Prefactor     .10000E-03    70.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0855        .35014        .27166E-03   -.90220    
  25  Prefactor     .92974        .27676        .25269E-03   -.95109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13159e-10
Minuit parameter uncertainties:
  1  4.26774e-05
  2  0.000140428
  3  0.453624
  4  17.2149
  5  34.7887
  6  15.8019
  7  3.04021e-05
  8  4.6181e-05
  9  28.5972
  10  24.5701
  11  1.28577
  12  1.97575e-05
  13  81.5383
  14  19.9225
  15  4.9555e-06
  16  3.45545e-05
  17  15.8388
  18  1.24763e-05
  19  3.36369e-05
  20  19.5414
  21  5.41912e-05
  22  4.7566
  23  6.94931e-05
  24  0.350888
  25  0.277182
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.976e-05  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:  9.297e-01  2.772e-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.085e+00  3.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438387/likelihoodResults_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.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) = 3439.1748697
delta logL = -0.00130565067093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3438.7010297
delta logL = 0.472534352726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36510E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .96884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99178       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=   3438.701     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      325 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36527E-01    1.7398        .25941E-02    .33876E-02
   2  alpha         5.0000        2.5028        .46268    ** at limit **
   3  Normalizat    .96854        .14152        .45775E-01    .15701E-04
   4  Prefactor     .99194        .11096        .46164E-01    .95692E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.036527
  alpha      = 5
  Normalizat = 0.968543
  Prefactor  = 0.99194
 **********
 **   18 **HESSE 
 **********

 FCN=   3438.701     FROM HESSE     STATUS=OK            35 CALLS      360 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36527E-01    .45106E-01    .11690E-04   -1.5670    
   2  alpha         5.0000        3.2040        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96854        .33433        .28499E-03   -.94092    
   4  Prefactor     .99194        .27748        .24538E-03   -.92999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91447e-12
Minuit parameter uncertainties:
  1  0.0451061
  2  3.04875e-06
  3  0.335053
  4  0.27788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438387': 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) = 3438.70102658
delta logL = 0.472537471015

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.653e-02  4.511e-02  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  5.000e+00  3.049e-06  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:  9.919e-01  2.779e-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.685e-01  3.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.15e-07 +/- 1.41e-07
Energy Flux (Free Index): 1.60e-05 +/- 1.97e-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/438387/cmap_HighResolution_605318401_605577601_4FGL_J2243.4-2544_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='4.73e-01', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-28 18:51:15.634356', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.85e-08', energy_flux_error2='1.97e-05', EG='1.09', time_epoch_completed='1632880275.63', return_code='0', job_id='438387', GAL2='0.99', EG2='0.97', return_code2='0', photon_flux_error2='1.41e-07', ts2='1.05', photon_index='2.00' WHERE bin_id='1412' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:51:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 438387: <4FGL_J2243.4-2544_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1412 340.865 -25.7363 605318401 605577601 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 :                                   510.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

