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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin509
RA = 228.07, Dec = 2.0403
tmin = 371260801, tmax = 371520001
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='222506', job_status='RUN', time_executed='2021-09-11 09:38:57.966429', time_epoch_executed='1631378337.97' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222506

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222506/ft1_4FGL_J1512.2+0202_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222506/ft1_4FGL_J1512.2+0202_daily_bin509.fits outfile=/scratch/kocevski/222506/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin509.fits ra=228.07 dec=2.0403 rad=12.0 tmin=371260801.0 tmax=371520001.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 5.29
user 5.06
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.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/222506/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/222506/ft1_filtered_4FGL_J1512.2+0202_daily_bin509.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222506/ft1_filtered_4FGL_J1512.2+0202_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/222506/ltcube_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.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/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits
.....................!
real 11.56
user 11.16
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222506/ft1_filtered_4FGL_J1512.2+0202_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/222506/ltcube_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.fits outfile=/scratch/kocevski/222506/expmap_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.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/222506/ltcube_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.fits
.....................!
real 192.63
user 186.71
sys 5.36

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/222506/ft1_filtered_4FGL_J1512.2+0202_daily_bin509.fits scfile=/scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits outfile=/scratch/kocevski/222506/cmap_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222506/ft1_filtered_4FGL_J1512.2+0202_daily_bin509.fits scfile=/scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits outfile=/scratch/kocevski/222506/cmap_HighResolution_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.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.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222506/ft1_filtered_4FGL_J1512.2+0202_daily_bin509.fits', '/scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits', expMap='/scratch/kocevski/222506/expmap_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.fits', expCube='/scratch/kocevski/222506/ltcube_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222506/Model_4FGL_J1512.2+0202_daily_bin509.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/222506/ft1_filtered_4FGL_J1512.2+0202_daily_bin509.fits
Spacecraft file(s): /scratch/kocevski/222506/ft2_4FGL_J1512.2+0202_daily_bin509.fits
Exposure map: /scratch/kocevski/222506/expmap_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.fits
Exposure cube: /scratch/kocevski/222506/ltcube_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222506/Model_4FGL_J1512.2+0202_daily_bin509.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) = 9374.07642567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10827E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .16537       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6793       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.731       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5963       1.0000         .10000E-03   10000.    
    10 'norm      '    .40069       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8834       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74945       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4681       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0674       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0053       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=   9374.072     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1898 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.823       -.23539E-04** at limit **
   2  Prefactor     .10000E-03    58.503       -.19161E-04** at limit **
   3  norm          .10000E-03    13.210       -.19387E-05** at limit **
   4  Prefactor     .10000E-03    33.986        .32669E-04** at limit **
   5  norm          .16538        .13627       -.45979E-07   -.31737E-02
   6  norm          1.6794        1.7270       -.16098E-06   -.65085E-03
   7  norm          .10000E-03    1.8936       -.95259E-09** at limit **
   8  norm          13.732        5.4284       -.12660E-05   -.10819E-03
   9  norm          1.5963        1.6259        .78905E-07    .41188E-03
  10  norm          .40072        .11768        .24516E-07   -.68717E-03
  11  Prefactor     4.8815        10.399       -.52950E-06   -.15894E-03
  12  Prefactor     7.4440        24.573       -.51504E-05   -.12404E-04
  13  Prefactor     .10000E-03    1.5108        .43434E-08** at limit **
  14  Prefactor     14.630        18.964        .36166E-06    .33031E-04
  15  Prefactor     .10000E-03    15.951        .57235E-05** at limit **
  16  Prefactor     .74578        2.5880       -.10322E-05   -.65257E-03
  17  norm          5.4681        3.5296       -.68146E-06   -.29666E-02
  18  Normalizat    1.0672        .19667        .58656E-06    .29294E-04
  19  Prefactor     1.0054        .90643E-01    .49149E-06    .11105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.165381
  norm       = 1.67945
  norm       = 0.0001
  norm       = 13.7315
  norm       = 1.5963
  norm       = 0.400717
  Prefactor  = 4.88146
  Prefactor  = 7.44402
  Prefactor  = 0.0001
  Prefactor  = 14.6295
  Prefactor  = 0.0001
  Prefactor  = 0.745782
  norm       = 5.46813
  Normalizat = 1.06722
  Prefactor  = 1.00538
 **********
 **   18 **HESSE 
 **********

 FCN=   9374.072     FROM HESSE     STATUS=OK           274 CALLS     2172 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    59.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .16538        .12955        .31135E-03   -1.5627    
   6  norm          1.6794        1.7144        .12339E-03   -1.5449    
   7  norm          .10000E-03    1.8948        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.732        5.4322        .10809E-03   -1.4967    
   9  norm          1.5963        1.6402        .12136E-03   -1.5455    
  10  norm          .40072        .12324        .14220E-04   -1.5581    
  11  Prefactor     4.8815        10.916        .18202E-03   -1.5266    
  12  Prefactor     7.4440        24.579        .14695E-03   -1.5162    
  13  Prefactor     .10000E-03    1.5225        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.630        18.945        .10472E-03   -1.4943    
  15  Prefactor     .10000E-03    15.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .74578        4.1530        .27176E-02   -1.5535    
  17  norm          5.4681        3.5758        .71202E-03   -1.5240    
  18  Normalizat    1.0672        .22356        .36435E-03   -.90811    
  19  Prefactor     1.0054        .10438        .17425E-03   -.92551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66312e-09
Minuit parameter uncertainties:
  1  1.1137e-06
  2  0.000113175
  3  1.04369e-05
  4  0.00061133
  5  0.129554
  6  1.71449
  7  3.07507e-07
  8  5.43242
  9  1.64025
  10  0.123241
  11  10.9203
  12  24.6124
  13  1.74082e-06
  14  18.9531
  15  3.4689e-06
  16  3.51994
  17  3.57598
  18  0.223759
  19  0.104405
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.596e+00  1.640e+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

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.005e+00  1.044e-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.067e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 6.90e-06 +/- 7.09e-06

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) = 9373.3717392
delta logL = 0.70041683027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9373.30526934
delta logL = 0.766886695103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0007       1.0000         .10000E-03   10000.    
     2 'alpha     '    .86804       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0050       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.

 FCN=   9373.305     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0006        1.0117        .20453E-01   -.50936E-03
   2  alpha         .86803        .61848        .50000       -.38689E-04
   3  Normalizat    1.0721        .19169        .82134E-01    .10293E-03
   4  Prefactor     1.0050        .89751E-01    .44181E-01    .18390E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00061
  alpha      = 0.868027
  Normalizat = 1.07206
  Prefactor  = 1.00505
 **********
 **   18 **HESSE 
 **********

 FCN=   9373.305     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0006        1.4156        .90325E-03   -1.5508    
   2  alpha         .86803        .79385        .29707E-02   -.71126    
   3  Normalizat    1.0721        .22018        .36363E-03   -.90654    
   4  Prefactor     1.0050        .10330        .17427E-03   -.92562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04653e-09
Minuit parameter uncertainties:
  1  1.41562
  2  0.819157
  3  0.220373
  4  0.103325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222506': 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) = 9373.30526933
delta logL = 0.76688669981

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.001e+00  1.416e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  8.680e-01  8.192e-01  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:  1.005e+00  1.033e-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.072e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 228.070 2.040
Photon Index (Free Index): 0.87 +/- 0.82
Photon Flux (Free Index): 4.40e-09 +/- 4.97e-09
Energy Flux (Free Index): 2.58e-05 +/- 4.17e-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/222506/cmap_HighResolution_371260801_371520001_4FGL_J1512.2+0202_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='2.58e-05', photon_flux_error='1.13e-08', dlogl='7.67e-01', energy_flux='6.90e-06', photon_flux2='4.40e-09', job_status='DONE', time_completed='2021-09-11 09:49:02.723311', photon_index_error2='0.82', photon_index2='0.87', ts='4.37', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='4.17e-05', EG='1.07', time_epoch_completed='1631378942.72', return_code='0', job_id='222506', GAL2='1.01', EG2='1.07', return_code2='0', energy_flux_error='7.09e-06', photon_flux_error2='4.97e-09', ts2='5.90', photon_index='1.97' WHERE bin_id='509' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 222506: <4FGL_J1512.2+0202_daily_bin509> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin509> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 09:36:31 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:36:33 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:36:33 2021
Terminated at Sat Sep 11 09:49:03 2021
Results reported at Sat Sep 11 09:49:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin509 228.07 2.0403 371260801 371520001 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 :                                   596.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

