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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1752
RA = 189.625, Dec = -12.028
tmin = 693446401, tmax = 693705601
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='263357', job_status='RUN', time_executed='2022-12-26 00:57:31.458383', time_epoch_executed='1672045051.46' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263357/ft1_4FGL_J1238.5-1201_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263357/ft1_4FGL_J1238.5-1201_daily_bin1752.fits outfile=/scratch/kocevski/263357/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1752.fits ra=189.625 dec=-12.028 rad=12.0 tmin=693446401.0 tmax=693705601.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.47
user 3.23
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.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/263357/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/263357/ltcube_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.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/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits
.....................!
real 13.83
user 13.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/263357/ltcube_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.fits outfile=/scratch/kocevski/263357/expmap_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.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/263357/ltcube_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.fits
.....................!
real 191.62
user 186.13
sys 5.07

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

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits scfile=/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits outfile=/scratch/kocevski/263357/cmap_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.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=189.625 yref=-12.028 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 1.41
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits scfile=/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits outfile=/scratch/kocevski/263357/cmap_HighResolution_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.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=189.625 yref=-12.028 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263357/Model_4FGL_J1238.5-1201_daily_bin1752.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/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits.....................!
real 57.63
user 56.29
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits', '/scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits', expMap='/scratch/kocevski/263357/expmap_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.fits', expCube='/scratch/kocevski/263357/ltcube_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263357/Model_4FGL_J1238.5-1201_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263357/ft1_filtered_4FGL_J1238.5-1201_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/263357/ft2_4FGL_J1238.5-1201_daily_bin1752.fits
Exposure map: /scratch/kocevski/263357/expmap_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.fits
Exposure cube: /scratch/kocevski/263357/ltcube_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263357/Model_4FGL_J1238.5-1201_daily_bin1752.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) = 6667.68760704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38125E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .55511E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.1450       1.0000          .0000       .10000E+07
     4 'Prefactor '    .55811E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .67298       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.6676       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.5109       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5221       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11391E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    6.0435       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.2277       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14318E-02   1.0000          .0000       .10000E+07
    13 'norm      '    27.810       1.0000          .0000       .10000E+07
    14 'Prefactor '    269.22       1.0000          .0000       .10000E+07
    15 'norm      '    .31505       1.0000          .0000       .10000E+07
    16 'norm      '    14.815       1.0000          .0000       .10000E+07
    17 'norm      '    .55544E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .61044E-03   1.0000          .0000       .10000E+07
    19 'norm      '    6.5636       1.0000          .0000       .10000E+07
    20 'norm      '    .70294E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    22 'Prefactor '    4.1939       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0388       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0934       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6667.582     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     2016 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    1.5554       -.32098E-06** at limit **
   2  Prefactor      .0000        8.5122        .53050E-06** at limit **
   3  Prefactor     7.1495        1.8696        .55700E-06   -.25120E-02
   4  Prefactor     .87708E-08    14.218        .13594E-05** at limit **
   5  norm          .68609        2.6481        .10002E-06    .95153E-03
   6  Prefactor     8.6139        6.7558       -.39056E-06   -.14025E-02
   7  Prefactor     5.5184        2.5472       -.43017E-06   -.18515E-03
   8  Prefactor     1.5451        7.8192       -.11321E-05    .40038E-04
   9  Prefactor     .55511E-10    5.7341       -.32601E-06** at limit **
  10  Prefactor     6.0599        10.180        .12623E-06   -.25874E-02
  11  Prefactor     4.2135        6.4873       -.20040E-06    .35063E-02
  12  Prefactor     .38858E-08    52.885        .28956E-06** at limit **
  13  norm          27.895        3.5828        .61846E-06   -.73613E-01
  14  Prefactor     273.83        107.54       -.96172E-07   -.29218E-03
  15  norm          .31519        .18268       -.40117E-07    .75961E-02
  16  norm          14.720        12.125       -.34411E-05   -.11457E-01
  17  norm          .55511E-10    2.8114        .72358E-06** at limit **
  18  Prefactor     .24425E-08    13.134       -.11637E-05** at limit **
  19  norm          6.5476        7.5206       -.22580E-06    .81315E-03
  20  norm          .87708E-08    18.020       -.95155E-06** at limit **
  21  Prefactor     .55511E-10    5.4305       -.24472E-06** at limit **
  22  Prefactor     4.1984        5.6525        .51395E-06   -.10316E-02
  23  Normalizat    1.0386        .27442        .63114E-05   -.84609E-04
  24  Prefactor     1.0931        .16360        .56659E-05   -.18135E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 7.14946
  Prefactor  = 8.77076e-09
  norm       = 0.686086
  Prefactor  = 8.61385
  Prefactor  = 5.51842
  Prefactor  = 1.54507
  Prefactor  = 5.55112e-11
  Prefactor  = 6.05995
  Prefactor  = 4.21351
  Prefactor  = 3.88578e-09
  norm       = 27.8953
  Prefactor  = 273.834
  norm       = 0.315192
  norm       = 14.7198
  norm       = 5.55112e-11
  Prefactor  = 2.44249e-09
  norm       = 6.54764
  norm       = 8.77076e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 4.19839
  Normalizat = 1.03863
  Prefactor  = 1.09308
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.582     FROM HESSE     STATUS=OK           449 CALLS     2465 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1.5574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        8.5178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1495        16.241        .37504E-03   -1.5654    
   4  Prefactor     .87708E-08    14.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .68609        2.6539        .62929E-03   -1.5691    
   6  Prefactor     8.6139        6.7535        .34023E-03   -1.5649    
   7  Prefactor     5.5184        2.5449        .42788E-02   -1.5238    
   8  Prefactor     1.5451        7.8693        .86556E-03   -1.5683    
   9  Prefactor     .55511E-10    5.7274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0599        10.216        .40819E-03   -1.5659    
  11  Prefactor     4.2135        6.5582        .48984E-03   -1.5667    
  12  Prefactor     .38858E-08    52.820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          27.895        23.366        .18966E-03   -1.5602    
  14  Prefactor     273.83        107.52        .60954E-04   -1.5377    
  15  norm          .31519        .18657        .57548E-03   -1.5697    
  16  norm          14.720        12.317        .25995E-03   -1.5631    
  17  norm          .55511E-10    2.8079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .24425E-08    13.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5476        7.5299        .39147E-03   -1.5657    
  20  norm          .87708E-08    17.914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    5.4224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1984        5.6585        .49187E-03   -1.5667    
  23  Normalizat    1.0386        .24128        .78066E-01   -.91747    
  24  Prefactor     1.0931        .14107        .37842E-01   -.89688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70452e-07
Minuit parameter uncertainties:
  1  1.34507e-05
  2  3.05323e-05
  3  16.241
  4  0.000708181
  5  2.65391
  6  6.75354
  7  2.54497
  8  6.97384
  9  2.74962e-05
  10  10.2162
  11  6.55823
  12  0.000903246
  13  23.3664
  14  107.519
  15  0.186567
  16  12.3171
  17  2.61568e-05
  18  0.00035887
  19  7.52986
  20  0.000793706
  21  3.60244e-05
  22  5.65853
  23  0.241531
  24  0.141115
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  6.060e+00  1.022e+01  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.093e+00  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.039e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263357/likelihoodResults_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.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) = 6667.14964906
delta logL = 0.432672228018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6667.07799923
delta logL = 0.504322058529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3409       1.0000          .0000       .10000E+07
     2 'Index     '    1.4840       1.0000          .0000       10.000    
     3 'Normalizat'    1.0710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0808       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6667.078     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3409        4.3160        .55349E-03    .52167E-01
   2  Index         1.4834        .47850        .21313       -.77865E-04
   3  Normalizat    1.0709        .22971        .76990E-01    .12995E-04
   4  Prefactor     1.0809        .13905        .38366E-01    .70096E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3409
  Index      = 1.48339
  Normalizat = 1.07092
  Prefactor  = 1.08086
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.078     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3409        5.7817        .18494E-04   -1.5671    
   2  Index         1.4834        .76324        .10583E-01   -.78006    
   3  Normalizat    1.0709        .26613        .34077E-03   -.90691    
   4  Prefactor     1.0809        .16137        .20435E-03   -.90081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63251e-08
Minuit parameter uncertainties:
  1  5.78166
  2  0.769226
  3  0.266461
  4  0.161447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263357': 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) = 6667.07799856
delta logL = 0.504322726957

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  3.341e+00  5.782e+00  0.000e+00  1.000e+06 ( 1.000e-12)
327        Index:  1.483e+00  7.692e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.081e+00  1.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.071e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 1.48 +/- 0.77
Photon Flux (Free Index): 7.75e-09 +/- 1.28e-08
Energy Flux (Free Index): 2.59e-05 +/- 5.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/263357/cmap_HighResolution_693446401_693705601_4FGL_J1238.5-1201_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='2.59e-05', dlogl='5.04e-01', photon_flux2='7.75e-09', job_status='DONE', time_completed='2022-12-26 01:08:23.863907', photon_index_error2='0.77', photon_index2='1.48', ts='0.49', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='5.15e-05', EG='1.04', time_epoch_completed='1672045703.86', return_code='0', job_id='263357', GAL2='1.08', EG2='1.07', return_code2='0', photon_flux_error2='1.28e-08', ts2='1.49', photon_index='2.66' WHERE bin_id='1752' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:08:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 263357: <4FGL_J1238.5-1201_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1752> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec 26 00:55:14 2022
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 00:55:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 00:55:33 2022
Terminated at Mon Dec 26 01:08:24 2022
Results reported at Mon Dec 26 01:08:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1752 189.625 -12.028 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.5-1201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.57 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            790 sec.

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

