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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin293
RA = 228.07, Dec = 2.0403
tmin = 315273601, tmax = 315532801
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='222175', job_status='RUN', time_executed='2021-09-11 09:38:25.678651', time_epoch_executed='1631378305.68' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222175/ft1_4FGL_J1512.2+0202_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222175/ft2_4FGL_J1512.2+0202_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222175/ft1_4FGL_J1512.2+0202_daily_bin293.fits outfile=/scratch/kocevski/222175/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin293.fits ra=228.07 dec=2.0403 rad=12.0 tmin=315273601.0 tmax=315532801.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.67
user 3.44
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222175/ft1_filtered_4FGL_J1512.2+0202_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/222175/ft2_4FGL_J1512.2+0202_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/222175/ltcube_315273601_315532801_4FGL_J1512.2+0202_daily_bin293.fits outfile=/scratch/kocevski/222175/expmap_315273601_315532801_4FGL_J1512.2+0202_daily_bin293.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/222175/ltcube_315273601_315532801_4FGL_J1512.2+0202_daily_bin293.fits
.....................!
real 190.00
user 185.28
sys 4.34

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/222175/ft1_filtered_4FGL_J1512.2+0202_daily_bin293.fits scfile=/scratch/kocevski/222175/ft2_4FGL_J1512.2+0202_daily_bin293.fits outfile=/scratch/kocevski/222175/cmap_315273601_315532801_4FGL_J1512.2+0202_daily_bin293.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.51
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25825E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.3459       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .47347       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5372       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9054       1.0000         .10000E-03   10000.    
    10 'norm      '    .48505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9958       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96967       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7334       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3769       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92694       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=   13357.89     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1682 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.234        .72775E-06** at limit **
   2  Prefactor     .10000E-03    79.772       -.50191E-04** at limit **
   3  norm          7.3323        16.064       -.61357E-05    .50001E-03
   4  Prefactor     .10000E-03    18.597       -.73885E-05** at limit **
   5  norm          .47352        .18191       -.44594E-08    .11717E-02
   6  norm          .10000E-03    .94311       -.38240E-07** at limit **
   7  norm          .10000E-03    1.6968        .16827E-07** at limit **
   8  norm          2.5369        2.8196       -.14816E-06   -.75880E-04
   9  norm          3.9055        2.6074       -.54079E-07    .22724E-04
  10  norm          .48527        .10980       -.79647E-08    .19255E-03
  11  Prefactor     9.8439        9.5506        .62201E-07   -.11960E-03
  12  Prefactor     11.741        13.940        .29137E-05    .15517E-03
  13  Prefactor     6.9965        3.4570        .17742E-07   -.33998E-03
  14  Prefactor     .96677        1.7310        .19728E-06   -.73110E-03
  15  Prefactor     .10000E-03    23.061        .10259E-04** at limit **
  16  Prefactor     9.7337        3.6164       -.43689E-06   -.24695E-03
  17  norm          .10000E-03    1.4196       -.47505E-08** at limit **
  18  Normalizat    1.3768        .17766        .10809E-05    .31619E-03
  19  Prefactor     .92698        .77716E-01   -.47762E-07    .50831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.33226
  Prefactor  = 0.000100001
  norm       = 0.473521
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.5369
  norm       = 3.90551
  norm       = 0.485272
  Prefactor  = 9.84394
  Prefactor  = 11.741
  Prefactor  = 6.99651
  Prefactor  = 0.966771
  Prefactor  = 0.000100002
  Prefactor  = 9.73365
  norm       = 0.0001
  Normalizat = 1.37677
  Prefactor  = 0.926981
 **********
 **   18 **HESSE 
 **********

 FCN=   13357.89     FROM HESSE     STATUS=OK           270 CALLS     1952 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.236        .42904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3323        15.502        .14798E-03   -1.5166    
   4  Prefactor     .10000E-03    18.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .47352        .17982        .29024E-04   -1.5570    
   6  norm          .10000E-03    .96941        .21870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6993        .14702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5369        2.8062        .19560E-03   -1.5389    
   9  norm          3.9055        2.6063        .14788E-03   -1.5313    
  10  norm          .48527        .11577        .14351E-04   -1.5569    
  11  Prefactor     9.8439        10.115        .63790E-03   -1.5080    
  12  Prefactor     11.741        13.962        .11697E-03   -1.5023    
  13  Prefactor     6.9965        3.4642        .72264E-03   -1.5179    
  14  Prefactor     .96677        20.712        .26116E-02   -1.5511    
  15  Prefactor     .10000E-03    23.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7337        3.6092        .12783E-03   -1.5084    
  17  norm          .10000E-03    5.1362        .26665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3768        .20474        .34998E-03   -.81303    
  19  Prefactor     .92698        .89892E-01    .18647E-03   -.95205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14782e-09
Minuit parameter uncertainties:
  1  2.54369e-05
  2  0.000524093
  3  15.5104
  4  0.000199821
  5  0.179817
  6  1.99556e-06
  7  3.23179e-08
  8  2.80632
  9  2.60638
  10  0.115772
  11  10.1168
  12  13.9661
  13  3.46431
  14  8.95257
  15  0.000400351
  16  3.60932
  17  1.2972e-05
  18  0.204862
  19  0.0899066
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.906e+00  2.606e+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:  9.270e-01  8.991e-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:  1.377e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.55
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.13e-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) = 13357.7355101
delta logL = 0.156861198629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13357.7350133
delta logL = 0.157357977514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9244       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5084       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93276       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=   13357.74     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9247        31.854        .50911E-02    .41514E-03
   2  alpha         2.5083        3.7528        .41152        .82625E-04
   3  Normalizat    1.3441        .84268E-01    .79849E-01    .23342E-04
   4  Prefactor     .93271        .27323E-01    .45421E-01    .62078E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92469
  alpha      = 2.50828
  Normalizat = 1.34412
  Prefactor  = 0.93271
 **********
 **   18 **HESSE 
 **********

 FCN=   13357.74     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9247        2.6946        .12380E-03   -1.5312    
   2  alpha         2.5083        .84097        .16656E-01    .33123E-02
   3  Normalizat    1.3441        .20864        .35344E-03   -.82259    
   4  Prefactor     .93271        .89954E-01    .18592E-03   -.95007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98491e-11
Minuit parameter uncertainties:
  1  2.69471
  2  0.857693
  3  0.208768
  4  0.0899679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222175': 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) = 13357.7350125
delta logL = 0.15735875568

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.925e+00  2.695e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.508e+00  8.577e-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:  9.327e-01  8.997e-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:  1.344e+00  2.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.86
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.51 +/- 0.86
Photon Flux (Free Index): 5.63e-08 +/- 6.03e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.07e-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/222175/cmap_HighResolution_315273601_315532801_4FGL_J1512.2+0202_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='1.85e-05', photon_flux_error='1.80e-08', dlogl='1.57e-01', energy_flux='1.69e-05', photon_flux2='5.63e-08', job_status='DONE', time_completed='2021-09-11 09:50:25.311814', photon_index_error2='0.86', photon_index2='2.51', ts='6.55', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.38', time_epoch_completed='1631379025.31', return_code='0', job_id='222175', GAL2='0.93', EG2='1.34', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='6.03e-08', ts2='6.86', photon_index='1.97' WHERE bin_id='293' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 222175: <4FGL_J1512.2+0202_daily_bin293> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin293 228.07 2.0403 315273601 315532801 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 :                                   701.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

