/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 148 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7440
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1238.3-1959_daily_bin592
RA = 189.594, Dec = -19.9945
tmin = 392774401, tmax = 393033601
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='849602', job_status='RUN', time_executed='2021-09-06 02:13:20.686261', time_epoch_executed='1630919600.69' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849602/ft1_4FGL_J1238.3-1959_daily_bin592.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849602/ft2_4FGL_J1238.3-1959_daily_bin592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849602/ft1_4FGL_J1238.3-1959_daily_bin592.fits outfile=/scratch/kocevski/849602/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin592.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=392774401.0 tmax=393033601.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.24
user 4.89
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849602/ft1_filtered_4FGL_J1238.3-1959_daily_bin592.fits" evtable="EVENTS" scfile=/scratch/kocevski/849602/ft2_4FGL_J1238.3-1959_daily_bin592.fits sctable="SC_DATA" outfile=/scratch/kocevski/849602/ltcube_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.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/849602/ft2_4FGL_J1238.3-1959_daily_bin592.fits
.....................!
real 14.54
user 14.01
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849602/ft1_filtered_4FGL_J1238.3-1959_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/849602/ft2_4FGL_J1238.3-1959_daily_bin592.fits sctable="SC_DATA" expcube=/scratch/kocevski/849602/ltcube_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.fits outfile=/scratch/kocevski/849602/expmap_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.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/849602/ltcube_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.fits
.....................!
real 193.56
user 186.72
sys 5.88

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/849602/ft1_filtered_4FGL_J1238.3-1959_daily_bin592.fits scfile=/scratch/kocevski/849602/ft2_4FGL_J1238.3-1959_daily_bin592.fits outfile=/scratch/kocevski/849602/cmap_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849602/ft1_filtered_4FGL_J1238.3-1959_daily_bin592.fits scfile=/scratch/kocevski/849602/ft2_4FGL_J1238.3-1959_daily_bin592.fits outfile=/scratch/kocevski/849602/cmap_HighResolution_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/849602/ft1_filtered_4FGL_J1238.3-1959_daily_bin592.fits evtable="EVENTS" scfile=/scratch/kocevski/849602/ft2_4FGL_J1238.3-1959_daily_bin592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849602/Model_4FGL_J1238.3-1959_daily_bin592.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/849602/ft1_filtered_4FGL_J1238.3-1959_daily_bin592.fits.....................!
real 59.53
user 57.94
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10598E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.102       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.240       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3208       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0796       1.0000         .10000E-03   10000.    
    14 'norm      '    .66917       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8915       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2087       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4566       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5309       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4439       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90476       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=   6853.583     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2201 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.517       -.18908E-07** at limit **
   2  Prefactor     .10000E-03    20.366       -.10332E-06** at limit **
   3  norm          .10000E-03    2.8021        .28334E-07** at limit **
   4  Prefactor     2.4695        6.0938        .90552E-06   -.17564E-03
   5  Prefactor     .10000E-03    23.275        .37814E-06** at limit **
   6  Prefactor     14.019        39.840       -.71094E-05   -.11820E-03
   7  Prefactor     19.241        21.819       -.50440E-06   -.53194E-04
   8  Prefactor     .10000E-03    37.035       -.45583E-06** at limit **
   9  Prefactor     7.4164        20.006        .10040E-04    .28916E-03
  10  Prefactor     .10000E-03    2.4699       -.30348E-08** at limit **
  11  Prefactor     2.3210        1.8681       -.17959E-07   -.70229E-04
  12  Prefactor     .10000E-03    6.7750        .19688E-07** at limit **
  13  Prefactor     8.0745        16.145        .21763E-05    .84748E-04
  14  norm          .66911        1.0185        .29226E-07   -.56039E-03
  15  Prefactor     .10000E-03    289.28        .12927E-05** at limit **
  16  norm          1.8910        5.7232       -.18464E-05   -.43268E-03
  17  norm          3.2023        3.3461        .16711E-05   -.27716E-02
  18  Prefactor     2.4556        4.0220       -.29534E-06   -.17816E-03
  19  norm          4.5308        2.9600       -.20354E-07   -.43174E-04
  20  Normalizat    1.4442        .25150       -.10838E-05    .81899E-05
  21  Prefactor     .90465        .12043       -.13369E-07   -.72239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.46945
  Prefactor  = 0.0001
  Prefactor  = 14.0192
  Prefactor  = 19.2409
  Prefactor  = 0.0001
  Prefactor  = 7.41636
  Prefactor  = 0.0001
  Prefactor  = 2.32104
  Prefactor  = 0.0001
  Prefactor  = 8.07446
  norm       = 0.669106
  Prefactor  = 0.0001
  norm       = 1.891
  norm       = 3.20233
  Prefactor  = 2.45564
  norm       = 4.53083
  Normalizat = 1.44418
  Prefactor  = 0.904649
 **********
 **   18 **HESSE 
 **********

 FCN=   6853.583     FROM HESSE     STATUS=OK           321 CALLS     2522 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8371        .13526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4695        5.9972        .25986E-03   -1.5394    
   5  Prefactor     .10000E-03    23.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.019        39.684        .10666E-03   -1.4959    
   7  Prefactor     19.241        21.823        .91312E-04   -1.4830    
   8  Prefactor     .10000E-03    37.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4164        20.470        .14722E-03   -1.5163    
  10  Prefactor     .10000E-03    2.4779        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3210        1.8644        .98300E-04   -1.5403    
  12  Prefactor     .10000E-03    6.7929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0745        16.228        .14105E-03   -1.5140    
  14  norm          .66911        .94828        .96968E-03   -1.5544    
  15  Prefactor     .10000E-03    292.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8910        5.7771        .30253E-03   -1.5433    
  17  norm          3.2023        4.6501        .10124E-02   -1.5350    
  18  Prefactor     2.4556        4.0247        .20144E-03   -1.5395    
  19  norm          4.5308        2.9614        .11113E-03   -1.5282    
  20  Normalizat    1.4442        .30055        .32581E-03   -.79359    
  21  Prefactor     .90465        .14472        .19402E-03   -.95979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95415e-09
Minuit parameter uncertainties:
  1  1.2915e-06
  2  2.80493e-05
  3  5.18135e-06
  4  5.9987
  5  4.32996e-05
  6  39.759
  7  21.832
  8  1.0627e-05
  9  20.4898
  10  2.15496e-06
  11  1.86445
  12  4.48947e-06
  13  16.2365
  14  0.948304
  15  0.000500264
  16  5.77875
  17  4.65063
  18  4.02509
  19  2.9615
  20  0.300924
  21  0.144782
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  4.489e-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:  9.046e-01  1.448e-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.444e+00  3.009e-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: 8.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849602/likelihoodResults_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6853.58362292
delta logL = -0.000701296069565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6853.58292188
delta logL = -2.58075488091e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1479       1.0000          .0000       10.000    
     3 'Normalizat'    1.4440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90475       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=   6853.583     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    334.67        .90712E-02** at limit **
   2  Index         2.1447        6.0355        .50000        .38838E-05
   3  Normalizat    1.4442        .47216E-01    .73631E-01    .12391E-04
   4  Prefactor     .90465        .23034E-01    .45065E-01    .11538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14465
  Normalizat = 1.44418
  Prefactor  = 0.904649
 **********
 **   18 **HESSE 
 **********

 FCN=   6853.583     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1447        6.0585        .50000       -.60781    
   3  Normalizat    1.4442        .28768        .32581E-03   -.79359    
   4  Prefactor     .90465        .14058        .19402E-03   -.95979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83476e-11
Minuit parameter uncertainties:
  1  4.68845e-06
  2  4.38423
  3  0.288009
  4  0.140634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849602': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6853.58292162
delta logL = 6.50197762297e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  9.046e-01  1.406e-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.444e+00  2.880e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/849602/cmap_HighResolution_392774401_393033601_4FGL_J1238.3-1959_daily_bin592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.18e-08', time_completed='2021-09-06 02:24:41.472772', job_id='849602', GAL2='0.90', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630920281.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.50e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='592' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:24:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 849602: <4FGL_J1238.3-1959_daily_bin592> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin592> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 02:10:22 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:10:43 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:10:43 2021
Terminated at Mon Sep  6 02:24:42 2021
Results reported at Mon Sep  6 02:24:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin592 189.594 -19.9945 392774401 393033601 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 :                                   678.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            860 sec.

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

