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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin520
RA = 189.625, Dec = -12.028
tmin = 374112001, tmax = 374371201
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='857863', job_status='RUN', time_executed='2021-09-06 02:38:24.022151', time_epoch_executed='1630921104.02' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857863/ft1_4FGL_J1238.5-1201_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857863/ft2_4FGL_J1238.5-1201_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857863/ft1_4FGL_J1238.5-1201_daily_bin520.fits outfile=/scratch/kocevski/857863/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin520.fits ra=189.625 dec=-12.028 rad=12.0 tmin=374112001.0 tmax=374371201.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.47
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857863/ft1_filtered_4FGL_J1238.5-1201_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/857863/ft2_4FGL_J1238.5-1201_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/857863/ltcube_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.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/857863/ft2_4FGL_J1238.5-1201_daily_bin520.fits
.....................!
real 14.48
user 14.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857863/ft1_filtered_4FGL_J1238.5-1201_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/857863/ft2_4FGL_J1238.5-1201_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/857863/ltcube_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.fits outfile=/scratch/kocevski/857863/expmap_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.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/857863/ltcube_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.fits
.....................!
real 193.75
user 187.59
sys 5.40

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/857863/ft1_filtered_4FGL_J1238.5-1201_daily_bin520.fits scfile=/scratch/kocevski/857863/ft2_4FGL_J1238.5-1201_daily_bin520.fits outfile=/scratch/kocevski/857863/cmap_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857863/ft1_filtered_4FGL_J1238.5-1201_daily_bin520.fits scfile=/scratch/kocevski/857863/ft2_4FGL_J1238.5-1201_daily_bin520.fits outfile=/scratch/kocevski/857863/cmap_HighResolution_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857863/ft1_filtered_4FGL_J1238.5-1201_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/857863/ft2_4FGL_J1238.5-1201_daily_bin520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857863/Model_4FGL_J1238.5-1201_daily_bin520.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/857863/ft1_filtered_4FGL_J1238.5-1201_daily_bin520.fits.....................!
real 61.09
user 59.53
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.337       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.502       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.507       1.0000         .10000E-03   10000.    
     6 'norm      '    .13142E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2529       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.247       1.0000         .10000E-03   10000.    
    14 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.576       1.0000         .10000E-03   10000.    
    16 'norm      '    .15825       1.0000         .10000E-03   10000.    
    17 'norm      '    9.3420       1.0000         .10000E-03   10000.    
    18 'norm      '    19.855       1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.895       1.0000         .10000E-03   10000.    
    20 'norm      '    11.289       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8913       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9114       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.476       1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.4283       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .42457       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=   6940.479     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2900 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6099       -.44268E-07** at limit **
   2  Prefactor     .10000E-03    11.723        .12588E-06** at limit **
   3  Prefactor     31.344        53.676       -.38726E-08   -.40391E-05
   4  Prefactor     12.503        17.678        .12843E-06   -.30389E-05
   5  Prefactor     41.459        65.820        .17450E-06   -.16791E-04
   6  norm          .10003E-03    1.8483       -.22886E-06** at limit **
   7  Prefactor     .10000E-03    3.1000        .16160E-06** at limit **
   8  Prefactor     8.0218        2.5026       -.13700E-06   -.39165E-04
   9  Prefactor     .10000E-03    4.5226        .64300E-07** at limit **
  10  Prefactor     .10000E-03    7.9637       -.29615E-06** at limit **
  11  Prefactor     .10000E-03    7.0369        .21813E-06** at limit **
  12  Prefactor     8.2512        7.9388        .70579E-07   -.34086E-04
  13  Prefactor     57.248        41.335       -.28813E-06   -.12862E-04
  14  norm          .10000E-03    58.801        .52440E-06** at limit **
  15  Prefactor     26.385        112.79       -.25263E-05   -.17905E-04
  16  norm          .15815        .20364        .17493E-06    .12716E-02
  17  norm          9.3417        10.104        .58673E-07   -.10029E-04
  18  norm          19.861        10.565        .18197E-06   -.11621E-04
  19  Prefactor     59.896        58.914       -.17242E-06   -.13506E-04
  20  norm          11.287        11.824        .71187E-07   -.21492E-04
  21  norm          5.8913        6.3106       -.16984E-05    .35092E-05
  22  Prefactor     1.9104        9.0526        .15149E-05   -.30666E-05
  23  Prefactor     18.472        13.969        .87413E-07   -.36309E-04
  24  Normalizat    2.4286        .26760       -.14561E-05    .17795E-04
  25  Prefactor     .42446        .14433        .98128E-06   -.55436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3439
  Prefactor  = 12.5033
  Prefactor  = 41.4589
  norm       = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 8.02182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.2512
  Prefactor  = 57.2483
  norm       = 0.0001
  Prefactor  = 26.3854
  norm       = 0.158152
  norm       = 9.34171
  norm       = 19.8609
  Prefactor  = 59.8961
  norm       = 11.2873
  norm       = 5.89134
  Prefactor  = 1.91037
  Prefactor  = 18.4724
  Normalizat = 2.4286
  Prefactor  = 0.424464
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.479     FROM HESSE     STATUS=OK           433 CALLS     3333 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6132        .10321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.344        53.600        .71577E-04   -1.4588    
   4  Prefactor     12.503        17.680        .11329E-03   -1.5001    
   5  Prefactor     41.459        65.764        .62221E-04   -1.4419    
   6  norm          .10003E-03    22.032        .21843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1545        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0218        2.4989        .35719E-03   -1.5141    
   9  Prefactor     .10000E-03    4.5423        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.0915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2512        7.9408        .13955E-03   -1.5133    
  13  Prefactor     57.248        41.241        .26511E-03   -1.4193    
  14  norm          .10000E-03    60.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.385        114.11        .77709E-04   -1.4680    
  16  norm          .15815        .19197        .40536E-03   -1.5628    
  17  norm          9.3417        10.098        .13112E-03   -1.5097    
  18  norm          19.861        10.580        .89887E-04   -1.4816    
  19  Prefactor     59.896        58.845        .51842E-04   -1.4159    
  20  norm          11.287        11.816        .11924E-03   -1.5036    
  21  norm          5.8913        6.2499        .82725E-03   -1.5222    
  22  Prefactor     1.9104        8.9704        .30068E-03   -1.5432    
  23  Prefactor     18.472        13.981        .93180E-04   -1.4848    
  24  Normalizat    2.4286        .30159        .27715E-03   -.54194    
  25  Prefactor     .42446        .16143        .31971E-03   -1.1558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32337e-09
Minuit parameter uncertainties:
  1  6.80721e-07
  2  4.1471e-06
  3  53.683
  4  17.6872
  5  65.8793
  6  0.00156317
  7  5.52568e-06
  8  2.49898
  9  2.27519e-06
  10  4.89212e-06
  11  7.21265e-06
  12  7.9418
  13  41.2613
  14  9.22564e-06
  15  110.101
  16  0.191972
  17  10.1001
  18  10.581
  19  58.9026
  20  11.8181
  21  6.25055
  22  8.28113
  23  13.9835
  24  0.301845
  25  0.161601
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  7.213e-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:  4.245e-01  1.616e-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:  2.429e+00  3.018e-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.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857863/likelihoodResults_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.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) = 6940.47981283
delta logL = -0.000670561074003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6940.47914228
delta logL = -8.08722688816e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6646       1.0000          .0000       10.000    
     3 'Normalizat'    2.4286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42447       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=   6940.479     FROM MIGRAD    STATUS=FAILED        93 CALLS      249 TOTAL
                     EDM=   .38E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    1454.9        .18142E-02** at limit **
   2  Index         2.7159        8.4360        .50000       -.39283E-05
   3  Normalizat    2.4286        .16534        .27716E-03    .97790E-04
   4  Prefactor     .42446        .89249E-01    .31970E-03    .53625E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6940.479     FROM SIMPLEX   STATUS=UNCHANGED    173 CALLS      422 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    1454.9        .46779E-03** at limit **
   2  Index         2.7159        8.4360        .10507E-04   -.39283E-05
   3  Normalizat    2.4286        .16534        .13298E-05    .97790E-04
   4  Prefactor     .42446        .89249E-01    .44279E-06    .53625E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6940.479     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      462 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.247        .36285E-03** at limit **
   2  Index         2.8552        8.5421        .50000       -.21760E-07
   3  Normalizat    2.4286        .28884        .11086E-04   -.18459E-04
   4  Prefactor     .42447        .15655        .12788E-04   -.58675E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.85524
  Normalizat = 2.4286
  Prefactor  = 0.424465
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.479     FROM HESSE     STATUS=OK            29 CALLS      491 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3963        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8552        8.2777        .50000       -.44333    
   3  Normalizat    2.4286        .28889        .22172E-05   -.54194    
   4  Prefactor     .42447        .15658        .25576E-05   -1.1558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87213e-12
Minuit parameter uncertainties:
  1  1.80851e-06
  2  300.855
  3  0.289105
  4  0.156739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857863': 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) = 6940.47914215
delta logL = 1.18002390082e-07

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.809e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.855e+00  3.009e+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:  4.245e-01  1.567e-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:  2.429e+00  2.891e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/857863/cmap_HighResolution_374112001_374371201_4FGL_J1238.5-1201_daily_bin520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-06 02:51:42.730375', job_id='857863', GAL2='0.42', fit_tolerance='1e-08', EG2='2.43', EG='2.43', time_epoch_completed='1630921902.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='520' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:51:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 857863: <4FGL_J1238.5-1201_daily_bin520> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin520 189.625 -12.028 374112001 374371201 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 :                                   796.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            967 sec.

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

