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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin214
RA = 228.07, Dec = 2.0403
tmin = 294796801, tmax = 295056001
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='222067', job_status='RUN', time_executed='2021-09-11 09:36:13.322019', time_epoch_executed='1631378173.32' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222067/ft1_4FGL_J1512.2+0202_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222067/ft2_4FGL_J1512.2+0202_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222067/ft1_4FGL_J1512.2+0202_daily_bin214.fits outfile=/scratch/kocevski/222067/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin214.fits ra=228.07 dec=2.0403 rad=12.0 tmin=294796801.0 tmax=295056001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.35
user 2.15
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222067/ft1_filtered_4FGL_J1512.2+0202_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/222067/ft2_4FGL_J1512.2+0202_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/222067/ltcube_294796801_295056001_4FGL_J1512.2+0202_daily_bin214.fits outfile=/scratch/kocevski/222067/expmap_294796801_295056001_4FGL_J1512.2+0202_daily_bin214.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/222067/ltcube_294796801_295056001_4FGL_J1512.2+0202_daily_bin214.fits
.....................!
real 190.41
user 184.70
sys 5.16

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/222067/ft1_filtered_4FGL_J1512.2+0202_daily_bin214.fits scfile=/scratch/kocevski/222067/ft2_4FGL_J1512.2+0202_daily_bin214.fits outfile=/scratch/kocevski/222067/cmap_294796801_295056001_4FGL_J1512.2+0202_daily_bin214.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222067/ft1_filtered_4FGL_J1512.2+0202_daily_bin214.fits scfile=/scratch/kocevski/222067/ft2_4FGL_J1512.2+0202_daily_bin214.fits outfile=/scratch/kocevski/222067/cmap_HighResolution_294796801_295056001_4FGL_J1512.2+0202_daily_bin214.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .15497E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.973       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.682       1.0000         .10000E-03   10000.    
     5 'norm      '    .10446       1.0000         .10000E-03   10000.    
     6 'norm      '    3.6140       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0004       1.0000         .10000E-03   10000.    
     9 'norm      '    5.8675       1.0000         .10000E-03   10000.    
    10 'norm      '    .62915       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0780       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.005       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6674       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .82973       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2474       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=   7961.807     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1922 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.497       -.46826E-08** at limit **
   2  Prefactor     .10000E-03    63.545        .23278E-06** at limit **
   3  norm          11.972        17.845        .15402E-06    .42756E-05
   4  Prefactor     35.681        25.235        .46845E-06    .57419E-05
   5  norm          .10441        .15269        .36473E-07   -.33559E-03
   6  norm          3.6139        2.4366        .91809E-07   -.12192E-04
   7  norm          .10000E-03    3.7432        .23400E-07** at limit **
   8  norm          4.0005        4.6438        .23759E-06   -.11777E-04
   9  norm          5.8676        3.9919        .34353E-07   -.11711E-04
  10  norm          .62916        .13895        .11033E-08   -.45539E-03
  11  Prefactor     .10000E-03    4.4485       -.15220E-07** at limit **
  12  Prefactor     .10000E-03    11.962        .17835E-07** at limit **
  13  Prefactor     3.0777        4.4735        .33328E-05   -.35388E-04
  14  Prefactor     .10000E-03    30.964        .14314E-06** at limit **
  15  Prefactor     12.965        67.685        .99779E-05   -.93897E-05
  16  Prefactor     5.6673        4.1254       -.16290E-06   -.22014E-04
  17  norm          .10000E-03    1.6175        .18494E-07** at limit **
  18  Normalizat    .82995        .25460       -.31131E-05   -.55043E-04
  19  Prefactor     1.2473        .11789        .42115E-06    .11763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9724
  Prefactor  = 35.6812
  norm       = 0.104415
  norm       = 3.61387
  norm       = 0.0001
  norm       = 4.00045
  norm       = 5.86759
  norm       = 0.629157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07768
  Prefactor  = 0.0001
  Prefactor  = 12.9652
  Prefactor  = 5.66726
  norm       = 0.0001
  Normalizat = 0.829949
  Prefactor  = 1.24729
 **********
 **   18 **HESSE 
 **********

 FCN=   7961.807     FROM HESSE     STATUS=OK           274 CALLS     2196 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    63.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.972        17.760        .11577E-03   -1.5016    
   4  Prefactor     35.681        25.215        .67089E-04   -1.4513    
   5  norm          .10441        .13939        .39514E-03   -1.5643    
   6  norm          3.6139        2.4325        .10792E-03   -1.5328    
   7  norm          .10000E-03    3.7573        .16859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0005        4.6353        .19803E-03   -1.5308    
   9  norm          5.8676        3.9882        .14188E-03   -1.5223    
  10  norm          .62916        .13872        .14965E-04   -1.5549    
  11  Prefactor     .10000E-03    4.4575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0777        4.4853        .10802E-02   -1.5357    
  14  Prefactor     .10000E-03    31.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.965        67.798        .11107E-03   -1.4988    
  16  Prefactor     5.6673        4.1195        .14753E-03   -1.5232    
  17  norm          .10000E-03    1.6280        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .82995        .27756        .43701E-03   -.98967    
  19  Prefactor     1.2473        .13079        .17550E-03   -.84888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17328e-09
Minuit parameter uncertainties:
  1  4.62566e-06
  2  0.000169094
  3  17.7674
  4  25.2226
  5  0.139387
  6  2.43257
  7  2.75182e-06
  8  4.63576
  9  3.98837
  10  0.13872
  11  1.00575e-06
  12  1.89702e-06
  13  4.48574
  14  1.53329e-05
  15  59.4022
  16  4.11972
  17  1.32181e-06
  18  0.278039
  19  0.130821
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.868e+00  3.988e+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.247e+00  1.308e-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:  8.299e-01  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.06e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.72e-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) = 7961.79387141
delta logL = 0.0128910497115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7961.79306703
delta logL = 0.01369542872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7488       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0853       1.0000          .0000       5.0000    
     3 'Normalizat'    .82583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2478       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=   7961.793     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      204 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7472        95.325        .41880E-02    .95561E-04
   2  alpha         2.0853        2.9013        .41891        .26961E-04
   3  Normalizat    .82509        .16320        .98875E-01    .36896E-04
   4  Prefactor     1.2482        .49636E-01    .33588E-01   -.43055E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.74721
  alpha      = 2.08534
  Normalizat = 0.825092
  Prefactor  = 1.24816
 **********
 **   18 **HESSE 
 **********

 FCN=   7961.793     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7472        4.0233        .13859E-03   -1.5228    
   2  alpha         2.0853        .70352        .17328E-01   -.16664    
   3  Normalizat    .82509        .26321        .43815E-03   -.99145    
   4  Prefactor     1.2482        .12708        .17544E-03   -.84862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03974e-12
Minuit parameter uncertainties:
  1  4.02349
  2  0.713431
  3  0.263615
  4  0.127111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222067': 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) = 7961.79306217
delta logL = 0.0137002901538

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.747e+00  4.023e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.085e+00  7.134e-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.248e+00  1.271e-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:  8.251e-01  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.09 +/- 0.71
Photon Flux (Free Index): 4.57e-08 +/- 4.36e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.77e-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/222067/cmap_HighResolution_294796801_295056001_4FGL_J1512.2+0202_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.06e-08', energy_flux2='2.41e-05', photon_flux_error='2.76e-08', dlogl='1.37e-02', energy_flux='2.54e-05', photon_flux2='4.57e-08', job_status='DONE', time_completed='2021-09-11 09:45:26.973366', photon_index_error2='0.71', photon_index2='2.09', ts='5.09', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.83', time_epoch_completed='1631378726.97', return_code='0', job_id='222067', GAL2='1.25', EG2='0.83', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.36e-08', ts2='5.11', photon_index='1.97' WHERE bin_id='214' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:45:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 222067: <4FGL_J1512.2+0202_daily_bin214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin214 228.07 2.0403 294796801 295056001 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 :                                   550.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   565 sec.
    Turnaround time :                            568 sec.

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

