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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1084
RA = 228.07, Dec = 2.0403
tmin = 520300801, tmax = 520560001
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='225693', job_status='RUN', time_executed='2021-09-11 09:49:20.989669', time_epoch_executed='1631378960.99' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225693/ft1_4FGL_J1512.2+0202_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225693/ft2_4FGL_J1512.2+0202_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225693/ft1_4FGL_J1512.2+0202_daily_bin1084.fits outfile=/scratch/kocevski/225693/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1084.fits ra=228.07 dec=2.0403 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.09
user 5.84
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225693/ft1_filtered_4FGL_J1512.2+0202_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/225693/ft2_4FGL_J1512.2+0202_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/225693/ltcube_520300801_520560001_4FGL_J1512.2+0202_daily_bin1084.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/225693/ft2_4FGL_J1512.2+0202_daily_bin1084.fits
.....................!
real 11.78
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225693/ft1_filtered_4FGL_J1512.2+0202_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/225693/ft2_4FGL_J1512.2+0202_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/225693/ltcube_520300801_520560001_4FGL_J1512.2+0202_daily_bin1084.fits outfile=/scratch/kocevski/225693/expmap_520300801_520560001_4FGL_J1512.2+0202_daily_bin1084.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/225693/ltcube_520300801_520560001_4FGL_J1512.2+0202_daily_bin1084.fits
.....................!
real 189.76
user 184.95
sys 4.43

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/225693/ft1_filtered_4FGL_J1512.2+0202_daily_bin1084.fits scfile=/scratch/kocevski/225693/ft2_4FGL_J1512.2+0202_daily_bin1084.fits outfile=/scratch/kocevski/225693/cmap_520300801_520560001_4FGL_J1512.2+0202_daily_bin1084.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=228.07 yref=2.0403 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10120E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.576       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8314       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8095       1.0000         .10000E-03   10000.    
     7 'norm      '    10.177       1.0000         .10000E-03   10000.    
     8 'norm      '    7.2318       1.0000         .10000E-03   10000.    
     9 'norm      '    9.0439       1.0000         .10000E-03   10000.    
    10 'norm      '    .22145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    77.219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.212       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.364       1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10467E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .63683       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0971       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=   11303.36     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1908 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.809       -.28292E-07** at limit **
   2  Prefactor     .10000E-03    23.229       -.73901E-08** at limit **
   3  norm          9.9498        15.854       -.32407E-06   -.60382E-04
   4  Prefactor     14.577        17.743        .49095E-06    .54243E-04
   5  norm          1.8314        .28949        .39593E-08   -.45219E-04
   6  norm          1.8096        1.9553        .80761E-07   -.28859E-03
   7  norm          10.177        7.2453        .11253E-07    .97805E-05
   8  norm          7.2316        4.7353        .16643E-06    .20063E-04
   9  norm          9.0439        4.2405        .17372E-06    .26860E-03
  10  norm          .22152        .92602E-01   -.40576E-07    .93932E-03
  11  Prefactor     8.0544        8.1431        .15529E-05   -.93307E-03
  12  Prefactor     77.221        42.717        .77263E-06    .10451E-03
  13  Prefactor     11.213        4.7233        .87106E-07    .95353E-04
  14  Prefactor     58.369        25.425        .18380E-05    .46748E-03
  15  Prefactor     77.817        44.527       -.15759E-05   -.18955E-03
  16  Prefactor     .10000E-03    1.9851        .30893E-07** at limit **
  17  norm          .10000E-03    .92289        .79602E-08** at limit **
  18  Normalizat    .63667        .22130       -.90229E-06   -.32468E-04
  19  Prefactor     1.0972        .92809E-01   -.46249E-07   -.46103E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.94984
  Prefactor  = 14.5774
  norm       = 1.83139
  norm       = 1.80956
  norm       = 10.1767
  norm       = 7.23156
  norm       = 9.04385
  norm       = 0.221517
  Prefactor  = 8.05439
  Prefactor  = 77.2215
  Prefactor  = 11.2129
  Prefactor  = 58.3691
  Prefactor  = 77.8166
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.636674
  Prefactor  = 1.09717
 **********
 **   18 **HESSE 
 **********

 FCN=   11303.36     FROM HESSE     STATUS=OK           276 CALLS     2184 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9498        15.847        .12701E-03   -1.5077    
   4  Prefactor     14.577        17.771        .10491E-03   -1.4944    
   5  norm          1.8314        .28985        .21551E-04   -1.5437    
   6  norm          1.8096        1.9381        .14514E-03   -1.5439    
   7  norm          10.177        7.2492        .12560E-03   -1.5070    
   8  norm          7.2316        4.7229        .14916E-03   -1.5170    
   9  norm          9.0439        4.2433        .13327E-03   -1.5106    
  10  norm          .22152        .99080E-01    .17366E-04   -1.5614    
  11  Prefactor     8.0544        9.9949        .70608E-03   -1.5140    
  12  Prefactor     77.221        42.836        .45697E-04   -1.3948    
  13  Prefactor     11.213        4.7113        .11964E-03   -1.5038    
  14  Prefactor     58.369        26.645        .52514E-04   -1.4178    
  15  Prefactor     77.817        45.329        .45522E-04   -1.3941    
  16  Prefactor     .10000E-03    2.0706        .29204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5598        .19850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .63667        .23346        .49774E-03   -1.0645    
  19  Prefactor     1.0972        .10004        .17150E-03   -.89557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63956e-09
Minuit parameter uncertainties:
  1  1.03952e-07
  2  3.17225e-05
  3  15.8533
  4  17.7778
  5  0.289852
  6  1.93818
  7  7.24983
  8  4.72313
  9  4.24346
  10  0.0990803
  11  9.997
  12  42.8533
  13  4.71148
  14  26.6502
  15  45.3495
  16  6.10978e-06
  17  2.30421e-05
  18  0.233826
  19  0.100055
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  9.044e+00  4.243e+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.097e+00  1.001e-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:  6.367e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.32
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 3.91e-05 +/- 1.83e-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) = 11303.35413
delta logL = 0.0034985558741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11303.3539535
delta logL = 0.00367513861966

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11303.35     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      271 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0378        4.1537        .66654E-03   -.48337E-04
   2  alpha         2.0107        .49029        .14676E-01    .42496E-05
   3  Normalizat    .63365        .22315        .49883E-03    .58800E-05
   4  Prefactor     1.0976        .98424E-01    .17146E-03    .18963E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.03779
  alpha      = 2.01072
  Normalizat = 0.63365
  Prefactor  = 1.09764
 **********
 **   18 **HESSE 
 **********

 FCN=   11303.35     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .67E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0378        4.1423        .26662E-04   -1.5107    
   2  alpha         2.0107        .48846        .58706E-03   -.19698    
   3  Normalizat    .63365        .22306        .19953E-04   -1.0657    
   4  Prefactor     1.0976        .98427E-01    .68583E-05   -.89542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70656e-13
Minuit parameter uncertainties:
  1  4.14242
  2  0.491756
  3  0.22338
  4  0.0984434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225693': 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) = 11303.3539532
delta logL = 0.00367539476974

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  9.038e+00  4.142e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.011e+00  4.918e-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.098e+00  9.844e-02  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:  6.336e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.31
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.01 +/- 0.49
Photon Flux (Free Index): 6.57e-08 +/- 4.75e-08
Energy Flux (Free Index): 3.85e-05 +/- 1.87e-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/225693/cmap_HighResolution_520300801_520560001_4FGL_J1512.2+0202_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='3.85e-05', photon_flux_error='2.94e-08', dlogl='3.68e-03', energy_flux='3.91e-05', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-09-11 10:00:26.739376', photon_index_error2='0.49', photon_index2='2.01', ts='16.32', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='0.64', time_epoch_completed='1631379626.74', return_code='0', job_id='225693', GAL2='1.10', EG2='0.63', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.75e-08', ts2='16.31', photon_index='1.97' WHERE bin_id='1084' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 225693: <4FGL_J1512.2+0202_daily_bin1084> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1084 228.07 2.0403 520300801 520560001 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 :                                   658.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

