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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin412
RA = 189.625, Dec = -12.028
tmin = 346118401, tmax = 346377601
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='857710', job_status='RUN', time_executed='2021-09-06 02:39:33.073702', time_epoch_executed='1630921173.07' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857710

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857710/ft1_4FGL_J1238.5-1201_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857710/ft2_4FGL_J1238.5-1201_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857710/ft1_4FGL_J1238.5-1201_daily_bin412.fits outfile=/scratch/kocevski/857710/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin412.fits ra=189.625 dec=-12.028 rad=12.0 tmin=346118401.0 tmax=346377601.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 4.15
user 3.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857710/ft1_filtered_4FGL_J1238.5-1201_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/857710/ft2_4FGL_J1238.5-1201_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/857710/ltcube_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.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/857710/ft2_4FGL_J1238.5-1201_daily_bin412.fits
.....................!
real 13.89
user 13.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857710/ft1_filtered_4FGL_J1238.5-1201_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/857710/ft2_4FGL_J1238.5-1201_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/857710/ltcube_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.fits outfile=/scratch/kocevski/857710/expmap_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.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/857710/ltcube_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.fits
.....................!
real 195.30
user 188.72
sys 5.18

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/857710/ft1_filtered_4FGL_J1238.5-1201_daily_bin412.fits scfile=/scratch/kocevski/857710/ft2_4FGL_J1238.5-1201_daily_bin412.fits outfile=/scratch/kocevski/857710/cmap_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857710/ft1_filtered_4FGL_J1238.5-1201_daily_bin412.fits scfile=/scratch/kocevski/857710/ft2_4FGL_J1238.5-1201_daily_bin412.fits outfile=/scratch/kocevski/857710/cmap_HighResolution_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.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/857710/ft1_filtered_4FGL_J1238.5-1201_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/857710/ft2_4FGL_J1238.5-1201_daily_bin412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857710/Model_4FGL_J1238.5-1201_daily_bin412.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/857710/ft1_filtered_4FGL_J1238.5-1201_daily_bin412.fits.....................!
real 53.39
user 51.10
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.772       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.577       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3227       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0627       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3638       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9038       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.225       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .99670       1.0000         .10000E-03   10000.    
    17 'norm      '    20.214       1.0000         .10000E-03   10000.    
    18 'norm      '    .56548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.076       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8279       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.459       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0276       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=   6188.493     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2904 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88396        2.8378        .93532E-06    .61397E-03
   2  Prefactor     .10000E-03    5.6042       -.17583E-06** at limit **
   3  Prefactor     .10000E-03    19.885       -.13828E-04** at limit **
   4  Prefactor     16.776        18.847        .78919E-05    .14299E-04
   5  Prefactor     38.540        50.374       -.42673E-04    .53711E-05
   6  norm          1.3228        1.8379       -.44974E-07   -.16206E-04
   7  Prefactor     2.0623        4.5296       -.46650E-06   -.29851E-04
   8  Prefactor     6.3637        2.6134       -.35668E-08    .53493E-04
   9  Prefactor     1.9031        5.7868       -.11901E-05   -.87301E-03
  10  Prefactor     18.222        17.288       -.43907E-06    .13224E-04
  11  Prefactor     .10000E-03    13.318       -.13459E-05** at limit **
  12  Prefactor     .10000E-03    8.6206        .52514E-05** at limit **
  13  Prefactor     .10000E-03    17.485        .12526E-04** at limit **
  14  norm          .10000E-03    8.9333       -.59088E-05** at limit **
  15  Prefactor     .10000E-03    64.173       -.10105E-04** at limit **
  16  norm          .99676        .28231       -.20220E-07   -.10102E-02
  17  norm          20.212        10.311       -.19075E-06    .16834E-04
  18  norm          .56167        1.3077        .58804E-06   -.22669E-02
  19  Prefactor     .10000E-03    42.916        .11722E-04** at limit **
  20  norm          16.077        12.711       -.18336E-06   -.36247E-04
  21  norm          .10000E-03    5.0279       -.16944E-08** at limit **
  22  Prefactor     4.8276        8.2846       -.29981E-06   -.65644E-05
  23  Prefactor     14.460        9.5071       -.15824E-06   -.75381E-06
  24  Normalizat    1.0582        .24586        .14065E-06   -.29641E-04
  25  Prefactor     1.0278        .14343        .13111E-05   -.13645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.883961
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.7763
  Prefactor  = 38.5399
  norm       = 1.32279
  Prefactor  = 2.06227
  Prefactor  = 6.3637
  Prefactor  = 1.90308
  Prefactor  = 18.2217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.99676
  norm       = 20.2125
  norm       = 0.561669
  Prefactor  = 0.0001
  norm       = 16.0767
  norm       = 0.0001
  Prefactor  = 4.82758
  Prefactor  = 14.4596
  Normalizat = 1.05819
  Prefactor  = 1.02783
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.493     FROM HESSE     STATUS=OK           433 CALLS     3337 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88396        2.7263        .22874E-02   -1.5520    
   2  Prefactor     .10000E-03    5.6093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.776        18.840        .97797E-04   -1.4889    
   5  Prefactor     38.540        50.363        .64532E-04   -1.4466    
   6  norm          1.3228        1.8108        .12250E-03   -1.5478    
   7  Prefactor     2.0623        4.4932        .23675E-03   -1.5421    
   8  Prefactor     6.3637        2.6123        .78117E-04   -1.5203    
   9  Prefactor     1.9031        5.9720        .15069E-02   -1.5432    
  10  Prefactor     18.222        17.303        .93818E-04   -1.4854    
  11  Prefactor     .10000E-03    13.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8622        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.9408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    64.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .99676        .28286        .21026E-04   -1.5508    
  17  norm          20.212        10.317        .89085E-04   -1.4808    
  18  norm          .56167        9.9764        .23071E-02   -1.5558    
  19  Prefactor     .10000E-03    42.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.077        12.714        .99893E-04   -1.4906    
  21  norm          .10000E-03    5.0357        .17228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.8276        8.2748        .18309E-03   -1.5268    
  23  Prefactor     14.460        9.5104        .10533E-03   -1.4947    
  24  Normalizat    1.0582        .28551        .34250E-03   -.91106    
  25  Prefactor     1.0278        .16778        .20679E-03   -.91808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1285e-08
Minuit parameter uncertainties:
  1  2.72664
  2  3.09243e-06
  3  0.00030094
  4  18.8462
  5  50.4187
  6  1.81092
  7  4.49395
  8  2.6123
  9  5.97383
  10  17.3081
  11  1.79679e-05
  12  5.90416e-05
  13  3.40895e-06
  14  7.20444e-06
  15  5.44637e-05
  16  0.282859
  17  10.3177
  18  4.73483
  19  1.46913e-05
  20  12.7163
  21  2.43832e-06
  22  8.27676
  23  9.51139
  24  0.285928
  25  0.167861
Done.

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

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.797e-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.028e+00  1.679e-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.058e+00  2.859e-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.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857710/likelihoodResults_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.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) = 6188.49372429
delta logL = -0.000353369102413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6188.49337168
delta logL = -7.56585905037e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13317E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7103       1.0000          .0000       10.000    
     3 'Normalizat'    1.0583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       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.

 FCN=   6188.493     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    6654.4        .18142E-02** at limit **
   2  Index         2.7716        5.5848        .50000       -.38637E-04
   3  Normalizat    1.0582        .14901        .34250E-03   -.48130E-05
   4  Prefactor     1.0278        .89073E-01    .20679E-03   -.21771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 2.77162
  Normalizat = 1.05819
  Prefactor  = 1.02783
 **********
 **   18 **HESSE 
 **********

 FCN=   6188.493     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    19.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7716        6.3803        .50000       -.46193    
   3  Normalizat    1.0582        .27170        .13700E-04   -.91106    
   4  Prefactor     1.0278        .16322        .82715E-05   -.91807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36299e-09
Minuit parameter uncertainties:
  1  0.00147301
  2  4.66667
  3  0.272062
  4  0.163295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857710': 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) = 6188.49337
delta logL = 9.27157088881e-07

Extracting fit parameters...

4FGL J1238.5-1201
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.473e-03  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.772e+00  4.667e+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:  1.028e+00  1.633e-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.058e+00  2.721e-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/857710/cmap_HighResolution_346118401_346377601_4FGL_J1238.5-1201_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-06 02:51:54.699807', job_id='857710', GAL2='1.03', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630921914.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='412' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 857710: <4FGL_J1238.5-1201_daily_bin412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin412 189.625 -12.028 346118401 346377601 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 :                                   734.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            990 sec.

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

