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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin967
RA = 340.957, Dec = -25.1701
tmin = 489974401, tmax = 490233601
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='443545', job_status='RUN', time_executed='2021-09-28 18:58:23.397427', time_epoch_executed='1632880703.4' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='967'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443545/ft1_4FGL_J2243.8-2510_daily_bin967.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443545/ft2_4FGL_J2243.8-2510_daily_bin967.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443545/ft1_4FGL_J2243.8-2510_daily_bin967.fits outfile=/scratch/kocevski/443545/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin967.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=489974401.0 tmax=490233601.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.74
user 3.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443545/ft2_4FGL_J2243.8-2510_daily_bin967.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/443545/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin967.fits evtable="EVENTS" outfile="/scratch/kocevski/443545/ft1_filtered_4FGL_J2243.8-2510_daily_bin967.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443545/ft1_filtered_4FGL_J2243.8-2510_daily_bin967.fits" evtable="EVENTS" scfile=/scratch/kocevski/443545/ft2_4FGL_J2243.8-2510_daily_bin967.fits sctable="SC_DATA" outfile=/scratch/kocevski/443545/ltcube_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.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/443545/ft2_4FGL_J2243.8-2510_daily_bin967.fits
.....................!
real 11.91
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443545/ft1_filtered_4FGL_J2243.8-2510_daily_bin967.fits evtable="EVENTS" scfile=/scratch/kocevski/443545/ft2_4FGL_J2243.8-2510_daily_bin967.fits sctable="SC_DATA" expcube=/scratch/kocevski/443545/ltcube_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.fits outfile=/scratch/kocevski/443545/expmap_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.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/443545/ltcube_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.fits
.....................!
real 191.85
user 187.14
sys 4.36

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/443545/ft1_filtered_4FGL_J2243.8-2510_daily_bin967.fits scfile=/scratch/kocevski/443545/ft2_4FGL_J2243.8-2510_daily_bin967.fits outfile=/scratch/kocevski/443545/cmap_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443545/ft1_filtered_4FGL_J2243.8-2510_daily_bin967.fits scfile=/scratch/kocevski/443545/ft2_4FGL_J2243.8-2510_daily_bin967.fits outfile=/scratch/kocevski/443545/cmap_HighResolution_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.5478       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.9657       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.334       1.0000         .10000E-03   10000.    
    10 'norm      '    .53969       1.0000         .10000E-03   10000.    
    11 'norm      '    .78678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30787E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .97229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.573       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9089       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.663       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1800       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92002       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=   5763.146     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2748 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.722        .20752E-06** at limit **
   2  norm          1.5478        .42786        .55536E-08   -.50670E-05
   3  Prefactor     .10000E-03    5.5027       -.52498E-07** at limit **
   4  Prefactor     .10000E-03    13.544       -.34978E-06** at limit **
   5  Prefactor     .10000E-03    4.8076       -.27578E-07** at limit **
   6  Prefactor     .10000E-03    14.437        .29832E-06** at limit **
   7  norm          9.9620        17.483       -.33075E-07    .56021E-04
   8  Prefactor     .10000E-03    7.6388       -.83297E-07** at limit **
   9  Prefactor     15.317        14.763        .27403E-06    .26681E-03
  10  norm          .53968        .59075        .84996E-08    .43793E-04
  11  norm          .79004        1.5146        .93562E-06    .16824E-02
  12  Prefactor     .10000E-03    172.99        .96258E-07** at limit **
  13  Prefactor     .10000E-03    8.2083        .21593E-06** at limit **
  14  norm          .10000E-03    2.6889        .47249E-09** at limit **
  15  Prefactor     .10000E-03    6.3590        .43289E-07** at limit **
  16  Prefactor     .10016E-03    12.040       -.20703E-05** at limit **
  17  norm          .97379        .78234       -.16722E-06    .14899E-02
  18  Prefactor     33.595        106.28        .27597E-05    .55875E-04
  19  Prefactor     6.9084        11.019        .26649E-06    .17967E-04
  20  Prefactor     .10000E-03    18.918        .23030E-06** at limit **
  21  norm          .10000E-03    4.2244        .41646E-07** at limit **
  22  Prefactor     36.668        45.416        .49130E-06    .34716E-04
  23  Normalizat    1.1801        .20987       -.17647E-05    .17931E-03
  24  Prefactor     .91994        .17933        .99802E-06    .28316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.54781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.96203
  Prefactor  = 0.0001
  Prefactor  = 15.3171
  norm       = 0.53968
  norm       = 0.790042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100165
  norm       = 0.973786
  Prefactor  = 33.5954
  Prefactor  = 6.90835
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 36.6678
  Normalizat = 1.18012
  Prefactor  = 0.91994
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.146     FROM HESSE     STATUS=OK           395 CALLS     3143 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5478        .42876        .25391E-04   -1.5459    
   3  Prefactor     .10000E-03    5.5372        .17388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8445        .16252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.9620        17.472        .12693E-03   -1.5077    
   8  Prefactor     .10000E-03    7.6528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.317        14.856        .10228E-03   -1.4925    
  10  norm          .53968        .57763        .59272E-04   -1.5561    
  11  norm          .79004        1.5096        .15308E-02   -1.5530    
  12  Prefactor     .10000E-03    175.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7052        .12125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10016E-03    30.735        .38115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .97379        .67280        .50559E-03   -1.5511    
  18  Prefactor     33.595        107.07        .69158E-04   -1.4548    
  19  Prefactor     6.9084        11.005        .15264E-03   -1.5182    
  20  Prefactor     .10000E-03    19.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3550        .30401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.668        45.427        .66189E-04   -1.4496    
  23  Normalizat    1.1801        .24040        .24752E-03   -.87219    
  24  Prefactor     .91994        .21117        .25001E-03   -.95448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48738e-09
Minuit parameter uncertainties:
  1  0.000128512
  2  0.428759
  3  1.55064e-07
  4  0.000108478
  5  5.00591e-06
  6  0.000114964
  7  17.4814
  8  2.56047e-05
  9  14.8596
  10  0.577641
  11  1.50966
  12  0.000375422
  13  4.88824e-05
  14  1.64181e-05
  15  2.57674e-05
  16  0.00450028
  17  0.672808
  18  107.69
  19  11.0083
  20  0.000240826
  21  5.80418e-06
  22  45.4694
  23  0.240622
  24  0.211359
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.754e-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:  9.199e-01  2.114e-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.180e+00  2.406e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443545/likelihoodResults_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.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) = 5763.14599309
delta logL = -2.70464133791e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5763.14596612
delta logL = -7.17054717825e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6724       1.0000          .0000       10.000    
     3 'Normalizat'    1.1801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91995       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=   5763.146     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      261 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10452E-03    101.62        .12603    ** at limit **
   2  Index         2.8055        6.1838        .50000       -.10990E-04
   3  Normalizat    1.1801        .73880E-02    .55974E-01   -.68958E-04
   4  Prefactor     .91994        .67123E-02    .45259E-01    .10526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104518
  Index      = 2.80555
  Normalizat = 1.18011
  Prefactor  = 0.919943
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.146     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      304 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10452E-03    92.904        .13068       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8055        6.2097        .50000       -.45436    
   3  Normalizat    1.1801        .72550E-02    .24752E-03   -.87220    
   4  Prefactor     .91994        .65927E-02    .25001E-03   -.95448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66601e-10
Minuit parameter uncertainties:
  1  0.0410405
  2  6.79295
  3  0.00725496
  4  0.00659272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443545': 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): 102
logL (Free Index) = 5763.14596584
delta logL = 2.08475285035e-07

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.045e-04  4.104e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.806e+00  6.793e+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:  9.199e-01  6.593e-03  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.180e+00  7.255e-03  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/443545/cmap_HighResolution_489974401_490233601_4FGL_J2243.8-2510_daily_bin967.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.54e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-28 19:08:41.294698', job_id='443545', GAL2='0.92', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632881321.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='967' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:08:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 443545: <4FGL_J2243.8-2510_daily_bin967> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin967 340.957 -25.1701 489974401 490233601 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 :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

