/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 67 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin199
RA = 228.07, Dec = 2.0403
tmin = 290908801, tmax = 291168001
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='220866', job_status='RUN', time_executed='2021-09-11 09:33:02.176672', time_epoch_executed='1631377982.18' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220866/ft1_4FGL_J1512.2+0202_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220866/ft2_4FGL_J1512.2+0202_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220866/ft1_4FGL_J1512.2+0202_daily_bin199.fits outfile=/scratch/kocevski/220866/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin199.fits ra=228.07 dec=2.0403 rad=12.0 tmin=290908801.0 tmax=291168001.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.53
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/220866/ft2_4FGL_J1512.2+0202_daily_bin199.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/220866/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/220866/ft1_filtered_4FGL_J1512.2+0202_daily_bin199.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.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220866/ft1_filtered_4FGL_J1512.2+0202_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/220866/ft2_4FGL_J1512.2+0202_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/220866/ltcube_290908801_291168001_4FGL_J1512.2+0202_daily_bin199.fits outfile=/scratch/kocevski/220866/expmap_290908801_291168001_4FGL_J1512.2+0202_daily_bin199.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/220866/ltcube_290908801_291168001_4FGL_J1512.2+0202_daily_bin199.fits
.....................!
real 190.75
user 186.41
sys 3.98

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/220866/ft1_filtered_4FGL_J1512.2+0202_daily_bin199.fits scfile=/scratch/kocevski/220866/ft2_4FGL_J1512.2+0202_daily_bin199.fits outfile=/scratch/kocevski/220866/cmap_290908801_291168001_4FGL_J1512.2+0202_daily_bin199.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220866/ft1_filtered_4FGL_J1512.2+0202_daily_bin199.fits scfile=/scratch/kocevski/220866/ft2_4FGL_J1512.2+0202_daily_bin199.fits outfile=/scratch/kocevski/220866/cmap_HighResolution_290908801_291168001_4FGL_J1512.2+0202_daily_bin199.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11452E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .94540       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.101       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .71026       1.0000         .10000E-03   10000.    
     7 'norm      '    .15404       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0253       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7183       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.895       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3583       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0456       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3280       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0110       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=   8339.315     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1911 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.515       -.22374E-05** at limit **
   2  Prefactor     .10000E-03    20.106        .22703E-05** at limit **
   3  norm          .92195        10.572       -.48658E-06    .27520E-04
   4  Prefactor     13.090        29.169        .18714E-05    .46820E-04
   5  norm          .10000E-03    .76339E-01   -.52340E-07** at limit **
   6  norm          .71071        2.3323        .13259E-06   -.46211E-04
   7  norm          .14092        3.9775        .61174E-06   -.33974E-03
   8  norm          1.0244        7.7043        .69765E-06   -.45072E-04
   9  norm          .10000E-03    .90961        .16560E-07** at limit **
  10  norm          1.7191        .34479       -.75781E-09    .38304E-02
  11  Prefactor     13.828        32.666        .26688E-05    .57911E-04
  12  Prefactor     .10000E-03    18.601       -.38354E-06** at limit **
  13  Prefactor     .10000E-03    1.3039       -.28280E-07** at limit **
  14  Prefactor     .10000E-03    13.001        .27826E-06** at limit **
  15  Prefactor     .10000E-03    18.055       -.17142E-05** at limit **
  16  Prefactor     1.3585        4.9607        .65856E-06   -.70528E-05
  17  norm          4.0450        3.9009        .36412E-06   -.17905E-03
  18  Normalizat    1.3278        .24033        .24160E-06    .51500E-04
  19  Prefactor     1.0110        .10852       -.35958E-06    .10180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.921945
  Prefactor  = 13.09
  norm       = 0.0001
  norm       = 0.710713
  norm       = 0.140918
  norm       = 1.02437
  norm       = 0.0001
  norm       = 1.71912
  Prefactor  = 13.8279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35853
  norm       = 4.04498
  Normalizat = 1.3278
  Prefactor  = 1.01105
 **********
 **   18 **HESSE 
 **********

 FCN=   8339.315     FROM HESSE     STATUS=OK           274 CALLS     2185 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .92195        52.069        .56040E-02   -1.5516    
   4  Prefactor     13.090        29.301        .11066E-03   -1.4984    
   5  norm          .10000E-03    .11614        .48408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .71071        2.3644        .23628E-03   -1.5539    
   7  norm          .14092        51.442        .33725E-02   -1.5633    
   8  norm          1.0244        7.9719        .47274E-02   -1.5506    
   9  norm          .10000E-03    .91062        .85043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7191        .35363        .14617E-04   -1.5446    
  11  Prefactor     13.828        33.053        .10745E-03   -1.4964    
  12  Prefactor     .10000E-03    18.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3111        .10182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3585        4.9270        .35681E-03   -1.5475    
  17  norm          4.0450        3.9860        .86696E-03   -1.5306    
  18  Normalizat    1.3278        .27725        .37062E-03   -.82740    
  19  Prefactor     1.0110        .12573        .19302E-03   -.92362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46158e-07
Minuit parameter uncertainties:
  1  0.000141354
  2  8.17041e-05
  3  13.869
  4  29.3336
  5  2.52838e-07
  6  2.36468
  7  5.38757
  8  5.71605
  9  6.96813e-08
  10  0.353628
  11  33.0968
  12  1.43915e-05
  13  8.3873e-07
  14  5.22604e-06
  15  6.02643e-05
  16  4.92849
  17  3.98631
  18  0.277563
  19  0.125763
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  6.968e-08  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.011e+00  1.258e-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.328e+00  2.776e-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: 3.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/220866/likelihoodResults_290908801_291168001_4FGL_J1512.2+0202_daily_bin199.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) = 8339.3145427
delta logL = -2.44786751864e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8339.31451857
delta logL = -3.51799826603e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9629       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0111       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=   8339.315     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      229 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2922        .85084E-03** at limit **
   2  alpha         1.8246        3.1352        .16968        .60299E-08
   3  Normalizat    1.3278        .26281        .37062E-03    .21350E-04
   4  Prefactor     1.0110        .12234        .19302E-03    .48651E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.82464
  Normalizat = 1.3278
  Prefactor  = 1.01105
 **********
 **   18 **HESSE 
 **********

 FCN=   8339.315     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .91825        .17017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8246        3.7166        .67874E-02   -.27354    
   3  Normalizat    1.3278        .26301        .14825E-04   -.82740    
   4  Prefactor     1.0110        .12244        .38604E-04   -.92362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36874e-12
Minuit parameter uncertainties:
  1  2.18645e-07
  2  148.704
  3  0.263277
  4  0.12247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220866': 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) = 8339.31451777
delta logL = 4.5400338422e-07

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  2.186e-07  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.825e+00  1.487e+02  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.011e+00  1.225e-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.328e+00  2.633e-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/220866/cmap_HighResolution_290908801_291168001_4FGL_J1512.2+0202_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-05', job_status='DONE', photon_flux_upper_limit='3.58e-08', time_completed='2021-09-11 09:43:28.104531', job_id='220866', GAL2='1.01', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631378608.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='199' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:43:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 220866: <4FGL_J1512.2+0202_daily_bin199> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin199> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:31:44 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:31:45 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:31:45 2021
Terminated at Sat Sep 11 09:43:28 2021
Results reported at Sat Sep 11 09:43:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin199 228.07 2.0403 290908801 291168001 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 :                                   620.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            704 sec.

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

