/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 224 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1238.3-1959_daily_bin961
RA = 189.594, Dec = -19.9945
tmin = 488419201, tmax = 488678401
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='851354', job_status='RUN', time_executed='2021-09-06 02:20:05.624273', time_epoch_executed='1630920005.62' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851354/ft1_4FGL_J1238.3-1959_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851354/ft2_4FGL_J1238.3-1959_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851354/ft1_4FGL_J1238.3-1959_daily_bin961.fits outfile=/scratch/kocevski/851354/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin961.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.33
user 6.93
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851354/ft1_filtered_4FGL_J1238.3-1959_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/851354/ft2_4FGL_J1238.3-1959_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/851354/ltcube_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.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/851354/ft2_4FGL_J1238.3-1959_daily_bin961.fits
.....................!
real 13.39
user 12.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851354/ft1_filtered_4FGL_J1238.3-1959_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/851354/ft2_4FGL_J1238.3-1959_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/851354/ltcube_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.fits outfile=/scratch/kocevski/851354/expmap_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.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/851354/ltcube_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.fits
.....................!
real 191.15
user 186.25
sys 4.35

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/851354/ft1_filtered_4FGL_J1238.3-1959_daily_bin961.fits scfile=/scratch/kocevski/851354/ft2_4FGL_J1238.3-1959_daily_bin961.fits outfile=/scratch/kocevski/851354/cmap_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851354/ft1_filtered_4FGL_J1238.3-1959_daily_bin961.fits scfile=/scratch/kocevski/851354/ft2_4FGL_J1238.3-1959_daily_bin961.fits outfile=/scratch/kocevski/851354/cmap_HighResolution_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851354/ft1_filtered_4FGL_J1238.3-1959_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/851354/ft2_4FGL_J1238.3-1959_daily_bin961.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851354/Model_4FGL_J1238.3-1959_daily_bin961.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/851354/ft1_filtered_4FGL_J1238.3-1959_daily_bin961.fits.....................!
real 47.41
user 44.66
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    82.355       1.0000         .10000E-03   10000.    
     3 'norm      '    15.129       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.069       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6210       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9001       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    63.240       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38354       1.0000         .10000E-03   10000.    
    19 'norm      '    8.4645       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82839       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1002       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=   4930.460     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2199 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.890        .17799E-04** at limit **
   2  Prefactor     82.369        47.767        .87213E-05    .11289E-03
   3  norm          15.127        14.887       -.54877E-05    .86962E-04
   4  Prefactor     .10001E-03    9.2350       -.76398E-05** at limit **
   5  Prefactor     .10000E-03    43.455        .28562E-05** at limit **
   6  Prefactor     34.095        59.116        .32126E-04    .13720E-03
   7  Prefactor     .10000E-03    21.230       -.18315E-04** at limit **
   8  Prefactor     .10000E-03    131.90       -.30321E-04** at limit **
   9  Prefactor     43.707        42.509       -.44691E-05    .11359E-04
  10  Prefactor     .10000E-03    4.9429        .26178E-07** at limit **
  11  Prefactor     8.6211        3.8613        .29655E-07   -.12780E-03
  12  Prefactor     .10000E-03    12.637       -.29712E-06** at limit **
  13  Prefactor     .10000E-03    9.8169        .86335E-05** at limit **
  14  norm          1.9000        1.5358        .15199E-06   -.12411E-02
  15  Prefactor     .10000E-03    124.52        .15028E-04** at limit **
  16  norm          .10000E-03    10.883       -.31200E-05** at limit **
  17  norm          63.256        17.085       -.48249E-05   -.28903E-02
  18  Prefactor     .35280        11.791        .76518E-05   -.53805E-03
  19  norm          8.4640        4.1879        .29705E-06   -.45978E-03
  20  Normalizat    .82835        .33823       -.27425E-05   -.21388E-03
  21  Prefactor     1.1002        .16155        .13622E-06   -.41988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 82.3691
  norm       = 15.1275
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 34.0951
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 43.7075
  Prefactor  = 0.0001
  Prefactor  = 8.62111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90005
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 63.2559
  Prefactor  = 0.352796
  norm       = 8.46398
  Normalizat = 0.82835
  Prefactor  = 1.10019
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.460     FROM HESSE     STATUS=OK           311 CALLS     2510 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     82.369        47.857        .44261E-04   -1.3890    
   3  norm          15.127        14.900        .10297E-03   -1.4930    
   4  Prefactor     .10001E-03    9.5392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.095        59.154        .68654E-04   -1.4539    
   7  Prefactor     .10000E-03    21.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    132.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.707        42.465        .60639E-04   -1.4385    
  10  Prefactor     .10000E-03    4.9641        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.6211        3.8595        .89233E-04   -1.5121    
  12  Prefactor     .10000E-03    12.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9000        1.5219        .74256E-04   -1.5432    
  15  Prefactor     .10000E-03    124.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          63.256        16.982        .50461E-04   -1.4116    
  18  Prefactor     .35280        53.988        .38311E-02   -1.5589    
  19  norm          8.4640        4.1894        .97864E-04   -1.5126    
  20  Normalizat    .82835        .37129        .46308E-03   -.99026    
  21  Prefactor     1.1002        .17959        .19778E-03   -.89460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28917e-09
Minuit parameter uncertainties:
  1  2.97622e-05
  2  47.8797
  3  14.9032
  4  0.000558231
  5  5.8101e-05
  6  59.2561
  7  6.48815e-05
  8  0.000544016
  9  42.494
  10  4.01242e-06
  11  3.85958
  12  3.17669e-05
  13  9.48553e-06
  14  1.52188
  15  0.00114474
  16  9.13616e-05
  17  16.9835
  18  8.73527
  19  4.18959
  20  0.372435
  21  0.179689
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  3.177e-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:  1.100e+00  1.797e-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:  8.284e-01  3.724e-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.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851354/likelihoodResults_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.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) = 4930.46038342
delta logL = -0.000375485875338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4930.46000794
delta logL = -4.62296156911e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1524       1.0000          .0000       10.000    
     3 'Normalizat'    .82834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1002       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=   4930.460     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 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    15.319        .90712E-02** at limit **
   2  Index         2.1535        7.1819        .50000       -.68226E-06
   3  Normalizat    .82835        .91152E-02    .10447        .25244E-04
   4  Prefactor     1.1002        .44466E-02    .37579E-01    .65667E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1535
  Normalizat = 0.828353
  Prefactor  = 1.10019
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.460     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    223.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1535        5.5889        .50000       -.60565    
   3  Normalizat    .82835        .35365E-01    .46308E-03   -.99025    
   4  Prefactor     1.1002        .17310E-01    .19778E-03   -.89460    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95614e-08
Minuit parameter uncertainties:
  1  3.01754e-05
  2  835.521
  3  0.0353663
  4  0.0173105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851354': 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) = 4930.46000793
delta logL = 4.89308149554e-10

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  3.018e-05  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.154e+00  8.355e+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:  1.100e+00  1.731e-02  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:  8.284e-01  3.537e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/851354/cmap_HighResolution_488419201_488678401_4FGL_J1238.3-1959_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-06 02:29:50.047626', job_id='851354', GAL2='1.10', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630920590.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.89e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='961' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:29:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 851354: <4FGL_J1238.3-1959_daily_bin961> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin961> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 02:15:31 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:16:03 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:16:03 2021
Terminated at Mon Sep  6 02:29:50 2021
Results reported at Mon Sep  6 02:29:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin961 189.594 -19.9945 488419201 488678401 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 :                                   578.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            859 sec.

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

