aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 92 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin1773
RA = 190.984, Dec = -2.3082
tmin = 698889601, tmax = 699148801
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='790529', job_status='RUN', time_executed='2023-02-27 09:49:16.728285', time_epoch_executed='1677520156.73' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/790529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/790529/ft1_4FGL_J1243.9-0218_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/790529/ft1_4FGL_J1243.9-0218_daily_bin1773.fits outfile=/scratch/kocevski/790529/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1773.fits ra=190.984 dec=-2.3082 rad=12.0 tmin=698889601.0 tmax=699148801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.96
user 2.74
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.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/790529/ft1_filteredMKT_4FGL_J1243.9-0218_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.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.34
sys 0.15

Number of photons that the gtmktime cut: 276

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/790529/ltcube_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.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/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits
.....................!
real 15.07
user 14.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/790529/ltcube_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.fits outfile=/scratch/kocevski/790529/expmap_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.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/790529/ltcube_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.fits
.....................!
real 192.43
user 187.22
sys 4.37

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1243.9-0218 @ 190.984 -2.3082

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits scfile=/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits outfile=/scratch/kocevski/790529/cmap_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.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=190.984 yref=-2.3082 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits scfile=/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits outfile=/scratch/kocevski/790529/cmap_HighResolution_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.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=190.984 yref=-2.3082 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/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/790529/Model_4FGL_J1243.9-0218_daily_bin1773.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/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits......................!
real 33.41
user 32.13
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits', '/scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits', expMap='/scratch/kocevski/790529/expmap_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.fits', expCube='/scratch/kocevski/790529/ltcube_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/790529/Model_4FGL_J1243.9-0218_daily_bin1773.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1243.9-0218'

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.163e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/790529/ft1_filtered_4FGL_J1243.9-0218_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/790529/ft2_4FGL_J1243.9-0218_daily_bin1773.fits
Exposure map: /scratch/kocevski/790529/expmap_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.fits
Exposure cube: /scratch/kocevski/790529/ltcube_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/790529/Model_4FGL_J1243.9-0218_daily_bin1773.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) = 3266.79994334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39396E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12729E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .23048E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5349       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.9350       1.0000          .0000       .10000E+07
     6 'Prefactor '    .42974       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.094       1.0000          .0000       .10000E+07
     8 'norm      '    .83538E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .18954E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .30299E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .21332E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .52986E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .36010E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .69414E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    14.295       1.0000          .0000       .10000E+07
    16 'norm      '    5.3047       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.7319       1.0000          .0000       .10000E+07
    18 'Prefactor '    53.961       1.0000          .0000       .10000E+07
    19 'norm      '    .74486E-05   1.0000          .0000       .10000E+07
    20 'norm      '    .57542       1.0000          .0000       .10000E+07
    21 'Prefactor '    58.429       1.0000          .0000       .10000E+07
    22 'norm      '    29.168       1.0000          .0000       .10000E+07
    23 'norm      '    3.3845       1.0000          .0000       .10000E+07
    24 'Prefactor '    10.022       1.0000          .0000       .10000E+07
    25 'Normalizat'    .73529       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3266.629     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2290 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48184E-07    22.845       -.31221E-05** at limit **
   2  Prefactor     .54454E-05    27.726       -.51042E-05** at limit **
   3  Prefactor     .31337E-05    43.798       -.10834E-05** at limit **
   4  Prefactor     2.7614        22.471        .44125E-05   -.33321E-01
   5  Prefactor     4.0443        13.127       -.89886E-06   -.40726E-01
   6  Prefactor     .74218E-06    9.7171       -.21793E-05** at limit **
   7  Prefactor     21.522        9.9968        .55739E-06    .71698E-01
   8  norm           .0000        3.3544       -.73474E-06** at limit **
   9  norm          .48345E-04    10.590       -.26183E-05** at limit **
  10  Prefactor     .27532E-04    65.054       -.30007E-05** at limit **
  11  norm          .99038E-04    56.249       -.60837E-05** at limit **
  12  Prefactor     .60307E-01    10.129        .36894E-05** at limit **
  13  norm           .0000        2.6898        .11466E-05** at limit **
  14  Prefactor     .76050E-08    8.3653        .39135E-05** at limit **
  15  Prefactor     14.282        16.265        .26555E-05   -.20044E-02
  16  norm          5.3075        4.5566        .93372E-06    .16446E-02
  17  Prefactor     4.0238        13.976        .21113E-06   -.50319E-04
  18  Prefactor     56.340        66.193        .45253E-05    .44836E-01
  19  norm          .37637E-07    13.847       -.21839E-05** at limit **
  20  norm          .57286        .33636        .15079E-07   -.80513E-02
  21  Prefactor     59.153        31.978        .21040E-05   -.17431    
  22  norm          28.769        19.625        .17416E-05    .53081E-01
  23  norm          3.3922        10.000        .61762E-06   -.37478E-03
  24  Prefactor     9.9617        3.2707       -.95611E-07    .16849E-01
  25  Normalizat    .73548        .42036        .90307E-06    .15153E-04
  26  Prefactor     1.2402        .28507       -.47863E-04    .35349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.81837e-08
  Prefactor  = 5.44537e-06
  Prefactor  = 3.13372e-06
  Prefactor  = 2.76143
  Prefactor  = 4.04428
  Prefactor  = 7.42184e-07
  Prefactor  = 21.5218
  norm       = 0
  norm       = 4.83454e-05
  Prefactor  = 2.75324e-05
  norm       = 9.90378e-05
  Prefactor  = 0.0603065
  norm       = 0
  Prefactor  = 7.60503e-09
  Prefactor  = 14.2821
  norm       = 5.30752
  Prefactor  = 4.02379
  Prefactor  = 56.3402
  norm       = 3.76366e-08
  norm       = 0.57286
  Prefactor  = 59.1533
  norm       = 28.769
  norm       = 3.3922
  Prefactor  = 9.96166
  Normalizat = 0.735479
  Prefactor  = 1.24021
 **********
 **   18 **HESSE 
 **********

 FCN=   3266.629     FROM HESSE     STATUS=OK           524 CALLS     2814 TOTAL
                     EDM=   .48E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48184E-07    25.648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .54454E-05    31.727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .31337E-05    49.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7614        8709.3        .64122E-03   -1.5675    
   5  Prefactor     4.0443        160.33        .59264E-03   -1.5668    
   6  Prefactor     .74218E-06    109.56        .86118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.522        29.171        .21779E-03   -1.5615    
   8  norm           .0000        3.3592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .48345E-04    51.702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27532E-04    115.81        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99038E-04    126.51        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .60307E-01    6.7907        .89488E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.3583        .19827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .76050E-08    8.3689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.282        17.338        .26465E-03   -1.5632    
  16  norm          5.3075        4.6643        .43614E-03   -1.5662    
  17  Prefactor     4.0238        14.093        .52245E-03   -1.5668    
  18  Prefactor     56.340        74.322        .13614E-03   -1.5558    
  19  norm          .37637E-07    13.887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .57286        .34110        .52351E-03   -1.5693    
  21  Prefactor     59.153        106.71        .13083E-03   -1.5554    
  22  norm          28.769        21.188        .18519E-03   -1.5601    
  23  norm          3.3922        10.029        .54974E-03   -1.5671    
  24  Prefactor     9.9617        26.487        .31627E-03   -1.5645    
  25  Normalizat    .73548        .37903        .89981E-01   -1.0251    
  26  Prefactor     1.2402        .24394        .49023E-01   -.85103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84849e-05
Minuit parameter uncertainties:
  1  0.00222356
  2  0.0262883
  3  0.0249207
  4  310.614
  5  50.9293
  6  0.0180355
  7  29.1715
  8  8.28575e-06
  9  0.0999918
  10  0.112935
  11  0.223872
  12  1.27988
  13  6.27672e-06
  14  0.000503736
  15  17.338
  16  4.66431
  17  14.093
  18  74.323
  19  0.00144576
  20  0.3411
  21  106.711
  22  21.1877
  23  10.0286
  24  26.4869
  25  0.380389
  26  0.244163
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  4.024e+00  1.409e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.240e+00  2.442e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  7.355e-01  3.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 190.984 -2.308
Photon Flux Upper Limit: 1.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/790529/likelihoodResults_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.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) = 3266.57687461
delta logL = 0.052045729647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3266.57473237
delta logL = 0.054187978722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4472       1.0000          .0000       .10000E+07
     2 'Index     '    2.6098       1.0000          .0000       10.000    
     3 'Normalizat'    .72069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6000E+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=   3266.575     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      266 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4485        11.572        .21779E-04   -.19533E-02
   2  Index         2.6108        1.3405        .85127E-02   -.40147E-04
   3  Normalizat    .72084        .40671        .40229E-03    .23792E-03
   4  Prefactor     1.2435        .28006        .21643E-03    .42910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.44846
  Index      = 2.61078
  Normalizat = 0.720845
  Prefactor  = 1.24346
 **********
 **   18 **HESSE 
 **********

 FCN=   3266.575     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4485        10.361        .87118E-06   -1.5671    
   2  Index         2.6108        1.2035        .34051E-03   -.49820    
   3  Normalizat    .72084        .40695        .16092E-04   -1.0308    
   4  Prefactor     1.2435        .28010        .43286E-04   -.85004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39624e-10
Minuit parameter uncertainties:
  1  10.3611
  2  1.21906
  3  0.408672
  4  0.280436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/790529': 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) = 3266.57473156
delta logL = 0.0541887830823

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  3.448e+00  1.036e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.611e+00  1.219e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.781e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  1.243e+00  2.804e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  7.208e-01  4.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 190.984 -2.308

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/790529/cmap_HighResolution_698889601_699148801_4FGL_J1243.9-0218_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.92e-07', time_completed='2023-02-27 09:57:25.899972', job_id='790529', GAL2='1.24', fit_tolerance='1e-08', EG2='0.72', EG='0.74', time_epoch_completed='1677520645.9', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='5.42e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1773' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:57:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 790529: <4FGL_J1243.9-0218_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 09:45:17 2023
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:45:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:45:17 2023
Terminated at Mon Feb 27 09:57:26 2023
Results reported at Mon Feb 27 09:57:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1773 190.984 -2.3082 698889601 699148801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1243.9-0218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   490.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            729 sec.

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

