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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1213
RA = 228.07, Dec = 2.0403
tmin = 553737601, tmax = 553996801
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='227104', job_status='RUN', time_executed='2021-09-11 09:55:17.822122', time_epoch_executed='1631379317.82' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227104

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227104/ft1_4FGL_J1512.2+0202_daily_bin1213.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227104/ft2_4FGL_J1512.2+0202_daily_bin1213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227104/ft1_4FGL_J1512.2+0202_daily_bin1213.fits outfile=/scratch/kocevski/227104/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1213.fits ra=228.07 dec=2.0403 rad=12.0 tmin=553737601.0 tmax=553996801.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 2.55
user 2.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227104/ft1_filtered_4FGL_J1512.2+0202_daily_bin1213.fits" evtable="EVENTS" scfile=/scratch/kocevski/227104/ft2_4FGL_J1512.2+0202_daily_bin1213.fits sctable="SC_DATA" outfile=/scratch/kocevski/227104/ltcube_553737601_553996801_4FGL_J1512.2+0202_daily_bin1213.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/227104/ft2_4FGL_J1512.2+0202_daily_bin1213.fits
.....................!
real 12.45
user 12.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227104/ft1_filtered_4FGL_J1512.2+0202_daily_bin1213.fits evtable="EVENTS" scfile=/scratch/kocevski/227104/ft2_4FGL_J1512.2+0202_daily_bin1213.fits sctable="SC_DATA" expcube=/scratch/kocevski/227104/ltcube_553737601_553996801_4FGL_J1512.2+0202_daily_bin1213.fits outfile=/scratch/kocevski/227104/expmap_553737601_553996801_4FGL_J1512.2+0202_daily_bin1213.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/227104/ltcube_553737601_553996801_4FGL_J1512.2+0202_daily_bin1213.fits
.....................!
real 190.48
user 184.93
sys 5.17

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/227104/ft1_filtered_4FGL_J1512.2+0202_daily_bin1213.fits scfile=/scratch/kocevski/227104/ft2_4FGL_J1512.2+0202_daily_bin1213.fits outfile=/scratch/kocevski/227104/cmap_553737601_553996801_4FGL_J1512.2+0202_daily_bin1213.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227104/ft1_filtered_4FGL_J1512.2+0202_daily_bin1213.fits scfile=/scratch/kocevski/227104/ft2_4FGL_J1512.2+0202_daily_bin1213.fits outfile=/scratch/kocevski/227104/cmap_HighResolution_553737601_553996801_4FGL_J1512.2+0202_daily_bin1213.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9731       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17534E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .88358       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.1487       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5304       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8663       1.0000         .10000E-03   10000.    
    10 'norm      '    .28215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4736       1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.734       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .96168       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8885       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3327       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93600       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10374.56     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1871 TOTAL
                     EDM=   .51E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    37.970         .0000    ** at limit **
   2  Prefactor     .10000E-03    9.0916         .0000    ** at limit **
   3  norm          2.9666        8.1664         .0000        .18917E-02
   4  Prefactor     .10001E-03    49.613         .0000    ** at limit **
   5  norm          .88337        .21997         .0000       -.13211E-03
   6  norm          .10000E-03    .49207         .0000    ** at limit **
   7  norm          7.1486        6.1177         .0000        .46824E-04
   8  norm          3.5309        2.8565         .0000       -.23822E-02
   9  norm          3.8663        2.7020         .0000       -.56912E-02
  10  norm          .28216        .94124E-01     .0000        .14534E-02
  11  Prefactor     1.6020        6.1799         .0000        .19917E-01
  12  Prefactor     13.042        34.657         .0000       -.12467E-02
  13  Prefactor     .10000E-03    1.1728         .0000    ** at limit **
  14  Prefactor     5.4737        10.746         .0000        .12454E-02
  15  Prefactor     85.734        65.254         .0000       -.10612E-02
  16  Prefactor     .96284        3.3076         .0000        .45565E-02
  17  norm          2.8885        2.6158         .0000       -.47169E-02
  18  Normalizat    1.3325        .19138         .0000       -.92314E-04
  19  Prefactor     .93605        .89571E-01     .0000       -.21824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 2.96659
  Prefactor  = 0.000100011
  norm       = 0.883375
  norm       = 0.0001
  norm       = 7.14858
  norm       = 3.53089
  norm       = 3.86627
  norm       = 0.282163
  Prefactor  = 1.60197
  Prefactor  = 13.0417
  Prefactor  = 0.0001
  Prefactor  = 5.47371
  Prefactor  = 85.7343
  Prefactor  = 0.962836
  norm       = 2.88848
  Normalizat = 1.33245
  Prefactor  = 0.936053
 **********
 **   18 **HESSE 
 **********

 FCN=   10374.56     FROM HESSE     STATUS=OK           264 CALLS     2135 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    38.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9666        8.1401        .23548E-03   -1.5363    
   4  Prefactor     .10001E-03    50.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .88337        .22025        .22443E-04   -1.5520    
   6  norm          .10000E-03    .49782        .69732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.1486        6.1204        .15003E-03   -1.5173    
   8  norm          3.5309        2.8562        .14934E-03   -1.5332    
   9  norm          3.8663        2.6994        .13590E-03   -1.5315    
  10  norm          .28216        .94433E-01    .15698E-04   -1.5602    
  11  Prefactor     1.6020        6.2147        .16744E-02   -1.5455    
  12  Prefactor     13.042        34.667        .11093E-03   -1.4986    
  13  Prefactor     .10000E-03    1.1850        .10769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4737        10.733        .85872E-03   -1.5240    
  15  Prefactor     85.734        65.362        .43387E-04   -1.3853    
  16  Prefactor     .96284        3.3301        .32564E-03   -1.5512    
  17  norm          2.8885        2.6103        .15167E-03   -1.5368    
  18  Normalizat    1.3325        .22262        .33651E-03   -.82603    
  19  Prefactor     .93605        .10450        .18523E-03   -.94892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13593e-08
Minuit parameter uncertainties:
  1  0.0011393
  2  3.41242e-05
  3  8.14315
  4  0.0014694
  5  0.220253
  6  7.26388e-08
  7  6.12095
  8  2.85634
  9  2.6995
  10  0.094433
  11  6.2172
  12  34.7203
  13  6.17973e-07
  14  10.7371
  15  65.4165
  16  3.33073
  17  2.6104
  18  0.222785
  19  0.104527
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.866e+00  2.699e+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:  9.361e-01  1.045e-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.332e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.17e-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) = 10373.9582414
delta logL = 0.605594051076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10373.9477889
delta logL = 0.616046609608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2364       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4135       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93399       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=   10373.95     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2357        3.5788        .48942E-02    .90968E-04
   2  alpha         1.4131        .51114        .46087       -.20362E-04
   3  Normalizat    1.3410        .18661        .75830E-01    .47717E-04
   4  Prefactor     .93400        .88371E-01    .45437E-01    .67115E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.23573
  alpha      = 1.41306
  Normalizat = 1.341
  Prefactor  = 0.934
 **********
 **   18 **HESSE 
 **********

 FCN=   10373.95     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2357        2.9253        .13648E-03   -1.5296    
   2  alpha         1.4131        .47390        .17968E-01   -.44979    
   3  Normalizat    1.3410        .21634        .33559E-03   -.82351    
   4  Prefactor     .93400        .10271        .18537E-03   -.94963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06383e-10
Minuit parameter uncertainties:
  1  2.92545
  2  0.477475
  3  0.216485
  4  0.102736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227104': 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) = 10373.9477884
delta logL = 0.616047051999

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.236e+00  2.925e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.413e+00  4.775e-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:  9.340e-01  1.027e-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.341e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.68
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.41 +/- 0.48
Photon Flux (Free Index): 1.83e-08 +/- 1.43e-08
Energy Flux (Free Index): 3.22e-05 +/- 2.94e-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/227104/cmap_HighResolution_553737601_553996801_4FGL_J1512.2+0202_daily_bin1213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='3.22e-05', photon_flux_error='1.87e-08', dlogl='6.16e-01', energy_flux='1.67e-05', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-09-11 10:05:38.145147', photon_index_error2='0.48', photon_index2='1.41', ts='4.45', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='1.33', time_epoch_completed='1631379938.15', return_code='0', job_id='227104', GAL2='0.93', EG2='1.34', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.43e-08', ts2='5.68', photon_index='1.97' WHERE bin_id='1213' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:05:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 227104: <4FGL_J1512.2+0202_daily_bin1213> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1213> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:51:16 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:51:18 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:51:18 2021
Terminated at Sat Sep 11 10:05:39 2021
Results reported at Sat Sep 11 10:05:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1213 228.07 2.0403 553737601 553996801 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 :                                   617.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

