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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1631
RA = 340.957, Dec = -25.1701
tmin = 662083201, tmax = 662342401
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='561428', job_status='RUN', time_executed='2021-12-28 00:39:26.279487', time_epoch_executed='1640680766.28' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561428

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561428/ft1_4FGL_J2243.8-2510_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561428/ft2_4FGL_J2243.8-2510_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561428/ft1_4FGL_J2243.8-2510_daily_bin1631.fits outfile=/scratch/kocevski/561428/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1631.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=662083201.0 tmax=662342401.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.89
user 3.67
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561428/ft1_filtered_4FGL_J2243.8-2510_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/561428/ft2_4FGL_J2243.8-2510_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/561428/ltcube_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.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/561428/ft2_4FGL_J2243.8-2510_daily_bin1631.fits
.....................!
real 11.98
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561428/ft1_filtered_4FGL_J2243.8-2510_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561428/ft2_4FGL_J2243.8-2510_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/561428/ltcube_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.fits outfile=/scratch/kocevski/561428/expmap_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.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/561428/ltcube_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.fits
.....................!
real 190.13
user 185.39
sys 4.44

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/561428/ft1_filtered_4FGL_J2243.8-2510_daily_bin1631.fits scfile=/scratch/kocevski/561428/ft2_4FGL_J2243.8-2510_daily_bin1631.fits outfile=/scratch/kocevski/561428/cmap_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561428/ft1_filtered_4FGL_J2243.8-2510_daily_bin1631.fits scfile=/scratch/kocevski/561428/ft2_4FGL_J2243.8-2510_daily_bin1631.fits outfile=/scratch/kocevski/561428/cmap_HighResolution_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561428/ft1_filtered_4FGL_J2243.8-2510_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561428/ft2_4FGL_J2243.8-2510_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561428/Model_4FGL_J2243.8-2510_daily_bin1631.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/561428/ft1_filtered_4FGL_J2243.8-2510_daily_bin1631.fits.....................!
real 54.80
user 53.48
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.019       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.324       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8881       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43166E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    26.247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85931       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.584       1.0000         .10000E-03   10000.    
    10 'norm      '    .44567       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2731       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.316       1.0000         .10000E-03   10000.    
    17 'norm      '    .88946       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .57509E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.123       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2070       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64978       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=   7032.257     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2770 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.987        74.590       -.12259E-04   -.58102E-06
   2  norm          1.1128        .39009        .46824E-07    .40185E-03
   3  Prefactor     10.326        9.8928        .25632E-06    .30834E-04
   4  Prefactor     4.8895        12.654       -.90492E-07    .12749E-04
   5  Prefactor     .10003E-03    7.9998        .28661E-05** at limit **
   6  Prefactor     .10000E-03    41.132        .20676E-05** at limit **
   7  norm          26.249        18.513        .13403E-06    .24078E-04
   8  Prefactor     .85751        10.003        .10266E-05    .13846E-04
   9  Prefactor     14.586        9.8742       -.42299E-06    .42245E-04
  10  norm          .44566        .40625       -.16216E-07   -.58707E-04
  11  norm          1.8229        1.9193       -.28643E-07    .14100E-03
  12  Prefactor     .10000E-03    22.411       -.13845E-05** at limit **
  13  Prefactor     5.2734        7.4753       -.20021E-05    .18346E-04
  14  norm          .10000E-03    1.4257       -.29606E-08** at limit **
  15  Prefactor     .10000E-03    9.3886       -.17676E-06** at limit **
  16  Prefactor     10.301        9.4202        .29613E-06   -.14080E-04
  17  norm          .89022        .78450       -.10884E-06    .39201E-05
  18  Prefactor     .10000E-03    39.320        .48749E-05** at limit **
  19  Prefactor     .10000E-03    51.548       -.17580E-04** at limit **
  20  Prefactor     .10000E-03    7.9838        .83102E-07** at limit **
  21  norm          14.124        3.7686       -.29927E-07    .14330E-04
  22  Prefactor     .10000E-03    10.996        .40034E-06** at limit **
  23  Normalizat    1.2070        .16414        .33551E-06    .12526E-03
  24  Prefactor     .64972        .14392        .44697E-06    .17053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9875
  norm       = 1.1128
  Prefactor  = 10.3261
  Prefactor  = 4.88954
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  norm       = 26.2491
  Prefactor  = 0.85751
  Prefactor  = 14.5856
  norm       = 0.445655
  norm       = 1.82292
  Prefactor  = 0.0001
  Prefactor  = 5.2734
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3009
  norm       = 0.890219
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 14.1235
  Prefactor  = 0.0001
  Normalizat = 1.20702
  Prefactor  = 0.649715
 **********
 **   18 **HESSE 
 **********

 FCN=   7032.257     FROM HESSE     STATUS=OK           413 CALLS     3183 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.987        74.633        .77070E-04   -1.4669    
   2  norm          1.1128        .39034        .29933E-04   -1.5497    
   3  Prefactor     10.326        9.8817        .12470E-03   -1.5065    
   4  Prefactor     4.8895        12.633        .18193E-03   -1.5266    
   5  Prefactor     .10003E-03    35.548        .40936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          26.249        18.499        .78193E-04   -1.4683    
   8  Prefactor     .85751        42.646        .50653E-02   -1.5523    
   9  Prefactor     14.586        9.8728        .52440E-03   -1.4944    
  10  norm          .44566        .42175        .49592E-03   -1.5574    
  11  norm          1.8229        1.9011        .11362E-03   -1.5438    
  12  Prefactor     .10000E-03    22.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2734        7.5028        .87517E-03   -1.5249    
  14  norm          .10000E-03    1.4519        .97639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.301        10.177        .12475E-03   -1.5066    
  17  norm          .89022        .82011        .47626E-03   -1.5519    
  18  Prefactor     .10000E-03    39.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    52.225        .34306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.124        3.7721        .81298E-04   -1.4956    
  22  Prefactor     .10000E-03    11.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2070        .19459        .22395E-03   -.86386    
  24  Prefactor     .64972        .17204        .26878E-03   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44759e-10
Minuit parameter uncertainties:
  1  74.8933
  2  0.390342
  3  9.88328
  4  12.6403
  5  0.0020254
  6  2.86055e-05
  7  18.5028
  8  12.103
  9  9.87387
  10  0.421756
  11  1.90114
  12  2.74701e-06
  13  7.50415
  14  2.32524e-07
  15  8.32534e-07
  16  10.1791
  17  0.820123
  18  9.98283e-06
  19  0.000688552
  20  4.40517e-06
  21  3.77212
  22  3.63422e-06
  23  0.194707
  24  0.172182
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.747e-06  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:  6.497e-01  1.722e-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.207e+00  1.947e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561428/likelihoodResults_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.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) = 7032.25683978
delta logL = -0.000212295683923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7032.2566307
delta logL = -3.21565130434e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11864E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1488       1.0000          .0000       10.000    
     3 'Normalizat'    1.2070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64972       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=   7032.257     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      306 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.872        .18142E-01** at limit **
   2  Index         2.1243        6.5299        .50000       -.75715E-08
   3  Normalizat    1.2070        .59519E-02    .22395E-03   -.17482E-03
   4  Prefactor     .64971        .54213E-02    .26878E-03   -.15688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12425
  Normalizat = 1.20702
  Prefactor  = 0.649714
 **********
 **   18 **HESSE 
 **********

 FCN=   7032.257     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      335 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    466.51        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1243        8.6452        .50000       -.61279    
   3  Normalizat    1.2070        .13785E-01    .44790E-04   -.86386    
   4  Prefactor     .64971        .12556E-01    .10751E-04   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.29168e-12
Minuit parameter uncertainties:
  1  4.99288e-05
  2  760.062
  3  0.0137847
  4  0.0125559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561428': 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) = 7032.25662651
delta logL = 9.80114236881e-07

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.993e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.124e+00  7.601e+02  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:  6.497e-01  1.256e-02  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.207e+00  1.378e-02  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/561428/cmap_HighResolution_662083201_662342401_4FGL_J2243.8-2510_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-12-28 00:51:08.129380', job_id='561428', GAL2='0.65', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1640681468.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='9.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1631' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:51:08 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 561428: <4FGL_J2243.8-2510_daily_bin1631> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:35:27 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:35:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:35:29 2021
Terminated at Tue Dec 28 00:51:08 2021
Results reported at Tue Dec 28 00:51:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1631 340.957 -25.1701 662083201 662342401 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 :                                   704.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

