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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1583
RA = 340.865, Dec = -25.7363
tmin = 649641601, tmax = 649900801
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='438610', job_status='RUN', time_executed='2021-09-28 18:41:29.379325', time_epoch_executed='1632879689.38' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438610

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438610/ft1_4FGL_J2243.4-2544_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438610/ft1_4FGL_J2243.4-2544_daily_bin1583.fits outfile=/scratch/kocevski/438610/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1583.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=649641601.0 tmax=649900801.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 2.56
user 2.34
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.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/438610/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1583.fits evtable="EVENTS" outfile="/scratch/kocevski/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/438610/ltcube_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.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/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits
.....................!
real 15.58
user 15.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/438610/ltcube_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.fits outfile=/scratch/kocevski/438610/expmap_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.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/438610/ltcube_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.fits
.....................!
real 191.92
user 187.42
sys 4.17

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.4-2544 @ 340.865 -25.7363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits scfile=/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits outfile=/scratch/kocevski/438610/cmap_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.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.865 yref=-25.7363 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits scfile=/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits outfile=/scratch/kocevski/438610/cmap_HighResolution_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.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.865 yref=-25.7363 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/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438610/Model_4FGL_J2243.4-2544_daily_bin1583.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/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits........................!
real 21.11
user 19.95
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits', '/scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits', expMap='/scratch/kocevski/438610/expmap_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.fits', expCube='/scratch/kocevski/438610/ltcube_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438610/Model_4FGL_J2243.4-2544_daily_bin1583.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.4-2544'

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.477e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/438610/ft1_filtered_4FGL_J2243.4-2544_daily_bin1583.fits
Spacecraft file(s): /scratch/kocevski/438610/ft2_4FGL_J2243.4-2544_daily_bin1583.fits
Exposure map: /scratch/kocevski/438610/expmap_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.fits
Exposure cube: /scratch/kocevski/438610/ltcube_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438610/Model_4FGL_J2243.4-2544_daily_bin1583.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) = 1160.7565287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52068E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4556.7       1.0000         .10000E-03   10000.    
     3 'norm      '    .10745E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14666E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.718       1.0000         .10000E-03   10000.    
     8 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10934E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10865E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.2091       1.0000         .10000E-03   10000.    
    12 'norm      '    .10642E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    189.53       1.0000         .10000E-03   10000.    
    14 'Prefactor '    81.346       1.0000         .10000E-03   10000.    
    15 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.044       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11679E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5289       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0216       1.0000         .10000E-03   10000.    
    22 'norm      '    34.253       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1160.744     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3846 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2180.3       -.13118E-04** at limit **
   2  Prefactor     4554.3        3368.7       -.89910E-05   -.17394E-05
   3  norm          .10000E-03    3.0858       -.81073E-06** at limit **
   4  Prefactor     .10000E-03    87.709       -.12639E-06** at limit **
   5  Prefactor     .10000E-03    119.19        .18836E-06** at limit **
   6  Prefactor     .10000E-03    54.095        .25782E-06** at limit **
   7  Prefactor     22.684        399.47       -.47560E-06   -.67251E-05
   8  norm          .10002E-03    597.42        .12128E-04** at limit **
   9  Prefactor     .10000E-03    96.408       -.31508E-06** at limit **
  10  Prefactor     .10000E-03    39.059        .12141E-05** at limit **
  11  norm          4.2095        2.8362       -.19666E-08   -.10163E-03
  12  norm          .10000E-03    14.127        .48737E-05** at limit **
  13  Prefactor     189.73        212.80       -.14715E-05   -.53966E-05
  14  Prefactor     81.297        58.310        .47530E-06   -.26502E-04
  15  norm          .10000E-03    12.050        .15140E-06** at limit **
  16  Prefactor     73.063        61.170        .20329E-05    .14759E-03
  17  Prefactor     .10000E-03    134.03        .23169E-05** at limit **
  18  norm          .10000E-03    1.4378       -.18239E-05** at limit **
  19  Prefactor     .10000E-03    88.687       -.15033E-06** at limit **
  20  Prefactor     8.5288        11.679        .74078E-08   -.60548E-05
  21  Prefactor     4.0677        58.696        .80755E-05    .72768E-04
  22  norm          34.249        11.568       -.11616E-06   -.83578E-04
  23  Prefactor     .10000E-03    45.042       -.54150E-06** at limit **
  24  Normalizat    .10000E-01    .31256        .37818E-05** at limit **
  25  Prefactor     1.4071        .27838       -.82983E-06   -.34218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Prefactor  = 4554.3
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6844
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20951
  norm       = 0.000100002
  Prefactor  = 189.726
  Prefactor  = 81.2967
  norm       = 0.0001
  Prefactor  = 73.0629
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.52878
  Prefactor  = 4.06768
  norm       = 34.2488
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.40714
 **********
 **   18 **HESSE 
 **********

 FCN=   1160.744     FROM HESSE     STATUS=OK           415 CALLS     4261 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    2179.1        .19146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4554.3        3359.0        .40158E-04   -.89258E-01
   3  norm          .10000E-03    3.0647        .58181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    87.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    119.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.684        403.81        .84037E-04   -1.4755    
   8  norm          .10002E-03    593.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    96.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2095        2.8390        .43947E-04   -1.5298    
  12  norm          .10000E-03    13.432        .12123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     189.73        212.16        .14667E-03   -1.2944    
  14  Prefactor     81.297        58.284        .22266E-03   -1.3902    
  15  norm          .10000E-03    12.061        .11534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     73.063        61.069        .23488E-03   -1.3996    
  17  Prefactor     .10000E-03    136.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7662        .79617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    88.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.5288        11.683        .13257E-03   -1.5124    
  21  Prefactor     4.0677        60.695        .20109E-03   -1.5305    
  22  norm          34.249        11.570        .64679E-04   -1.4537    
  23  Prefactor     .10000E-03    45.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .36318        .10279E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.4071        .25851        .21387E-03   -.80175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.629e-10
Minuit parameter uncertainties:
  1  0.0180603
  2  3686.57
  3  3.08591e-05
  4  9.87691e-05
  5  4.24976e-05
  6  0.000292039
  7  192.954
  8  0.0077514
  9  0.000238501
  10  6.95517e-05
  11  2.83908
  12  0.000364701
  13  213.029
  14  58.3253
  15  4.88386e-05
  16  61.1213
  17  0.00141346
  18  1.65698e-05
  19  0.000127592
  20  11.6857
  21  31.4631
  22  11.571
  23  0.000206755
  24  5.14902e-06
  25  0.258747
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  3.647e-04  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.407e+00  2.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.000e-02  5.149e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438610/likelihoodResults_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.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) = 1160.74394207
delta logL = -0.000351669574229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1160.74359028
delta logL = 1.16413275464e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0284       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1160.744     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.153        .90712E-02** at limit **
   2  alpha         2.0597        3.4634        .42117       -.11237E-04
   3  Normalizat    .10000E-01    .27353        .20159    ** at limit **
   4  Prefactor     1.4071        .25108        .48391E-01    .15536E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05971
  Normalizat = 0.01
  Prefactor  = 1.40714
 **********
 **   18 **HESSE 
 **********

 FCN=   1160.744     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.504        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0597        3.4353        .50000       -.17704    
   3  Normalizat    .10000E-01    .31706        .10279E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4071        .22296        .21387E-03   -.80175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44812e-10
Minuit parameter uncertainties:
  1  9.77006e-05
  2  2.46678
  3  2.06886e-07
  4  0.22311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438610': 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) = 1160.74359012
delta logL = 2.79704408968e-07

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  9.770e-05  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.060e+00  2.467e+00  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.407e+00  2.231e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.000e-02  2.069e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

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/438610/cmap_HighResolution_649641601_649900801_4FGL_J2243.4-2544_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-04', job_status='DONE', photon_flux_upper_limit='2.96e-07', time_completed='2021-09-28 18:47:58.373195', job_id='438610', GAL2='1.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632880078.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='2.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1583' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:47:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 438610: <4FGL_J2243.4-2544_daily_bin1583> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1583> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:41:01 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:41:03 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:41:03 2021
Terminated at Tue Sep 28 18:47:59 2021
Results reported at Tue Sep 28 18:47:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1583 340.865 -25.7363 649641601 649900801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.4-2544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   383.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   415 sec.
    Turnaround time :                            418 sec.

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

