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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1283
RA = 340.865, Dec = -25.7363
tmin = 571881601, tmax = 572140801
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='438202', job_status='RUN', time_executed='2021-09-28 18:41:26.340946', time_epoch_executed='1632879686.34' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438202/ft1_4FGL_J2243.4-2544_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438202/ft1_4FGL_J2243.4-2544_daily_bin1283.fits outfile=/scratch/kocevski/438202/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1283.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=571881601.0 tmax=572140801.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.52
user 2.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.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/438202/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.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/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/438202/ltcube_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.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/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits
.....................!
real 11.98
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/438202/ltcube_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.fits outfile=/scratch/kocevski/438202/expmap_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.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/438202/ltcube_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.fits
.....................!
real 191.10
user 186.57
sys 4.21

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/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits scfile=/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits outfile=/scratch/kocevski/438202/cmap_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits scfile=/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits outfile=/scratch/kocevski/438202/cmap_HighResolution_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438202/Model_4FGL_J2243.4-2544_daily_bin1283.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/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits........................!
real 23.54
user 22.32
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits', '/scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits', expMap='/scratch/kocevski/438202/expmap_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.fits', expCube='/scratch/kocevski/438202/ltcube_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438202/Model_4FGL_J2243.4-2544_daily_bin1283.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/438202/ft1_filtered_4FGL_J2243.4-2544_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/438202/ft2_4FGL_J2243.4-2544_daily_bin1283.fits
Exposure map: /scratch/kocevski/438202/expmap_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.fits
Exposure cube: /scratch/kocevski/438202/ltcube_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438202/Model_4FGL_J2243.4-2544_daily_bin1283.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) = 1477.59517908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56693E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6957.1       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11376E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10772E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29091E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.3513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.886       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.655       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6707       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.940       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .72263       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2070       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=   1477.327     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     3395 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    6510.5       -.75607E-05** at limit **
   2  Prefactor     6950.0        8014.0       -.26808E-04   -.28068E-05
   3  norm          .10000E-03    3.5027       -.42740E-06** at limit **
   4  Prefactor     .10000E-03    70.016       -.72539E-06** at limit **
   5  Prefactor     .10000E-03    166.56       -.11698E-05** at limit **
   6  Prefactor     .10000E-03    99.168       -.14262E-05** at limit **
   7  Prefactor     .10000E-03    192.91        .17134E-06** at limit **
   8  norm          .10000E-03    110.55        .39298E-06** at limit **
   9  Prefactor     .10000E-03    104.75       -.11434E-05** at limit **
  10  Prefactor     .10624E-03    208.22       -.13823E-04** at limit **
  11  norm          .10000E-03    1.0592        .43628E-07** at limit **
  12  norm          8.3531        8.1829       -.12655E-05   -.66542E-03
  13  Prefactor     .10000E-03    279.96        .11891E-05** at limit **
  14  Prefactor     28.849        51.371        .57603E-06   -.47990E-04
  15  norm          .10000E-03    10.676        .12404E-05** at limit **
  16  Prefactor     24.952        49.360        .72042E-06   -.15965E-03
  17  Prefactor     35.667        44.931       -.20523E-05   -.36908E-03
  18  norm          .10000E-03    1.0198        .75960E-06** at limit **
  19  Prefactor     .10000E-03    56.938        .83440E-08** at limit **
  20  Prefactor     3.6704        31.951        .17711E-05    .41702E-04
  21  Prefactor     .10000E-03    12.901        .60705E-06** at limit **
  22  norm          .10000E-03    2.5913        .43822E-06** at limit **
  23  Prefactor     15.962        85.786        .69704E-07   -.37735E-05
  24  Normalizat    .72279        .47198        .39684E-05   -.87011E-04
  25  Prefactor     1.2069        .38780       -.41218E-05   -.14891E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100052
  Prefactor  = 6949.95
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000106243
  norm       = 0.0001
  norm       = 8.35312
  Prefactor  = 0.000100001
  Prefactor  = 28.8488
  norm       = 0.000100001
  Prefactor  = 24.9523
  Prefactor  = 35.6669
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67043
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9619
  Normalizat = 0.722787
  Prefactor  = 1.20694
 **********
 **   18 **HESSE 
 **********

 FCN=   1477.327     FROM HESSE     STATUS=OK           409 CALLS     3804 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    6511.2        .21094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6950.0        8024.7        .43468E-04    .40062    
   3  norm          .10000E-03    3.5028        .70260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    70.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    166.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    100.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    193.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    110.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    104.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10624E-03    528.10        .64774E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0901        .77182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3531        8.1843        .10390E-03   -1.5130    
  13  Prefactor     .10000E-03    280.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.849        51.544        .74544E-04   -1.4633    
  15  norm          .10000E-03    10.884        .12328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.952        49.588        .80198E-04   -1.4709    
  17  Prefactor     35.667        45.727        .67115E-04   -1.4513    
  18  norm          .10000E-03    1.0931        .77253E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6704        31.892        .21082E-03   -1.5325    
  21  Prefactor     .10000E-03    12.939        .13500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.6036        .60463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.962        87.328        .10032E-03   -1.4909    
  24  Normalizat    .72279        .56362        .33197E-03   -1.0300    
  25  Prefactor     1.2069        .46414        .23098E-03   -.86118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28904e-08
Minuit parameter uncertainties:
  1  0.0264306
  2  11883.2
  3  3.87966e-05
  4  0.000485389
  5  0.000430105
  6  0.000615092
  7  0.000238891
  8  0.000508425
  9  0.00047431
  10  0.115876
  11  4.33643e-06
  12  8.18539
  13  0.000969959
  14  51.6232
  15  0.000237914
  16  49.6695
  17  45.772
  18  4.6707e-05
  19  7.1423e-05
  20  21.6538
  21  0.000126243
  22  3.62538e-05
  23  74.8396
  24  0.568236
  25  0.465728
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  8.353e+00  8.185e+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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.207e+00  4.657e-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:  7.228e-01  5.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 8.08e-08 +/- 7.92e-08
Energy Flux (Fixed Index): 5.14e-05 +/- 5.04e-05

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

Saving results to:
/scratch/kocevski/438202/likelihoodResults_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.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) = 1477.285232
delta logL = 0.0413113824336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1477.28448359
delta logL = 0.042059795247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5049       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7304       1.0000          .0000       5.0000    
     3 'Normalizat'    .73347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2033       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=   1477.284     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      220 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5049        9.8796        .34364E-02   -.15235E-02
   2  alpha         1.7305        .95309        .31920       -.10053E-05
   3  Normalizat    .73376        .41682        .74516E-01    .61732E-05
   4  Prefactor     1.2032        .36669        .52334E-01    .89968E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.50493
  alpha      = 1.73047
  Normalizat = 0.733759
  Prefactor  = 1.20324
 **********
 **   18 **HESSE 
 **********

 FCN=   1477.284     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5049        8.4060        .10691E-03   -1.5125    
   2  alpha         1.7305        .88139        .12917E-01   -.31289    
   3  Normalizat    .73376        .49991        .32985E-03   -1.0258    
   4  Prefactor     1.2032        .44351        .23137E-03   -.86232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93622e-09
Minuit parameter uncertainties:
  1  8.40715
  2  0.90292
  3  0.503064
  4  0.444893
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438202': 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) = 1477.28448302
delta logL = 0.042060361616

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  8.505e+00  8.407e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.730e+00  9.029e-01  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.203e+00  4.449e-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:  7.338e-01  5.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.73 +/- 0.90
Photon Flux (Free Index): 6.00e-08 +/- 8.49e-08
Energy Flux (Free Index): 6.26e-05 +/- 8.05e-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/438202/cmap_HighResolution_571881601_572140801_4FGL_J2243.4-2544_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-04', comment='SUCCESS', photon_flux='8.08e-08', energy_flux2='6.26e-05', photon_flux_error='7.92e-08', dlogl='4.21e-02', energy_flux='5.14e-05', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-28 18:48:09.533633', photon_index_error2='0.90', photon_index2='1.73', ts='2.64', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='2.97e-07', energy_flux_error2='8.05e-05', EG='0.72', time_epoch_completed='1632880089.53', return_code='0', job_id='438202', GAL2='1.20', EG2='0.73', return_code2='0', energy_flux_error='5.04e-05', photon_flux_error2='8.49e-08', ts2='2.75', photon_index='2.00' WHERE bin_id='1283' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:48:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 438202: <4FGL_J2243.4-2544_daily_bin1283> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1283> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:31 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:32 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:40:32 2021
Terminated at Tue Sep 28 18:48:10 2021
Results reported at Tue Sep 28 18:48:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1283 340.865 -25.7363 571881601 572140801 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 :                                   389.35 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             319.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   457 sec.
    Turnaround time :                            459 sec.

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

