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


Performing analysis on: 4FGL_J1238.5-1201_daily_bin1088
RA = 189.625, Dec = -12.028
tmin = 521337601, tmax = 521596801
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='861331', job_status='RUN', time_executed='2021-09-06 02:50:06.206784', time_epoch_executed='1630921806.21' WHERE source_name='4FGL J1238.5-1201' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861331

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861331/ft1_4FGL_J1238.5-1201_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861331/ft2_4FGL_J1238.5-1201_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861331/ft1_4FGL_J1238.5-1201_daily_bin1088.fits outfile=/scratch/kocevski/861331/ft1_filteredMKT_4FGL_J1238.5-1201_daily_bin1088.fits ra=189.625 dec=-12.028 rad=12.0 tmin=521337601.0 tmax=521596801.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.28
user 4.01
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861331/ft1_filtered_4FGL_J1238.5-1201_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/861331/ft2_4FGL_J1238.5-1201_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/861331/ltcube_521337601_521596801_4FGL_J1238.5-1201_daily_bin1088.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/861331/ft2_4FGL_J1238.5-1201_daily_bin1088.fits
.....................!
real 13.55
user 13.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861331/ft1_filtered_4FGL_J1238.5-1201_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/861331/ft2_4FGL_J1238.5-1201_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/861331/ltcube_521337601_521596801_4FGL_J1238.5-1201_daily_bin1088.fits outfile=/scratch/kocevski/861331/expmap_521337601_521596801_4FGL_J1238.5-1201_daily_bin1088.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/861331/ltcube_521337601_521596801_4FGL_J1238.5-1201_daily_bin1088.fits
.....................!
real 157.44
user 153.05
sys 3.92

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/861331/ft1_filtered_4FGL_J1238.5-1201_daily_bin1088.fits scfile=/scratch/kocevski/861331/ft2_4FGL_J1238.5-1201_daily_bin1088.fits outfile=/scratch/kocevski/861331/cmap_521337601_521596801_4FGL_J1238.5-1201_daily_bin1088.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.49
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861331/ft1_filtered_4FGL_J1238.5-1201_daily_bin1088.fits scfile=/scratch/kocevski/861331/ft2_4FGL_J1238.5-1201_daily_bin1088.fits outfile=/scratch/kocevski/861331/cmap_HighResolution_521337601_521596801_4FGL_J1238.5-1201_daily_bin1088.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.53
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861331/ft1_filtered_4FGL_J1238.5-1201_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/861331/ft2_4FGL_J1238.5-1201_daily_bin1088.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861331/Model_4FGL_J1238.5-1201_daily_bin1088.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/861331/ft1_filtered_4FGL_J1238.5-1201_daily_bin1088.fits.....................!
real 51.27
user 49.89
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1922       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3913       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    73.607       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.444       1.0000         .10000E-03   10000.    
    14 'norm      '    .77504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.2298       1.0000         .10000E-03   10000.    
    17 'norm      '    20.393       1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    112.85       1.0000         .10000E-03   10000.    
    20 'norm      '    59.338       1.0000         .10000E-03   10000.    
    21 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10627       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3797       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74847       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=   7309.718     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2904 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1920        7.6489       -.87182E-08   -.10649E-03
   2  Prefactor     36.569        29.387       -.23383E-05   -.62282E-06
   3  Prefactor     .10000E-03    15.408       -.50870E-06** at limit **
   4  Prefactor     .10000E-03    7.3468       -.20228E-06** at limit **
   5  Prefactor     .10000E-03    45.179        .24937E-05** at limit **
   6  norm          2.3908        2.5637       -.43291E-07   -.20706E-04
   7  Prefactor     .10000E-03    9.1380        .13843E-06** at limit **
   8  Prefactor     10.836        3.3049       -.13675E-06    .56966E-04
   9  Prefactor     .10000E-03    3.4878        .56519E-07** at limit **
  10  Prefactor     .10000E-03    4.5529        .50195E-07** at limit **
  11  Prefactor     73.595        21.319        .18168E-05    .17346E-04
  12  Prefactor     1.8332        6.4699       -.16990E-05   -.37935E-03
  13  Prefactor     82.417        79.376       -.21329E-04    .31289E-04
  14  norm          .72319        37.243       -.40429E-05    .12174E-03
  15  Prefactor     .10000E-03    48.484       -.23043E-05** at limit **
  16  norm          7.2296        .73410        .81910E-07    .91982E-03
  17  norm          20.391        12.007       -.25275E-05    .12151E-05
  18  norm          .10000E-03    3.3840       -.95535E-07** at limit **
  19  Prefactor     112.90        96.314        .36697E-04    .26809E-04
  20  norm          59.347        22.800       -.74867E-05    .34451E-04
  21  norm          .10000E-03    7.4822        .59672E-07** at limit **
  22  Prefactor     .17001E-01    6.4072       -.34005E-06   -.17006E-04
  23  Prefactor     .10000E-03    3.6877       -.19942E-07** at limit **
  24  Normalizat    1.3799        .28803        .53305E-06    .12566E-03
  25  Prefactor     .74859        .14983        .11575E-05    .10846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.19196
  Prefactor  = 36.5686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39081
  Prefactor  = 0.0001
  Prefactor  = 10.8361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.5947
  Prefactor  = 1.83322
  Prefactor  = 82.4167
  norm       = 0.723191
  Prefactor  = 0.0001
  norm       = 7.22964
  norm       = 20.391
  norm       = 0.0001
  Prefactor  = 112.901
  norm       = 59.3475
  norm       = 0.0001
  Prefactor  = 0.0170013
  Prefactor  = 0.0001
  Normalizat = 1.3799
  Prefactor  = 0.748594
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.718     FROM HESSE     STATUS=OK           443 CALLS     3347 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1920        7.6462        .14007E-03   -1.5135    
   2  Prefactor     36.569        29.417        .66267E-04   -1.4498    
   3  Prefactor     .10000E-03    15.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3908        2.5604        .13814E-03   -1.5399    
   7  Prefactor     .10000E-03    9.4087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.836        3.3010        .82863E-04   -1.5049    
   9  Prefactor     .10000E-03    3.4927        .15594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5582        .17816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     73.595        21.397        .46797E-04   -1.3990    
  12  Prefactor     1.8332        6.4433        .30934E-03   -1.5437    
  13  Prefactor     82.417        79.658        .44237E-04   -1.3890    
  14  norm          .72319        41.965        .14855       -1.5538    
  15  Prefactor     .10000E-03    48.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.2296        .74371        .20726E-04   -1.5170    
  17  norm          20.391        12.024        .88693E-04   -1.4805    
  18  norm          .10000E-03    3.4058        .15356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     112.90        96.418        .18934E-03   -1.3579    
  20  norm          59.347        22.800        .26042E-03   -1.4166    
  21  norm          .10000E-03    7.5227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .17001E-01    9.0226        .72099E-01   -1.5682    
  23  Prefactor     .10000E-03    3.6916        .16034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3799        .35364        .38639E-03   -.81212    
  25  Prefactor     .74859        .18333        .27217E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90906e-09
Minuit parameter uncertainties:
  1  7.64712
  2  29.4285
  3  3.86482e-07
  4  2.58402e-06
  5  2.60339e-05
  6  2.56052
  7  4.30141e-05
  8  3.3011
  9  2.60269e-06
  10  1.39444e-06
  11  21.3989
  12  6.44577
  13  79.7612
  14  11.0253
  15  7.31671e-06
  16  0.743715
  17  12.0252
  18  1.69046e-06
  19  96.5523
  20  22.8033
  21  1.17545e-05
  22  0.781125
  23  9.47719e-07
  24  0.354271
  25  0.18348
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.486e-01  1.835e-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.380e+00  3.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.37
Ra Dec: 189.625 -12.028
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.61e-07 +/- 1.05e-07
Energy Flux (Fixed Index): 8.98e-05 +/- 2.61e-05

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) = 7308.68386769
delta logL = 1.03457848898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7308.63045761
delta logL = 1.08798857394

Fit tolerance = 1e-08

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

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

 FCN=   7308.630     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      216 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.620        27.157        .11115E-02   -.28647E-02
   2  Index         2.2287        .28478        .12250       -.12050E-04
   3  Normalizat    1.4908        .28057        .84656E-01    .97170E-05
   4  Prefactor     .70542        .14869        .63172E-01    .20048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.6198
  Index      = 2.22875
  Normalizat = 1.49076
  Prefactor  = 0.705423
 **********
 **   18 **HESSE 
 **********

 FCN=   7308.630     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.620        25.041        .44458E-04   -1.3899    
   2  Index         2.2287        .27894        .50991E-02   -.58746    
   3  Normalizat    1.4908        .34447        .37477E-03   -.78038    
   4  Prefactor     .70542        .18121        .27946E-03   -1.0331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36499e-09
Minuit parameter uncertainties:
  1  25.0446
  2  0.279152
  3  0.345009
  4  0.181362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861331': 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) = 7308.63045741
delta logL = 1.08798876776

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.054e-01  1.814e-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.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.05
Ra Dec: 189.625 -12.028
Photon Index (Free Index): 2.23 +/- 0.28
Photon Flux (Free Index): 2.65e-07 +/- 1.07e-07
Energy Flux (Free Index): 1.13e-04 +/- 4.34e-05

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/861331/cmap_HighResolution_521337601_521596801_4FGL_J1238.5-1201_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-07', energy_flux2='1.13e-04', photon_flux_error='1.05e-07', dlogl='1.09e+00', energy_flux='8.98e-05', photon_flux2='2.65e-07', job_status='DONE', time_completed='2021-09-06 03:00:16.499444', photon_index_error2='0.28', photon_index2='2.23', ts='29.37', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='4.34e-05', EG='1.38', time_epoch_completed='1630922416.5', return_code='0', job_id='861331', GAL2='0.71', EG2='1.49', return_code2='0', energy_flux_error='2.61e-05', photon_flux_error2='1.07e-07', ts2='31.05', photon_index='2.66' WHERE bin_id='1088' AND source_name='4FGL J1238.5-1201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:00:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 861331: <4FGL_J1238.5-1201_daily_bin1088> in cluster <slac> Done

Job <4FGL_J1238.5-1201_daily_bin1088> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 02:46:24 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:48:12 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:48:12 2021
Terminated at Mon Sep  6 03:00:17 2021
Results reported at Mon Sep  6 03:00:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.5-1201_daily_bin1088 189.625 -12.028 521337601 521596801 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 :                                   604.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             266.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            833 sec.

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

