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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1363
RA = 340.957, Dec = -25.1701
tmin = 592617601, tmax = 592876801
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='445205', job_status='RUN', time_executed='2021-09-28 19:04:41.842630', time_epoch_executed='1632881081.84' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445205/ft1_4FGL_J2243.8-2510_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445205/ft1_4FGL_J2243.8-2510_daily_bin1363.fits outfile=/scratch/kocevski/445205/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1363.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=592617601.0 tmax=592876801.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.28
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.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/445205/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/445205/ltcube_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.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/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits
.....................!
real 11.71
user 11.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/445205/ltcube_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.fits outfile=/scratch/kocevski/445205/expmap_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.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/445205/ltcube_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.fits
.....................!
real 191.82
user 186.46
sys 5.02

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/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits scfile=/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits outfile=/scratch/kocevski/445205/cmap_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits scfile=/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits outfile=/scratch/kocevski/445205/cmap_HighResolution_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445205/Model_4FGL_J2243.8-2510_daily_bin1363.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/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits.....................!
real 45.03
user 43.82
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits', '/scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits', expMap='/scratch/kocevski/445205/expmap_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.fits', expCube='/scratch/kocevski/445205/ltcube_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/445205/Model_4FGL_J2243.8-2510_daily_bin1363.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/445205/ft1_filtered_4FGL_J2243.8-2510_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/445205/ft2_4FGL_J2243.8-2510_daily_bin1363.fits
Exposure map: /scratch/kocevski/445205/expmap_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.fits
Exposure cube: /scratch/kocevski/445205/ltcube_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/445205/Model_4FGL_J2243.8-2510_daily_bin1363.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) = 5357.91573468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    59.889       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3123       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1800       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.083       1.0000         .10000E-03   10000.    
    14 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1596       1.0000         .10000E-03   10000.    
    17 'norm      '    .92684       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0198       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7320       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7298       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1370       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77475       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.

 FCN=   5357.872     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2669 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.491       -.62996E-05** at limit **
   2  norm          1.1203        .40048        .68731E-09   -.19523E-04
   3  Prefactor     .10000E-03    4.1855       -.26324E-06** at limit **
   4  Prefactor     .10000E-03    11.311        .63982E-05** at limit **
   5  Prefactor     .10000E-03    15.148        .12343E-04** at limit **
   6  Prefactor     .10000E-03    26.571       -.12990E-04** at limit **
   7  norm          59.879        29.377       -.40894E-05    .89009E-05
   8  Prefactor     .10000E-03    11.830       -.55922E-05** at limit **
   9  Prefactor     2.3008        14.564       -.70744E-06   -.16011E-03
  10  norm          1.1800        .95086        .34186E-07   -.41318E-04
  11  norm          .10000E-03    .82857        .19178E-07** at limit **
  12  Prefactor     .10000E-03    67.420       -.11590E-04** at limit **
  13  Prefactor     13.080        10.548       -.72519E-07   -.98814E-04
  14  norm          .10000E-03    1.7446       -.19554E-07** at limit **
  15  Prefactor     .10000E-03    7.6039        .18164E-06** at limit **
  16  Prefactor     7.1546        10.648       -.47336E-06   -.16752E-03
  17  norm          .92775        .78220       -.61377E-07   -.31390E-03
  18  Prefactor     .10000E-03    35.148        .22824E-04** at limit **
  19  Prefactor     6.0193        9.1834       -.20819E-06   -.89489E-04
  20  Prefactor     4.7107        13.553        .14369E-05   -.10495E-03
  21  norm          3.7296        2.9306       -.31461E-07   -.24182E-04
  22  Prefactor     .10000E-03    12.987       -.71987E-05** at limit **
  23  Normalizat    1.1372        .19737        .33171E-06   -.17641E-03
  24  Prefactor     .77460        .17413        .25315E-07   -.10954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.1203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 59.8794
  Prefactor  = 0.0001
  Prefactor  = 2.30082
  norm       = 1.18002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0803
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.15456
  norm       = 0.927753
  Prefactor  = 0.0001
  Prefactor  = 6.01931
  Prefactor  = 4.71074
  norm       = 3.72959
  Prefactor  = 0.0001
  Normalizat = 1.1372
  Prefactor  = 0.774599
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.872     FROM HESSE     STATUS=OK           395 CALLS     3064 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1203        .40196        .26947E-04   -1.5496    
   3  Prefactor     .10000E-03    4.2099        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          59.879        29.335        .25923E-03   -1.4159    
   8  Prefactor     .10000E-03    11.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3008        14.639        .26980E-03   -1.5405    
  10  norm          1.1800        .96206        .61620E-04   -1.5491    
  11  norm          .10000E-03    .83268        .65033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.080        10.592        .11074E-03   -1.4984    
  14  norm          .10000E-03    1.7528        .94325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.1546        10.965        .14991E-03   -1.5173    
  17  norm          .92775        .81107        .44679E-04   -1.5515    
  18  Prefactor     .10000E-03    35.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0193        9.1777        .16365E-03   -1.5217    
  20  Prefactor     4.7107        13.179        .18497E-03   -1.5274    
  21  norm          3.7296        2.9318        .10778E-03   -1.5322    
  22  Prefactor     .10000E-03    13.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1372        .23972        .23660E-03   -.88566    
  24  Prefactor     .77460        .21039        .25542E-03   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55988e-10
Minuit parameter uncertainties:
  1  4.28929e-07
  2  0.40196
  3  3.53503e-07
  4  2.33393e-06
  5  0.000225761
  6  9.89856e-07
  7  29.3418
  8  4.4541e-06
  9  11.6113
  10  0.962069
  11  4.54589e-06
  12  0.000309543
  13  10.5935
  14  4.42255e-06
  15  8.46562e-06
  16  10.968
  17  0.81108
  18  7.13593e-06
  19  9.1798
  20  13.1871
  21  2.93186
  22  7.39501e-07
  23  0.239952
  24  0.210607
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.095e-04  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:  7.746e-01  2.106e-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:  1.137e+00  2.400e-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: 9.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445205/likelihoodResults_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.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) = 5357.87178025
delta logL = -7.0357421464e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5357.87171004
delta logL = -1.45090780279e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6526       1.0000          .0000       10.000    
     3 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77460       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.

 FCN=   5357.872     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      280 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    145.28        .18142E-02** at limit **
   2  Index         2.7217        6.2092        .50000       -.11942E-04
   3  Normalizat    1.1372        .22395        .23660E-03   -.46609E-05
   4  Prefactor     .77460        .20445        .25542E-03   -.79229E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.72174
  Normalizat = 1.1372
  Prefactor  = 0.774598
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.872     FROM HESSE     STATUS=OK            29 CALLS      309 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    71.039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7217        6.3515        .50000       -.47311    
   3  Normalizat    1.1372        .22419        .94640E-05   -.88566    
   4  Prefactor     .77460        .20466        .10217E-04   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5096e-10
Minuit parameter uncertainties:
  1  0.00174574
  2  4.49977
  3  0.224377
  4  0.204865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445205': 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) = 5357.87170986
delta logL = 3.97803887608e-08

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.746e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.722e+00  4.500e+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:  7.746e-01  2.049e-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:  1.137e+00  2.244e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/445205/cmap_HighResolution_592617601_592876801_4FGL_J2243.8-2510_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.59e-08', time_completed='2021-09-28 19:14:35.153273', job_id='445205', GAL2='0.77', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632881675.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1363' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 445205: <4FGL_J2243.8-2510_daily_bin1363> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1363> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:45 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:00:47 2021
Terminated at Tue Sep 28 19:14:35 2021
Results reported at Tue Sep 28 19:14:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1363 340.957 -25.1701 592617601 592876801 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

