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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1281
RA = 340.865, Dec = -25.7363
tmin = 571363201, tmax = 571622401
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='438199', job_status='RUN', time_executed='2021-09-28 18:41:03.569721', time_epoch_executed='1632879663.57' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438199/ft1_4FGL_J2243.4-2544_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438199/ft2_4FGL_J2243.4-2544_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438199/ft1_4FGL_J2243.4-2544_daily_bin1281.fits outfile=/scratch/kocevski/438199/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1281.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=571363201.0 tmax=571622401.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 2.86
user 2.64
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438199/ft1_filtered_4FGL_J2243.4-2544_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/438199/ft2_4FGL_J2243.4-2544_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/438199/ltcube_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.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/438199/ft2_4FGL_J2243.4-2544_daily_bin1281.fits
.....................!
real 12.37
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438199/ft1_filtered_4FGL_J2243.4-2544_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/438199/ft2_4FGL_J2243.4-2544_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/438199/ltcube_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.fits outfile=/scratch/kocevski/438199/expmap_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.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/438199/ltcube_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.fits
.....................!
real 190.34
user 185.39
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/438199/ft1_filtered_4FGL_J2243.4-2544_daily_bin1281.fits scfile=/scratch/kocevski/438199/ft2_4FGL_J2243.4-2544_daily_bin1281.fits outfile=/scratch/kocevski/438199/cmap_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438199/ft1_filtered_4FGL_J2243.4-2544_daily_bin1281.fits scfile=/scratch/kocevski/438199/ft2_4FGL_J2243.4-2544_daily_bin1281.fits outfile=/scratch/kocevski/438199/cmap_HighResolution_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438199/ft1_filtered_4FGL_J2243.4-2544_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/438199/ft2_4FGL_J2243.4-2544_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438199/Model_4FGL_J2243.4-2544_daily_bin1281.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/438199/ft1_filtered_4FGL_J2243.4-2544_daily_bin1281.fits........................!
real 23.73
user 22.47
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18328E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2261.0       1.0000         .10000E-03   10000.    
     3 'norm      '    4.5420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0622       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    228.46       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.120       1.0000         .10000E-03   10000.    
    11 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7250       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3249       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15415E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.351       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71148       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3488       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=   1622.072     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3406 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    689.82        .58988E-05** at limit **
   2  Prefactor     2258.5        2203.1        .52597E-05    .10959E-06
   3  norm          4.5422        2.9983        .84709E-08    .23628E-04
   4  Prefactor     .10000E-03    71.474        .16336E-05** at limit **
   5  Prefactor     6.5507        531.34       -.59839E-05    .37384E-05
   6  Prefactor     .10000E-03    7.6271       -.33676E-07** at limit **
   7  Prefactor     228.40        258.12       -.13064E-05   -.10924E-05
   8  norm          .10000E-03    40.031        .55157E-06** at limit **
   9  Prefactor     .10000E-03    21.535       -.57530E-08** at limit **
  10  Prefactor     17.880        73.087        .23947E-05    .34979E-04
  11  norm          .10000E-03    1.2342       -.14638E-06** at limit **
  12  norm          .10000E-03    3.4845        .63640E-06** at limit **
  13  Prefactor     2.8546        6188.3        .25858E-04    .64776E-05
  14  Prefactor     9.7051        34.270        .10617E-05    .26752E-05
  15  norm          .10000E-03    11.132        .41378E-06** at limit **
  16  Prefactor     .10000E-03    18.539        .17043E-06** at limit **
  17  Prefactor     .10000E-03    19.541        .45877E-06** at limit **
  18  norm          1.3244        1.1659        .89431E-07    .37916E-04
  19  Prefactor     .10000E-03    189.41       -.10745E-05** at limit **
  20  Prefactor     .10000E-03    80.643       -.84155E-06** at limit **
  21  Prefactor     .10000E-03    8.1396        .66748E-07** at limit **
  22  norm          .10000E-03    2.8265       -.14034E-06** at limit **
  23  Prefactor     29.344        58.513        .43939E-06    .18359E-05
  24  Normalizat    .71145        .44836       -.45797E-05    .46847E-04
  25  Prefactor     1.3488        .39443        .30703E-05   -.12351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 2258.5
  norm       = 4.54218
  Prefactor  = 0.0001
  Prefactor  = 6.55066
  Prefactor  = 0.0001
  Prefactor  = 228.402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8804
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.85462
  Prefactor  = 9.70508
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.3436
  Normalizat = 0.711454
  Prefactor  = 1.3488
 **********
 **   18 **HESSE 
 **********

 FCN=   1622.072     FROM HESSE     STATUS=OK           423 CALLS     3829 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    693.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2258.5        2202.5        .47812E-04   -.58033    
   3  norm          4.5422        3.0002        .54391E-04   -1.5282    
   4  Prefactor     .10000E-03    71.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5507        513.74        .16307E-02   -1.5196    
   6  Prefactor     .10000E-03    7.6281        .10865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     228.40        258.25        .13386E-03   -1.2674    
   8  norm          .10000E-03    39.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.880        78.902        .94089E-04   -1.4862    
  11  norm          .10000E-03    1.2460        .43688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.4522        .72942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8546        6279.7        .25947E-02   -1.5370    
  14  Prefactor     9.7051        34.674        .12850E-03   -1.5085    
  15  norm          .10000E-03    11.238        .13060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.529        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.547        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3244        1.1601        .19097E-03   -1.5478    
  19  Prefactor     .10000E-03    189.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    82.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1407        .11220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.8433        .66083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.344        58.710        .73952E-04   -1.4624    
  24  Normalizat    .71145        .52065        .31979E-03   -1.0344    
  25  Prefactor     1.3488        .46101        .23031E-03   -.81867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35723e-10
Minuit parameter uncertainties:
  1  0.003087
  2  2319.71
  3  3.00033
  4  0.000107246
  5  117.079
  6  1.86791e-06
  7  259.553
  8  3.88528e-06
  9  3.06913e-06
  10  75.2878
  11  2.06883e-06
  12  4.05787e-06
  13  185.028
  14  34.7462
  15  3.10908e-05
  16  2.17348e-05
  17  4.70942e-05
  18  1.1601
  19  0.000232243
  20  8.55801e-05
  21  6.53321e-06
  22  1.04014e-06
  23  58.8255
  24  0.524326
  25  0.46242
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  4.058e-06  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:  1.349e+00  4.624e-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:  7.115e-01  5.243e-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: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438199/likelihoodResults_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.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) = 1622.07282515
delta logL = -0.00129889368509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1622.07152347
delta logL = 2.79261689684e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11477E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8376       1.0000          .0000       5.0000    
     3 'Normalizat'    .71145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3488       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1622.072     FROM MIGRAD    STATUS=FAILED        91 CALLS      288 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10085E-03    190.75        .13479E-02** at limit **
   2  alpha         2.9524        3.8033        .50000       -.37730E-05
   3  Normalizat    .71145        .59592E-01    .31982E-03    .16908E-03
   4  Prefactor     1.3488        .57529E-01    .23031E-03    .19695E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1622.072     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      435 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10085E-03    190.75        .34071E-03** at limit **
   2  alpha         2.9524        3.8033        .11202E-03   -.37730E-05
   3  Normalizat    .71145        .59592E-01    .35396E-05    .16908E-03
   4  Prefactor     1.3488        .57529E-01    .19473E-05    .19695E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1622.072     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      483 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    662.53        .26958E-03** at limit **
   2  alpha         3.0229        2.5448        .50000        .91973E-07
   3  Normalizat    .71145        .13189        .63965E-04    .91266E-05
   4  Prefactor     1.3488        .12730        .46061E-04   -.13254E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.02294
  Normalizat = 0.711448
  Prefactor  = 1.3488
 **********
 **   18 **HESSE 
 **********

 FCN=   1622.072     FROM HESSE     STATUS=OK            29 CALLS      512 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2822        .53915E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0229        3.3873        .50000        .21073    
   3  Normalizat    .71145        .45894        .12793E-04   -1.0344    
   4  Prefactor     1.3488        .44419        .92123E-05   -.81867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1132e-11
Minuit parameter uncertainties:
  1  3.1359e-06
  2  151.271
  3  0.461454
  4  0.445453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438199': 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) = 1622.07152162
delta logL = 4.64197023575e-06

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  3.136e-06  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  3.023e+00  1.513e+02  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:  1.349e+00  4.455e-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:  7.114e-01  4.615e-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/438199/cmap_HighResolution_571363201_571622401_4FGL_J2243.4-2544_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-05', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-28 18:47:54.622444', job_id='438199', GAL2='1.35', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632880074.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='4.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1281' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:47:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 438199: <4FGL_J2243.4-2544_daily_bin1281> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1281 340.865 -25.7363 571363201 571622401 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 :                                   408.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   442 sec.
    Turnaround time :                            445 sec.

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

