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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1165
RA = 340.865, Dec = -25.7363
tmin = 541296001, tmax = 541555201
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='438031', job_status='RUN', time_executed='2021-09-28 18:44:24.395460', time_epoch_executed='1632879864.4' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438031/ft1_4FGL_J2243.4-2544_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438031/ft1_4FGL_J2243.4-2544_daily_bin1165.fits outfile=/scratch/kocevski/438031/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1165.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=541296001.0 tmax=541555201.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.77
user 3.56
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.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/438031/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1165.fits evtable="EVENTS" outfile="/scratch/kocevski/438031/ft1_filtered_4FGL_J2243.4-2544_daily_bin1165.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/438031/ft1_filtered_4FGL_J2243.4-2544_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/438031/ltcube_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.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/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.fits
.....................!
real 13.37
user 13.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438031/ft1_filtered_4FGL_J2243.4-2544_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/438031/ltcube_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.fits outfile=/scratch/kocevski/438031/expmap_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.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/438031/ltcube_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.fits
.....................!
real 192.14
user 186.84
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/438031/ft1_filtered_4FGL_J2243.4-2544_daily_bin1165.fits scfile=/scratch/kocevski/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.fits outfile=/scratch/kocevski/438031/cmap_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438031/ft1_filtered_4FGL_J2243.4-2544_daily_bin1165.fits scfile=/scratch/kocevski/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.fits outfile=/scratch/kocevski/438031/cmap_HighResolution_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438031/ft1_filtered_4FGL_J2243.4-2544_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/438031/ft2_4FGL_J2243.4-2544_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438031/Model_4FGL_J2243.4-2544_daily_bin1165.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/438031/ft1_filtered_4FGL_J2243.4-2544_daily_bin1165.fits.....................!
real 41.78
user 40.31
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    104.51       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    83.598       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .80970E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .20393       1.0000         .10000E-03   10000.    
    13 'Prefactor '    205.97       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0502       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.674       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7918       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1934       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90833       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4442.012     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2650 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    151.63       -.10009E-04** at limit **
   2  Prefactor     104.50        2.7545       -.11717E-07   -.87947E-03
   3  norm          1.1905        .47995        .81229E-06    .22612E-03
   4  Prefactor     2.6186        1.4189       -.16453E-05   -.35391E-03
   5  Prefactor     .10000E-03    10.296       -.20900E-05** at limit **
   6  Prefactor     6.6338        11.726        .11637E-04    .42164E-03
   7  Prefactor     83.437        26.144        .41285E-06   -.10470E-01
   8  norm          .10000E-03    12.710       -.10574E-04** at limit **
   9  Prefactor     .10011E-03    102.60       -.77952E-04** at limit **
  10  Prefactor     .10000E-03    12.532        .25701E-04** at limit **
  11  norm          .80398E-01    2.3468       -.57018E-05   -.47048E-04
  12  norm          .16565        28.446        .56749E-05   -.43256E-04
  13  Prefactor     206.66        114.13        .28013E-05   -.45357E-02
  14  Prefactor     8.0519        2.0968        .17929E-05    .18605E-02
  15  norm          .10000E-03    2.8213        .61819E-05** at limit **
  16  Prefactor     .10013E-03    81.280        .49658E-04** at limit **
  17  Prefactor     21.661        5.5789       -.32411E-05   -.74545E-02
  18  norm          1.7095        1.0359        .80594E-06   -.53650E-05
  19  Prefactor     .10000E-03    44.802       -.30713E-04** at limit **
  20  Prefactor     .10000E-03    8.1277        .24958E-05** at limit **
  21  Prefactor     4.7903        9.3330       -.18857E-04   -.26299E-03
  22  norm          .10000E-03    1.1942       -.37015E-05** at limit **
  23  Prefactor     .10000E-03    22.184        .10868E-05** at limit **
  24  Normalizat    1.1928        .29982        .30769E-06    .14190E-04
  25  Prefactor     .90894        .25843        .14578E-04    .15893E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 104.496
  norm       = 1.19045
  Prefactor  = 2.61856
  Prefactor  = 0.0001
  Prefactor  = 6.63379
  Prefactor  = 83.4367
  norm       = 0.0001
  Prefactor  = 0.000100106
  Prefactor  = 0.0001
  norm       = 0.0803985
  norm       = 0.165646
  Prefactor  = 206.658
  Prefactor  = 8.05188
  norm       = 0.0001
  Prefactor  = 0.000100135
  Prefactor  = 21.6609
  norm       = 1.70946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79026
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19276
  Prefactor  = 0.908935
 **********
 **   18 **HESSE 
 **********

 FCN=   4442.012     FROM HESSE     STATUS=OK           485 CALLS     3135 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    152.83        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     104.50        114.18        .98334E-03   -1.3660    
   3  norm          1.1905        .48203        .64460E-02   -1.5490    
   4  Prefactor     2.6186        21.349        .62971E-02   -1.5384    
   5  Prefactor     .10000E-03    10.291        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6338        11.781        .38944E-02   -1.5193    
   7  Prefactor     83.437        80.570        .10983E-02   -1.3879    
   8  norm          .10000E-03    12.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10011E-03    104.72        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .80398E-01    .93091        .20736E-01   -1.5651    
  12  norm          .16565        3.2844        .61196E-01   -1.5627    
  13  Prefactor     206.66        109.22        .70408E-03   -1.2823    
  14  Prefactor     8.0519        16.137        .35328E-02   -1.5140    
  15  norm          .10000E-03    2.8083        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10013E-03    83.211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.661        16.393        .21509E-02   -1.4777    
  18  norm          1.7095        1.2515        .80400E-02   -1.5446    
  19  Prefactor     .10000E-03    44.822        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.1122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7903        9.3904        .45948E-02   -1.5270    
  22  norm          .10000E-03    1.1931        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1928        .25302        .61593E-01   -.86827    
  25  Prefactor     .90894        .21848        .45111E-01   -.95830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07001e-06
Minuit parameter uncertainties:
  1  0.00192322
  2  114.425
  3  0.482028
  4  14.9606
  5  4.7167e-07
  6  11.7852
  7  80.6752
  8  2.36074e-05
  9  0.00666019
  10  7.46011e-05
  11  0.546822
  12  1.47485
  13  109.323
  14  16.1453
  15  2.45122e-06
  16  0.0067035
  17  16.3964
  18  1.25148
  19  0.000119221
  20  4.96622e-06
  21  9.39326
  22  1.57734e-06
  23  3.36327e-05
  24  0.253281
  25  0.218693
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.656e-01  1.475e+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:  9.089e-01  2.187e-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.193e+00  2.533e-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: 9.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438031/likelihoodResults_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.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) = 4441.96795809
delta logL = 0.0437097428921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4441.91049891
delta logL = 0.101168921815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84900       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8492       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91300       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=   4441.910     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      255 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84905        2.6875        .13301E-03    .16120E-03
   2  alpha         2.8488        1.5119        .19868E-01   -.11953E-04
   3  Normalizat    1.1749        .29127        .27381E-03    .19680E-03
   4  Prefactor     .91297        .25383        .26871E-03    .25418E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.849047
  alpha      = 2.84876
  Normalizat = 1.17485
  Prefactor  = 0.912974
 **********
 **   18 **HESSE 
 **********

 FCN=   4441.910     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84905        2.4037        .53206E-05   -1.5524    
   2  alpha         2.8488        1.3715        .79474E-03    .13996    
   3  Normalizat    1.1749        .29146        .54762E-04   -.87383    
   4  Prefactor     .91297        .25390        .53741E-04   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66157e-10
Minuit parameter uncertainties:
  1  2.40394
  2  1.45356
  3  0.291864
  4  0.254225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438031': 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) = 4441.91049885
delta logL = 0.101168985197

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.130e-01  2.542e-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.175e+00  2.919e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/438031/cmap_HighResolution_541296001_541555201_4FGL_J2243.4-2544_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-05', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2021-09-28 18:53:36.995986', job_id='438031', GAL2='0.91', fit_tolerance='1e-08', EG2='1.17', EG='1.19', time_epoch_completed='1632880417.0', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.01e-01', ts2='0.21', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1165' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:53:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 438031: <4FGL_J2243.4-2544_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1165> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:19 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:21 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:21 2021
Terminated at Tue Sep 28 18:53:37 2021
Results reported at Tue Sep 28 18:53:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1165 340.865 -25.7363 541296001 541555201 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 :                                   549.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

