/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 170 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 = 7375
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1238.5-1201_daily_bin180
RA = 189.625, Dec = -12.028
tmin = 285984001, tmax = 286243201
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='856120', job_status='RUN', time_executed='2021-09-06 02:34:12.234775', time_epoch_executed='1630920852.23' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856120

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856120/ft1_4FGL_J1238.5-1201_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856120/ft2_4FGL_J1238.5-1201_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856120/ft1_4FGL_J1238.5-1201_daily_bin180.fits outfile=/scratch/kocevski/856120/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin180.fits ra=189.625 dec=-12.028 rad=12.0 tmin=285984001.0 tmax=286243201.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.40
user 3.14
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856120/ft1_filtered_4FGL_J1238.5-1201_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/856120/ft2_4FGL_J1238.5-1201_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/856120/ltcube_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.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/856120/ft2_4FGL_J1238.5-1201_daily_bin180.fits
.....................!
real 13.64
user 13.23
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856120/ft1_filtered_4FGL_J1238.5-1201_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/856120/ft2_4FGL_J1238.5-1201_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/856120/ltcube_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.fits outfile=/scratch/kocevski/856120/expmap_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.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/856120/ltcube_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.fits
.....................!
real 193.36
user 186.70
sys 6.09

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/856120/ft1_filtered_4FGL_J1238.5-1201_daily_bin180.fits scfile=/scratch/kocevski/856120/ft2_4FGL_J1238.5-1201_daily_bin180.fits outfile=/scratch/kocevski/856120/cmap_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856120/ft1_filtered_4FGL_J1238.5-1201_daily_bin180.fits scfile=/scratch/kocevski/856120/ft2_4FGL_J1238.5-1201_daily_bin180.fits outfile=/scratch/kocevski/856120/cmap_HighResolution_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856120/ft1_filtered_4FGL_J1238.5-1201_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/856120/ft2_4FGL_J1238.5-1201_daily_bin180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856120/Model_4FGL_J1238.5-1201_daily_bin180.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/856120/ft1_filtered_4FGL_J1238.5-1201_daily_bin180.fits.....................!
real 53.83
user 52.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   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      '    4.3869       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64256E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12411E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    28.273       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
    16 'norm      '    .93142       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7715       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.107       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4659       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97317       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=   6073.783     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2856 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5649        .80811E-08** at limit **
   2  Prefactor     .10000E-03    6.8294        .17848E-06** at limit **
   3  Prefactor     .10000E-03    23.361        .33284E-05** at limit **
   4  Prefactor     .10000E-03    8.7424        .95819E-06** at limit **
   5  Prefactor     .10000E-03    28.463       -.24064E-05** at limit **
   6  norm          4.3872        4.2765       -.79275E-07    .44604E-05
   7  Prefactor     .10000E-03    6.9926        .16631E-06** at limit **
   8  Prefactor     11.206        3.6980        .15762E-07   -.51897E-04
   9  Prefactor     .10000E-03    8.4409       -.11473E-05** at limit **
  10  Prefactor     15.431        19.894        .67099E-07   -.12203E-04
  11  Prefactor     10.348        13.339        .80259E-07   -.69160E-05
  12  Prefactor     .10000E-03    12.810       -.24953E-05** at limit **
  13  Prefactor     .10000E-03    125.94        .23781E-05** at limit **
  14  norm          28.273        26.725        .31244E-06    .42292E-04
  15  Prefactor     10.000        325.53       -.66874E-05    .13977E-05
  16  norm          .93094        .30428        .10160E-07    .21959E-03
  17  norm          .10000E-03    11.667        .21693E-05** at limit **
  18  norm          4.7735        9.4651        .26953E-05   -.62079E-04
  19  Prefactor     .10000E-03    27.612       -.58624E-06** at limit **
  20  norm          .10000E-03    8.5551        .29016E-07** at limit **
  21  norm          .10000E-03    6.0153       -.70539E-07** at limit **
  22  Prefactor     10.107        10.467        .46368E-07   -.36667E-05
  23  Prefactor     .10000E-03    3.3570        .62729E-08** at limit **
  24  Normalizat    1.4659        .27065        .28067E-06   -.82216E-05
  25  Prefactor     .97316        .15543       -.44940E-06    .58355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.38721
  Prefactor  = 0.0001
  Prefactor  = 11.2059
  Prefactor  = 0.0001
  Prefactor  = 15.431
  Prefactor  = 10.3476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.2726
  Prefactor  = 10.0004
  norm       = 0.930944
  norm       = 0.0001
  norm       = 4.77353
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1075
  Prefactor  = 0.0001
  Normalizat = 1.46587
  Prefactor  = 0.97316
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.783     FROM HESSE     STATUS=OK           425 CALLS     3281 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5692        .95207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.3872        4.2727        .15335E-03   -1.5289    
   7  Prefactor     .10000E-03    26.285        .37840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.206        3.5634        .79831E-04   -1.5038    
   9  Prefactor     .10000E-03    8.4686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.431        19.901        .10197E-03   -1.4922    
  11  Prefactor     10.348        13.338        .12457E-03   -1.5065    
  12  Prefactor     .10000E-03    12.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    126.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          28.273        26.735        .37673E-03   -1.4644    
  15  Prefactor     10.000        327.83        .12660E-03   -1.5075    
  16  norm          .93094        .30472        .23217E-04   -1.5515    
  17  norm          .10000E-03    11.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7735        9.5040        .92095E-03   -1.5271    
  19  Prefactor     .10000E-03    27.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.6393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.0447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.107        10.465        .12604E-03   -1.5072    
  23  Prefactor     .10000E-03    3.3691        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4659        .32197        .32667E-03   -.78742    
  25  Prefactor     .97316        .18471        .22673E-03   -.93630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90783e-11
Minuit parameter uncertainties:
  1  6.53528e-09
  2  2.67899e-06
  3  9.19665e-05
  4  1.60819e-05
  5  7.2667e-05
  6  4.27304
  7  0.000139546
  8  3.56345
  9  1.14434e-05
  10  19.9099
  11  13.3418
  12  1.90043e-05
  13  0.000138241
  14  26.746
  15  115.209
  16  0.304719
  17  1.15647e-05
  18  9.50701
  19  1.80806e-05
  20  9.19192e-07
  21  5.25695e-07
  22  10.4666
  23  1.02834e-07
  24  0.322419
  25  0.184831
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.732e-01  1.848e-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.466e+00  3.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/856120/likelihoodResults_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.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) = 6073.72541833
delta logL = 0.0571022325266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6073.72280218
delta logL = 0.0597183858181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.347       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2187       1.0000          .0000       10.000    
     3 'Normalizat'    1.4904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96381       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=   6073.723     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      216 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.144        14.497         .0000        .33054E-04
   2  Index         2.2110        1.1293         .0000       -.68647E-03
   3  Normalizat    1.4910        .26510         .0000        .85253E-05
   4  Prefactor     .96376        .15255         .0000        .92881E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.144
  Index      = 2.21096
  Normalizat = 1.491
  Prefactor  = 0.963762
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.723     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.144        15.142        .12456E-03   -1.5071    
   2  Index         2.2110        1.1849        .49331E-02   -.59174    
   3  Normalizat    1.4910        .31611        .32437E-03   -.78032    
   4  Prefactor     .96376        .18142        .22767E-03   -.93947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02534e-11
Minuit parameter uncertainties:
  1  15.1476
  2  1.20166
  3  0.316528
  4  0.181534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856120': 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) = 6073.72271467
delta logL = 0.059805892708

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.014e+01  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.211e+00  1.202e+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.638e-01  1.815e-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.491e+00  3.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
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/856120/cmap_HighResolution_285984001_286243201_4FGL_J1238.5-1201_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', job_status='DONE', photon_flux_upper_limit='1.96e-07', time_completed='2021-09-06 02:46:10.339767', job_id='856120', GAL2='0.96', fit_tolerance='1e-08', EG2='1.49', EG='1.47', time_epoch_completed='1630921570.34', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.98e-02', ts2='0.91', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='180' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 856120: <4FGL_J1238.5-1201_daily_bin180> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin180> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:30:43 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:31: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:31:10 2021
Terminated at Mon Sep  6 02:46:11 2021
Results reported at Mon Sep  6 02:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin180 189.625 -12.028 285984001 286243201 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 :                                   715.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            928 sec.

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

