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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1013
RA = 340.957, Dec = -25.1701
tmin = 501897601, tmax = 502156801
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='443613', job_status='RUN', time_executed='2021-09-28 18:55:54.443126', time_epoch_executed='1632880554.44' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443613

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443613/ft1_4FGL_J2243.8-2510_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443613/ft1_4FGL_J2243.8-2510_daily_bin1013.fits outfile=/scratch/kocevski/443613/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1013.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=501897601.0 tmax=502156801.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.47
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.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/443613/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/443613/ltcube_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.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/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits
.....................!
real 12.07
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/443613/ltcube_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.fits outfile=/scratch/kocevski/443613/expmap_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.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/443613/ltcube_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.fits
.....................!
real 190.67
user 185.23
sys 5.08

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.8-2510 @ 340.957 -25.1701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits scfile=/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits outfile=/scratch/kocevski/443613/cmap_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.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.957 yref=-25.1701 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits scfile=/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits outfile=/scratch/kocevski/443613/cmap_HighResolution_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.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.957 yref=-25.1701 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.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443613/Model_4FGL_J2243.8-2510_daily_bin1013.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/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits.....................!
real 59.81
user 58.43
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits', '/scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits', expMap='/scratch/kocevski/443613/expmap_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.fits', expCube='/scratch/kocevski/443613/ltcube_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443613/Model_4FGL_J2243.8-2510_daily_bin1013.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.8-2510'

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  7.852e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/443613/ft1_filtered_4FGL_J2243.8-2510_daily_bin1013.fits
Spacecraft file(s): /scratch/kocevski/443613/ft2_4FGL_J2243.8-2510_daily_bin1013.fits
Exposure map: /scratch/kocevski/443613/expmap_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.fits
Exposure cube: /scratch/kocevski/443613/ltcube_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443613/Model_4FGL_J2243.8-2510_daily_bin1013.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) = 7881.48383774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.553       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8032       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    91.752       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3056       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    59.611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.728       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2370       1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36376E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60180E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0236       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.074       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2090       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2353       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79726       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0113       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+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=   7881.454     FROM MIGRAD    STATUS=FAILED       974 CALLS     2815 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.541        36.124        .92987E-04   -.18545E-03
   2  norm          1.8032        .41158        .26318E-04   -.15637E-03
   3  Prefactor     .10000E-03    2.4268        .13484E-02** at limit **
   4  Prefactor     91.752        21.766        .20976E-03    .60149E-03
   5  Prefactor     8.3060        6.5878        .13911E-03   -.26561E-03
   6  Prefactor     .10000E-03    13.393        .18142E-02** at limit **
   7  norm          59.617        22.554        .51965E-04    .23483E-03
   8  Prefactor     .51440        127.66        .62225E-02    .10280E-02
   9  Prefactor     13.734        12.759        .10810E-03    .93806E-04
  10  norm          1.2368        .87341        .67894E-04   -.34059E-03
  11  norm          .10000E-03    .60030        .66867E-03** at limit **
  12  Prefactor     .10008E-03    38.673        .12822    ** at limit **
  13  Prefactor     .10003E-03    19.205        .39468E-02** at limit **
  14  norm          2.0238        2.0149        .11893E-03    .21136E-03
  15  Prefactor     .10000E-03    5.3470        .18142E-02** at limit **
  16  Prefactor     10.074        5.5167        .63123E-03   -.14014E-02
  17  norm          .10000E-03    .26015        .66328E-03** at limit **
  18  Prefactor     .10000E-03    27.704        .18142E-02** at limit **
  19  Prefactor     2.2055        19.168        .27676E-03    .48718E-04
  20  Prefactor     .10000E-03    6.7288        .36285E-03** at limit **
  21  norm          6.2351        2.8876        .99313E-04   -.86656E-04
  22  Prefactor     .10000E-03    8.5831        .18142E-02** at limit **
  23  Normalizat    .79712        .20028        .27115E-03   -.32963E-03
  24  Prefactor     1.0115        .17986        .23181E-03   -.33181E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7881.454     FROM SIMPLEX   STATUS=PROGRESS    1109 CALLS     3924 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.541        36.124        .42940E-06   -1.4847    
   2  norm          1.8032        .41158        .37385E-06   -1.5439    
   3  Prefactor     .10000E-03    2.4268        .22148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     91.752        21.766        .32927E-06   -1.3789    
   5  Prefactor     8.3060        6.5878        .36082E-06   -1.5131    
   6  Prefactor     .10000E-03    13.393        .37106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          59.617        22.554        .33954E-06   -1.4162    
   8  Prefactor     .51440        127.66        .47147E-06   -1.5565    
   9  Prefactor     13.734        12.759        .35808E-06   -1.4967    
  10  norm          1.2368        .87341        .36958E-06   -1.5486    
  11  norm          .10000E-03    .60030        .77761E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10008E-03    38.673        .56432E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    19.205        .50982E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0238        2.0149        .36798E-06   -1.5423    
  15  Prefactor     .10000E-03    5.3470        .31164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.074        5.5167        .36131E-06   -1.5073    
  17  norm          .10000E-03    .26015        .20593E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.704        .61528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2055        19.168        .36855E-06   -1.5411    
  20  Prefactor     .10000E-03    6.7288        .29674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2351        2.8876        .36315E-06   -1.5209    
  22  Prefactor     .10000E-03    8.5831        .28685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79712        .20028        .23900E-06   -1.0018    
  24  Prefactor     1.0115        .17986        .22041E-06   -.92347    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7881.454     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     4314 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.541        36.123        .18597E-04    .48905E-06
   2  norm          1.8032        .41156        .10527E-05    .86476E-05
   3  Prefactor     .10000E-03    2.4269        .26969E-03** at limit **
   4  Prefactor     91.752        21.763        .41953E-04    .16205E-04
   5  Prefactor     8.3061        6.5736        .55643E-05   -.10216E-04
   6  Prefactor     .10000E-03    13.393        .36285E-03** at limit **
   7  norm          59.617        22.553        .10393E-04    .49006E-04
   8  Prefactor     .51446        130.66        .12445E-02   -.21194E-05
   9  Prefactor     13.734        12.755        .43242E-05    .10622E-03
  10  norm          1.2368        .87328        .27158E-05    .11721E-04
  11  norm          .10000E-03    .60031        .13373E-03** at limit **
  12  Prefactor     .10005E-03    37.443        .13097    ** at limit **
  13  Prefactor     .10000E-03    19.388        .78936E-03** at limit **
  14  norm          2.0238        2.0150        .47570E-05    .35370E-04
  15  Prefactor     .10000E-03    5.3471        .36285E-03** at limit **
  16  Prefactor     10.074        5.5136        .25249E-04    .99958E-04
  17  norm          .10000E-03    .26039        .13266E-03** at limit **
  18  Prefactor     .10000E-03    27.704        .36285E-03** at limit **
  19  Prefactor     2.2054        19.141        .11070E-04    .14377E-05
  20  Prefactor     .10000E-03    6.7289        .72569E-04** at limit **
  21  norm          6.2351        2.8873        .39725E-05    .51513E-05
  22  Prefactor     .10000E-03    8.5833        .36285E-03** at limit **
  23  Normalizat    .79712        .20018        .10846E-04    .43814E-04
  24  Prefactor     1.0115        .18005        .46361E-04    .36930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5414
  norm       = 1.80319
  Prefactor  = 0.0001
  Prefactor  = 91.7517
  Prefactor  = 8.30606
  Prefactor  = 0.0001
  norm       = 59.6167
  Prefactor  = 0.514456
  Prefactor  = 13.7342
  norm       = 1.23685
  norm       = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  norm       = 2.02376
  Prefactor  = 0.0001
  Prefactor  = 10.0744
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20539
  Prefactor  = 0.0001
  norm       = 6.23512
  Prefactor  = 0.0001
  Normalizat = 0.797121
  Prefactor  = 1.01152
 **********
 **   18 **HESSE 
 **********

 FCN=   7881.454     FROM HESSE     STATUS=OK           385 CALLS     4699 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.541        36.107        .37195E-05   -1.4847    
   2  norm          1.8032        .41154        .36810E-06   -1.5439    
   3  Prefactor     .10000E-03    2.4269        .53937E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     91.752        21.762        .83905E-05   -1.3789    
   5  Prefactor     8.3061        6.5664        .11129E-05   -1.5131    
   6  Prefactor     .10000E-03    13.393        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          59.617        22.551        .20786E-05   -1.4162    
   8  Prefactor     .51446        130.36        .49780E-04   -1.5565    
   9  Prefactor     13.734        12.741        .86484E-06   -1.4967    
  10  norm          1.2368        .87316        .54315E-06   -1.5486    
  11  norm          .10000E-03    .60031        .26747E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    37.852        .13002       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.395        .15787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0238        2.0144        .95141E-06   -1.5423    
  15  Prefactor     .10000E-03    5.3471        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.074        5.5114        .10100E-05   -1.5073    
  17  norm          .10000E-03    .26039        .26531E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.704        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2054        19.095        .22141E-05   -1.5411    
  20  Prefactor     .10000E-03    6.7288        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2351        2.8867        .79450E-06   -1.5209    
  22  Prefactor     .10000E-03    8.5833        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79712        .19991        .21692E-05   -1.0018    
  24  Prefactor     1.0115        .17993        .92722E-05   -.92347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41274e-11
Minuit parameter uncertainties:
  1  36.1495
  2  0.411545
  3  3.55938e-08
  4  21.764
  5  6.56695
  6  2.04056e-07
  7  22.5547
  8  16.4135
  9  12.7438
  10  0.873173
  11  2.93515e-08
  12  0.00284167
  13  3.37346e-05
  14  2.01449
  15  3.03195e-06
  16  5.51172
  17  3.40431e-07
  18  8.38597e-07
  19  12.9841
  20  1.05673e-06
  21  2.88673
  22  2.02191e-07
  23  0.200089
  24  0.180038
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.001e-04  2.842e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.012e+00  1.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  7.971e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443613/likelihoodResults_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.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) = 7881.45415023
delta logL = -1.5414653717e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7881.40485966
delta logL = 0.049275150951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8300       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6117       1.0000          .0000       10.000    
     3 'Normalizat'    .77949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0206       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7881.405     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      287 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8299        156.89        .51557E-02    .42790E-03
   2  Index         3.6113        1.6087        .44486        .14625E-04
   3  Normalizat    .77948        .16197E-01    .61965E-01    .28386E-04
   4  Prefactor     1.0206        .15508E-01    .42084E-01   -.27107E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82994
  Index      = 3.61128
  Normalizat = 0.779483
  Prefactor  = 1.02061
 **********
 **   18 **HESSE 
 **********

 FCN=   7881.405     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8299        27.363        .20623E-03   -1.5317    
   2  Index         3.6113        2.5554        .70114E-02   -.28144    
   3  Normalizat    .77948        .19332        .27409E-03   -1.0083    
   4  Prefactor     1.0206        .17990        .23084E-03   -.92046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44137e-10
Minuit parameter uncertainties:
  1  20.4873
  2  2.69451
  3  0.193493
  4  0.180006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443613': 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) = 7881.40485958
delta logL = 0.0492752326172

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  3.830e+00  2.049e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.611e+00  2.695e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.021e+00  1.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  7.795e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.957 -25.170

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/443613/cmap_HighResolution_501897601_502156801_4FGL_J2243.8-2510_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-28 19:10:37.023173', job_id='443613', GAL2='1.02', fit_tolerance='1e-08', EG2='0.78', EG='0.80', time_epoch_completed='1632881437.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.93e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1013' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:10:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 443613: <4FGL_J2243.8-2510_daily_bin1013> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1013> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:55:45 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:55:46 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:55:46 2021
Terminated at Tue Sep 28 19:10:37 2021
Results reported at Tue Sep 28 19:10:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1013 340.957 -25.1701 501897601 502156801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.8-2510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   878.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

