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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1321
RA = 189.594, Dec = -19.9945
tmin = 581731201, tmax = 581990401
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='853211', job_status='RUN', time_executed='2021-09-06 02:23:59.902467', time_epoch_executed='1630920239.9' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1321'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853211/ft1_4FGL_J1238.3-1959_daily_bin1321.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853211/ft1_4FGL_J1238.3-1959_daily_bin1321.fits outfile=/scratch/kocevski/853211/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1321.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=581731201.0 tmax=581990401.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 2.56
user 2.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.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/853211/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1321.fits evtable="EVENTS" outfile="/scratch/kocevski/853211/ft1_filtered_4FGL_J1238.3-1959_daily_bin1321.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.56
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853211/ft1_filtered_4FGL_J1238.3-1959_daily_bin1321.fits" evtable="EVENTS" scfile=/scratch/kocevski/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.fits sctable="SC_DATA" outfile=/scratch/kocevski/853211/ltcube_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.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/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.fits
.....................!
real 19.33
user 18.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853211/ft1_filtered_4FGL_J1238.3-1959_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.fits sctable="SC_DATA" expcube=/scratch/kocevski/853211/ltcube_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.fits outfile=/scratch/kocevski/853211/expmap_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.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/853211/ltcube_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.fits
.....................!
real 192.53
user 187.22
sys 4.77

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/853211/ft1_filtered_4FGL_J1238.3-1959_daily_bin1321.fits scfile=/scratch/kocevski/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.fits outfile=/scratch/kocevski/853211/cmap_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853211/ft1_filtered_4FGL_J1238.3-1959_daily_bin1321.fits scfile=/scratch/kocevski/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.fits outfile=/scratch/kocevski/853211/cmap_HighResolution_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/853211/ft1_filtered_4FGL_J1238.3-1959_daily_bin1321.fits evtable="EVENTS" scfile=/scratch/kocevski/853211/ft2_4FGL_J1238.3-1959_daily_bin1321.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/853211/Model_4FGL_J1238.3-1959_daily_bin1321.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/853211/ft1_filtered_4FGL_J1238.3-1959_daily_bin1321.fits.....................!
real 64.05
user 62.55
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4167       1.0000         .10000E-03   10000.    
     3 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .61524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24246E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12787E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5858       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .77839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1246       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6505       1.0000         .10000E-03   10000.    
    17 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69425       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9978       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3882       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83924       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=   8092.156     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2244 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34153        15.120        .36577E-05   -.61548E-03
   2  Prefactor     2.4048        8.7661        .82391E-06   -.49710E-05
   3  norm          .10000E-03    2.6344       -.34361E-06** at limit **
   4  Prefactor     .61546        2.4354        .17994E-05    .12314E-03
   5  Prefactor     .10000E-03    86.047       -.59763E-05** at limit **
   6  Prefactor     .10000E-03    14.047       -.19534E-06** at limit **
   7  Prefactor     .10000E-03    18.061       -.37642E-05** at limit **
   8  Prefactor     11.701        39.046       -.24919E-05   -.16170E-03
   9  Prefactor     .10000E-03    18.275        .24623E-06** at limit **
  10  Prefactor     .10000E-03    1.6273        .11598E-06** at limit **
  11  Prefactor     4.5856        1.8435       -.22716E-06   -.32782E-03
  12  Prefactor     .10000E-03    7.4494        .72367E-07** at limit **
  13  Prefactor     .10000E-03    4.1056        .18643E-06** at limit **
  14  norm          .77825        .78126        .57259E-07   -.48130E-04
  15  Prefactor     6.0820        57.408       -.35076E-05   -.80497E-04
  16  norm          7.6492        9.4933        .13658E-06   -.18049E-04
  17  norm          .10000E-03    2.0047       -.45371E-06** at limit **
  18  Prefactor     .69172        4.5951        .35489E-05    .17133E-03
  19  norm          1.9977        1.7014       -.49458E-07   -.81726E-04
  20  Normalizat    1.3880        .20085       -.54733E-06   -.18780E-03
  21  Prefactor     .83942        .10127       -.18446E-06   -.28200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.341531
  Prefactor  = 2.40477
  norm       = 0.0001
  Prefactor  = 0.615462
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.778251
  Prefactor  = 6.08199
  norm       = 7.64916
  norm       = 0.0001
  Prefactor  = 0.69172
  norm       = 1.99765
  Normalizat = 1.38796
  Prefactor  = 0.839423
 **********
 **   18 **HESSE 
 **********

 FCN=   8092.156     FROM HESSE     STATUS=OK           325 CALLS     2569 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34153        19.023        .12140       -1.5591    
   2  Prefactor     2.4048        8.6993        .26331E-03   -1.5398    
   3  norm          .10000E-03    2.6858        .28241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61546        2.4291        .27070E-03   -1.5551    
   5  Prefactor     .10000E-03    86.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.701        39.420        .11665E-03   -1.5024    
   9  Prefactor     .10000E-03    18.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6345        .11207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5856        1.8439        .37626E-03   -1.5280    
  12  Prefactor     .10000E-03    7.5591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1262        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .77825        .74438        .76435E-03   -1.5532    
  15  Prefactor     6.0820        57.793        .16223E-03   -1.5215    
  16  norm          7.6492        9.4926        .14498E-03   -1.5155    
  17  norm          .10000E-03    2.0268        .12455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .69172        4.6677        .36683E-03   -1.5542    
  19  norm          1.9977        1.7064        .10553E-03   -1.5425    
  20  Normalizat    1.3880        .23713        .30095E-03   -.80978    
  21  Prefactor     .83942        .11987        .18795E-03   -.98291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14762e-09
Minuit parameter uncertainties:
  1  5.09884
  2  8.70386
  3  1.09999e-05
  4  2.42944
  5  0.00100781
  6  2.71175e-05
  7  0.000167625
  8  39.5074
  9  4.24261e-05
  10  4.33205e-06
  11  1.84392
  12  7.10011e-06
  13  9.37879e-06
  14  0.744392
  15  37.5438
  16  9.49449
  17  1.95681e-05
  18  3.5939
  19  1.70646
  20  0.237318
  21  0.119907
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  7.100e-06  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.394e-01  1.199e-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.388e+00  2.373e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/853211/likelihoodResults_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.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) = 8092.15700034
delta logL = -0.000630535032542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8092.15636992
delta logL = -1.19584001368e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1534       1.0000          .0000       10.000    
     3 'Normalizat'    1.3879       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83946       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=   8092.156     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0322        .90712E-02** at limit **
   2  Index         2.1553        6.0456        .50000       -.19551E-05
   3  Normalizat    1.3880        .51293E-02    .68027E-01    .22109E-04
   4  Prefactor     .83942        .25786E-02    .44229E-01    .28478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1553
  Normalizat = 1.38796
  Prefactor  = 0.839423
 **********
 **   18 **HESSE 
 **********

 FCN=   8092.156     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1553        7.0414        .50000       -.60522    
   3  Normalizat    1.3880        .14878E-01    .30095E-03   -.80978    
   4  Prefactor     .83942        .74838E-02    .18795E-03   -.98291    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11288e-08
Minuit parameter uncertainties:
  1  2.68134e-05
  2  218.144
  3  0.0148776
  4  0.00748383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853211': 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) = 8092.1563698
delta logL = 2.14731699089e-09

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.681e-05  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.155e+00  2.181e+02  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.394e-01  7.484e-03  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.388e+00  1.488e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/853211/cmap_HighResolution_581731201_581990401_4FGL_J1238.3-1959_daily_bin1321.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-06 02:36:25.091897', job_id='853211', GAL2='0.84', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630920985.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.15e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1321' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:36:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 853211: <4FGL_J1238.3-1959_daily_bin1321> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1321 189.594 -19.9945 581731201 581990401 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 :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            922 sec.

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

