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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1440
RA = 228.07, Dec = 2.0403
tmin = 612576001, tmax = 612835201
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='227474', job_status='RUN', time_executed='2021-09-11 09:53:51.181611', time_epoch_executed='1631379231.18' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227474/ft1_4FGL_J1512.2+0202_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227474/ft2_4FGL_J1512.2+0202_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227474/ft1_4FGL_J1512.2+0202_daily_bin1440.fits outfile=/scratch/kocevski/227474/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1440.fits ra=228.07 dec=2.0403 rad=12.0 tmin=612576001.0 tmax=612835201.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.78
user 2.58
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227474/ft2_4FGL_J1512.2+0202_daily_bin1440.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/227474/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1440.fits evtable="EVENTS" outfile="/scratch/kocevski/227474/ft1_filtered_4FGL_J1512.2+0202_daily_bin1440.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227474/ft1_filtered_4FGL_J1512.2+0202_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/227474/ft2_4FGL_J1512.2+0202_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/227474/ltcube_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.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/227474/ft2_4FGL_J1512.2+0202_daily_bin1440.fits
.....................!
real 12.20
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227474/ft1_filtered_4FGL_J1512.2+0202_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/227474/ft2_4FGL_J1512.2+0202_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/227474/ltcube_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.fits outfile=/scratch/kocevski/227474/expmap_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.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/227474/ltcube_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.fits
.....................!
real 191.56
user 185.24
sys 5.78

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/227474/ft1_filtered_4FGL_J1512.2+0202_daily_bin1440.fits scfile=/scratch/kocevski/227474/ft2_4FGL_J1512.2+0202_daily_bin1440.fits outfile=/scratch/kocevski/227474/cmap_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227474/ft1_filtered_4FGL_J1512.2+0202_daily_bin1440.fits scfile=/scratch/kocevski/227474/ft2_4FGL_J1512.2+0202_daily_bin1440.fits outfile=/scratch/kocevski/227474/cmap_HighResolution_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.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.60
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.966       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.245       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.647       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7160       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4353       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.6852       1.0000         .10000E-03   10000.    
    10 'norm      '    .33601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96483E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8987       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2448       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98254       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0807       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=   6424.543     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1913 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.145        73.891        .23839E-03   -.20399E-04
   2  Prefactor     40.236        33.967       -.76854E-05   -.90119E-04
   3  norm          .10000E-03    12.349       -.16271E-05** at limit **
   4  Prefactor     10.646        20.435        .52301E-05   -.51208E-04
   5  norm          1.7160        .29684        .23070E-06   -.32806E-02
   6  norm          2.4356        2.8213        .43822E-06   -.77314E-03
   7  norm          .10000E-03    3.1783        .97119E-07** at limit **
   8  norm          .10000E-03    13.130        .41258E-05** at limit **
   9  norm          5.6858        5.1086        .99000E-06   -.28766E-03
  10  norm          .33593        .21084        .91705E-07   -.31236E-02
  11  Prefactor     .10000E-03    31.082        .13599E-04** at limit **
  12  Prefactor     .10000E-03    15.953       -.28698E-05** at limit **
  13  Prefactor     .10000E-03    4.8464        .33525E-05** at limit **
  14  Prefactor     .10000E-03    38.774       -.20826E-04** at limit **
  15  Prefactor     .10000E-03    131.96        .38820E-04** at limit **
  16  Prefactor     4.9029        5.9174        .11886E-05   -.50277E-03
  17  norm          5.2448        4.6274        .65224E-06   -.12812E-03
  18  Normalizat    .98248        .28661       -.26563E-04   -.84852E-04
  19  Prefactor     1.0808        .13404       -.92703E-07   -.10899E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1446
  Prefactor  = 40.2356
  norm       = 0.0001
  Prefactor  = 10.6465
  norm       = 1.716
  norm       = 2.43561
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 5.68582
  norm       = 0.335929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.9029
  norm       = 5.24479
  Normalizat = 0.982477
  Prefactor  = 1.08083
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.543     FROM HESSE     STATUS=OK           268 CALLS     2181 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.145        73.749        .34895E-03   -1.4556    
   2  Prefactor     40.236        34.006        .63185E-04   -1.4438    
   3  norm          .10000E-03    12.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.646        20.452        .12279E-03   -1.5055    
   5  norm          1.7160        .29794        .16895E-04   -1.5446    
   6  norm          2.4356        2.8012        .13507E-03   -1.5396    
   7  norm          .10000E-03    3.1872        .13955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.6858        5.0974        .16358E-03   -1.5231    
  10  norm          .33593        .20536        .28225E-04   -1.5592    
  11  Prefactor     .10000E-03    31.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.188        .33630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    132.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9029        5.8835        .18173E-03   -1.5265    
  17  norm          5.2448        4.6232        .15580E-03   -1.5250    
  18  Normalizat    .98248        .32414        .41438E-03   -.93620    
  19  Prefactor     1.0808        .15252        .19504E-03   -.90082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72212e-09
Minuit parameter uncertainties:
  1  73.9534
  2  34.0227
  3  4.81375e-05
  4  20.4655
  5  0.297937
  6  2.80133
  7  1.28276e-05
  8  0.000276902
  9  5.09782
  10  0.205362
  11  1.88414e-05
  12  5.6886e-05
  13  0.000484742
  14  0.000301787
  15  0.000170968
  16  5.88423
  17  4.62352
  18  0.324787
  19  0.15258
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.686e+00  5.098e+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.081e+00  1.526e-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:  9.825e-01  3.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 3.93e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 2.20e-05

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

Saving results to:
/scratch/kocevski/227474/likelihoodResults_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.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) = 6424.52671915
delta logL = 0.0160032647918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6424.52409273
delta logL = 0.0186296807906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3075       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7253       1.0000          .0000       5.0000    
     3 'Normalizat'    .99024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0806       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=   6424.524     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      192 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3033        5.4497        .43614E-02   -.52516E-03
   2  alpha         1.7229        1.1244        .43979E-01    .41260E-04
   3  Normalizat    .99030        .26905        .93233E-01   -.33823E-03
   4  Prefactor     1.0805        .13247        .38377E-01   -.19193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.30335
  alpha      = 1.72291
  Normalizat = 0.990299
  Prefactor  = 1.08051
 **********
 **   18 **HESSE 
 **********

 FCN=   6424.524     FROM HESSE     STATUS=OK            29 CALLS      221 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3033        5.6941        .16438E-03   -1.5247    
   2  alpha         1.7229        1.1725        .17591E-02   -.31607    
   3  Normalizat    .99030        .30421        .41296E-03   -.93356    
   4  Prefactor     1.0805        .15043        .19508E-03   -.90092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66135e-09
Minuit parameter uncertainties:
  1  5.69465
  2  1.22617
  3  0.304745
  4  0.15049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227474': 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) = 6424.52409058
delta logL = 0.0186318390288

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.303e+00  5.695e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.723e+00  1.226e+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.081e+00  1.505e-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:  9.903e-01  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.72 +/- 1.23
Photon Flux (Free Index): 2.85e-08 +/- 5.40e-08
Energy Flux (Free Index): 2.69e-05 +/- 2.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/227474/cmap_HighResolution_612576001_612835201_4FGL_J1512.2+0202_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-05', comment='SUCCESS', photon_flux='3.93e-08', energy_flux2='2.69e-05', photon_flux_error='3.53e-08', dlogl='1.86e-02', energy_flux='2.46e-05', photon_flux2='2.85e-08', job_status='DONE', time_completed='2021-09-11 10:06:57.367668', photon_index_error2='1.23', photon_index2='1.72', ts='2.46', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='2.95e-05', EG='0.98', time_epoch_completed='1631380017.37', return_code='0', job_id='227474', GAL2='1.08', EG2='0.99', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='5.40e-08', ts2='2.49', photon_index='1.97' WHERE bin_id='1440' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 227474: <4FGL_J1512.2+0202_daily_bin1440> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1440 228.07 2.0403 612576001 612835201 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 :                                   527.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

