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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin555
RA = 189.625, Dec = -12.028
tmin = 383184001, tmax = 383443201
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='857915', job_status='RUN', time_executed='2021-09-06 02:38:41.910143', time_epoch_executed='1630921121.91' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857915

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857915/ft1_4FGL_J1238.5-1201_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857915/ft1_4FGL_J1238.5-1201_daily_bin555.fits outfile=/scratch/kocevski/857915/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin555.fits ra=189.625 dec=-12.028 rad=12.0 tmin=383184001.0 tmax=383443201.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.58
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/857915/ltcube_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.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/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits
.....................!
real 16.62
user 16.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/857915/ltcube_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.fits outfile=/scratch/kocevski/857915/expmap_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.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/857915/ltcube_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.fits
.....................!
real 197.30
user 190.93
sys 5.41

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/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits scfile=/scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits outfile=/scratch/kocevski/857915/cmap_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits scfile=/scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits outfile=/scratch/kocevski/857915/cmap_HighResolution_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857915/Model_4FGL_J1238.5-1201_daily_bin555.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/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits.....................!
real 55.47
user 54.07
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits', '/scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits', expMap='/scratch/kocevski/857915/expmap_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.fits', expCube='/scratch/kocevski/857915/ltcube_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857915/Model_4FGL_J1238.5-1201_daily_bin555.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/857915/ft1_filtered_4FGL_J1238.5-1201_daily_bin555.fits
Spacecraft file(s): /scratch/kocevski/857915/ft2_4FGL_J1238.5-1201_daily_bin555.fits
Exposure map: /scratch/kocevski/857915/expmap_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.fits
Exposure cube: /scratch/kocevski/857915/ltcube_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857915/Model_4FGL_J1238.5-1201_daily_bin555.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) = 6443.17664499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2813       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5415       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    39.716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13123E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .90337       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.3502       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.293       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2505       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98954       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=   6443.150     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2920 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7566        5.4899        .14090E-05    .39616E-03
   2  Prefactor     .10000E-03    7.4740       -.67346E-07** at limit **
   3  Prefactor     12.364        53.771       -.10728E-04   -.17096E-03
   4  Prefactor     .10000E-03    13.289       -.79042E-06** at limit **
   5  Prefactor     6.2460        78.951        .11466E-04    .91128E-04
   6  norm          .10000E-03    1.8957       -.31958E-07** at limit **
   7  Prefactor     6.7441        9.0865       -.48569E-06    .18797E-04
   8  Prefactor     5.2855        2.8672       -.29484E-07    .67835E-04
   9  Prefactor     7.9397        10.335        .76383E-06   -.46980E-04
  10  Prefactor     2.2650        6.0993        .34932E-05   -.30133E-03
  11  Prefactor     1.5401        26.259        .13591E-04   -.17771E-03
  12  Prefactor     4.9119        6.1437        .32489E-07   -.41141E-05
  13  Prefactor     .10000E-03    36.618       -.34926E-07** at limit **
  14  norm          39.714        31.700        .26256E-06    .29321E-05
  15  Prefactor     .10000E-03    162.36       -.60352E-06** at limit **
  16  norm          .90338        .25896        .15416E-07    .33263E-04
  17  norm          .10000E-03    2.2740       -.10770E-07** at limit **
  18  norm          5.4001        7.2936        .15087E-05    .10853E-04
  19  Prefactor     .10000E-03    105.91        .34340E-06** at limit **
  20  norm          8.3503        11.874        .20451E-06   -.16322E-04
  21  norm          .10000E-03    5.5098       -.10764E-07** at limit **
  22  Prefactor     .10000E-03    3.9907       -.36112E-07** at limit **
  23  Prefactor     25.294        14.166        .32695E-06    .74474E-05
  24  Normalizat    1.2504        .25750       -.26348E-05    .71043E-05
  25  Prefactor     .98956        .14173       -.28409E-07   -.53828E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75658
  Prefactor  = 0.0001
  Prefactor  = 12.3642
  Prefactor  = 0.000100001
  Prefactor  = 6.24598
  norm       = 0.0001
  Prefactor  = 6.74408
  Prefactor  = 5.28548
  Prefactor  = 7.9397
  Prefactor  = 2.26503
  Prefactor  = 1.54007
  Prefactor  = 4.91189
  Prefactor  = 0.0001
  norm       = 39.7144
  Prefactor  = 0.0001
  norm       = 0.903384
  norm       = 0.0001
  norm       = 5.40005
  Prefactor  = 0.0001
  norm       = 8.35027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2936
  Normalizat = 1.25045
  Prefactor  = 0.989556
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.150     FROM HESSE     STATUS=OK           431 CALLS     3351 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7566        5.4989        .24514E-03   -1.5376    
   2  Prefactor     .10000E-03    7.4815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.364        56.506        .11408E-03   -1.5005    
   4  Prefactor     .10000E-03    13.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2460        81.345        .16016E-03   -1.5208    
   6  norm          .10000E-03    1.9488        .21582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7441        9.0592        .15451E-03   -1.5189    
   8  Prefactor     5.2855        2.8657        .90985E-04   -1.5248    
   9  Prefactor     7.9397        10.336        .71148E-03   -1.5144    
  10  Prefactor     2.2650        6.0979        .13645E-02   -1.5407    
  11  Prefactor     1.5401        26.770        .17169E-02   -1.5460    
  12  Prefactor     4.9119        6.1357        .18149E-03   -1.5265    
  13  Prefactor     .10000E-03    36.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          39.714        31.682        .63603E-04   -1.4447    
  15  Prefactor     .10000E-03    162.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90338        .25968        .20886E-04   -1.5518    
  17  norm          .10000E-03    2.2760        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4001        7.2907        .86429E-03   -1.5243    
  19  Prefactor     .10000E-03    106.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.3503        11.874        .13873E-03   -1.5130    
  21  norm          .10000E-03    5.5180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9968        .15659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.294        14.232        .79651E-04   -1.4702    
  24  Normalizat    1.2504        .30414        .33435E-03   -.85058    
  25  Prefactor     .98956        .16821        .21428E-03   -.93078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13905e-09
Minuit parameter uncertainties:
  1  5.49995
  2  1.42971e-05
  3  52.9465
  4  0.000210792
  5  45.1563
  6  2.97953e-06
  7  9.06104
  8  2.86581
  9  10.3387
  10  6.09959
  11  12.8481
  12  6.13646
  13  1.44567e-05
  14  31.6959
  15  6.55987e-05
  16  0.259684
  17  1.23801e-06
  18  7.29194
  19  0.000110359
  20  11.8777
  21  1.88744e-06
  22  5.0949e-06
  23  14.2339
  24  0.304572
  25  0.168296
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.540e+00  1.285e+01  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:  9.896e-01  1.683e-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.250e+00  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 189.625 -12.028
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857915/likelihoodResults_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.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) = 6441.92678219
delta logL = 1.22348911458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6441.76747505
delta logL = 1.38279625152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36071E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.4628       1.0000          .0000       10.000    
     3 'Normalizat'    1.1013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0470       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.

 FCN=   6441.767     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      275 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35703E-01    .39436        .23441E-02    .13005E-01
   2  Index         7.4694        3.3027        .18349        .22262E-03
   3  Normalizat    1.1017        .65204E-01    .79775E-01   -.10913E-03
   4  Prefactor     1.0470        .37845E-01    .40087E-01   -.43036E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0357033
  Index      = 7.46942
  Normalizat = 1.10167
  Prefactor  = 1.04703
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.767     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      310 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35703E-01    .90999        .10632E-03   -1.5670    
   2  Index         7.4694        8.3129        .73034E-02    .51655    
   3  Normalizat    1.1017        .23030        .35315E-03   -.89698    
   4  Prefactor     1.0470        .13025        .20896E-03   -.91178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.03366e-10
Minuit parameter uncertainties:
  1  0.36
  2  6.5124
  3  0.230511
  4  0.130292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857915': 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) = 6441.76747027
delta logL = 1.38280103889

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  3.570e-02  3.600e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  7.469e+00  6.512e+00  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.047e+00  1.303e-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.102e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 7.47 +/- 6.51
Photon Flux (Free Index): 1.30e-07 +/- 9.61e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/857915/cmap_HighResolution_383184001_383443201_4FGL_J1238.5-1201_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', energy_flux2='1.53e-05', dlogl='1.38e+00', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-06 02:51:38.173903', photon_index_error2='6.51', photon_index2='7.47', ts='0.02', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.27e-05', EG='1.25', time_epoch_completed='1630921898.17', return_code='0', job_id='857915', GAL2='1.05', EG2='1.10', return_code2='102', photon_flux_error2='9.61e-08', ts2='3.03', photon_index='2.66' WHERE bin_id='555' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 857915: <4FGL_J1238.5-1201_daily_bin555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin555 189.625 -12.028 383184001 383443201 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 :                                   773.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            960 sec.

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

