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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1187
RA = 189.594, Dec = -19.9945
tmin = 546998401, tmax = 547257601
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='853033', job_status='RUN', time_executed='2021-09-06 02:22:36.796396', time_epoch_executed='1630920156.8' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853033

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853033/ft1_4FGL_J1238.3-1959_daily_bin1187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853033/ft1_4FGL_J1238.3-1959_daily_bin1187.fits outfile=/scratch/kocevski/853033/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1187.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=546998401.0 tmax=547257601.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.64
user 3.33
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.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/853033/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1187.fits evtable="EVENTS" outfile="/scratch/kocevski/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.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.55
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits" evtable="EVENTS" scfile=/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits sctable="SC_DATA" outfile=/scratch/kocevski/853033/ltcube_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.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/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits
.....................!
real 12.89
user 12.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits sctable="SC_DATA" expcube=/scratch/kocevski/853033/ltcube_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.fits outfile=/scratch/kocevski/853033/expmap_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.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/853033/ltcube_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.fits
.....................!
real 190.23
user 185.29
sys 4.40

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/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits scfile=/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits outfile=/scratch/kocevski/853033/cmap_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits scfile=/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits outfile=/scratch/kocevski/853033/cmap_HighResolution_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits evtable="EVENTS" scfile=/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853033/Model_4FGL_J1238.3-1959_daily_bin1187.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/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits.....................!
real 46.60
user 45.20
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits', '/scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits', expMap='/scratch/kocevski/853033/expmap_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.fits', expCube='/scratch/kocevski/853033/ltcube_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/853033/Model_4FGL_J1238.3-1959_daily_bin1187.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/853033/ft1_filtered_4FGL_J1238.3-1959_daily_bin1187.fits
Spacecraft file(s): /scratch/kocevski/853033/ft2_4FGL_J1238.3-1959_daily_bin1187.fits
Exposure map: /scratch/kocevski/853033/expmap_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.fits
Exposure cube: /scratch/kocevski/853033/ltcube_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/853033/Model_4FGL_J1238.3-1959_daily_bin1187.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) = 5045.16628362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1858       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13775E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    104.98       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14846E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6447       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .91339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.758       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17659E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7127       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .82887       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=   5045.134     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2213 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.390        .39318E-04** at limit **
   2  Prefactor     .10000E-03    98.389       -.24173E-04** at limit **
   3  norm          2.1794        4.7815        .32325E-06    .24946E-03
   4  Prefactor     .10003E-03    15.406       -.14764E-05** at limit **
   5  Prefactor     .10000E-03    23.200        .23973E-05** at limit **
   6  Prefactor     104.91        107.49       -.69084E-04    .18908E-04
   7  Prefactor     .10000E-03    9.6047       -.44970E-06** at limit **
   8  Prefactor     .10000E-03    21.674        .76828E-05** at limit **
   9  Prefactor     31.080        50.510       -.69009E-05    .13362E-04
  10  Prefactor     .10034E-03    3.6768       -.17485E-05** at limit **
  11  Prefactor     4.6463        2.3454       -.12490E-07    .10674E-02
  12  Prefactor     .10000E-03    16.099       -.45261E-05** at limit **
  13  Prefactor     .10000E-03    9.0261        .16437E-06** at limit **
  14  norm          .91429        1.4794       -.11621E-06   -.52871E-03
  15  Prefactor     .10000E-03    39.754       -.23065E-04** at limit **
  16  norm          15.758        10.212       -.51691E-06    .12243E-04
  17  norm          .10000E-03    3.7857       -.14365E-06** at limit **
  18  Prefactor     .10004E-03    5.1636        .13801E-05** at limit **
  19  norm          .10000E-03    1.1130       -.64891E-07** at limit **
  20  Normalizat    1.7129        .29712        .10393E-05    .29169E-03
  21  Prefactor     .82881        .14638        .33706E-05    .18249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.17935
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 104.907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0802
  Prefactor  = 0.000100338
  Prefactor  = 4.64629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.914286
  Prefactor  = 0.0001
  norm       = 15.7583
  norm       = 0.0001
  Prefactor  = 0.00010004
  norm       = 0.0001
  Normalizat = 1.71291
  Prefactor  = 0.828805
 **********
 **   18 **HESSE 
 **********

 FCN=   5045.134     FROM HESSE     STATUS=OK           311 CALLS     2524 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    99.688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1794        4.6956        .22085E-03   -1.5413    
   4  Prefactor     .10003E-03    15.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     104.91        107.53        .19623E-03   -1.3656    
   7  Prefactor     .10000E-03    9.6050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.080        50.494        .71860E-04   -1.4592    
  10  Prefactor     .10034E-03    42.164        .25553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6463        2.2966        .73363E-04   -1.5277    
  12  Prefactor     .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.1203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .91429        1.3122        .10550E-02   -1.5517    
  15  Prefactor     .10000E-03    39.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.758        10.213        .10089E-03   -1.4914    
  17  norm          .10000E-03    3.8062        .13482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    14.038        .31077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1176        .73173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7129        .34915        .32432E-03   -.71959    
  21  Prefactor     .82881        .17177        .21449E-03   -.98675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26806e-08
Minuit parameter uncertainties:
  1  0.000140764
  2  0.00119705
  3  4.69644
  4  0.00128154
  5  2.53088e-05
  6  107.727
  7  2.62986e-05
  8  5.43718e-05
  9  50.5631
  10  0.00755648
  11  2.29664
  12  2.4331e-05
  13  4.45801e-05
  14  1.3122
  15  3.60775e-05
  16  10.2145
  17  2.41932e-05
  18  0.00149083
  19  4.69916e-06
  20  0.34965
  21  0.171881
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.433e-05  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:  8.288e-01  1.719e-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.713e+00  3.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853033/likelihoodResults_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5045.13451215
delta logL = -0.000294120367471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5044.8927534
delta logL = 0.241464634172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41101       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0376       1.0000          .0000       10.000    
     3 'Normalizat'    1.6347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84907       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=   5044.893     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      276 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41099        11.308        .10902E-01    .22682E-02
   2  Index         4.0383        2.9425        .11949        .18686E-03
   3  Normalizat    1.6347        .59160E-01    .74690E-01    .55908E-04
   4  Prefactor     .84897        .28715E-01    .44353E-01   -.84539E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.410987
  Index      = 4.03831
  Normalizat = 1.63475
  Prefactor  = 0.848967
 **********
 **   18 **HESSE 
 **********

 FCN=   5044.893     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41099        44.134        .65750E-04   -1.5580    
   2  Index         4.0383        6.8179        .62862E-02   -.19354    
   3  Normalizat    1.6347        .31354        .33049E-03   -.74059    
   4  Prefactor     .84897        .14943        .21215E-03   -.97948    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.51363e-10
Minuit parameter uncertainties:
  1  8.52328
  2  8.74018
  3  0.313914
  4  0.149501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853033': 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): 102
logL (Free Index) = 5044.89275252
delta logL = 0.241465515654

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  4.110e-01  8.523e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  4.038e+00  8.740e+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:  8.490e-01  1.495e-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.635e+00  3.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/853033/cmap_HighResolution_546998401_547257601_4FGL_J1238.3-1959_daily_bin1187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-06 02:32:14.668881', job_id='853033', GAL2='0.85', fit_tolerance='1e-08', EG2='1.63', EG='1.71', time_epoch_completed='1630920734.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.41e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1187' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:32:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 853033: <4FGL_J1238.3-1959_daily_bin1187> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1187> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:20:44 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:21:36 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:21:36 2021
Terminated at Mon Sep  6 02:32:15 2021
Results reported at Mon Sep  6 02:32:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1187 189.594 -19.9945 546998401 547257601 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 :                                   570.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            691 sec.

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

