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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1085
RA = 340.957, Dec = -25.1701
tmin = 520560001, tmax = 520819201
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='444792', job_status='RUN', time_executed='2021-09-28 19:01:46.253783', time_epoch_executed='1632880906.25' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444792

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444792/ft1_4FGL_J2243.8-2510_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444792/ft2_4FGL_J2243.8-2510_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444792/ft1_4FGL_J2243.8-2510_daily_bin1085.fits outfile=/scratch/kocevski/444792/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1085.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=520560001.0 tmax=520819201.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 5.27
user 5.02
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/444792/ft2_4FGL_J2243.8-2510_daily_bin1085.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/444792/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/444792/ft1_filtered_4FGL_J2243.8-2510_daily_bin1085.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/444792/ft1_filtered_4FGL_J2243.8-2510_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/444792/ft2_4FGL_J2243.8-2510_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/444792/ltcube_520560001_520819201_4FGL_J2243.8-2510_daily_bin1085.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/444792/ft2_4FGL_J2243.8-2510_daily_bin1085.fits
.....................!
real 11.72
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444792/ft1_filtered_4FGL_J2243.8-2510_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/444792/ft2_4FGL_J2243.8-2510_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/444792/ltcube_520560001_520819201_4FGL_J2243.8-2510_daily_bin1085.fits outfile=/scratch/kocevski/444792/expmap_520560001_520819201_4FGL_J2243.8-2510_daily_bin1085.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/444792/ltcube_520560001_520819201_4FGL_J2243.8-2510_daily_bin1085.fits
.....................!
real 191.17
user 185.28
sys 5.15

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/444792/ft1_filtered_4FGL_J2243.8-2510_daily_bin1085.fits scfile=/scratch/kocevski/444792/ft2_4FGL_J2243.8-2510_daily_bin1085.fits outfile=/scratch/kocevski/444792/cmap_520560001_520819201_4FGL_J2243.8-2510_daily_bin1085.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.57
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/444792/ft1_filtered_4FGL_J2243.8-2510_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/444792/ft2_4FGL_J2243.8-2510_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/444792/Model_4FGL_J2243.8-2510_daily_bin1085.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/444792/ft1_filtered_4FGL_J2243.8-2510_daily_bin1085.fits.....................!
real 61.43
user 60.02
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53485E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6645       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.7404       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.302       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7568       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4079       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17065E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2281       1.0000         .10000E-03   10000.    
    18 'Prefactor '    160.93       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3439       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7932.707     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     2328 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11223E-03    1880.9        .42937E-04** at limit **
   2  norm          1.6646        .33917       -.34926E-06   -.11770E-03
   3  Prefactor     3.2575        4.7390       -.14925E-05    .71565E-04
   4  Prefactor     23.341        11.806        .47329E-05   -.60943E-02
   5  Prefactor     .10000E-03    1.7151       -.20860E-06** at limit **
   6  Prefactor     .10000E-03    21.291       -.40815E-06** at limit **
   7  norm          8.7418        7.2621        .35647E-05    .58678E-02
   8  Prefactor     .10000E-03    4.6474        .26357E-06** at limit **
   9  Prefactor     13.310        3.2615        .95101E-06    .93962E-03
  10  norm          2.7568        .89430        .19570E-06    .10694E-04
  11  norm          .10000E-03    2.1980        .70650E-06** at limit **
  12  Prefactor     26.109        34.971       -.57780E-05    .39796E-04
  13  Prefactor     .10000E-03    9.1836        .68863E-06** at limit **
  14  norm          7.4097        3.9451        .24890E-06   -.84640E-04
  15  Prefactor     .10000E-03    4.4028       -.42827E-08** at limit **
  16  Prefactor     .10000E-03    14.662       -.11019E-06** at limit **
  17  norm          3.2291        .86501        .35180E-06    .13418E-03
  18  Prefactor     160.86        12.978        .60088E-06   -.43254E-02
  19  Prefactor     8.2872        2.2320       -.70359E-06   -.11745E-02
  20  Prefactor     2.3549        11.988       -.31621E-05   -.16811E-02
  21  norm          .10000E-03    .94784       -.28542E-06** at limit **
  22  Prefactor     .10000E-03    32.379       -.16265E-05** at limit **
  23  Normalizat    1.0018        .17968       -.64669E-05   -.16758E-04
  24  Prefactor     .66562        .15840        .31751E-06   -.15096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112229
  norm       = 1.66456
  Prefactor  = 3.25753
  Prefactor  = 23.3412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.7418
  Prefactor  = 0.0001
  Prefactor  = 13.3096
  norm       = 2.75676
  norm       = 0.0001
  Prefactor  = 26.1087
  Prefactor  = 0.0001
  norm       = 7.40972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.22912
  Prefactor  = 160.859
  Prefactor  = 8.28717
  Prefactor  = 2.35486
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.00177
  Prefactor  = 0.665618
 **********
 **   18 **HESSE 
 **********

 FCN=   7932.707     FROM HESSE     STATUS=OK           459 CALLS     2787 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11223E-03    50.318        .14825       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6646        .34115        .51453E-02   -1.5450    
   3  Prefactor     3.2575        4.7697        .56095E-02   -1.5347    
   4  Prefactor     23.341        15.861        .20727E-02   -1.4741    
   5  Prefactor     .10000E-03    1.7052        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.267        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.7418        9.5207        .33895E-02   -1.5117    
   8  Prefactor     .10000E-03    4.6446        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.310        11.568        .27456E-02   -1.4978    
  10  norm          2.7568        .89580        .61290E-02   -1.5376    
  11  norm          .10000E-03    1.2023        .30791E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.109        39.192        .19563E-02   -1.4686    
  13  Prefactor     .10000E-03    9.0169        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4097        3.9442        .36839E-02   -1.5163    
  15  Prefactor     .10000E-03    4.4003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2291        .88314        .56365E-02   -1.5349    
  18  Prefactor     160.86        74.165        .79472E-03   -1.3165    
  19  Prefactor     8.2872        10.632        .34812E-02   -1.5132    
  20  Prefactor     2.3549        15.227        .66945E-02   -1.5401    
  21  norm          .10000E-03    .94240        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0018        .15709        .46190E-01   -.92971    
  24  Prefactor     .66562        .13606        .41940E-01   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60701e-07
Minuit parameter uncertainties:
  1  0.0496534
  2  0.341147
  3  4.77024
  4  15.8642
  5  3.14152e-07
  6  0.000115773
  7  9.52238
  8  1.09028e-06
  9  11.5696
  10  0.895809
  11  3.49749e-07
  12  39.2304
  13  5.89994e-06
  14  3.94434
  15  1.03288e-07
  16  2.47487e-06
  17  0.883142
  18  74.2076
  19  10.6346
  20  11.9805
  21  4.50741e-07
  22  0.000480211
  23  0.157159
  24  0.136124
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  2.611e+01  3.923e+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:  6.656e-01  1.361e-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.002e+00  1.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444792/likelihoodResults_520560001_520819201_4FGL_J2243.8-2510_daily_bin1085.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) = 7932.26945892
delta logL = 0.437818075565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7932.00958762
delta logL = 0.697689370034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17326E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6911       1.0000          .0000       10.000    
     3 'Normalizat'    .94648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70726       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=   7932.010     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      333 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16973E-01    .16601        .19355E-02    .97008E-02
   2  Index         7.7032        2.5864        .19407        .13577E-03
   3  Normalizat    .94683        .31775E-01    .45493E-01    .45006E-04
   4  Prefactor     .70702        .28546E-01    .42498E-01    .52881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0169729
  Index      = 7.70324
  Normalizat = 0.946827
  Prefactor  = 0.707019
 **********
 **   18 **HESSE 
 **********

 FCN=   7932.010     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      368 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16973E-01    .49842        .88009E-04   -1.5682    
   2  Index         7.7032        8.2460        .71522E-02    .57121    
   3  Normalizat    .94683        .12760        .24338E-03   -.94834    
   4  Prefactor     .70702        .11262        .12428E-02   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.63015e-07
Minuit parameter uncertainties:
  1  0.183412
  2  6.01933
  3  0.127642
  4  0.112661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444792': 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) = 7932.00958108
delta logL = 0.697695912806

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.697e-02  1.834e-01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  7.703e+00  6.019e+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.070e-01  1.127e-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:  9.468e-01  1.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.29
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 7.70 +/- 6.02
Photon Flux (Free Index): 6.41e-08 +/- 4.68e-08
Energy Flux (Free Index): 7.50e-06 +/- 5.89e-06

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/444792/cmap_HighResolution_520560001_520819201_4FGL_J2243.8-2510_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', energy_flux2='7.50e-06', dlogl='6.98e-01', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-28 19:13:55.670159', photon_index_error2='6.02', photon_index2='7.70', ts='0.75', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='5.89e-06', EG='1.00', time_epoch_completed='1632881635.67', return_code='0', job_id='444792', GAL2='0.71', EG2='0.95', return_code2='102', photon_flux_error2='4.68e-08', ts2='2.29', photon_index='2.71' WHERE bin_id='1085' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:13:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 444792: <4FGL_J2243.8-2510_daily_bin1085> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1085> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:14 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:16 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:16 2021
Terminated at Tue Sep 28 19:13:56 2021
Results reported at Tue Sep 28 19:13:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1085 340.957 -25.1701 520560001 520819201 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

