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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1546
RA = 189.625, Dec = -12.028
tmin = 640051201, tmax = 640310401
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='864280', job_status='RUN', time_executed='2021-09-06 02:58:47.629892', time_epoch_executed='1630922327.63' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864280/ft1_4FGL_J1238.5-1201_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864280/ft1_4FGL_J1238.5-1201_daily_bin1546.fits outfile=/scratch/kocevski/864280/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1546.fits ra=189.625 dec=-12.028 rad=12.0 tmin=640051201.0 tmax=640310401.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.62
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.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/864280/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1546.fits evtable="EVENTS" outfile="/scratch/kocevski/864280/ft1_filtered_4FGL_J1238.5-1201_daily_bin1546.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864280/ft1_filtered_4FGL_J1238.5-1201_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/864280/ltcube_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.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/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.fits
.....................!
real 12.92
user 12.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864280/ft1_filtered_4FGL_J1238.5-1201_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/864280/ltcube_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.fits outfile=/scratch/kocevski/864280/expmap_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.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/864280/ltcube_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.fits
.....................!
real 191.27
user 185.64
sys 5.06

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/864280/ft1_filtered_4FGL_J1238.5-1201_daily_bin1546.fits scfile=/scratch/kocevski/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.fits outfile=/scratch/kocevski/864280/cmap_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=189.625 yref=-12.028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/864280/ft1_filtered_4FGL_J1238.5-1201_daily_bin1546.fits scfile=/scratch/kocevski/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.fits outfile=/scratch/kocevski/864280/cmap_HighResolution_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=189.625 yref=-12.028 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/864280/ft1_filtered_4FGL_J1238.5-1201_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/864280/ft2_4FGL_J1238.5-1201_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/864280/Model_4FGL_J1238.5-1201_daily_bin1546.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/864280/ft1_filtered_4FGL_J1238.5-1201_daily_bin1546.fits.....................!
real 59.08
user 57.56
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2975       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.720       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3988       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    104.33       1.0000         .10000E-03   10000.    
    14 'norm      '    12.737       1.0000         .10000E-03   10000.    
    15 'Prefactor '    89.196       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7196       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .36947E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.021       1.0000         .10000E-03   10000.    
    20 'norm      '    17.832       1.0000         .10000E-03   10000.    
    21 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1871       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0035       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=   6973.287     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2902 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2965        5.8160        .28418E-05   -.33956E-03
   2  Prefactor     67.722        28.348       -.13293E-04   -.40542E-04
   3  Prefactor     .10000E-03    11.893       -.63127E-05** at limit **
   4  Prefactor     .10000E-03    3.9968        .81386E-07** at limit **
   5  Prefactor     .10000E-03    11.383        .41852E-05** at limit **
   6  norm          1.3988        2.6074       -.41443E-06   -.72185E-03
   7  Prefactor     .10000E-03    6.0082       -.11832E-06** at limit **
   8  Prefactor     4.2662        2.1710       -.14027E-06   -.15150E-04
   9  Prefactor     .10000E-03    4.2206        .40409E-05** at limit **
  10  Prefactor     .10000E-03    4.9627        .17971E-06** at limit **
  11  Prefactor     .10000E-03    13.650        .16324E-05** at limit **
  12  Prefactor     .10000E-03    13.612        .16879E-05** at limit **
  13  Prefactor     104.32        73.966       -.35947E-05   -.99049E-05
  14  norm          12.735        28.300       -.31976E-05   -.35315E-04
  15  Prefactor     88.976        83.479       -.93257E-05   -.25458E-03
  16  norm          1.7196        .40446        .44207E-08   -.43679E-03
  17  norm          .10000E-03    4.4566       -.43467E-06** at limit **
  18  norm          .10000E-03    5.1656        .20452E-05** at limit **
  19  Prefactor     34.004        58.654        .12263E-04    .10459E-05
  20  norm          17.832        14.023       -.11380E-05   -.75144E-06
  21  norm          .10000E-03    15.784       -.12282E-05** at limit **
  22  Prefactor     .10000E-03    7.4425       -.10105E-06** at limit **
  23  Prefactor     .10000E-03    4.1967       -.37238E-05** at limit **
  24  Normalizat    1.1872        .24793        .18127E-05   -.16017E-03
  25  Prefactor     1.0034        .13952        .60552E-06   -.22414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.29655
  Prefactor  = 67.7218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39885
  Prefactor  = 0.0001
  Prefactor  = 4.26616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.324
  norm       = 12.735
  Prefactor  = 88.9761
  norm       = 1.71962
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 34.004
  norm       = 17.8323
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18719
  Prefactor  = 1.00343
 **********
 **   18 **HESSE 
 **********

 FCN=   6973.287     FROM HESSE     STATUS=OK           423 CALLS     3325 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2965        5.7658        .22296E-03   -1.5345    
   2  Prefactor     67.722        28.056        .24387E-03   -1.4060    
   3  Prefactor     .10000E-03    11.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9994        .16305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3988        2.5731        .17932E-03   -1.5471    
   7  Prefactor     .10000E-03    6.1094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2662        2.1694        .85067E-04   -1.5295    
   9  Prefactor     .10000E-03    4.2260        .16746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     104.32        74.976        .39368E-04   -1.3662    
  14  norm          12.735        28.244        .11224E-03   -1.4994    
  15  Prefactor     88.976        77.552        .42544E-04   -1.3819    
  16  norm          1.7196        .41138        .22276E-04   -1.5446    
  17  norm          .10000E-03    4.4812        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    33.616        .33619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.004        58.660        .68703E-04   -1.4541    
  20  norm          17.832        14.023        .94846E-04   -1.4863    
  21  norm          .10000E-03    16.249        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2099        .16705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1872        .29432        .34930E-03   -.87000    
  25  Prefactor     1.0034        .16604        .21538E-03   -.92615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00479e-10
Minuit parameter uncertainties:
  1  5.76676
  2  28.0612
  3  3.54158e-06
  4  8.6914e-07
  5  1.97172e-06
  6  2.57334
  7  6.63149e-06
  8  2.16941
  9  4.24912e-06
  10  2.38465e-06
  11  4.29848e-05
  12  3.61391e-05
  13  75.0445
  14  28.2734
  15  77.6401
  16  0.411376
  17  4.60905e-06
  18  0.000319014
  19  58.7594
  20  14.0257
  21  1.90547e-05
  22  1.56916e-05
  23  4.39942e-06
  24  0.294734
  25  0.166121
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.003e+00  1.661e-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.187e+00  2.947e-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.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/864280/likelihoodResults_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.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) = 6973.28696446
delta logL = -0.000344396621585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6973.28662009
delta logL = -2.65754351858e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6098       1.0000          .0000       10.000    
     3 'Normalizat'    1.1871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0035       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=   6973.249     FROM MIGRAD    STATUS=FAILED       191 CALLS      340 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5546        191.36        .18142E-01    .10097E-02
   2  Index         1.6192        2.8704        .41890        .54803E-04
   3  Normalizat    1.1904        .35474E-01    .34930E-03   -.39707E-05
   4  Prefactor     .99939        .20518E-01    .21538E-03   -.45922E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6973.249     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      419 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5546        191.36        .40932E-03    .10097E-02
   2  Index         1.6192        2.8704        .14970E-02    .54803E-04
   3  Normalizat    1.1904        .35474E-01    .54050E-04   -.39707E-05
   4  Prefactor     .99939        .20518E-01    .30644E-04   -.45922E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6973.249     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      450 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5546        10.111        .40887E-03    .44878E-04
   2  Index         1.6192        1.5610        .13159E-01    .22309E-04
   3  Normalizat    1.1904        .28473        .13972E-04   -.40684E-05
   4  Prefactor     .99939        .16456        .86153E-05   -.47505E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55456
  Index      = 1.61922
  Normalizat = 1.19045
  Prefactor  = 0.999389
 **********
 **   18 **HESSE 
 **********

 FCN=   6973.249     FROM HESSE     STATUS=OK            25 CALLS      475 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5546        8.1905        .16355E-04   -1.5459    
   2  Index         1.6192        1.4154        .52634E-03   -2.3991    
   3  Normalizat    1.1904        .28471        .27944E-05   -.86898    
   4  Prefactor     .99939        .16454        .17231E-05   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0667e-11
Minuit parameter uncertainties:
  1  7.13788
  2  1.45281
  3  0.285085
  4  0.164622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864280': 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) = 6973.24884444
delta logL = 0.0377756249691

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.555e+00  7.138e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.619e+00  1.453e+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.994e-01  1.646e-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.190e+00  2.851e-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/864280/cmap_HighResolution_640051201_640310401_4FGL_J1238.5-1201_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-06 03:12:02.288149', job_id='864280', GAL2='1.00', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630923122.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.78e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1546' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:12:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 864280: <4FGL_J1238.5-1201_daily_bin1546> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1546 189.625 -12.028 640051201 640310401 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            985 sec.

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

