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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin897
RA = 228.07, Dec = 2.0403
tmin = 471830401, tmax = 472089601
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='225409', job_status='RUN', time_executed='2021-09-11 09:49:08.330677', time_epoch_executed='1631378948.33' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225409

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225409/ft1_4FGL_J1512.2+0202_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225409/ft2_4FGL_J1512.2+0202_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225409/ft1_4FGL_J1512.2+0202_daily_bin897.fits outfile=/scratch/kocevski/225409/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin897.fits ra=228.07 dec=2.0403 rad=12.0 tmin=471830401.0 tmax=472089601.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.57
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225409/ft2_4FGL_J1512.2+0202_daily_bin897.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/225409/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/225409/ft1_filtered_4FGL_J1512.2+0202_daily_bin897.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.51
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225409/ft1_filtered_4FGL_J1512.2+0202_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/225409/ft2_4FGL_J1512.2+0202_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/225409/ltcube_471830401_472089601_4FGL_J1512.2+0202_daily_bin897.fits outfile=/scratch/kocevski/225409/expmap_471830401_472089601_4FGL_J1512.2+0202_daily_bin897.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/225409/ltcube_471830401_472089601_4FGL_J1512.2+0202_daily_bin897.fits
.....................!
real 190.27
user 185.78
sys 4.13

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/225409/ft1_filtered_4FGL_J1512.2+0202_daily_bin897.fits scfile=/scratch/kocevski/225409/ft2_4FGL_J1512.2+0202_daily_bin897.fits outfile=/scratch/kocevski/225409/cmap_471830401_472089601_4FGL_J1512.2+0202_daily_bin897.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225409/ft1_filtered_4FGL_J1512.2+0202_daily_bin897.fits scfile=/scratch/kocevski/225409/ft2_4FGL_J1512.2+0202_daily_bin897.fits outfile=/scratch/kocevski/225409/cmap_HighResolution_471830401_472089601_4FGL_J1512.2+0202_daily_bin897.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.59
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2185       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3835       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9386       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5228       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4519       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0105       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4981       1.0000         .10000E-03   10000.    
    10 'norm      '    .29220       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    40.236       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0120       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0845       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=   11522.61     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2413 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.269        .18142E-02** at limit **
   2  Prefactor     3.1768        104.05        .22581E-03    .39873E-04
   3  norm          2.4045        61.347        .26532E-03    .48762E-04
   4  Prefactor     .10000E-03    9.7007        .18142E-02** at limit **
   5  norm          1.9386        .27431        .20146E-04    .34987E-04
   6  norm          2.5226        2.0569        .13095E-03   -.15627E-05
   7  norm          2.4519        3.4099        .22887E-03   -.97359E-05
   8  norm          5.0105        4.0694        .17965E-03    .27085E-04
   9  norm          3.4981        2.4442        .13579E-03    .65302E-05
  10  norm          .29220        .85447E-01    .15174E-04   -.72375E-03
  11  Prefactor     12.911        7.4938        .11148E-03   -.44261E-04
  12  Prefactor     40.236        35.560        .63192E-04    .50374E-06
  13  Prefactor     .10000E-03    3.0146        .25579E-02** at limit **
  14  Prefactor     11.091        25.943        .12031E-03    .15119E-05
  15  Prefactor     .10000E-03    21.949        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.2322        .11566E-02** at limit **
  17  norm          .10000E-03    2.0466        .14890E-02** at limit **
  18  Normalizat    1.0120        .22831        .40118E-03   -.13602E-05
  19  Prefactor     1.0845        .10391        .18006E-03    .10387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.17676
  norm       = 2.4045
  Prefactor  = 0.0001
  norm       = 1.93859
  norm       = 2.52263
  norm       = 2.45186
  norm       = 5.01047
  norm       = 3.49807
  norm       = 0.292202
  Prefactor  = 12.9113
  Prefactor  = 40.2356
  Prefactor  = 0.0001
  Prefactor  = 11.0907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.01202
  Prefactor  = 1.08446
 **********
 **   18 **HESSE 
 **********

 FCN=   11522.61     FROM HESSE     STATUS=OK           248 CALLS     2661 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1768        101.41        .90326E-05   -1.5351    
   3  norm          2.4045        59.784        .10613E-04   -1.5398    
   4  Prefactor     .10000E-03    9.7031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9386        .27432        .80585E-06   -1.5429    
   6  norm          2.5226        2.0567        .52380E-05   -1.5390    
   7  norm          2.4519        3.4098        .91548E-05   -1.5395    
   8  norm          5.0105        4.0691        .71860E-05   -1.5260    
   9  norm          3.4981        2.4442        .54318E-05   -1.5334    
  10  norm          .29220        .85448E-01    .60696E-06   -1.5600    
  11  Prefactor     12.911        7.4941        .44591E-05   -1.4989    
  12  Prefactor     40.236        35.559        .12638E-04   -1.4438    
  13  Prefactor     .10000E-03    3.0269        .51158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.091        25.938        .48124E-05   -1.5042    
  15  Prefactor     .10000E-03    21.950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2324        .23131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.0473        .29780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0120        .22844        .16047E-04   -.92629    
  19  Prefactor     1.0845        .10397        .36012E-04   -.89965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0188e-11
Minuit parameter uncertainties:
  1  3.119e-06
  2  35.9642
  3  24.0055
  4  8.68368e-06
  5  0.274315
  6  2.05676
  7  3.41011
  8  4.06928
  9  2.44422
  10  0.0854483
  11  7.4946
  12  35.5772
  13  1.17642e-05
  14  25.9643
  15  2.06157e-06
  16  1.13447e-06
  17  6.1902e-06
  18  0.228657
  19  0.103991
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.498e+00  2.444e+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.084e+00  1.040e-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.012e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.01
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 1.69e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.06e-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) = 11522.1510487
delta logL = 0.456757137292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11522.1187861
delta logL = 0.489019686162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8241       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2970       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0843       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=   11522.12     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8217        2.0493        .60503E-02   -.32120E-03
   2  alpha         1.2960        .49161        .49856       -.42450E-04
   3  Normalizat    1.0204        .19370        .90267E-01    .37376E-04
   4  Prefactor     1.0843        .90042E-01    .38217E-01   -.38834E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82165
  alpha      = 1.29598
  Normalizat = 1.02044
  Prefactor  = 1.08432
 **********
 **   18 **HESSE 
 **********

 FCN=   11522.12     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8217        2.4713        .12763E-03   -1.5372    
   2  alpha         1.2960        .65111        .23631E-01   -.50249    
   3  Normalizat    1.0204        .21998        .39977E-03   -.92349    
   4  Prefactor     1.0843        .10265        .18010E-03   -.89969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65693e-09
Minuit parameter uncertainties:
  1  2.47136
  2  0.661097
  3  0.22018
  4  0.102664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225409': 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) = 11522.1187849
delta logL = 0.48902088825

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.822e+00  2.471e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.296e+00  6.611e-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.084e+00  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.020e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.99
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.30 +/- 0.66
Photon Flux (Free Index): 1.17e-08 +/- 1.16e-08
Energy Flux (Free Index): 2.65e-05 +/- 2.84e-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/225409/cmap_HighResolution_471830401_472089601_4FGL_J1512.2+0202_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='2.65e-05', photon_flux_error='1.69e-08', dlogl='4.89e-01', energy_flux='1.51e-05', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-11 10:01:13.234115', photon_index_error2='0.66', photon_index2='1.30', ts='7.01', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.84e-05', EG='1.01', time_epoch_completed='1631379673.23', return_code='0', job_id='225409', GAL2='1.08', EG2='1.02', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.16e-08', ts2='7.99', photon_index='1.97' WHERE bin_id='897' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 225409: <4FGL_J1512.2+0202_daily_bin897> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin897 228.07 2.0403 471830401 472089601 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 :                                   719.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

