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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin548
RA = 340.865, Dec = -25.7363
tmin = 381369601, tmax = 381628801
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='434946', job_status='RUN', time_executed='2021-09-28 18:33:13.673561', time_epoch_executed='1632879193.67' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434946/ft1_4FGL_J2243.4-2544_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434946/ft2_4FGL_J2243.4-2544_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434946/ft1_4FGL_J2243.4-2544_daily_bin548.fits outfile=/scratch/kocevski/434946/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin548.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=381369601.0 tmax=381628801.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.58
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434946/ft1_filtered_4FGL_J2243.4-2544_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/434946/ft2_4FGL_J2243.4-2544_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/434946/ltcube_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.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/434946/ft2_4FGL_J2243.4-2544_daily_bin548.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434946/ft1_filtered_4FGL_J2243.4-2544_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/434946/ft2_4FGL_J2243.4-2544_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/434946/ltcube_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.fits outfile=/scratch/kocevski/434946/expmap_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.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/434946/ltcube_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.fits
.....................!
real 189.60
user 184.72
sys 4.51

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/434946/ft1_filtered_4FGL_J2243.4-2544_daily_bin548.fits scfile=/scratch/kocevski/434946/ft2_4FGL_J2243.4-2544_daily_bin548.fits outfile=/scratch/kocevski/434946/cmap_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.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.54
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434946/ft1_filtered_4FGL_J2243.4-2544_daily_bin548.fits scfile=/scratch/kocevski/434946/ft2_4FGL_J2243.4-2544_daily_bin548.fits outfile=/scratch/kocevski/434946/cmap_HighResolution_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434946/ft1_filtered_4FGL_J2243.4-2544_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/434946/ft2_4FGL_J2243.4-2544_daily_bin548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434946/Model_4FGL_J2243.4-2544_daily_bin548.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/434946/ft1_filtered_4FGL_J2243.4-2544_daily_bin548.fits.....................!
real 39.61
user 38.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.265       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3266       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3639       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.922       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4926       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7965       1.0000         .10000E-03   10000.    
    12 'norm      '    .10846E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    156.20       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.468       1.0000         .10000E-03   10000.    
    15 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3233       1.0000         .10000E-03   10000.    
    18 'norm      '    .77756E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.386       1.0000         .10000E-03   10000.    
    22 'norm      '    9.5586       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1516       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64750       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4373.342     FROM MIGRAD    STATUS=CONVERGED   1008 CALLS     3821 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.304        1031.5        .11461E-02    .16080E-04
   2  Prefactor     14.230        6597.9        .11438E-02    .11092E-04
   3  norm          2.3267        .66377        .27546E-04    .12629E-03
   4  Prefactor     2.3612        5.7265        .11968E-02   -.26086E-04
   5  Prefactor     15.913        17.310        .10037E-03   -.55499E-05
   6  Prefactor     .10000E-03    11.583        .18142E-02** at limit **
   7  Prefactor     .10000E-03    14.830        .18142E-02** at limit **
   8  norm          .10000E-03    23.734        .18142E-02** at limit **
   9  Prefactor     .10000E-03    21.812        .18142E-02** at limit **
  10  Prefactor     2.4843        25.631        .25889E-03    .25997E-04
  11  norm          1.7965        .97108        .46541E-04    .36641E-04
  12  norm          .10000E-03    3.6382        .24241E-03** at limit **
  13  Prefactor     156.31        82.854        .16129E-03   -.96917E-04
  14  Prefactor     27.471        16.915        .76439E-04   -.18889E-04
  15  norm          .10000E-03    7.4816        .34665E-03** at limit **
  16  Prefactor     .10000E-03    9.1989        .18142E-02** at limit **
  17  Prefactor     6.3016        18.388        .15962E-03    .97574E-05
  18  norm          .78983E-01    2.7085        .10682E-02    .54170E-03
  19  Prefactor     .10000E-03    30.552        .18142E-02** at limit **
  20  Prefactor     .10000E-03    4.5772        .13798E-02** at limit **
  21  Prefactor     43.393        23.901        .60864E-04   -.32688E-04
  22  norm          9.5598        5.7057        .11714E-03   -.16984E-04
  23  Prefactor     .10000E-03    26.056        .18142E-02** at limit **
  24  Normalizat    1.1513        .29766        .25119E-03    .72235E-04
  25  Prefactor     .64780        .24089        .28014E-03   -.12016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3038
  Prefactor  = 14.2295
  norm       = 2.32669
  Prefactor  = 2.36118
  Prefactor  = 15.9135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48432
  norm       = 1.79646
  norm       = 0.000100001
  Prefactor  = 156.308
  Prefactor  = 27.4709
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.30158
  norm       = 0.0789835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3935
  norm       = 9.5598
  Prefactor  = 0.0001
  Normalizat = 1.1513
  Prefactor  = 0.647804
 **********
 **   18 **HESSE 
 **********

 FCN=   4373.342     FROM HESSE     STATUS=OK           407 CALLS     4228 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.304        807.65        .45843E-04   -1.5035    
   2  Prefactor     14.230        6254.8        .45753E-04   -1.4953    
   3  norm          2.3267        .66371        .11018E-05   -1.5403    
   4  Prefactor     2.3612        5.7209        .47870E-04   -1.5401    
   5  Prefactor     15.913        17.289        .40150E-05   -1.4910    
   6  Prefactor     .10000E-03    11.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4843        25.598        .10356E-04   -1.5393    
  11  norm          1.7965        .97106        .18616E-05   -1.5440    
  12  norm          .10000E-03    3.6382        .48483E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     156.31        82.780        .64517E-05   -1.3201    
  14  Prefactor     27.471        16.913        .30576E-05   -1.4659    
  15  norm          .10000E-03    7.4819        .69331E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.1991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3016        17.905        .63850E-05   -1.5206    
  18  norm          .78983E-01    2.4748        .42729E-04   -1.5652    
  19  Prefactor     .10000E-03    30.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5775        .27597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.393        23.836        .24345E-05   -1.4390    
  22  norm          9.5598        5.7050        .46857E-05   -1.5089    
  23  Prefactor     .10000E-03    26.057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1513        .29526        .10047E-04   -.88121    
  25  Prefactor     .64780        .23907        .11206E-04   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58004e-10
Minuit parameter uncertainties:
  1  193.883
  2  425.256
  3  0.663714
  4  5.72223
  5  17.2948
  6  1.68131e-05
  7  7.05259e-06
  8  6.34069e-05
  9  5.26574e-06
  10  15.9577
  11  0.971073
  12  0.000134241
  13  82.8419
  14  16.9156
  15  1.73505e-05
  16  6.78945e-06
  17  17.9202
  18  0.883708
  19  3.39626e-06
  20  1.58549e-06
  21  23.8417
  22  5.70531
  23  1.33579e-05
  24  0.295687
  25  0.239452
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.342e-04  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:  6.478e-01  2.395e-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.151e+00  2.957e-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: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/434946/likelihoodResults_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.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): 102
logL (Free Index) = 4373.34291101
delta logL = -0.00130910114603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4373.30692008
delta logL = 0.0346818219596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34763       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0748       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65171       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4373.307     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      326 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34755        7.6448        .10402E-02    .92595E-03
   2  alpha         3.0750        3.9867        .27051E-01    .38202E-04
   3  Normalizat    1.1377        .26698        .25227E-03   -.16394E-03
   4  Prefactor     .65172        .22674        .27908E-03   -.13708E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.347548
  alpha      = 3.07503
  Normalizat = 1.13768
  Prefactor  = 0.651716
 **********
 **   18 **HESSE 
 **********

 FCN=   4373.307     FROM HESSE     STATUS=OK            27 CALLS      353 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34755        2.0322        .41610E-04   -1.5590    
   2  alpha         3.0750        1.7173        .10820E-02    .23209    
   3  Normalizat    1.1377        .26739        .50455E-04   -.88551    
   4  Prefactor     .65172        .22670        .11163E-04   -1.0545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07383e-10
Minuit parameter uncertainties:
  1  1.68067
  2  1.90645
  3  0.267712
  4  0.227023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434946': 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) = 4373.30692008
delta logL = 0.0346818283324

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.475e-01  1.681e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  3.075e+00  1.906e+00  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:  6.517e-01  2.270e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.138e+00  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

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/434946/cmap_HighResolution_381369601_381628801_4FGL_J2243.4-2544_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-05', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2021-09-28 18:42:54.523859', job_id='434946', GAL2='0.65', fit_tolerance='1e-08', EG2='1.14', EG='1.15', time_epoch_completed='1632879774.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='3.47e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='548' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:42:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 434946: <4FGL_J2243.4-2544_daily_bin548> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin548> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:30:15 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:30:16 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:30:16 2021
Terminated at Tue Sep 28 18:42:57 2021
Results reported at Tue Sep 28 18:42:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin548 340.865 -25.7363 381369601 381628801 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            762 sec.

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

