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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin922
RA = 189.625, Dec = -12.028
tmin = 478310401, tmax = 478569601
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='861032', job_status='RUN', time_executed='2021-09-06 02:46:20.077816', time_epoch_executed='1630921580.08' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='922'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861032

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861032/ft1_4FGL_J1238.5-1201_daily_bin922.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861032/ft2_4FGL_J1238.5-1201_daily_bin922.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861032/ft1_4FGL_J1238.5-1201_daily_bin922.fits outfile=/scratch/kocevski/861032/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin922.fits ra=189.625 dec=-12.028 rad=12.0 tmin=478310401.0 tmax=478569601.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.38
user 2.92
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/861032/ft2_4FGL_J1238.5-1201_daily_bin922.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/861032/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin922.fits evtable="EVENTS" outfile="/scratch/kocevski/861032/ft1_filtered_4FGL_J1238.5-1201_daily_bin922.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.47
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861032/ft1_filtered_4FGL_J1238.5-1201_daily_bin922.fits" evtable="EVENTS" scfile=/scratch/kocevski/861032/ft2_4FGL_J1238.5-1201_daily_bin922.fits sctable="SC_DATA" outfile=/scratch/kocevski/861032/ltcube_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.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/861032/ft2_4FGL_J1238.5-1201_daily_bin922.fits
.....................!
real 17.18
user 16.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861032/ft1_filtered_4FGL_J1238.5-1201_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/861032/ft2_4FGL_J1238.5-1201_daily_bin922.fits sctable="SC_DATA" expcube=/scratch/kocevski/861032/ltcube_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.fits outfile=/scratch/kocevski/861032/expmap_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.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/861032/ltcube_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.fits
.....................!
real 162.79
user 157.21
sys 5.01

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/861032/ft1_filtered_4FGL_J1238.5-1201_daily_bin922.fits scfile=/scratch/kocevski/861032/ft2_4FGL_J1238.5-1201_daily_bin922.fits outfile=/scratch/kocevski/861032/cmap_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861032/ft1_filtered_4FGL_J1238.5-1201_daily_bin922.fits scfile=/scratch/kocevski/861032/ft2_4FGL_J1238.5-1201_daily_bin922.fits outfile=/scratch/kocevski/861032/cmap_HighResolution_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861032/ft1_filtered_4FGL_J1238.5-1201_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/861032/ft2_4FGL_J1238.5-1201_daily_bin922.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861032/Model_4FGL_J1238.5-1201_daily_bin922.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/861032/ft1_filtered_4FGL_J1238.5-1201_daily_bin922.fits....................!
real 49.03
user 47.59
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6039       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.885       1.0000         .10000E-03   10000.    
     6 'norm      '    .45800E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3386       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.793       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32178E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2795       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0071       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7168       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14147E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10869E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0888       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.017       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3486       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89555       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=   6910.769     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2504 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6051        5.0011        .15400E-06    .52233E-05
   2  Prefactor     .10000E-03    10.087        .23034E-06** at limit **
   3  Prefactor     .10000E-03    54.022       -.17501E-05** at limit **
   4  Prefactor     1.4839        44.858        .93871E-05   -.24242E-05
   5  Prefactor     45.829        34.839        .22068E-05    .12827E-04
   6  norm          .10014E-03    1.9634        .70402E-06** at limit **
   7  Prefactor     .10000E-03    6.5704       -.11980E-06** at limit **
   8  Prefactor     4.5480        2.1867        .16410E-07    .28322E-04
   9  Prefactor     13.985        10.614        .60974E-07   -.58084E-04
  10  Prefactor     9.3397        9.0593       -.40118E-07   -.44100E-04
  11  Prefactor     20.786        14.604        .18150E-06   -.95647E-05
  12  Prefactor     .10000E-03    3.3201       -.47066E-07** at limit **
  13  Prefactor     .10000E-03    44.336        .25309E-05** at limit **
  14  norm          .10000E-03    11.063       -.83727E-06** at limit **
  15  Prefactor     .10000E-03    579.27        .47451E-04** at limit **
  16  norm          1.2794        .30270        .10733E-07   -.15501E-03
  17  norm          1.0052        14.690        .78229E-06   -.18581E-04
  18  norm          3.7345        7.3503       -.12714E-05   -.34242E-03
  19  Prefactor     .10000E-03    82.916       -.36340E-05** at limit **
  20  norm          .10000E-03    12.003        .49293E-06** at limit **
  21  norm          2.0886        4.8722        .14768E-06    .45919E-05
  22  Prefactor     18.014        11.837        .97158E-07   -.18189E-05
  23  Prefactor     .10000E-03    2.6696       -.19763E-07** at limit **
  24  Normalizat    1.3487        .24689       -.97839E-06   -.12943E-03
  25  Prefactor     .89556        .13447        .24785E-06   -.23897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.6051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48395
  Prefactor  = 45.8292
  norm       = 0.000100135
  Prefactor  = 0.0001
  Prefactor  = 4.54801
  Prefactor  = 13.985
  Prefactor  = 9.33969
  Prefactor  = 20.7859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27944
  norm       = 1.00516
  norm       = 3.73451
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.08858
  Prefactor  = 18.014
  Prefactor  = 0.0001
  Normalizat = 1.34872
  Prefactor  = 0.895561
 **********
 **   18 **HESSE 
 **********

 FCN=   6910.769     FROM HESSE     STATUS=OK           431 CALLS     2935 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6051        4.9952        .18595E-03   -1.5279    
   2  Prefactor     .10000E-03    10.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    54.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4839        44.924        .17695E-02   -1.5464    
   5  Prefactor     45.829        34.871        .29595E-03   -1.4353    
   6  norm          .10014E-03    21.931        .21810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5480        2.1779        .82155E-04   -1.5281    
   9  Prefactor     13.985        10.607        .10712E-03   -1.4960    
  10  Prefactor     9.3397        9.0620        .13114E-03   -1.5097    
  11  Prefactor     20.786        14.684        .87838E-04   -1.4796    
  12  Prefactor     .10000E-03    3.3278        .14792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    582.63        .19751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2794        .30398        .21158E-04   -1.5482    
  17  norm          1.0052        15.208        .53312E-03   -1.5507    
  18  norm          3.7345        7.3844        .20946E-03   -1.5321    
  19  Prefactor     .10000E-03    83.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0886        4.8380        .27354E-03   -1.5419    
  22  Prefactor     18.014        11.844        .94358E-04   -1.4859    
  23  Prefactor     .10000E-03    2.6725        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3487        .29070        .32557E-03   -.82124    
  25  Prefactor     .89556        .15822        .22063E-03   -.96296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.42632e-09
Minuit parameter uncertainties:
  1  4.99563
  2  8.93354e-06
  3  0.000148109
  4  16.3427
  5  34.886
  6  0.00344817
  7  5.25303e-06
  8  2.17796
  9  10.6089
  10  9.06337
  11  14.6867
  12  9.20127e-07
  13  4.93881e-06
  14  4.44546e-06
  15  0.000785507
  16  0.303982
  17  7.82149
  18  7.38624
  19  2.57674e-05
  20  9.74087e-06
  21  4.83895
  22  11.8455
  23  2.39551e-07
  24  0.291054
  25  0.158297
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.079e+01  1.469e+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:  8.956e-01  1.583e-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.349e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 7.20e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.79e-05

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

Saving results to:
/scratch/kocevski/861032/likelihoodResults_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.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) = 6909.51831548
delta logL = 1.25097172897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6909.47873641
delta logL = 1.29055080206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3827       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8759       1.0000          .0000       10.000    
     3 'Normalizat'    1.2218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95435       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=   6909.479     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      258 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3706        18.281        .66342E-02    .13204E-03
   2  Index         4.8794        3.2863        .12964        .10337E-03
   3  Normalizat    1.2217        .85488E-01    .76652E-01   -.81095E-04
   4  Prefactor     .95438        .48146E-01    .45694E-01   -.80861E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37057
  Index      = 4.87944
  Normalizat = 1.2217
  Prefactor  = 0.954378
 **********
 **   18 **HESSE 
 **********

 FCN=   6909.479     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3706        29.671        .61776E-04   -1.5400    
   2  Index         4.8794        7.0955        .51768E-02   -.24115E-01
   3  Normalizat    1.2217        .26487        .33927E-03   -.85935    
   4  Prefactor     .95438        .14898        .21459E-03   -.94266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.10836e-07
Minuit parameter uncertainties:
  1  16.7834
  2  5.07702
  3  0.265165
  4  0.149042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861032': 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) = 6909.47873415
delta logL = 1.29055305852

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.371e+00  1.678e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  4.879e+00  5.077e+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:  9.544e-01  1.490e-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.222e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 4.88 +/- 5.08
Photon Flux (Free Index): 1.97e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.64e-05 +/- 1.76e-05

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/861032/cmap_HighResolution_478310401_478569601_4FGL_J1238.5-1201_daily_bin922.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.64e-05', photon_flux_error='7.20e-08', dlogl='1.29e+00', energy_flux='2.54e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-06 02:57:19.673344', photon_index_error2='5.08', photon_index2='4.88', ts='2.73', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='2.39e-07', energy_flux_error2='1.76e-05', EG='1.35', time_epoch_completed='1630922239.67', return_code='0', job_id='861032', GAL2='0.95', EG2='1.22', return_code2='102', energy_flux_error='1.79e-05', photon_flux_error2='1.01e-07', ts2='5.73', photon_index='2.66' WHERE bin_id='922' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:57:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 861032: <4FGL_J1238.5-1201_daily_bin922> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin922> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 02:45:49 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:46:10 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:46:10 2021
Terminated at Mon Sep  6 02:57:20 2021
Results reported at Mon Sep  6 02:57:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin922 189.625 -12.028 478310401 478569601 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 :                                   656.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             382.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            691 sec.

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

