/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 46 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 = 7441
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1411
RA = 228.07, Dec = 2.0403
tmin = 605059201, tmax = 605318401
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='227427', job_status='RUN', time_executed='2021-09-11 09:52:42.654329', time_epoch_executed='1631379162.65' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227427/ft1_4FGL_J1512.2+0202_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227427/ft2_4FGL_J1512.2+0202_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227427/ft1_4FGL_J1512.2+0202_daily_bin1411.fits outfile=/scratch/kocevski/227427/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1411.fits ra=228.07 dec=2.0403 rad=12.0 tmin=605059201.0 tmax=605318401.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 5.34
user 5.06
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227427/ft1_filtered_4FGL_J1512.2+0202_daily_bin1411.fits" evtable="EVENTS" scfile=/scratch/kocevski/227427/ft2_4FGL_J1512.2+0202_daily_bin1411.fits sctable="SC_DATA" outfile=/scratch/kocevski/227427/ltcube_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.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/227427/ft2_4FGL_J1512.2+0202_daily_bin1411.fits
.....................!
real 11.72
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227427/ft1_filtered_4FGL_J1512.2+0202_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/227427/ft2_4FGL_J1512.2+0202_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/227427/ltcube_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.fits outfile=/scratch/kocevski/227427/expmap_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.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/227427/ltcube_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.fits
.....................!
real 191.75
user 186.84
sys 4.56

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/227427/ft1_filtered_4FGL_J1512.2+0202_daily_bin1411.fits scfile=/scratch/kocevski/227427/ft2_4FGL_J1512.2+0202_daily_bin1411.fits outfile=/scratch/kocevski/227427/cmap_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227427/ft1_filtered_4FGL_J1512.2+0202_daily_bin1411.fits scfile=/scratch/kocevski/227427/ft2_4FGL_J1512.2+0202_daily_bin1411.fits outfile=/scratch/kocevski/227427/cmap_HighResolution_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.769       1.0000         .10000E-03   10000.    
     5 'norm      '    .73891       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3276       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7626       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3580       1.0000         .10000E-03   10000.    
     9 'norm      '    .58545       1.0000         .10000E-03   10000.    
    10 'norm      '    .69407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.881       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19890E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .53637       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0373       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=   10216.73     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1927 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.833        .90712E-02** at limit **
   2  Prefactor     .10001E-03    13.491        .90712E-02** at limit **
   3  norm          .10000E-03    10.008        .90712E-02** at limit **
   4  Prefactor     12.768        16.354        .28024E-02    .70019E-04
   5  norm          .73892        .20942        .53100E-02    .79413E-03
   6  norm          1.3281        2.1281        .95337E-02    .11591E-02
   7  norm          4.7627        4.9649        .46091E-02    .17300E-03
   8  norm          8.3585        4.9310        .34667E-02   -.10168E-02
   9  norm          .58516        2.3270        .11615E-01    .19952E-02
  10  norm          .69411        .11544        .30244E-02   -.74586E-02
  11  Prefactor     .10000E-03    4.7780        .90712E-02** at limit **
  12  Prefactor     44.881        41.105        .14961E-02    .17576E-03
  13  Prefactor     .10003E-03    2.1945        .46436E-01** at limit **
  14  Prefactor     .10000E-03    6.2779        .90712E-02** at limit **
  15  Prefactor     .10001E-03    18.723        .90712E-02** at limit **
  16  Prefactor     .10000E-03    .99360        .90712E-02** at limit **
  17  norm          .53644        1.6260        .59599E-01    .18363E-02
  18  Normalizat    1.2145        .20884        .84470E-01   -.80704E-04
  19  Prefactor     1.0373        .93195E-01    .40719E-01    .60173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 12.7684
  norm       = 0.738916
  norm       = 1.3281
  norm       = 4.76271
  norm       = 8.35847
  norm       = 0.585163
  norm       = 0.694109
  Prefactor  = 0.0001
  Prefactor  = 44.881
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.536438
  Normalizat = 1.21451
  Prefactor  = 1.03727
 **********
 **   18 **HESSE 
 **********

 FCN=   10216.73     FROM HESSE     STATUS=OK           270 CALLS     2197 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    13.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.768        16.361        .11210E-03   -1.4993    
   5  norm          .73892        .20924        .23516E-04   -1.5536    
   6  norm          1.3281        2.0930        .17360E-03   -1.5477    
   7  norm          4.7627        4.9664        .18436E-03   -1.5271    
   8  norm          8.3585        4.9282        .13867E-03   -1.5130    
   9  norm          .58516        2.2703        .29470E-03   -1.5555    
  10  norm          .69411        .11529        .13375E-04   -1.5541    
  11  Prefactor     .10000E-03    4.7977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.881        41.065        .59845E-04   -1.4367    
  13  Prefactor     .10003E-03    13.871        .28802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    18.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0032        .98368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .53644        1.9063        .21734E-02   -1.5561    
  18  Normalizat    1.2145        .23653        .37400E-03   -.86156    
  19  Prefactor     1.0373        .10661        .18457E-03   -.91497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09498e-09
Minuit parameter uncertainties:
  1  0.000788344
  2  0.000707875
  3  7.21494e-05
  4  16.3662
  5  0.20924
  6  2.09316
  7  4.96687
  8  4.92839
  9  2.27059
  10  0.115286
  11  7.6281e-05
  12  41.0905
  13  0.00121006
  14  2.60431e-05
  15  0.000737714
  16  1.1949e-05
  17  1.90654
  18  0.23674
  19  0.106636
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.852e-01  2.271e+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.037e+00  1.066e-01  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.215e+00  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 5.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227427/likelihoodResults_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.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): 102
logL (Free Index) = 10215.0308176
delta logL = 1.70248230769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10215.0227762
delta logL = 1.71052371818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49918       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0666       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0609       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=   10215.02     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49722        3.5828        .92624E-02    .18875E-02
   2  alpha         4.0686        4.1098        .36806        .90245E-04
   3  Normalizat    1.1002        .54558E-01    .88008E-01    .34851E-04
   4  Prefactor     1.0608        .24989E-01    .39311E-01    .14184E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.497222
  alpha      = 4.06864
  Normalizat = 1.10025
  Prefactor  = 1.0608
 **********
 **   18 **HESSE 
 **********

 FCN=   10215.02     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49722        8.6570        .42216E-03   -1.5567    
   2  alpha         4.0686        4.5264        .15599E-01    .67828    
   3  Normalizat    1.1002        .22119        .38975E-03   -.89744    
   4  Prefactor     1.0608        .97471E-01    .18253E-03   -.90729    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93955e-07
Minuit parameter uncertainties:
  1  4.14972
  2  4.59788
  3  0.221378
  4  0.0974876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227427': 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): 102
logL (Free Index) = 10215.0227729
delta logL = 1.71052695635

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.972e-01  4.150e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  4.069e+00  4.598e+00  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.061e+00  9.749e-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.100e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 228.070 2.040
Photon Index (Free Index): 4.07 +/- 4.60
Photon Flux (Free Index): 1.14e-07 +/- 9.81e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.26e-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/227427/cmap_HighResolution_605059201_605318401_4FGL_J1512.2+0202_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='1.71e+00', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-11 10:05:37.166348', photon_index_error2='4.60', photon_index2='4.07', ts='0.08', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='5.43e-08', energy_flux_error2='1.26e-05', EG='1.21', time_epoch_completed='1631379937.17', return_code='0', job_id='227427', GAL2='1.06', EG2='1.10', return_code2='102', photon_flux_error2='9.81e-08', ts2='3.69', photon_index='1.97' WHERE bin_id='1411' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 227427: <4FGL_J1512.2+0202_daily_bin1411> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1411> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:51:42 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:51:43 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:51:43 2021
Terminated at Sat Sep 11 10:05:37 2021
Results reported at Sat Sep 11 10:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1411 228.07 2.0403 605059201 605318401 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            835 sec.

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

