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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin468
RA = 189.625, Dec = -12.028
tmin = 360633601, tmax = 360892801
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='857789', job_status='RUN', time_executed='2021-09-06 02:39:14.216471', time_epoch_executed='1630921154.22' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857789/ft1_4FGL_J1238.5-1201_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857789/ft1_4FGL_J1238.5-1201_daily_bin468.fits outfile=/scratch/kocevski/857789/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin468.fits ra=189.625 dec=-12.028 rad=12.0 tmin=360633601.0 tmax=360892801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.45
user 3.18
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.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/857789/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.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.57
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/857789/ltcube_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.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/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits
.....................!
real 14.15
user 13.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/857789/ltcube_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.fits outfile=/scratch/kocevski/857789/expmap_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.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/857789/ltcube_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.fits
.....................!
real 194.60
user 186.33
sys 4.60

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.5-1201 @ 189.625 -12.028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits scfile=/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits outfile=/scratch/kocevski/857789/cmap_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.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.625 yref=-12.028 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits scfile=/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits outfile=/scratch/kocevski/857789/cmap_HighResolution_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.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.625 yref=-12.028 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857789/Model_4FGL_J1238.5-1201_daily_bin468.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/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits.....................!
real 59.69
user 58.15
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits', '/scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits', expMap='/scratch/kocevski/857789/expmap_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.fits', expCube='/scratch/kocevski/857789/ltcube_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857789/Model_4FGL_J1238.5-1201_daily_bin468.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.5-1201'

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  4.386e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/857789/ft1_filtered_4FGL_J1238.5-1201_daily_bin468.fits
Spacecraft file(s): /scratch/kocevski/857789/ft2_4FGL_J1238.5-1201_daily_bin468.fits
Exposure map: /scratch/kocevski/857789/expmap_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.fits
Exposure cube: /scratch/kocevski/857789/ltcube_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857789/Model_4FGL_J1238.5-1201_daily_bin468.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) = 7050.16105293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1773       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7742       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10742E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .73997       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2189       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1522       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.288       1.0000         .10000E-03   10000.    
    20 'norm      '    36.388       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3879       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3729       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7050.089     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2456 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8440        6.3509        .61704E-06    .13444E-03
   2  Prefactor     .10000E-03    15.647        .41584E-06** at limit **
   3  Prefactor     .10000E-03    20.487        .56918E-06** at limit **
   4  Prefactor     1.7139        48.847       -.34286E-05   -.46782E-04
   5  Prefactor     .10000E-03    18.790       -.13125E-05** at limit **
   6  norm          .10000E-03    1.4904       -.41738E-08** at limit **
   7  Prefactor     5.9163        5.1696        .57084E-07    .11742E-04
   8  Prefactor     9.1774        3.0556        .24862E-07   -.12133E-05
   9  Prefactor     .10000E-03    3.5120       -.72498E-08** at limit **
  10  Prefactor     25.063        14.757       -.52103E-07   -.33943E-04
  11  Prefactor     .10000E-03    6.1424        .75393E-07** at limit **
  12  Prefactor     2.7797        10.234        .82458E-06   -.28179E-04
  13  Prefactor     .10000E-03    44.196       -.18162E-05** at limit **
  14  norm          .10000E-03    41.529        .13789E-05** at limit **
  15  Prefactor     .10000E-03    42.336        .80033E-06** at limit **
  16  norm          .74000        .27781       -.32683E-08   -.62439E-04
  17  norm          5.2191        5.8418        .24271E-07   -.12554E-04
  18  norm          1.1517        5.4655        .25970E-05   -.95815E-04
  19  Prefactor     41.290        46.695        .25032E-06    .51545E-05
  20  norm          36.386        18.331       -.14854E-06   -.34008E-04
  21  norm          .10000E-03    4.5602       -.28620E-07** at limit **
  22  Prefactor     .10000E-03    19.507       -.50256E-07** at limit **
  23  Prefactor     1.3758        35.299        .27597E-05   -.19500E-04
  24  Normalizat    1.3733        .27332        .24864E-06   -.62252E-04
  25  Prefactor     1.1070        .15200       -.91397E-06   -.98163E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71391
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.91631
  Prefactor  = 9.17737
  Prefactor  = 0.0001
  Prefactor  = 25.0626
  Prefactor  = 0.0001
  Prefactor  = 2.77973
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.739997
  norm       = 5.21905
  norm       = 1.15165
  Prefactor  = 41.2899
  norm       = 36.3859
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37583
  Normalizat = 1.37331
  Prefactor  = 1.10699
 **********
 **   18 **HESSE 
 **********

 FCN=   7050.089     FROM HESSE     STATUS=OK           427 CALLS     2883 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8440        6.4143        .16607E-03   -1.5224    
   2  Prefactor     .10000E-03    15.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7139        53.449        .31689E-03   -1.5446    
   5  Prefactor     .10000E-03    18.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.5066        .10009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9163        5.1709        .16509E-03   -1.5221    
   8  Prefactor     9.1774        3.0564        .81027E-04   -1.5102    
   9  Prefactor     .10000E-03    3.5164        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.063        14.765        .80016E-04   -1.4706    
  11  Prefactor     .10000E-03    6.1801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7797        10.273        .24433E-03   -1.5375    
  13  Prefactor     .10000E-03    44.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    41.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .74000        .27756        .25573E-04   -1.5536    
  17  norm          5.2191        5.8408        .17596E-03   -1.5251    
  18  norm          1.1517        5.6618        .38500E-03   -1.5493    
  19  Prefactor     41.290        46.703        .62384E-04   -1.4422    
  20  norm          36.386        18.329        .66437E-04   -1.4501    
  21  norm          .10000E-03    4.5621        .17510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3758        36.496        .36902E-03   -1.5473    
  24  Normalizat    1.3733        .31829        .35219E-03   -.81404    
  25  Prefactor     1.1070        .17652        .22424E-03   -.89244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19515e-10
Minuit parameter uncertainties:
  1  6.41507
  2  2.38877e-06
  3  7.37986e-05
  4  19.1605
  5  4.6539e-05
  6  1.37816e-06
  7  5.1713
  8  3.05644
  9  2.76108e-07
  10  14.7668
  11  2.6945e-06
  12  10.2795
  13  0.000203008
  14  0.00014124
  15  4.57904e-05
  16  0.27756
  17  5.84143
  18  5.10757
  19  46.7444
  20  18.332
  21  1.58896e-06
  22  1.17429e-05
  23  14.1811
  24  0.318748
  25  0.176613
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.694e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.660e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.107e+00  1.766e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.373e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857789/likelihoodResults_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.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) = 7050.0901961
delta logL = -0.000770195019868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7050.08942595
delta logL = -4.42023520009e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6617       1.0000          .0000       10.000    
     3 'Normalizat'    1.3733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7050.089     FROM MIGRAD    STATUS=FAILED        89 CALLS      241 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1332.5        .18142E-02** at limit **
   2  Index         2.6815        5.3316        .50000       -.15346E-05
   3  Normalizat    1.3733        .19029        .35219E-03    .79086E-05
   4  Prefactor     1.1070        .11059        .22424E-03    .12016E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7050.089     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      406 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    1332.5        .47419E-03** at limit **
   2  Index         2.6815        5.3316        .20050E-05   -.15346E-05
   3  Normalizat    1.3733        .19029        .11143E-06    .79086E-05
   4  Prefactor     1.1070        .11059        .47328E-07    .12016E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7050.089     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      440 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.9704        .36285E-03** at limit **
   2  Index         2.7104        5.7694        .50000       -.80893E-06
   3  Normalizat    1.3733        .29682        .14088E-04   -.10814E-04
   4  Prefactor     1.1070        .17328        .89695E-05   -.13182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.71044
  Normalizat = 1.37331
  Prefactor  = 1.10699
 **********
 **   18 **HESSE 
 **********

 FCN=   7050.089     FROM HESSE     STATUS=OK            29 CALLS      469 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.2244        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7104        6.7887        .50000       -.47564    
   3  Normalizat    1.3733        .29658        .28175E-05   -.81404    
   4  Prefactor     1.1070        .17315        .17939E-05   -.89244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59736e-09
Minuit parameter uncertainties:
  1  0.000530051
  2  248.086
  3  0.296955
  4  0.173234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857789': 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) = 7050.08942589
delta logL = 1.49175320985e-08

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  5.301e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.710e+00  2.481e+02  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  5.228e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.107e+00  1.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.373e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.625 -12.028

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/857789/cmap_HighResolution_360633601_360892801_4FGL_J1238.5-1201_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-06 02:51:54.019512', job_id='857789', GAL2='1.11', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630921914.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='468' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 857789: <4FGL_J1238.5-1201_daily_bin468> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin468> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 02:35:31 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:36:05 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:36:05 2021
Terminated at Mon Sep  6 02:51:54 2021
Results reported at Mon Sep  6 02:51:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin468 189.625 -12.028 360633601 360892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.5-1201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            983 sec.

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

