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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1032
RA = 340.865, Dec = -25.7363
tmin = 506822401, tmax = 507081601
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='436758', job_status='RUN', time_executed='2021-09-28 18:38:46.250624', time_epoch_executed='1632879526.25' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436758

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436758/ft1_4FGL_J2243.4-2544_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436758/ft2_4FGL_J2243.4-2544_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436758/ft1_4FGL_J2243.4-2544_daily_bin1032.fits outfile=/scratch/kocevski/436758/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1032.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=506822401.0 tmax=507081601.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.51
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436758/ft1_filtered_4FGL_J2243.4-2544_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/436758/ft2_4FGL_J2243.4-2544_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/436758/ltcube_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.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/436758/ft2_4FGL_J2243.4-2544_daily_bin1032.fits
.....................!
real 14.05
user 13.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436758/ft1_filtered_4FGL_J2243.4-2544_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/436758/ft2_4FGL_J2243.4-2544_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/436758/ltcube_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.fits outfile=/scratch/kocevski/436758/expmap_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.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/436758/ltcube_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.fits
.....................!
real 189.71
user 185.33
sys 4.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/436758/ft1_filtered_4FGL_J2243.4-2544_daily_bin1032.fits scfile=/scratch/kocevski/436758/ft2_4FGL_J2243.4-2544_daily_bin1032.fits outfile=/scratch/kocevski/436758/cmap_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.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.52
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436758/ft1_filtered_4FGL_J2243.4-2544_daily_bin1032.fits scfile=/scratch/kocevski/436758/ft2_4FGL_J2243.4-2544_daily_bin1032.fits outfile=/scratch/kocevski/436758/cmap_HighResolution_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436758/ft1_filtered_4FGL_J2243.4-2544_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/436758/ft2_4FGL_J2243.4-2544_daily_bin1032.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436758/Model_4FGL_J2243.4-2544_daily_bin1032.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/436758/ft1_filtered_4FGL_J2243.4-2544_daily_bin1032.fits.....................!
real 57.78
user 56.50
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92533       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.649       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10378E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10624E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32096E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .68976       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.503       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3158       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.246       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91578       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=   7422.196     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2965 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3510       -.43943E-07** at limit **
   2  Prefactor     .10000E-03    11.839       -.26829E-10** at limit **
   3  norm          3.1206        .51433        .58831E-10   -.24135E-03
   4  Prefactor     .10000E-03    2.5601       -.87774E-07** at limit **
   5  Prefactor     .10000E-03    11.496       -.32589E-06** at limit **
   6  Prefactor     .90212        3.7753       -.84628E-06   -.12048E-03
   7  Prefactor     .10000E-03    22.024       -.22618E-06** at limit **
   8  norm          .10000E-03    7.7222       -.31896E-07** at limit **
   9  Prefactor     21.648        19.023        .19864E-06   -.65428E-04
  10  Prefactor     .10000E-03    2.4584       -.15490E-06** at limit **
  11  norm          .10000E-03    .22487       -.65049E-07** at limit **
  12  norm          .10000E-03    .68056       -.30198E-06** at limit **
  13  Prefactor     34.543        31.737        .78801E-06    .77334E-04
  14  Prefactor     .10000E-03    4.5631        .89266E-07** at limit **
  15  norm          .10000E-03    8.8005        .36815E-05** at limit **
  16  Prefactor     .10000E-03    12.160       -.86453E-07** at limit **
  17  Prefactor     .10001E-03    3.7681       -.20993E-05** at limit **
  18  norm          .69001        .38915        .18047E-06    .13946E-02
  19  Prefactor     20.460        44.221        .12899E-05   -.19110E-04
  20  Prefactor     3.3149        9.2210       -.10169E-05    .16878E-03
  21  Prefactor     .10000E-03    3.0247       -.13571E-06** at limit **
  22  norm          .10000E-03    1.1232       -.18997E-07** at limit **
  23  Prefactor     32.244        28.349       -.65158E-07    .25245E-05
  24  Normalizat    1.0542        .16288        .69844E-06    .16088E-03
  25  Prefactor     .91574        .15063        .22209E-06    .33808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.12055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.902123
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6479
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 34.5426
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.690008
  Prefactor  = 20.46
  Prefactor  = 3.31489
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.2435
  Normalizat = 1.05418
  Prefactor  = 0.915737
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.196     FROM HESSE     STATUS=OK           427 CALLS     3392 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1206        .51471        .24359E-04   -1.5355    
   4  Prefactor     .10000E-03    2.5680        .13463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .90212        12.338        .30553E-02   -1.5518    
   7  Prefactor     .10000E-03    22.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.648        18.968        .86085E-04   -1.4777    
  10  Prefactor     .10000E-03    2.4638        .13192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .26648        .79483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .68263        .69129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.543        31.830        .68188E-04   -1.4532    
  14  Prefactor     .10000E-03    4.5938        .17953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.1168        .19456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    41.356        .25016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .69001        .37855        .38146E-04   -1.5542    
  19  Prefactor     20.460        44.254        .88455E-04   -1.4803    
  20  Prefactor     3.3149        9.1453        .22231E-03   -1.5344    
  21  Prefactor     .10000E-03    3.0440        .14631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.1476        .89103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.244        28.363        .70563E-04   -1.4572    
  24  Normalizat    1.0542        .19314        .23740E-03   -.91237    
  25  Prefactor     .91574        .17761        .23865E-03   -.95593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80363e-08
Minuit parameter uncertainties:
  1  8.16227e-07
  2  1.86714e-09
  3  0.514709
  4  1.59695e-06
  5  1.36436e-05
  6  6.67381
  7  1.41749e-05
  8  2.46913e-06
  9  18.9736
  10  4.9372e-06
  11  2.2983e-06
  12  6.09258e-06
  13  31.846
  14  3.0294e-05
  15  0.00012381
  16  9.0246e-05
  17  0.00105473
  18  0.378556
  19  44.3254
  20  9.14918
  21  4.23329e-06
  22  2.51137e-06
  23  28.3749
  24  0.193269
  25  0.177718
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  6.093e-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:  9.157e-01  1.777e-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.054e+00  1.933e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/436758/likelihoodResults_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.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) = 7422.20279185
delta logL = -0.00683134743758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7422.19596048
delta logL = 1.97996996576e-08

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     '    1.9961       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91574       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=   7422.196     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      233 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .86263        .69150E-03** at limit **
   2  alpha         1.8823        3.9092        .16904       -.15031E-06
   3  Normalizat    1.0542        .18553        .23740E-03    .18360E-03
   4  Prefactor     .91574        .17598        .23865E-03    .19702E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.88227
  Normalizat = 1.05418
  Prefactor  = 0.915738
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.196     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .68690        .13830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8823        3.7314        .67617E-02   -.24968    
   3  Normalizat    1.0542        .18576        .94962E-05   -.91237    
   4  Prefactor     .91574        .17619        .95462E-05   -.95593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27223e-11
Minuit parameter uncertainties:
  1  8.64213e-07
  2  119.151
  3  0.185871
  4  0.176299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436758': 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) = 7422.19596005
delta logL = 4.53441316495e-07

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  8.642e-07  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.882e+00  1.192e+02  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:  9.157e-01  1.763e-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.054e+00  1.859e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/436758/cmap_HighResolution_506822401_507081601_4FGL_J2243.4-2544_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-05', job_status='DONE', photon_flux_upper_limit='3.21e-08', time_completed='2021-09-28 18:51:24.811692', job_id='436758', GAL2='0.92', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632880284.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1032' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:51:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 436758: <4FGL_J2243.4-2544_daily_bin1032> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1032 340.865 -25.7363 506822401 507081601 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 :                                   756.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            947 sec.

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

