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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin375
RA = 189.594, Dec = -19.9945
tmin = 336528001, tmax = 336787201
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='846888', job_status='RUN', time_executed='2021-09-06 02:06:27.810987', time_epoch_executed='1630919187.81' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846888/ft1_4FGL_J1238.3-1959_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846888/ft2_4FGL_J1238.3-1959_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846888/ft1_4FGL_J1238.3-1959_daily_bin375.fits outfile=/scratch/kocevski/846888/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin375.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=336528001.0 tmax=336787201.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.81
user 5.53
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846888/ft2_4FGL_J1238.3-1959_daily_bin375.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/846888/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/846888/ft1_filtered_4FGL_J1238.3-1959_daily_bin375.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846888/ft1_filtered_4FGL_J1238.3-1959_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/846888/ft2_4FGL_J1238.3-1959_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/846888/ltcube_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.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/846888/ft2_4FGL_J1238.3-1959_daily_bin375.fits
.....................!
real 12.38
user 12.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846888/ft1_filtered_4FGL_J1238.3-1959_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/846888/ft2_4FGL_J1238.3-1959_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/846888/ltcube_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.fits outfile=/scratch/kocevski/846888/expmap_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.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/846888/ltcube_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.fits
.....................!
real 191.54
user 185.62
sys 5.11

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/846888/ft1_filtered_4FGL_J1238.3-1959_daily_bin375.fits scfile=/scratch/kocevski/846888/ft2_4FGL_J1238.3-1959_daily_bin375.fits outfile=/scratch/kocevski/846888/cmap_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846888/ft1_filtered_4FGL_J1238.3-1959_daily_bin375.fits scfile=/scratch/kocevski/846888/ft2_4FGL_J1238.3-1959_daily_bin375.fits outfile=/scratch/kocevski/846888/cmap_HighResolution_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    42.708       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30547       1.0000         .10000E-03   10000.    
     5 'Prefactor '    101.38       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6614       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2320       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68687E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11794E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10868E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10138       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1902       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=   6017.169     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2304 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.594       -.34835E-05** at limit **
   2  Prefactor     42.707        26.106       -.21225E-06    .10965E-03
   3  norm          .10000E-03    3.5993       -.68809E-08** at limit **
   4  Prefactor     .30738        5.6555       -.42572E-05    .93821E-03
   5  Prefactor     101.38        70.522        .29429E-05    .41920E-04
   6  Prefactor     .10000E-03    30.677        .11934E-04** at limit **
   7  Prefactor     4.6494        22.277        .96904E-06    .15630E-04
   8  Prefactor     .10000E-03    38.783       -.14589E-04** at limit **
   9  Prefactor     .10000E-03    61.755        .11090E-04** at limit **
  10  Prefactor     .10000E-03    6.4904       -.19868E-06** at limit **
  11  Prefactor     4.2320        2.6832       -.16955E-07   -.31703E-04
  12  Prefactor     .10033E-03    12.846        .10235E-05** at limit **
  13  Prefactor     .10000E-03    6.6003        .22706E-06** at limit **
  14  norm          5.1766        1.9311       -.29512E-07   -.20631E-03
  15  Prefactor     .10000E-03    128.78       -.10917E-04** at limit **
  16  norm          .10000E-03    16.845       -.22979E-06** at limit **
  17  norm          .10000E-03    3.4283       -.69235E-09** at limit **
  18  Prefactor     .10000E-03    2.7771       -.23521E-08** at limit **
  19  norm          .10766        1.4071       -.36796E-06   -.69603E-04
  20  Normalizat    1.3003        .31828       -.96745E-07    .68268E-04
  21  Prefactor     1.1901        .15179        .26788E-06    .17116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 42.7074
  norm       = 0.0001
  Prefactor  = 0.307384
  Prefactor  = 101.382
  Prefactor  = 0.0001
  Prefactor  = 4.64944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.23197
  Prefactor  = 0.000100331
  Prefactor  = 0.0001
  norm       = 5.17665
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.107656
  Normalizat = 1.30032
  Prefactor  = 1.19008
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.169     FROM HESSE     STATUS=OK           313 CALLS     2617 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.707        26.053        .61343E-04   -1.4400    
   3  norm          .10000E-03    3.6060        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30738        17.595        .32776E-02   -1.5597    
   5  Prefactor     101.38        70.630        .19965E-03   -1.3691    
   6  Prefactor     .10000E-03    31.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6494        22.210        .18640E-03   -1.5277    
   8  Prefactor     .10000E-03    39.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    62.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2320        2.6812        .98260E-04   -1.5297    
  12  Prefactor     .10033E-03    136.86        .52111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1766        1.9313        .61748E-04   -1.5253    
  15  Prefactor     .10000E-03    129.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.4490        .14022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7877        .12621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10766        9.6659        .17770E-02   -1.5642    
  20  Normalizat    1.3003        .36390        .40495E-03   -.83557    
  21  Prefactor     1.1901        .17733        .20051E-03   -.86637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18041e-08
Minuit parameter uncertainties:
  1  1.62581e-05
  2  26.0596
  3  4.48979e-07
  4  4.65183
  5  70.6882
  6  7.3142e-05
  7  20.3357
  8  1.94346e-05
  9  8.67092e-05
  10  8.36616e-07
  11  2.68125
  12  0.0134924
  13  1.40922e-06
  14  1.93132
  15  6.41411e-06
  16  7.27581e-06
  17  2.80282e-07
  18  1.65003e-07
  19  2.03957
  20  0.364621
  21  0.177419
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.003e-04  1.349e-02  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:  1.190e+00  1.774e-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.300e+00  3.646e-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.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846888/likelihoodResults_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.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) = 6017.16935216
delta logL = -3.41969243891e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6017.16935215
delta logL = -3.41823906638e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1513       1.0000          .0000       10.000    
     3 'Normalizat'    1.3003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1901       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=   6016.316     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      290 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2574        36.110        .90712E-02   -.64647E-03
   2  Index         3.6061        2.7292        .93250E-01   -.59244E-04
   3  Normalizat    1.1378        .95095E-01    .96754E-01   -.11925E-04
   4  Prefactor     1.2277        .44569E-01    .34870E-01    .39013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25742
  Index      = 3.60614
  Normalizat = 1.13779
  Prefactor  = 1.22766
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.316     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2574        70.395        .91191E-04   -1.5407    
   2  Index         3.6061        6.7067        .45788E-02   -.28251    
   3  Normalizat    1.1378        .36003        .42871E-03   -.88548    
   4  Prefactor     1.2277        .17199        .19772E-03   -.85484    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.33218e-10
Minuit parameter uncertainties:
  1  25.244
  2  4.84822
  3  0.360816
  4  0.172068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846888': 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) = 6016.31588598
delta logL = 0.853431987049

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  2.257e+00  2.524e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.606e+00  4.848e+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:  1.228e+00  1.721e-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.138e+00  3.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 3.61 +/- 4.85
Photon Flux (Free Index): 1.52e-07 +/- 1.31e-07
Energy Flux (Free Index): 2.47e-05 +/- 3.29e-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/846888/cmap_HighResolution_336528001_336787201_4FGL_J1238.3-1959_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='2.47e-05', dlogl='8.53e-01', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-06 02:17:09.382563', photon_index_error2='4.85', photon_index2='3.61', ts='-0.00', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='3.29e-05', EG='1.30', time_epoch_completed='1630919829.38', return_code='0', job_id='846888', GAL2='1.23', EG2='1.14', return_code2='102', photon_flux_error2='1.31e-07', ts2='1.87', photon_index='2.15' WHERE bin_id='375' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:17:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 846888: <4FGL_J1238.3-1959_daily_bin375> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin375> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:00:46 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:02:31 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:02:31 2021
Terminated at Mon Sep  6 02:17:10 2021
Results reported at Mon Sep  6 02:17:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin375 189.594 -19.9945 336528001 336787201 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 :                                   638.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            984 sec.

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

