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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1193
RA = 228.07, Dec = 2.0403
tmin = 548553601, tmax = 548812801
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='227069', job_status='RUN', time_executed='2021-09-11 09:51:29.167690', time_epoch_executed='1631379089.17' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227069/ft1_4FGL_J1512.2+0202_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227069/ft2_4FGL_J1512.2+0202_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227069/ft1_4FGL_J1512.2+0202_daily_bin1193.fits outfile=/scratch/kocevski/227069/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1193.fits ra=228.07 dec=2.0403 rad=12.0 tmin=548553601.0 tmax=548812801.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.45
user 3.16
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227069/ft2_4FGL_J1512.2+0202_daily_bin1193.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/227069/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1193.fits evtable="EVENTS" outfile="/scratch/kocevski/227069/ft1_filtered_4FGL_J1512.2+0202_daily_bin1193.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227069/ft1_filtered_4FGL_J1512.2+0202_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/227069/ft2_4FGL_J1512.2+0202_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/227069/ltcube_548553601_548812801_4FGL_J1512.2+0202_daily_bin1193.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/227069/ft2_4FGL_J1512.2+0202_daily_bin1193.fits
.....................!
real 11.95
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227069/ft1_filtered_4FGL_J1512.2+0202_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/227069/ft2_4FGL_J1512.2+0202_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/227069/ltcube_548553601_548812801_4FGL_J1512.2+0202_daily_bin1193.fits outfile=/scratch/kocevski/227069/expmap_548553601_548812801_4FGL_J1512.2+0202_daily_bin1193.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/227069/ltcube_548553601_548812801_4FGL_J1512.2+0202_daily_bin1193.fits
.....................!
real 190.22
user 184.58
sys 5.24

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/227069/ft1_filtered_4FGL_J1512.2+0202_daily_bin1193.fits scfile=/scratch/kocevski/227069/ft2_4FGL_J1512.2+0202_daily_bin1193.fits outfile=/scratch/kocevski/227069/cmap_548553601_548812801_4FGL_J1512.2+0202_daily_bin1193.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10177E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .69313       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0223       1.0000         .10000E-03   10000.    
     6 'norm      '    6.3557       1.0000         .10000E-03   10000.    
     7 'norm      '    .11143E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.610       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.530       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10958E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64744E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .60381E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27463E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12165E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.7508       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1506       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1444       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=   7379.561     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2089 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.290        .55005E-07** at limit **
   2  Prefactor     .10000E-03    8.3362        .39384E-07** at limit **
   3  norm          .10000E-03    5.2959        .51937E-07** at limit **
   4  Prefactor     .76640        26.429        .12455E-04   -.88006E-04
   5  norm          1.0223        .23015       -.23530E-09   -.21384E-02
   6  norm          6.3560        3.1692        .10845E-06    .11143E-04
   7  norm          .10000E-03    8.2959        .99584E-07** at limit **
   8  norm          12.614        8.9230       -.11122E-06   -.60428E-04
   9  norm          .10000E-03    3.0327        .11307E-06** at limit **
  10  norm          .10000E-03    .34547       -.11902E-05** at limit **
  11  Prefactor     38.578        27.605       -.14074E-05   -.12140E-03
  12  Prefactor     .10000E-03    23.057        .86197E-08** at limit **
  13  Prefactor     .10000E-03    5.1884        .13902E-05** at limit **
  14  Prefactor     .10277E-03    80.768       -.11953E-04** at limit **
  15  Prefactor     .10000E-03    91.069        .21481E-05** at limit **
  16  Prefactor     .10000E-03    4.0095        .36020E-06** at limit **
  17  norm          9.7458        6.9626       -.93364E-07   -.98529E-04
  18  Normalizat    1.1505        .26066       -.11048E-05   -.39232E-03
  19  Prefactor     1.1444        .12572       -.33924E-06   -.77881E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.7664
  norm       = 1.02229
  norm       = 6.35605
  norm       = 0.0001
  norm       = 12.6142
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.5784
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000102765
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 9.74581
  Normalizat = 1.15048
  Prefactor  = 1.14444
 **********
 **   18 **HESSE 
 **********

 FCN=   7379.561     FROM HESSE     STATUS=OK           276 CALLS     2365 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76640        43.576        .46718E-02   -1.5533    
   5  norm          1.0223        .23029        .18406E-04   -1.5506    
   6  norm          6.3560        3.1754        .10176E-03   -1.5204    
   7  norm          .10000E-03    8.4663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.614        8.9176        .11280E-03   -1.4997    
   9  norm          .10000E-03    3.0702        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .54316        .63866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.578        28.360        .64570E-04   -1.4465    
  12  Prefactor     .10000E-03    23.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.797        .36775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10277E-03    48.613        .15096       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.906        .21427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.406        .32603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.7458        6.9252        .12833E-03   -1.5083    
  18  Normalizat    1.1505        .29463        .39606E-03   -.88147    
  19  Prefactor     1.1444        .14227        .19485E-03   -.88059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06411e-08
Minuit parameter uncertainties:
  1  0.000120895
  2  1.01621e-05
  3  8.70658e-06
  4  11.566
  5  0.230292
  6  3.17553
  7  2.12766e-05
  8  8.91857
  9  1.68048e-05
  10  1.51551e-05
  11  28.3695
  12  4.58898e-05
  13  0.000391244
  14  0.023207
  15  0.000521967
  16  0.000256822
  17  6.92572
  18  0.295056
  19  0.142318
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  1.680e-05  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.144e+00  1.423e-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.150e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227069/likelihoodResults_548553601_548812801_4FGL_J1512.2+0202_daily_bin1193.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) = 7379.56263823
delta logL = -0.0015494180052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7379.56108901
delta logL = -1.89083039004e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9875       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1444       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=   7379.561     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2359        .90712E-02** at limit **
   2  alpha         2.0077        3.4645        .42301       -.32800E-04
   3  Normalizat    1.1505        .24972        .89427E-01   -.12326E-04
   4  Prefactor     1.1444        .12331        .36099E-01   -.28424E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00773
  Normalizat = 1.15048
  Prefactor  = 1.14444
 **********
 **   18 **HESSE 
 **********

 FCN=   7379.561     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2702        .14829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0077        3.4254        .50000       -.19820    
   3  Normalizat    1.1505        .28164        .39606E-03   -.88147    
   4  Prefactor     1.1444        .13942        .19485E-03   -.88058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29881e-09
Minuit parameter uncertainties:
  1  5.57775e-05
  2  2.49144
  3  0.282011
  4  0.139465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227069': 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) = 7379.56108831
delta logL = 5.09287929162e-07

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  5.578e-05  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.008e+00  2.491e+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:  1.144e+00  1.395e-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.150e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 228.070 2.040

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/227069/cmap_HighResolution_548553601_548812801_4FGL_J1512.2+0202_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-05', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-11 10:01:19.087159', job_id='227069', GAL2='1.14', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631379679.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='5.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1193' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 227069: <4FGL_J1512.2+0202_daily_bin1193> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1193 228.07 2.0403 548553601 548812801 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 :                                   583.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            606 sec.

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

