/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 148 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 = 7389
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1238.3-1959_daily_bin386
RA = 189.594, Dec = -19.9945
tmin = 339379201, tmax = 339638401
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='847987', job_status='RUN', time_executed='2021-09-06 02:08:06.436765', time_epoch_executed='1630919286.44' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847987

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847987/ft1_4FGL_J1238.3-1959_daily_bin386.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847987/ft1_4FGL_J1238.3-1959_daily_bin386.fits outfile=/scratch/kocevski/847987/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin386.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=339379201.0 tmax=339638401.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 5.00
user 4.61
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.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/847987/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin386.fits evtable="EVENTS" outfile="/scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.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.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits" evtable="EVENTS" scfile=/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits sctable="SC_DATA" outfile=/scratch/kocevski/847987/ltcube_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.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/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits
.....................!
real 12.15
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits sctable="SC_DATA" expcube=/scratch/kocevski/847987/ltcube_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.fits outfile=/scratch/kocevski/847987/expmap_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.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/847987/ltcube_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.fits
.....................!
real 156.30
user 151.88
sys 4.01

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

Setting source of interest to:
4FGL J1238.3-1959 @ 189.594 -19.9945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits scfile=/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits outfile=/scratch/kocevski/847987/cmap_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.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.594 yref=-19.9945 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.34
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits scfile=/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits outfile=/scratch/kocevski/847987/cmap_HighResolution_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.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.594 yref=-19.9945 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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/847987/Model_4FGL_J1238.3-1959_daily_bin386.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/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits.....................!
real 65.74
user 64.50
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits', '/scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits', expMap='/scratch/kocevski/847987/expmap_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.fits', expCube='/scratch/kocevski/847987/ltcube_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847987/Model_4FGL_J1238.3-1959_daily_bin386.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.3-1959'

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/847987/ft1_filtered_4FGL_J1238.3-1959_daily_bin386.fits
Spacecraft file(s): /scratch/kocevski/847987/ft2_4FGL_J1238.3-1959_daily_bin386.fits
Exposure map: /scratch/kocevski/847987/expmap_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.fits
Exposure cube: /scratch/kocevski/847987/ltcube_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847987/Model_4FGL_J1238.3-1959_daily_bin386.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) = 10570.895146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.377       1.0000         .10000E-03   10000.    
     3 'norm      '    .10516E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.401       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7918       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1498       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4654       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3298       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7166       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0381       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1919       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10570.89     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2210 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.701        .13394E-06** at limit **
   2  Prefactor     16.376        12.250       -.35608E-05    .31221E-04
   3  norm          .10001E-03    2.1892        .16592E-05** at limit **
   4  Prefactor     .10000E-03    1.8635        .27925E-07** at limit **
   5  Prefactor     65.399        47.160       -.12836E-05    .67632E-04
   6  Prefactor     .10000E-03    21.574       -.16172E-06** at limit **
   7  Prefactor     .10000E-03    4.7622        .32490E-07** at limit **
   8  Prefactor     10.457        27.955       -.68263E-06    .26416E-04
   9  Prefactor     .10000E-03    5.4429        .20549E-07** at limit **
  10  Prefactor     4.7913        5.3060       -.40383E-06    .18976E-03
  11  Prefactor     7.1498        2.2600        .47415E-07   -.24920E-04
  12  Prefactor     1.4649        .78281        .51092E-07   -.55879E-03
  13  Prefactor     8.3286        9.2317       -.91383E-06    .23941E-03
  14  norm          3.7165        .97271       -.20646E-07    .82685E-05
  15  Prefactor     .10000E-03    139.65       -.72885E-06** at limit **
  16  norm          .10000E-03    2.1032       -.79053E-08** at limit **
  17  norm          1.0194        3.6618       -.19980E-06   -.62834E-04
  18  Prefactor     .10000E-03    2.0898       -.10725E-07** at limit **
  19  norm          .10000E-03    .66410       -.62346E-08** at limit **
  20  Normalizat    1.1920        .19491        .11233E-05   -.24058E-03
  21  Prefactor     .98994        .97259E-01    .38806E-08   -.25342E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.3763
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 65.3987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4567
  Prefactor  = 0.0001
  Prefactor  = 4.79129
  Prefactor  = 7.1498
  Prefactor  = 1.46491
  Prefactor  = 8.32855
  norm       = 3.71648
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.01941
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.19204
  Prefactor  = 0.989938
 **********
 **   18 **HESSE 
 **********

 FCN=   10570.89     FROM HESSE     STATUS=OK           315 CALLS     2525 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.376        12.486        .98969E-04   -1.4898    
   3  norm          .10001E-03    8.7502        .28010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8885        .13702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     65.399        47.053        .49626E-04   -1.4089    
   6  Prefactor     .10000E-03    21.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.457        27.932        .12387E-03   -1.5061    
   9  Prefactor     .10000E-03    5.4540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7913        5.2859        .18379E-03   -1.5270    
  11  Prefactor     7.1498        2.2602        .81511E-04   -1.5173    
  12  Prefactor     1.4649        5.2253        .17761E-02   -1.5466    
  13  Prefactor     8.3286        9.1915        .13890E-03   -1.5131    
  14  norm          3.7165        .97181        .49780E-04   -1.5322    
  15  Prefactor     .10000E-03    141.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1122        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0194        3.6680        .35232E-03   -1.5506    
  18  Prefactor     .10000E-03    2.1073        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .67478        .81804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1920        .23246        .33792E-03   -.86849    
  21  Prefactor     .98994        .11704        .18659E-03   -.93066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53868e-09
Minuit parameter uncertainties:
  1  3.49177e-06
  2  12.4881
  3  0.000507091
  4  3.99128e-06
  5  47.0801
  6  2.33316e-05
  7  6.84763e-06
  8  27.9672
  9  4.36281e-06
  10  5.28642
  11  2.26027
  12  5.22694
  13  9.19308
  14  0.971818
  15  0.00023465
  16  1.82391e-06
  17  3.6688
  18  3.81651e-08
  19  5.99212e-07
  20  0.232665
  21  0.117071
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.465e+00  5.227e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.899e-01  1.171e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.192e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847987/likelihoodResults_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.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) = 10570.870694
delta logL = 0.0171631144003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10570.8651666
delta logL = 0.0226904281699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1118       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8501       1.0000          .0000       10.000    
     3 'Normalizat'    1.1936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10570.87     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      229 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1207        95.329        .70971E-02    .44333E-03
   2  Index         1.8501        1.5791        .50000        .65752E-06
   3  Normalizat    1.1937        .22427E-01    .76301E-01    .67301E-05
   4  Prefactor     .98918        .11321E-01    .46132E-01   -.35283E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.12074
  Index      = 1.85006
  Normalizat = 1.19369
  Prefactor  = 0.989184
 **********
 **   18 **HESSE 
 **********

 FCN=   10570.87     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1207        6.5317        .28388E-03   -1.5417    
   2  Index         1.8501        1.2781        .94336E-02   -.68154    
   3  Normalizat    1.1937        .22578        .33771E-03   -.86798    
   4  Prefactor     .98918        .11566        .18665E-03   -.93091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00174e-12
Minuit parameter uncertainties:
  1  6.53387
  2  1.30235
  3  0.225969
  4  0.115693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847987': 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) = 10570.8651656
delta logL = 0.022691468168

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  2.121e+00  6.534e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.850e+00  1.302e+00  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.892e-01  1.157e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.194e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 189.594 -19.994

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/847987/cmap_HighResolution_339379201_339638401_4FGL_J1238.3-1959_daily_bin386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-06 02:20:25.814219', job_id='847987', GAL2='0.99', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630920025.81', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.27e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='386' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:20:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 847987: <4FGL_J1238.3-1959_daily_bin386> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin386> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 02:05:21 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:05:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 02:05:28 2021
Terminated at Mon Sep  6 02:20:26 2021
Results reported at Mon Sep  6 02:20:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin386 189.594 -19.9945 339379201 339638401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            905 sec.

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

