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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1053
RA = 340.865, Dec = -25.7363
tmin = 512265601, tmax = 512524801
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='436788', job_status='RUN', time_executed='2021-09-28 18:39:03.996198', time_epoch_executed='1632879544.0' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436788/ft1_4FGL_J2243.4-2544_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436788/ft1_4FGL_J2243.4-2544_daily_bin1053.fits outfile=/scratch/kocevski/436788/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1053.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=512265601.0 tmax=512524801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.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/436788/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/436788/ft1_filtered_4FGL_J2243.4-2544_daily_bin1053.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436788/ft1_filtered_4FGL_J2243.4-2544_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/436788/ltcube_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.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/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.fits
.....................!
real 11.93
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436788/ft1_filtered_4FGL_J2243.4-2544_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/436788/ltcube_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.fits outfile=/scratch/kocevski/436788/expmap_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.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/436788/ltcube_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.fits
.....................!
real 191.34
user 185.91
sys 5.08

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/436788/ft1_filtered_4FGL_J2243.4-2544_daily_bin1053.fits scfile=/scratch/kocevski/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.fits outfile=/scratch/kocevski/436788/cmap_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436788/ft1_filtered_4FGL_J2243.4-2544_daily_bin1053.fits scfile=/scratch/kocevski/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.fits outfile=/scratch/kocevski/436788/cmap_HighResolution_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.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/436788/ft1_filtered_4FGL_J2243.4-2544_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/436788/ft2_4FGL_J2243.4-2544_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436788/Model_4FGL_J2243.4-2544_daily_bin1053.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/436788/ft1_filtered_4FGL_J2243.4-2544_daily_bin1053.fits.....................!
real 49.79
user 48.31
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2669       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.695       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9371       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.039       1.0000         .10000E-03   10000.    
     8 'norm      '    53.875       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0984       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.364       1.0000         .10000E-03   10000.    
    18 'norm      '    .46403       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9910       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .23666       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74366       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1858       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=   6185.437     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2929 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.638       -.15458E-05** at limit **
   2  Prefactor     .10000E-03    39.443       -.23390E-05** at limit **
   3  norm          2.2670        .46977       -.17197E-08    .14106E-03
   4  Prefactor     12.695        10.239        .41110E-07   -.13436E-04
   5  Prefactor     10.175        14.623        .11404E-06   -.31612E-05
   6  Prefactor     3.9376        7.9290        .40963E-06   -.44991E-04
   7  Prefactor     74.032        59.111       -.99028E-06   -.11723E-03
   8  norm          53.876        23.133        .70693E-07    .55438E-04
   9  Prefactor     .10000E-03    5.6081       -.19739E-06** at limit **
  10  Prefactor     .10000E-03    5.7514        .28627E-06** at limit **
  11  norm          1.0990        1.1844        .12911E-06   -.36532E-04
  12  norm          .10000E-03    .96004       -.24411E-07** at limit **
  13  Prefactor     .10000E-03    23.504        .62474E-06** at limit **
  14  Prefactor     .10000E-03    4.4407        .67101E-09** at limit **
  15  norm          .10000E-03    2.0814       -.18451E-06** at limit **
  16  Prefactor     .10000E-03    13.579       -.61971E-06** at limit **
  17  Prefactor     12.370        9.4447        .17365E-05   -.30006E-03
  18  norm          .46415        .69728       -.40864E-06   -.52025E-03
  19  Prefactor     .10000E-03    35.166        .19411E-05** at limit **
  20  Prefactor     5.9916        10.270        .14205E-06   -.19255E-04
  21  Prefactor     .10000E-03    9.5126       -.57466E-06** at limit **
  22  norm          .24891        2.0572        .78374E-06   -.81084E-03
  23  Prefactor     .10000E-03    12.142        .12987E-05** at limit **
  24  Normalizat    .74359        .18820       -.70041E-06    .62953E-06
  25  Prefactor     1.1858        .17538        .86965E-07   -.34587E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  norm       = 2.26696
  Prefactor  = 12.6954
  Prefactor  = 10.1748
  Prefactor  = 3.93757
  Prefactor  = 74.0325
  norm       = 53.8758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3699
  norm       = 0.464148
  Prefactor  = 0.000100003
  Prefactor  = 5.99156
  Prefactor  = 0.0001
  norm       = 0.248906
  Prefactor  = 0.000100001
  Normalizat = 0.743591
  Prefactor  = 1.18583
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.437     FROM HESSE     STATUS=OK           427 CALLS     3356 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2670        .47025        .23818E-04   -1.5407    
   4  Prefactor     12.695        10.236        .11242E-03   -1.4995    
   5  Prefactor     10.175        14.613        .12562E-03   -1.5070    
   6  Prefactor     3.9376        7.9712        .20331E-03   -1.5311    
   7  Prefactor     74.032        59.618        .46661E-04   -1.3985    
   8  norm          53.876        23.139        .54646E-04   -1.4239    
   9  Prefactor     .10000E-03    5.6199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0990        1.1545        .83274E-04   -1.5498    
  12  norm          .10000E-03    .98194        .75225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4628        .16182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1188        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.370        9.8110        .56961E-03   -1.5004    
  18  norm          .46415        .66977        .58101E-03   -1.5572    
  19  Prefactor     .10000E-03    36.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9916        10.260        .16405E-03   -1.5218    
  21  Prefactor     .10000E-03    9.9672        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .24891        8.3419        .20474E-02   -1.5608    
  23  Prefactor     .10000E-03    12.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .74359        .23085        .28561E-03   -1.0220    
  25  Prefactor     1.1858        .21665        .22335E-03   -.86768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32976e-09
Minuit parameter uncertainties:
  1  0.000323983
  2  0.000802398
  3  0.470249
  4  10.2378
  5  14.6178
  6  7.97332
  7  59.6664
  8  23.1433
  9  2.56333e-05
  10  3.5234e-05
  11  1.15455
  12  1.89349e-06
  13  0.000162887
  14  6.17024e-07
  15  1.28509e-05
  16  0.000108271
  17  9.81232
  18  0.66978
  19  0.00063049
  20  10.2635
  21  8.16164e-05
  22  2.88176
  23  0.000248022
  24  0.231158
  25  0.21681
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.893e-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.186e+00  2.168e-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.436e-01  2.312e-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: 3.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436788/likelihoodResults_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.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) = 6185.44138478
delta logL = -0.00475978413215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6185.43661681
delta logL = 8.19282740849e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2519       1.0000          .0000       5.0000    
     3 'Normalizat'    .74359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1858       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6185.437     FROM MIGRAD    STATUS=FAILED        93 CALLS      307 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1.1945        .12873E-02** at limit **
   2  alpha         2.2716        3.4968        .50000       -.85767E-04
   3  Normalizat    .74359        .21680        .28561E-03   -.44184E-05
   4  Prefactor     1.1858        .21076        .22335E-03   -.17812E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6185.437     FROM SIMPLEX   STATUS=PROGRESS     126 CALLS      433 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.1945        .12976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2716        3.4968        .74960E-03   -.91493E-01
   3  Normalizat    .74359        .21680        .68634E-04   -1.0220    
   4  Prefactor     1.1858        .21076        .65146E-04   -.86769    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6185.435     FROM MIGRAD    STATUS=FAILED       222 CALLS      655 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12785E-01    53.463        .58772E-03    .29582E-03
   2  alpha         3.4757        3.5748        .50000        .43134E-04
   3  Normalizat    .74177        .28675E-01    .22848E-05   -.30352E-03
   4  Prefactor     1.1867        .27826E-01    .89340E-05   -.65153E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0127847
  alpha      = 3.47569
  Normalizat = 0.741766
  Prefactor  = 1.18666
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.435     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      686 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12785E-01    67.303        .23509E-04   -1.5685    
   2  alpha         3.4757        2.6973        .50000        .40093    
   3  Normalizat    .74177        .32112E-01    .45697E-06   -1.0227    
   4  Prefactor     1.1867        .31362E-01    .17868E-05   -.86743    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89692e-07
Minuit parameter uncertainties:
  1  1.85001
  2  23.9516
  3  0.0321125
  4  0.0313622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436788': 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): 1
logL (Free Index) = 6185.43544671
delta logL = 0.00117828940074

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.278e-02  1.850e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  3.476e+00  2.395e+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.187e+00  3.136e-02  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.418e-01  3.211e-02  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/436788/cmap_HighResolution_512265601_512524801_4FGL_J2243.4-2544_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='3.93e-08', time_completed='2021-09-28 18:50:26.245376', job_id='436788', GAL2='1.19', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632880226.25', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.18e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1053' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 436788: <4FGL_J2243.4-2544_daily_bin1053> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1053> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:35:39 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:35:41 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:41 2021
Terminated at Tue Sep 28 18:50:27 2021
Results reported at Tue Sep 28 18:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1053 340.865 -25.7363 512265601 512524801 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 :                                   681.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            888 sec.

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

