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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1221
RA = 340.957, Dec = -25.1701
tmin = 555811201, tmax = 556070401
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='444985', job_status='RUN', time_executed='2021-09-28 19:01:22.344943', time_epoch_executed='1632880882.34' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444985/ft1_4FGL_J2243.8-2510_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444985/ft2_4FGL_J2243.8-2510_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444985/ft1_4FGL_J2243.8-2510_daily_bin1221.fits outfile=/scratch/kocevski/444985/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1221.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=555811201.0 tmax=556070401.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.56
user 3.33
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444985/ft1_filtered_4FGL_J2243.8-2510_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/444985/ft2_4FGL_J2243.8-2510_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/444985/ltcube_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.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/444985/ft2_4FGL_J2243.8-2510_daily_bin1221.fits
.....................!
real 11.75
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444985/ft1_filtered_4FGL_J2243.8-2510_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/444985/ft2_4FGL_J2243.8-2510_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/444985/ltcube_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.fits outfile=/scratch/kocevski/444985/expmap_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.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/444985/ltcube_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.fits
.....................!
real 191.32
user 185.68
sys 5.26

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/444985/ft1_filtered_4FGL_J2243.8-2510_daily_bin1221.fits scfile=/scratch/kocevski/444985/ft2_4FGL_J2243.8-2510_daily_bin1221.fits outfile=/scratch/kocevski/444985/cmap_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444985/ft1_filtered_4FGL_J2243.8-2510_daily_bin1221.fits scfile=/scratch/kocevski/444985/ft2_4FGL_J2243.8-2510_daily_bin1221.fits outfile=/scratch/kocevski/444985/cmap_HighResolution_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/444985/ft1_filtered_4FGL_J2243.8-2510_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/444985/ft2_4FGL_J2243.8-2510_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/444985/Model_4FGL_J2243.8-2510_daily_bin1221.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/444985/ft1_filtered_4FGL_J2243.8-2510_daily_bin1221.fits.....................!
real 35.21
user 33.87
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.032       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6237       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.073       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.6621       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.207       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4453       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.492       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11086E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0939       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1075       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28597E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12730E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1150       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=   3211.826     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2700 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.483        149.70       -.16900E-06   -.71532E-04
   2  norm          1.6245        .73269       -.19197E-06   -.59531E-02
   3  Prefactor     12.406        13.410       -.38271E-06   -.28101E-03
   4  Prefactor     56.083        36.693       -.59884E-07   -.69161E-04
   5  Prefactor     .10000E-03    7.9574        .71494E-07** at limit **
   6  Prefactor     .10002E-03    140.37        .23605E-05** at limit **
   7  norm          2.6682        70.800        .10558E-05    .54574E-04
   8  Prefactor     .10000E-03    18.381        .52977E-07** at limit **
   9  Prefactor     26.211        22.423       -.52939E-07   -.96621E-04
  10  norm          2.4449        1.5864        .66270E-07    .91591E-03
  11  norm          4.8247        4.3811       -.19494E-06   -.50137E-03
  12  Prefactor     31.540        52.064        .24259E-06   -.10996E-05
  13  Prefactor     .10000E-03    23.984        .77866E-06** at limit **
  14  norm          .10000E-03    3.8754       -.17511E-06** at limit **
  15  Prefactor     .10000E-03    19.616       -.38628E-06** at limit **
  16  Prefactor     1.0025        203.56        .35711E-04   -.54438E-04
  17  norm          2.1116        2.3877       -.88077E-06    .41023E-03
  18  Prefactor     .10000E-03    149.55        .42886E-06** at limit **
  19  Prefactor     .10000E-03    7.8203        .49956E-06** at limit **
  20  Prefactor     .10000E-03    16.740       -.96659E-07** at limit **
  21  norm          .10000E-03    2.3388        .25654E-06** at limit **
  22  Prefactor     .10000E-03    35.463        .35296E-06** at limit **
  23  Normalizat    1.0740        .32621       -.39174E-05   -.10603E-03
  24  Prefactor     1.1146        .27562        .35588E-05    .29535E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.4832
  norm       = 1.62446
  Prefactor  = 12.4063
  Prefactor  = 56.0833
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 2.66819
  Prefactor  = 0.0001
  Prefactor  = 26.2108
  norm       = 2.44486
  norm       = 4.82467
  Prefactor  = 31.5399
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.00255
  norm       = 2.11158
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07404
  Prefactor  = 1.11456
 **********
 **   18 **HESSE 
 **********

 FCN=   3211.826     FROM HESSE     STATUS=OK           391 CALLS     3091 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.483        149.97        .21058E-03   -1.3803    
   2  norm          1.6245        .74907        .31933E-04   -1.5453    
   3  Prefactor     12.406        13.429        .11378E-03   -1.5003    
   4  Prefactor     56.083        36.698        .53570E-04   -1.4209    
   5  Prefactor     .10000E-03    7.9629        .15616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    141.33        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.6682        71.322        .24981E-03   -1.5381    
   8  Prefactor     .10000E-03    18.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.211        22.456        .78253E-04   -1.4684    
  10  norm          2.4449        1.5851        .54033E-04   -1.5395    
  11  norm          4.8247        4.3963        .10228E-03   -1.5269    
  12  Prefactor     31.540        52.325        .71400E-04   -1.4584    
  13  Prefactor     .10000E-03    24.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.8879        .10894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0025        383.59        .44242E-02   -1.5508    
  17  norm          2.1116        3.2722        .50818E-04   -1.5417    
  18  Prefactor     .10000E-03    149.59        .21410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8616        .15505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3549        .84764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0740        .40022        .30895E-03   -.90590    
  24  Prefactor     1.1146        .33689        .26202E-03   -.89003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.293e-08
Minuit parameter uncertainties:
  1  150.609
  2  0.749072
  3  13.4327
  4  36.7133
  5  2.27486e-05
  6  0.00316459
  7  27.6259
  8  1.96924e-05
  9  22.4632
  10  1.58509
  11  4.39658
  12  52.4013
  13  0.000381342
  14  5.58772e-05
  15  0.000296351
  16  39.4758
  17  3.27244
  18  0.000623651
  19  0.000157391
  20  0.000136854
  21  4.36872e-05
  22  0.000221442
  23  0.401351
  24  0.337536
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  3.154e+01  5.240e+01  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.115e+00  3.375e-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.074e+00  4.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 1.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444985/likelihoodResults_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3211.24624343
delta logL = 0.580077728919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3211.16097124
delta logL = 0.665349919939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.952       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7034       1.0000          .0000       10.000    
     3 'Normalizat'    1.0908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1025       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=   3211.161     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.113        69.015        .54571E-04   -.60145E-04
   2  Index         1.7057        .70864        .21932E-03   -.11146E-05
   3  Normalizat    1.0898        .30319       -.59694E-05   -.65968E-03
   4  Prefactor     1.1030        .26245        .21014E-06   -.69598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.1126
  Index      = 1.70566
  Normalizat = 1.0898
  Prefactor  = 1.10304
 **********
 **   18 **HESSE 
 **********

 FCN=   3211.161     FROM HESSE     STATUS=OK            27 CALLS      243 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.113        68.327        .26814E-03   -1.4208    
   2  Index         1.7057        .70150        .83044E-02   -.71931    
   3  Normalizat    1.0898        .36819        .30696E-03   -.90080    
   4  Prefactor     1.1030        .31899        .26307E-03   -.89370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34827e-09
Minuit parameter uncertainties:
  1  68.4226
  2  0.70563
  3  0.369065
  4  0.319543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444985': 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) = 3211.16096165
delta logL = 0.665359511733

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  5.611e+01  6.842e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.706e+00  7.056e-01  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.103e+00  3.195e-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.090e+00  3.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 1.71 +/- 0.71
Photon Flux (Free Index): 2.06e-08 +/- 2.86e-08
Energy Flux (Free Index): 3.30e-05 +/- 6.18e-05

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/444985/cmap_HighResolution_555811201_556070401_4FGL_J2243.8-2510_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', energy_flux2='3.30e-05', dlogl='6.65e-01', photon_flux2='2.06e-08', job_status='DONE', time_completed='2021-09-28 19:09:21.337474', photon_index_error2='0.71', photon_index2='1.71', ts='0.73', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.89e-07', energy_flux_error2='6.18e-05', EG='1.07', time_epoch_completed='1632881361.34', return_code='0', job_id='444985', GAL2='1.10', EG2='1.09', return_code2='0', photon_flux_error2='2.86e-08', ts2='2.06', photon_index='2.71' WHERE bin_id='1221' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:09:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 444985: <4FGL_J2243.8-2510_daily_bin1221> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1221> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:30 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:31 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:31 2021
Terminated at Tue Sep 28 19:09:24 2021
Results reported at Tue Sep 28 19:09:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1221 340.957 -25.1701 555811201 556070401 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 :                                   477.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            534 sec.

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

