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


Performing analysis on: 4FGL_J1243.9-0218_daily_bin1716
RA = 190.984, Dec = -2.3082
tmin = 684115201, tmax = 684374401
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='121964', job_status='RUN', time_executed='2022-09-16 16:57:51.001779', time_epoch_executed='1663372671.0' WHERE source_name='4FGL J1243.9-0218' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121964

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121964/ft1_4FGL_J1243.9-0218_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits


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

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

Done.
real 4.09
user 3.85
sys 0.22

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

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

Number of photons that the gtmktime cut: 486

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/121964/ltcube_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.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/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits
.....................!
real 13.73
user 13.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/121964/ltcube_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.fits outfile=/scratch/kocevski/121964/expmap_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.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/121964/ltcube_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.fits
.....................!
real 191.21
user 185.92
sys 4.91

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/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits scfile=/scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits outfile=/scratch/kocevski/121964/cmap_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits scfile=/scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits outfile=/scratch/kocevski/121964/cmap_HighResolution_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/121964/Model_4FGL_J1243.9-0218_daily_bin1716.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/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits.....................!
real 47.02
user 45.73
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits', '/scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits', expMap='/scratch/kocevski/121964/expmap_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.fits', expCube='/scratch/kocevski/121964/ltcube_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/121964/Model_4FGL_J1243.9-0218_daily_bin1716.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/121964/ft1_filtered_4FGL_J1243.9-0218_daily_bin1716.fits
Spacecraft file(s): /scratch/kocevski/121964/ft2_4FGL_J1243.9-0218_daily_bin1716.fits
Exposure map: /scratch/kocevski/121964/expmap_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.fits
Exposure cube: /scratch/kocevski/121964/ltcube_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/121964/Model_4FGL_J1243.9-0218_daily_bin1716.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) = 5452.77042837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2657       1.0000          .0000       .10000E+07
     2 'Prefactor '    64.742       1.0000          .0000       .10000E+07
     3 'Prefactor '    .40874E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .65565E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .24264E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    16.698       1.0000          .0000       .10000E+07
     7 'Prefactor '    .80353E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .72908E-06   1.0000          .0000       .10000E+07
     9 'norm      '    1.8396       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11216E-02   1.0000          .0000       .10000E+07
    11 'norm      '    22.297       1.0000          .0000       .10000E+07
    12 'Prefactor '    .24096E-03   1.0000          .0000       .10000E+07
    13 'norm      '    1.5047       1.0000          .0000       .10000E+07
    14 'Prefactor '    .21430E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.6699       1.0000          .0000       .10000E+07
    16 'norm      '    1.1836       1.0000          .0000       .10000E+07
    17 'Prefactor '    16.498       1.0000          .0000       .10000E+07
    18 'Prefactor '    .31183E-03   1.0000          .0000       .10000E+07
    19 'norm      '    18.672       1.0000          .0000       .10000E+07
    20 'norm      '    .62699       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.9056       1.0000          .0000       .10000E+07
    22 'norm      '    10.326       1.0000          .0000       .10000E+07
    23 'norm      '    .13914E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    3.9709       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.1070       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98084       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=   5452.604     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     2273 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2004        5.9503       -.63045E-07    .16873E-03
   2  Prefactor     65.246        5.3789        .29924E-07   -.59068E-01
   3  Prefactor     .13989E-07    34.209       -.20216E-06** at limit **
   4  Prefactor     .17941E-06    15.647        .11345E-06** at limit **
   5  Prefactor     .27134E-06    12.166        .43966E-06** at limit **
   6  Prefactor     16.847        1.3960        .13633E-08   -.71205E-02
   7  Prefactor      .0000        4.6051        .16780E-06** at limit **
   8  norm           .0000        1.1280       -.26013E-07** at limit **
   9  norm          1.8521        3.7579       -.16427E-06    .94651E-04
  10  Prefactor     .15893E-06    9.3701        .18414E-06** at limit **
  11  norm          22.139        4.4250        .31678E-07   -.33617E-01
  12  Prefactor     .44409E-09    8.3771       -.63881E-06** at limit **
  13  norm          1.5085        .66839        .63740E-08    .28579E-03
  14  Prefactor     .38858E-09    6.0519        .20771E-06** at limit **
  15  Prefactor     2.7787        9.6599       -.54905E-06    .43272E-03
  16  norm          1.1874        1.2227       -.10022E-06   -.13244E-02
  17  Prefactor     16.490        9.4559        .60217E-08   -.64089E-03
  18  Prefactor     .27423E-06    14.660       -.55761E-07** at limit **
  19  norm          18.549        1.5163        .41060E-08    .29322E-03
  20  norm          .61855        .29847        .22517E-07    .34721E-03
  21  Prefactor     19.003        108.48       -.10475E-05   -.39177E-03
  22  norm          9.8788        10.591       -.50863E-07   -.22596E-01
  23  norm          .18319E-08    10.113        .73960E-07** at limit **
  24  Prefactor     4.0059        8.6109        .16900E-06    .49928E-01
  25  Normalizat    1.1050        .29250        .96034E-05   -.30689E-05
  26  Prefactor     .97875        .20397       -.29208E-05   -.23012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20041
  Prefactor  = 65.2458
  Prefactor  = 1.39888e-08
  Prefactor  = 1.79412e-07
  Prefactor  = 2.71339e-07
  Prefactor  = 16.8468
  Prefactor  = 0
  norm       = 0
  norm       = 1.8521
  Prefactor  = 1.58928e-07
  norm       = 22.1388
  Prefactor  = 4.44089e-10
  norm       = 1.5085
  Prefactor  = 3.88578e-10
  Prefactor  = 2.77871
  norm       = 1.1874
  Prefactor  = 16.4898
  Prefactor  = 2.74225e-07
  norm       = 18.5494
  norm       = 0.618546
  Prefactor  = 19.0034
  norm       = 9.87882
  norm       = 1.83187e-09
  Prefactor  = 4.00593
  Normalizat = 1.10498
  Prefactor  = 0.978755
 **********
 **   18 **HESSE 
 **********

 FCN=   5452.604     FROM HESSE     STATUS=OK           512 CALLS     2785 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2004        5.9400        .48759E-03   -1.5667    
   2  Prefactor     65.246        26.821        .12429E-03   -1.5546    
   3  Prefactor     .13989E-07    34.591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17941E-06    17.632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27134E-06    19.363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.847        30.661        .24483E-03   -1.5626    
   7  Prefactor      .0000        4.6159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.1269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8521        4.0199        .76881E-03   -1.5681    
  10  Prefactor     .15893E-06    21.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.139        30.727        .21183E-03   -1.5614    
  12  Prefactor     .44409E-09    8.3325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5085        .67880        .81987E-03   -1.5683    
  14  Prefactor     .38858E-09    6.0562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7787        9.6925        .62345E-03   -1.5675    
  16  norm          1.1874        1.2365        .10492E-02   -1.5686    
  17  Prefactor     16.490        9.5101        .24631E-03   -1.5627    
  18  Prefactor     .27423E-06    22.889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          18.549        22.704        .23151E-03   -1.5622    
  20  norm          .61855        .30010        .58148E-03   -1.5692    
  21  Prefactor     19.003        108.71        .41299E-03   -1.5621    
  22  norm          9.8788        10.798        .31157E-03   -1.5645    
  23  norm          .18319E-08    10.094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.0059        13.371        .50592E-03   -1.5668    
  25  Normalizat    1.1050        .24997        .69807E-01   -.89592    
  26  Prefactor     .97875        .17289        .46027E-01   -.93441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55386e-07
Minuit parameter uncertainties:
  1  5.94
  2  26.8207
  3  0.00139
  4  0.00355746
  5  0.00458455
  6  30.6617
  7  1.84966e-05
  8  1.07908e-06
  9  4.01993
  10  0.00372499
  11  30.7269
  12  0.000122157
  13  0.678805
  14  9.67483e-05
  15  9.69252
  16  1.23653
  17  9.51015
  18  0.00501048
  19  22.7037
  20  0.300103
  21  90.907
  22  10.7979
  23  0.000271074
  24  13.3714
  25  0.250234
  26  0.172988
Done.

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

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  1.649e+01  9.510e+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

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  9.788e-01  1.730e-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:  1.105e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.93
Ra Dec: 190.984 -2.308
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.56e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 3.48e-05 +/- 2.01e-05

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) = 5451.75453231
delta logL = 0.849941262266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5451.75410037
delta logL = 0.850373197554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.525       1.0000          .0000       .10000E+07
     2 'Index     '    1.6983       1.0000          .0000       10.000    
     3 'Normalizat'    1.1277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97173       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.

 FCN=   5451.754     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      265 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.486        494.36        .20197E-03    .82792E-03
   2  Index         1.6972        5.6374        .15859        .40542E-04
   3  Normalizat    1.1278        .28465        .69213E-01   -.20106E-05
   4  Prefactor     .97177        .16129        .45913E-01   -.11910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4857
  Index      = 1.69722
  Normalizat = 1.12778
  Prefactor  = 0.97177
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.754     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.486        15.071        .40395E-04   -1.5609    
   2  Index         1.6972        .36901        .61332E-02   -.72156    
   3  Normalizat    1.1278        .27512        .30624E-03   -.88865    
   4  Prefactor     .97177        .20119        .23738E-03   -.93677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64456e-12
Minuit parameter uncertainties:
  1  15.0708
  2  0.369604
  3  0.275474
  4  0.201347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121964': 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) = 5451.754092
delta logL = 0.85038156296

Extracting fit parameters...

4FGL J1243.9-0218
   Spectrum: PowerLaw
300    Prefactor:  2.449e+01  1.507e+01  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  1.697e+00  3.696e-01  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:  9.718e-01  2.013e-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:  1.128e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.63
Ra Dec: 190.984 -2.308
Photon Index (Free Index): 1.70 +/- 0.37
Photon Flux (Free Index): 4.62e-08 +/- 3.70e-08
Energy Flux (Free Index): 7.62e-05 +/- 6.92e-05

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/121964/cmap_HighResolution_684115201_684374401_4FGL_J1243.9-0218_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.56e-08', energy_flux2='7.62e-05', photon_flux_error='4.36e-08', dlogl='8.50e-01', energy_flux='3.48e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2022-09-16 17:07:24.307765', photon_index_error2='0.37', photon_index2='1.70', ts='8.93', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='6.92e-05', EG='1.10', time_epoch_completed='1663373244.31', return_code='0', job_id='121964', GAL2='0.97', EG2='1.13', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='3.70e-08', ts2='10.63', photon_index='2.19' WHERE bin_id='1716' AND source_name='4FGL J1243.9-0218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:07:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 121964: <4FGL_J1243.9-0218_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1243.9-0218_daily_bin1716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:55:21 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:56:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:56:32 2022
Terminated at Fri Sep 16 17:07:25 2022
Results reported at Fri Sep 16 17:07:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1243.9-0218_daily_bin1716 190.984 -2.3082 684115201 684374401 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 :                                   575.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            724 sec.

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

