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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1550
RA = 228.07, Dec = 2.0403
tmin = 641088001, tmax = 641347201
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='227623', job_status='RUN', time_executed='2021-09-11 09:54:48.712927', time_epoch_executed='1631379288.71' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227623/ft1_4FGL_J1512.2+0202_daily_bin1550.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227623/ft1_4FGL_J1512.2+0202_daily_bin1550.fits outfile=/scratch/kocevski/227623/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1550.fits ra=228.07 dec=2.0403 rad=12.0 tmin=641088001.0 tmax=641347201.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.03
user 2.82
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.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/227623/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1550.fits evtable="EVENTS" outfile="/scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.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.58
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits" evtable="EVENTS" scfile=/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits sctable="SC_DATA" outfile=/scratch/kocevski/227623/ltcube_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.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/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits
.....................!
real 15.15
user 14.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits sctable="SC_DATA" expcube=/scratch/kocevski/227623/ltcube_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.fits outfile=/scratch/kocevski/227623/expmap_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.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/227623/ltcube_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.fits
.....................!
real 191.45
user 186.67
sys 4.39

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J1512.2+0202 @ 228.07 2.0403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits scfile=/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits outfile=/scratch/kocevski/227623/cmap_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.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=228.07 yref=2.0403 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits scfile=/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits outfile=/scratch/kocevski/227623/cmap_HighResolution_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.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=228.07 yref=2.0403 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits evtable="EVENTS" scfile=/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227623/Model_4FGL_J1512.2+0202_daily_bin1550.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/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits......................!
real 22.72
user 21.39
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits', '/scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits', expMap='/scratch/kocevski/227623/expmap_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.fits', expCube='/scratch/kocevski/227623/ltcube_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/227623/Model_4FGL_J1512.2+0202_daily_bin1550.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1512.2+0202'

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.359e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  1.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/227623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1550.fits
Spacecraft file(s): /scratch/kocevski/227623/ft2_4FGL_J1512.2+0202_daily_bin1550.fits
Exposure map: /scratch/kocevski/227623/expmap_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.fits
Exposure cube: /scratch/kocevski/227623/ltcube_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/227623/Model_4FGL_J1512.2+0202_daily_bin1550.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) = 1310.99052708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1003.7       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15042E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.214       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.0618       1.0000         .10000E-03   10000.    
     7 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.704       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0970       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9827       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12570E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16154E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.019       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8132       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .32679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1310.987     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2579 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1003.4        632.89       -.99469E-04   -.27712E-04
   2  Prefactor     .10006E-03    264.47       -.26816E-04** at limit **
   3  norm          2.5706        216.52        .10048E-03    .44830E-04
   4  Prefactor     23.207        54.259       -.12406E-04   -.50198E-04
   5  norm          .10000E-03    .11319        .41307E-09** at limit **
   6  norm          3.0435        29.825        .20171E-05   -.15762E-03
   7  norm          .10000E-03    10.134       -.66960E-08** at limit **
   8  norm          31.708        71.953        .36147E-05    .18347E-05
   9  norm          3.1395        139.05        .51198E-05   -.49782E-04
  10  norm          1.9823        1.9819        .17672E-06    .13701E-02
  11  Prefactor     .10000E-03    125.22       -.30648E-04** at limit **
  12  Prefactor     .10000E-03    60.374        .19422E-05** at limit **
  13  Prefactor     .10000E-03    29.542       -.11844E-06** at limit **
  14  Prefactor     .10000E-03    35.556       -.73690E-06** at limit **
  15  Prefactor     .10000E-03    168.47        .58002E-04** at limit **
  16  Prefactor     .10000E-03    20.302       -.37357E-06** at limit **
  17  norm          11.016        10.229        .81581E-06   -.77677E-05
  18  Normalizat    1.8139        .52948        .37721E-05   -.90928E-04
  19  Prefactor     .32636        .23941       -.12076E-05   -.27226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1003.43
  Prefactor  = 0.000100062
  norm       = 2.57058
  Prefactor  = 23.2073
  norm       = 0.0001
  norm       = 3.04352
  norm       = 0.0001
  norm       = 31.7078
  norm       = 3.1395
  norm       = 1.98235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.016
  Normalizat = 1.81387
  Prefactor  = 0.32636
 **********
 **   18 **HESSE 
 **********

 FCN=   1310.987     FROM HESSE     STATUS=OK           262 CALLS     2841 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1003.4        628.97        .66556E-04   -.92615    
   2  Prefactor     .10006E-03    265.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5706        216.29        .25800E-03   -1.5387    
   4  Prefactor     23.207        54.224        .83137E-04   -1.4744    
   5  norm          .10000E-03    .11685        .23713E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.0435        21.945        .21742E-03   -1.5359    
   7  norm          .10000E-03    10.226        .11258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.708        71.879        .71162E-04   -1.4581    
   9  norm          3.1395        102.77        .23044E-03   -1.5354    
  10  norm          1.9823        1.9961        .24614E-03   -1.5426    
  11  Prefactor     .10000E-03    125.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    167.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.710        .15901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.016        10.207        .10259E-03   -1.5044    
  18  Normalizat    1.8139        .62817        .26587E-03   -.69302    
  19  Prefactor     .32636        .27889        .25153E-03   -1.2075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13234e-09
Minuit parameter uncertainties:
  1  633.656
  2  0.0081902
  3  47.336
  4  54.3389
  5  2.08282e-08
  6  16.3533
  7  6.54818e-07
  8  72.0766
  9  35.9919
  10  1.99618
  11  5.92272e-05
  12  0.000102962
  13  0.000179689
  14  4.42653e-05
  15  2.22869e-05
  16  0.000133319
  17  10.2087
  18  0.631005
  19  0.280049
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.140e+00  3.599e+01  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  1.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  3.264e-01  2.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.814e+00  6.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 4.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227623/likelihoodResults_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.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) = 1310.81494359
delta logL = 0.172276606267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1310.80186329
delta logL = 0.185356911006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1097       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7145       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+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=   1310.802     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      296 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1125        17.452        .14079E-03   -.13752E-02
   2  alpha         2.7143        1.0596        .11395E-01   -.20957E-03
   3  Normalizat    1.8111        .61318        .26543E-03    .16843E-03
   4  Prefactor     .30715        .27061        .25820E-03    .26360E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.11247
  alpha      = 2.7143
  Normalizat = 1.81115
  Prefactor  = 0.307146
 **********
 **   18 **HESSE 
 **********

 FCN=   1310.802     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1125        16.848        .28158E-04   -1.5138    
   2  alpha         2.7143        1.0251        .45579E-03    .85824E-01
   3  Normalizat    1.8111        .61352        .53085E-04   -.69373    
   4  Prefactor     .30715        .27065        .51639E-04   -1.2185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.02851e-09
Minuit parameter uncertainties:
  1  16.858
  2  1.05648
  3  0.616157
  4  0.271769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227623': 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) = 1310.8018608
delta logL = 0.185359400816

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  8.112e+00  1.686e+01  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.714e+00  1.056e+00  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  1.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  3.071e-01  2.718e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.811e+00  6.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 228.070 2.040

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/227623/cmap_HighResolution_641088001_641347201_4FGL_J1512.2+0202_daily_bin1550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-04', job_status='DONE', photon_flux_upper_limit='4.51e-07', time_completed='2021-09-11 10:00:56.403951', job_id='227623', GAL2='0.31', fit_tolerance='1e-08', EG2='1.81', EG='1.81', time_epoch_completed='1631379656.4', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.33', dlogl='1.85e-01', ts2='0.39', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1550' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 227623: <4FGL_J1512.2+0202_daily_bin1550> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1550> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:52:00 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:52:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 09:52:02 2021
Terminated at Sat Sep 11 10:00:57 2021
Results reported at Sat Sep 11 10:00:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1550 228.07 2.0403 641088001 641347201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1512.2+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   363.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             201.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            537 sec.

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

