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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin341
RA = 228.07, Dec = 2.0403
tmin = 327715201, tmax = 327974401
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='222249', job_status='RUN', time_executed='2021-09-11 09:40:17.970297', time_epoch_executed='1631378417.97' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222249

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222249/ft1_4FGL_J1512.2+0202_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222249/ft2_4FGL_J1512.2+0202_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222249/ft1_4FGL_J1512.2+0202_daily_bin341.fits outfile=/scratch/kocevski/222249/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin341.fits ra=228.07 dec=2.0403 rad=12.0 tmin=327715201.0 tmax=327974401.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.27
user 3.04
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222249/ft2_4FGL_J1512.2+0202_daily_bin341.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/222249/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin341.fits evtable="EVENTS" outfile="/scratch/kocevski/222249/ft1_filtered_4FGL_J1512.2+0202_daily_bin341.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/222249/ft1_filtered_4FGL_J1512.2+0202_daily_bin341.fits" evtable="EVENTS" scfile=/scratch/kocevski/222249/ft2_4FGL_J1512.2+0202_daily_bin341.fits sctable="SC_DATA" outfile=/scratch/kocevski/222249/ltcube_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.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/222249/ft2_4FGL_J1512.2+0202_daily_bin341.fits
.....................!
real 11.68
user 11.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222249/ft1_filtered_4FGL_J1512.2+0202_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/222249/ft2_4FGL_J1512.2+0202_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/222249/ltcube_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.fits outfile=/scratch/kocevski/222249/expmap_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.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/222249/ltcube_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.fits
.....................!
real 191.97
user 187.49
sys 4.17

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/222249/ft1_filtered_4FGL_J1512.2+0202_daily_bin341.fits scfile=/scratch/kocevski/222249/ft2_4FGL_J1512.2+0202_daily_bin341.fits outfile=/scratch/kocevski/222249/cmap_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222249/ft1_filtered_4FGL_J1512.2+0202_daily_bin341.fits scfile=/scratch/kocevski/222249/ft2_4FGL_J1512.2+0202_daily_bin341.fits outfile=/scratch/kocevski/222249/cmap_HighResolution_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11702E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.016       1.0000         .10000E-03   10000.    
     5 'norm      '    .89194       1.0000         .10000E-03   10000.    
     6 'norm      '    1.9749       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.8573       1.0000         .10000E-03   10000.    
     9 'norm      '    6.7250       1.0000         .10000E-03   10000.    
    10 'norm      '    .29465       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.410       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5693       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1810       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .55885       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2639       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=   7683.733     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1907 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.999       -.28929E-07** at limit **
   2  Prefactor     .10000E-03    31.845        .31469E-06** at limit **
   3  norm          14.330        15.794        .12931E-06    .39408E-04
   4  Prefactor     33.011        22.920        .14110E-05    .39854E-03
   5  norm          .89192        .24065       -.66568E-09   -.65026E-04
   6  norm          1.9750        2.4512        .19871E-06   -.74504E-04
   7  norm          .10000E-03    3.1665        .91578E-08** at limit **
   8  norm          5.8570        4.3773        .12943E-05   -.51883E-03
   9  norm          6.7246        4.6754        .14009E-07   -.30991E-04
  10  norm          .29487        .13720        .24866E-07   -.97138E-03
  11  Prefactor     12.383        13.419       -.79141E-06   -.14351E-03
  12  Prefactor     .10000E-03    17.078       -.15513E-07** at limit **
  13  Prefactor     .10000E-03    2.3701       -.33404E-07** at limit **
  14  Prefactor     .10000E-03    10.207       -.11740E-07** at limit **
  15  Prefactor     16.209        68.082       -.78078E-06   -.16546E-04
  16  Prefactor     4.5693        4.5070        .20616E-06   -.43253E-04
  17  norm          3.1813        2.9291       -.33028E-09    .16130E-05
  18  Normalizat    .55908        .25866       -.10846E-05   -.20719E-04
  19  Prefactor     1.2638        .12095        .25327E-08   -.68263E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3302
  Prefactor  = 33.0105
  norm       = 0.891922
  norm       = 1.975
  norm       = 0.0001
  norm       = 5.85701
  norm       = 6.72462
  norm       = 0.294869
  Prefactor  = 12.3832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2085
  Prefactor  = 4.56932
  norm       = 3.1813
  Normalizat = 0.559084
  Prefactor  = 1.26376
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.733     FROM HESSE     STATUS=OK           272 CALLS     2179 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.330        15.773        .10576E-03   -1.4951    
   4  Prefactor     33.011        24.238        .69738E-04   -1.4558    
   5  norm          .89192        .24008        .21014E-04   -1.5519    
   6  norm          1.9750        2.4215        .14176E-03   -1.5427    
   7  norm          .10000E-03    3.1876        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.8570        4.4603        .77720E-03   -1.5224    
   9  norm          6.7246        4.6616        .15027E-03   -1.5189    
  10  norm          .29487        .14191        .18279E-04   -1.5599    
  11  Prefactor     12.383        13.995        .11375E-03   -1.5004    
  12  Prefactor     .10000E-03    17.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4007        .13170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.209        68.659        .98870E-04   -1.4903    
  16  Prefactor     4.5693        4.5023        .17568E-03   -1.5280    
  17  norm          3.1813        2.9272        .13920E-03   -1.5351    
  18  Normalizat    .55908        .26697        .50784E-03   -1.0975    
  19  Prefactor     1.2638        .12709        .16903E-03   -.84391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12028e-10
Minuit parameter uncertainties:
  1  4.00134e-06
  2  9.39788e-06
  3  15.7773
  4  24.2453
  5  0.240077
  6  2.42165
  7  5.01251e-09
  8  4.46059
  9  4.66183
  10  0.141912
  11  13.9987
  12  3.40671e-06
  13  1.63283e-06
  14  5.56296e-07
  15  66.8502
  16  4.50268
  17  2.92732
  18  0.267583
  19  0.127116
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.725e+00  4.662e+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.264e+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:  5.591e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.87
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.65e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 2.02e-05

TS (Fixed Index): 3.87
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222249/likelihoodResults_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7683.69846061
delta logL = 0.0347503890307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7683.69636421
delta logL = 0.0368467985463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4612       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1514       1.0000          .0000       5.0000    
     3 'Normalizat'    .55026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2653       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=   7683.696     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4601        91.394        .39473E-02    .21959E-03
   2  alpha         2.1499        3.3731        .41669        .32019E-04
   3  Normalizat    .55028        .12481        .11536        .51859E-04
   4  Prefactor     1.2653        .42488E-01    .33244E-01   -.10606E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.46013
  alpha      = 2.14989
  Normalizat = 0.550283
  Prefactor  = 1.26533
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.696     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4601        4.6826        .14228E-03   -1.5200    
   2  alpha         2.1499        .67534        .14821E-01   -.14051    
   3  Normalizat    .55028        .25434        .51160E-03   -1.1014    
   4  Prefactor     1.2653        .12327        .16893E-03   -.84344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25117e-09
Minuit parameter uncertainties:
  1  4.68282
  2  0.684007
  3  0.254881
  4  0.123294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222249': 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) = 7683.69636114
delta logL = 0.0368498658854

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.460e+00  4.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.150e+00  6.840e-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.265e+00  1.233e-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:  5.503e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.15 +/- 0.68
Photon Flux (Free Index): 5.58e-08 +/- 4.95e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.95e-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/222249/cmap_HighResolution_327715201_327974401_4FGL_J1512.2+0202_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-05', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='2.70e-05', photon_flux_error='3.22e-08', dlogl='3.68e-02', energy_flux='2.91e-05', photon_flux2='5.58e-08', job_status='DONE', time_completed='2021-09-11 09:50:04.885044', photon_index_error2='0.68', photon_index2='2.15', ts='3.87', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.95e-05', EG='0.56', time_epoch_completed='1631379004.89', return_code='0', job_id='222249', GAL2='1.27', EG2='0.55', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='4.95e-08', ts2='3.94', photon_index='1.97' WHERE bin_id='341' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:50:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 222249: <4FGL_J1512.2+0202_daily_bin341> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin341 228.07 2.0403 327715201 327974401 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 :                                   583.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

