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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1560
RA = 189.625, Dec = -12.028
tmin = 643680001, tmax = 643939201
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='864303', job_status='RUN', time_executed='2021-09-06 03:00:09.747934', time_epoch_executed='1630922409.75' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864303

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864303/ft1_4FGL_J1238.5-1201_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864303/ft1_4FGL_J1238.5-1201_daily_bin1560.fits outfile=/scratch/kocevski/864303/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1560.fits ra=189.625 dec=-12.028 rad=12.0 tmin=643680001.0 tmax=643939201.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.51
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.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/864303/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/864303/ft1_filtered_4FGL_J1238.5-1201_daily_bin1560.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864303/ft1_filtered_4FGL_J1238.5-1201_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/864303/ltcube_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.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/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.fits
.....................!
real 13.75
user 13.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864303/ft1_filtered_4FGL_J1238.5-1201_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/864303/ltcube_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.fits outfile=/scratch/kocevski/864303/expmap_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.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/864303/ltcube_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.fits
.....................!
real 190.99
user 185.05
sys 5.30

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/864303/ft1_filtered_4FGL_J1238.5-1201_daily_bin1560.fits scfile=/scratch/kocevski/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.fits outfile=/scratch/kocevski/864303/cmap_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/864303/ft1_filtered_4FGL_J1238.5-1201_daily_bin1560.fits scfile=/scratch/kocevski/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.fits outfile=/scratch/kocevski/864303/cmap_HighResolution_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.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.61
user 0.38
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/864303/ft1_filtered_4FGL_J1238.5-1201_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/864303/ft2_4FGL_J1238.5-1201_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/864303/Model_4FGL_J1238.5-1201_daily_bin1560.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/864303/ft1_filtered_4FGL_J1238.5-1201_daily_bin1560.fits.....................!
real 50.15
user 48.81
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    115.66       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.329       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5011       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23391E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60696       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.271       1.0000         .10000E-03   10000.    
    14 'norm      '    4.4291       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3843       1.0000         .10000E-03   10000.    
    17 'norm      '    13.241       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    47.987       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.286       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1802       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71987       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=   5739.067     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2969 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7121        6.1347        .21686E-06    .78952E-04
   2  Prefactor     115.65        33.733        .73849E-07    .10319E-04
   3  Prefactor     3.1249        144.62       -.76011E-05   -.35512E-05
   4  Prefactor     34.524        22.859        .44096E-06    .47851E-04
   5  Prefactor     32.313        47.817        .30973E-05    .37058E-04
   6  norm          .10000E-03    1.4481        .65361E-08** at limit **
   7  Prefactor     3.8281        7.5395        .37921E-06    .83784E-04
   8  Prefactor     1.5011        1.9441        .57537E-07    .88862E-04
   9  Prefactor     13.839        12.768        .12099E-05    .82466E-04
  10  Prefactor     .10002E-03    6.8404        .70131E-06** at limit **
  11  Prefactor     .57789        12.738       -.10886E-05    .20736E-03
  12  Prefactor     .10000E-03    8.7990       -.31566E-06** at limit **
  13  Prefactor     63.226        60.043       -.56146E-06   -.15757E-04
  14  norm          4.4401        19.577        .29670E-06    .40224E-05
  15  Prefactor     .10000E-03    87.838       -.63750E-06** at limit **
  16  norm          2.3848        .41348        .30468E-07    .48343E-03
  17  norm          13.244        10.769        .26811E-07   -.28453E-04
  18  norm          2.5808        8.1780        .14176E-05    .25167E-04
  19  Prefactor     .10000E-03    48.878        .69783E-07** at limit **
  20  norm          47.983        18.146       -.29160E-07    .21910E-05
  21  norm          .10000E-03    3.7534        .12383E-07** at limit **
  22  Prefactor     .10000E-03    7.5132        .10525E-06** at limit **
  23  Prefactor     14.285        10.690        .42893E-07    .21308E-05
  24  Normalizat    1.1805        .27477        .52901E-06    .11811E-04
  25  Prefactor     .71986        .14807       -.11329E-05    .38673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.71206
  Prefactor  = 115.651
  Prefactor  = 3.12494
  Prefactor  = 34.5241
  Prefactor  = 32.3132
  norm       = 0.0001
  Prefactor  = 3.8281
  Prefactor  = 1.50112
  Prefactor  = 13.8393
  Prefactor  = 0.000100021
  Prefactor  = 0.577892
  Prefactor  = 0.0001
  Prefactor  = 63.2255
  norm       = 4.44012
  Prefactor  = 0.0001
  norm       = 2.38483
  norm       = 13.2436
  norm       = 2.58085
  Prefactor  = 0.0001
  norm       = 47.9832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2848
  Normalizat = 1.18046
  Prefactor  = 0.719863
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.067     FROM HESSE     STATUS=OK           437 CALLS     3406 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7121        6.1348        .12858E-03   -1.5085    
   2  Prefactor     115.65        33.763        .18706E-03   -1.3553    
   3  Prefactor     3.1249        141.87        .23220E-03   -1.5354    
   4  Prefactor     34.524        23.029        .68211E-04   -1.4532    
   5  Prefactor     32.313        47.822        .70472E-04   -1.4570    
   6  norm          .10000E-03    1.4679        .89010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8281        7.4815        .20638E-03   -1.5317    
   8  Prefactor     1.5011        1.9155        .11039E-03   -1.5463    
   9  Prefactor     13.839        12.813        .53833E-03   -1.4964    
  10  Prefactor     .10002E-03    40.285        .37207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57789        70.880        .45823E-02   -1.5556    
  12  Prefactor     .10000E-03    8.9210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.226        60.112        .25224E-03   -1.4116    
  14  norm          4.4401        19.560        .19135E-03   -1.5287    
  15  Prefactor     .10000E-03    87.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3848        .41777        .18571E-04   -1.5399    
  17  norm          13.244        10.771        .11008E-03   -1.4980    
  18  norm          2.5808        8.1705        .25416E-03   -1.5387    
  19  Prefactor     .10000E-03    48.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          47.983        18.160        .57885E-04   -1.4321    
  21  norm          .10000E-03    3.7548        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.6540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.285        10.721        .10597E-03   -1.4952    
  24  Normalizat    1.1805        .32961        .32904E-03   -.87209    
  25  Prefactor     .71986        .17390        .23022E-03   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34922e-09
Minuit parameter uncertainties:
  1  6.13524
  2  33.7685
  3  42.2176
  4  23.0354
  5  47.8787
  6  6.77421e-07
  7  7.48332
  8  1.91558
  9  12.8152
  10  0.00182253
  11  12.8146
  12  2.01528e-05
  13  60.1698
  14  18.6485
  15  0.000104195
  16  0.417773
  17  10.7728
  18  8.17402
  19  1.22952e-05
  20  18.1619
  21  5.05579e-07
  22  7.63519e-06
  23  10.7228
  24  0.33019
  25  0.174029
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  5.779e-01  1.281e+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:  7.199e-01  1.740e-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.180e+00  3.302e-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.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/864303/likelihoodResults_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.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) = 5738.90872589
delta logL = 0.158058562908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5738.84217786
delta logL = 0.224606587091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3640       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8537       1.0000          .0000       10.000    
     3 'Normalizat'    1.1226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73814       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5738.842     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3640        7.6963        .17295E-03    .20487E-02
   2  Index         3.8536        2.0397        .41441E-02   -.53962E-05
   3  Normalizat    1.1231        .30720        .33651E-03   -.33784E-06
   4  Prefactor     .73788        .16835        .22767E-03   -.49935E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36399
  Index      = 3.85362
  Normalizat = 1.12307
  Prefactor  = 0.737876
 **********
 **   18 **HESSE 
 **********

 FCN=   5738.842     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3640        6.7113        .69182E-05   -1.5400    
   2  Index         3.8536        1.7911        .16576E-03   -.23133    
   3  Normalizat    1.1231        .30749        .13460E-04   -.89015    
   4  Prefactor     .73788        .16855        .91069E-05   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39814e-09
Minuit parameter uncertainties:
  1  6.71347
  2  1.83422
  3  0.307978
  4  0.168663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864303': 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) = 5738.84217644
delta logL = 0.224608013043

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  2.364e+00  6.713e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.854e+00  1.834e+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:  7.379e-01  1.687e-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.123e+00  3.080e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/864303/cmap_HighResolution_643680001_643939201_4FGL_J1238.5-1201_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-06 03:12:04.283940', job_id='864303', GAL2='0.74', fit_tolerance='1e-08', EG2='1.12', EG='1.18', time_epoch_completed='1630923124.28', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.25e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1560' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 864303: <4FGL_J1238.5-1201_daily_bin1560> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1560> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 02:55:41 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:56:44 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:56:44 2021
Terminated at Mon Sep  6 03:12:05 2021
Results reported at Mon Sep  6 03:12:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1560 189.625 -12.028 643680001 643939201 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 :                                   709.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            984 sec.

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

