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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1023
RA = 340.865, Dec = -25.7363
tmin = 504489601, tmax = 504748801
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='436746', job_status='RUN', time_executed='2021-09-28 18:36:32.932392', time_epoch_executed='1632879392.93' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436746

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436746/ft1_4FGL_J2243.4-2544_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436746/ft1_4FGL_J2243.4-2544_daily_bin1023.fits outfile=/scratch/kocevski/436746/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1023.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=504489601.0 tmax=504748801.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 4.47
user 4.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.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/436746/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/436746/ltcube_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.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/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits
.....................!
real 11.45
user 11.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/436746/ltcube_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.fits outfile=/scratch/kocevski/436746/expmap_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.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/436746/ltcube_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.fits
.....................!
real 189.21
user 183.95
sys 4.92

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/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits scfile=/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits outfile=/scratch/kocevski/436746/cmap_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits scfile=/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits outfile=/scratch/kocevski/436746/cmap_HighResolution_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436746/Model_4FGL_J2243.4-2544_daily_bin1023.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/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits.....................!
real 43.46
user 42.10
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits', '/scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits', expMap='/scratch/kocevski/436746/expmap_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.fits', expCube='/scratch/kocevski/436746/ltcube_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/436746/Model_4FGL_J2243.4-2544_daily_bin1023.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/436746/ft1_filtered_4FGL_J2243.4-2544_daily_bin1023.fits
Spacecraft file(s): /scratch/kocevski/436746/ft2_4FGL_J2243.4-2544_daily_bin1023.fits
Exposure map: /scratch/kocevski/436746/expmap_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.fits
Exposure cube: /scratch/kocevski/436746/ltcube_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/436746/Model_4FGL_J2243.4-2544_daily_bin1023.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5135.94708764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .76987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    47.299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.676       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39084E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .72401       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3443       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65118       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3730       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=   5135.832     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2564 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.680        .90712E-02** at limit **
   2  Prefactor     .10001E-03    92.399        .90712E-02** at limit **
   3  norm          .76992        .35917        .64778E-02   -.13465E-02
   4  Prefactor     .10000E-03    4.4758        .90712E-02** at limit **
   5  Prefactor     10.314        10.466        .31193E-02   -.22451E-03
   6  Prefactor     9.4755        10.610        .32557E-02   -.47275E-03
   7  Prefactor     .10011E-03    59.186        .90712E-02** at limit **
   8  norm          47.293        25.144        .14576E-02    .19308E-02
   9  Prefactor     20.079        23.736        .22346E-02   -.40066E-03
  10  Prefactor     10.681        15.091        .30656E-02    .28081E-03
  11  norm          .10000E-03    .68508        .20722E-01** at limit **
  12  norm          .10000E-03    1.2789        .31448E-01** at limit **
  13  Prefactor     .10009E-03    60.939        .90712E-02** at limit **
  14  Prefactor     .10000E-03    13.016        .90712E-02** at limit **
  15  norm          .10000E-03    2.2612        .90712E-02** at limit **
  16  Prefactor     .10000E-03    9.2973        .90712E-02** at limit **
  17  Prefactor     .19680        13.723        .65280E-01    .43860E-03
  18  norm          .71946        .74490        .10775E-01    .45588E-02
  19  Prefactor     .10005E-03    28.981        .90712E-02** at limit **
  20  Prefactor     .10000E-03    4.1199        .90712E-02** at limit **
  21  Prefactor     4.3048        11.313        .48314E-02    .17189E-02
  22  norm          .10000E-03    1.0412        .90712E-02** at limit **
  23  Prefactor     .10005E-03    30.199        .90712E-02** at limit **
  24  Normalizat    .65030        .21760        .70476E-01    .16244E-03
  25  Prefactor     1.3735        .19487        .47699E-01    .24734E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  norm       = 0.769923
  Prefactor  = 0.0001
  Prefactor  = 10.3141
  Prefactor  = 9.47552
  Prefactor  = 0.00010011
  norm       = 47.2933
  Prefactor  = 20.0787
  Prefactor  = 10.6806
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100089
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.196799
  norm       = 0.719458
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  Prefactor  = 4.30482
  norm       = 0.0001
  Prefactor  = 0.000100053
  Normalizat = 0.650297
  Prefactor  = 1.37354
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.832     FROM HESSE     STATUS=OK           421 CALLS     2985 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    92.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .76992        .36080        .28504E-04   -1.5532    
   4  Prefactor     .10000E-03    4.4933        .14806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.314        10.468        .12477E-03   -1.5066    
   6  Prefactor     9.4755        10.642        .13023E-03   -1.5092    
   7  Prefactor     .10011E-03    59.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          47.293        25.132        .29151E-03   -1.4331    
   9  Prefactor     20.079        23.726        .89384E-04   -1.4811    
  10  Prefactor     10.681        15.103        .12262E-03   -1.5054    
  11  norm          .10000E-03    1.5784        .11478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4173        .15702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    61.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2742        .10500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19680        221.62        .37065E-02   -1.5619    
  18  norm          .71946        .82260        .48602E-04   -1.5538    
  19  Prefactor     .10005E-03    28.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1252        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3048        11.668        .19326E-03   -1.5293    
  22  norm          .10000E-03    1.0430        .71412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10005E-03    30.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .65030        .27246        .31192E-03   -1.0589    
  25  Prefactor     1.3735        .24154        .21085E-03   -.81146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80106e-08
Minuit parameter uncertainties:
  1  0.000313239
  2  0.00227912
  3  0.360803
  4  3.41069e-05
  5  10.4703
  6  10.6443
  7  0.0051027
  8  25.1373
  9  23.7367
  10  15.1088
  11  1.983e-05
  12  3.62385e-06
  13  0.00467179
  14  0.000190775
  15  1.38773e-06
  16  2.05586e-05
  17  13.2544
  18  0.822613
  19  0.0024636
  20  2.68444e-05
  21  11.6744
  22  3.49652e-06
  23  0.00252895
  24  0.273028
  25  0.241738
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  3.624e-06  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.374e+00  2.417e-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:  6.503e-01  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436746/likelihoodResults_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.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) = 5135.83401436
delta logL = -0.0019702628515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5135.83205001
delta logL = -5.90955005464e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13536E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0362       1.0000          .0000       5.0000    
     3 'Normalizat'    .65016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3737       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5135.832     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      274 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12933E-03    .59771        .20341E-01** at limit **
   2  alpha         2.9518        3.4531        .50000        .21608E-05
   3  Normalizat    .65030        .43771E-02    .31192E-03    .60624E-03
   4  Prefactor     1.3735        .41702E-02    .21085E-03    .78674E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000129328
  alpha      = 2.95185
  Normalizat = 0.650296
  Prefactor  = 1.37354
 **********
 **   18 **HESSE 
 **********

 FCN=   5135.832     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      313 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12933E-03    .80136        .18161E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9518        2.6586        .50000        .18174    
   3  Normalizat    .65030        .46762E-02    .62385E-04   -1.0589    
   4  Prefactor     1.3735        .44553E-02    .42170E-04   -.81146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.37181e-09
Minuit parameter uncertainties:
  1  0.00969603
  2  61.4751
  3  0.00467625
  4  0.00445528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436746': 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) = 5135.8320221
delta logL = 2.20037118197e-05

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.293e-04  9.696e-03  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.952e+00  6.148e+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.374e+00  4.455e-03  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:  6.503e-01  4.676e-03  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/436746/cmap_HighResolution_504489601_504748801_4FGL_J2243.4-2544_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-28 18:46:05.223951', job_id='436746', GAL2='1.37', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632879965.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.20e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1023' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:46:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 436746: <4FGL_J2243.4-2544_daily_bin1023> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1023> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:37 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:38 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:35:38 2021
Terminated at Tue Sep 28 18:46:06 2021
Results reported at Tue Sep 28 18:46:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1023 340.865 -25.7363 504489601 504748801 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 :                                   570.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

