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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin705
RA = 228.07, Dec = 2.0403
tmin = 422064001, tmax = 422323201
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='223920', job_status='RUN', time_executed='2021-09-11 09:43:46.492518', time_epoch_executed='1631378626.49' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='705'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223920

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223920/ft1_4FGL_J1512.2+0202_daily_bin705.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223920/ft2_4FGL_J1512.2+0202_daily_bin705.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223920/ft1_4FGL_J1512.2+0202_daily_bin705.fits outfile=/scratch/kocevski/223920/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin705.fits ra=228.07 dec=2.0403 rad=12.0 tmin=422064001.0 tmax=422323201.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.61
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223920/ft1_filtered_4FGL_J1512.2+0202_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/223920/ft2_4FGL_J1512.2+0202_daily_bin705.fits sctable="SC_DATA" expcube=/scratch/kocevski/223920/ltcube_422064001_422323201_4FGL_J1512.2+0202_daily_bin705.fits outfile=/scratch/kocevski/223920/expmap_422064001_422323201_4FGL_J1512.2+0202_daily_bin705.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/223920/ltcube_422064001_422323201_4FGL_J1512.2+0202_daily_bin705.fits
.....................!
real 191.07
user 186.13
sys 4.48

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/223920/ft1_filtered_4FGL_J1512.2+0202_daily_bin705.fits scfile=/scratch/kocevski/223920/ft2_4FGL_J1512.2+0202_daily_bin705.fits outfile=/scratch/kocevski/223920/cmap_422064001_422323201_4FGL_J1512.2+0202_daily_bin705.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223920/ft1_filtered_4FGL_J1512.2+0202_daily_bin705.fits scfile=/scratch/kocevski/223920/ft2_4FGL_J1512.2+0202_daily_bin705.fits outfile=/scratch/kocevski/223920/cmap_HighResolution_422064001_422323201_4FGL_J1512.2+0202_daily_bin705.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    28.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0027       1.0000         .10000E-03   10000.    
     5 'norm      '    .42054       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9462       1.0000         .10000E-03   10000.    
     8 'norm      '    9.4014       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9153       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49566E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2881       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83336       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=   9033.186     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1896 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.321        .38307E-06** at limit **
   2  Prefactor     .10000E-03    16.181       -.11293E-06** at limit **
   3  norm          28.021        18.239       -.65332E-06    .13511E-04
   4  Prefactor     5.9974        17.541       -.29644E-05    .14422E-04
   5  norm          .42051        .17560       -.75048E-07    .16554E-03
   6  norm          .10000E-03    .99989        .54816E-06** at limit **
   7  norm          2.9461        3.2767        .10401E-05   -.96113E-05
   8  norm          9.4008        5.5427       -.10038E-05    .21335E-04
   9  norm          3.9151        3.7522       -.19747E-05   -.23220E-04
  10  norm          1.0871        .14386        .11119E-07    .92035E-04
  11  Prefactor     .10000E-03    7.4708       -.13587E-06** at limit **
  12  Prefactor     37.498        31.725       -.41728E-07   -.17733E-04
  13  Prefactor     .10000E-03    33.059        .69784E-05** at limit **
  14  Prefactor     .10000E-03    55.868       -.45323E-07** at limit **
  15  Prefactor     .10000E-03    59.511        .22491E-05** at limit **
  16  Prefactor     .10000E-03    1.7936        .31914E-06** at limit **
  17  norm          .10000E-03    1.3911        .14745E-06** at limit **
  18  Normalizat    1.2882        .20357        .15758E-05   -.26205E-04
  19  Prefactor     .83340        .88805E-01    .14510E-07    .11859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.0209
  Prefactor  = 5.99739
  norm       = 0.420507
  norm       = 0.0001
  norm       = 2.9461
  norm       = 9.40081
  norm       = 3.91506
  norm       = 1.08707
  Prefactor  = 0.0001
  Prefactor  = 37.4975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.28815
  Prefactor  = 0.833399
 **********
 **   18 **HESSE 
 **********

 FCN=   9033.186     FROM HESSE     STATUS=OK           268 CALLS     2164 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          28.021        18.222        .75682E-04   -1.4649    
   4  Prefactor     5.9974        17.514        .16389E-03   -1.5218    
   5  norm          .42051        .17386        .24602E-04   -1.5578    
   6  norm          .10000E-03    1.0355        .18609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9461        3.2765        .17696E-03   -1.5365    
   8  norm          9.4008        5.5380        .13070E-03   -1.5095    
   9  norm          3.9151        3.7650        .17440E-03   -1.5312    
  10  norm          1.0871        .14385        .12415E-04   -1.5499    
  11  Prefactor     .10000E-03    7.5154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.498        31.721        .32727E-03   -1.4482    
  13  Prefactor     .10000E-03    32.160        .24767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    57.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    59.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8171        .12415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4135        .10943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2882        .23214        .34122E-03   -.83921    
  19  Prefactor     .83340        .10218        .18531E-03   -.98509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56117e-11
Minuit parameter uncertainties:
  1  0.000204871
  2  4.35542e-06
  3  18.226
  4  17.5286
  5  0.173862
  6  8.51873e-06
  7  3.27673
  8  5.53827
  9  3.76523
  10  0.143848
  11  1.58206e-06
  12  31.7355
  13  5.80083e-05
  14  0.000128191
  15  0.000282328
  16  4.22975e-06
  17  2.72488e-06
  18  0.232331
  19  0.102201
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.915e+00  3.765e+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:  8.334e-01  1.022e-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.288e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/223920/likelihoodResults_422064001_422323201_4FGL_J1512.2+0202_daily_bin705.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) = 9032.20465106
delta logL = 0.981558512263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9032.19731209
delta logL = 0.988897478273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27913       1.0000         .10000E-03   10000.    
     2 'alpha     '    .18838       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83785       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9032.197     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      337 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27889        .64283        .52440E-04   -.91053E-05
   2  alpha         .18832        .85746        .47540E-01    .14007E-04
   3  Normalizat    1.2989        .22573        .34003E-03   -.40121E-06
   4  Prefactor     .83773        .10173        .18492E-03    .24592E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.27889
  alpha      = 0.188321
  Normalizat = 1.29893
  Prefactor  = 0.837729
 **********
 **   18 **HESSE 
 **********

 FCN=   9032.197     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .46E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27889        .68659        .20976E-05   -1.5602    
   2  alpha         .18832        .96474        .19016E-02   -1.1802    
   3  Normalizat    1.2989        .22593        .13601E-04   -.83598    
   4  Prefactor     .83773        .10182        .73967E-05   -.98352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.598e-15
Minuit parameter uncertainties:
  1  0.686604
  2  0.903168
  3  0.226102
  4  0.101842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223920': 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) = 9032.19731101
delta logL = 0.988898561598

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.789e-01  6.866e-01  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.883e-01  9.032e-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:  8.377e-01  1.018e-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.299e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.86
Ra Dec: 228.070 2.040
Photon Index (Free Index): 0.19 +/- 0.90
Photon Flux (Free Index): 3.17e-09 +/- 3.47e-09
Energy Flux (Free Index): 6.18e-05 +/- 8.76e-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/223920/cmap_HighResolution_422064001_422323201_4FGL_J1512.2+0202_daily_bin705.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-05', comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='6.18e-05', photon_flux_error='2.60e-08', dlogl='9.89e-01', energy_flux='1.69e-05', photon_flux2='3.17e-09', job_status='DONE', time_completed='2021-09-11 09:54:42.203406', photon_index_error2='0.90', photon_index2='0.19', ts='1.89', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='8.86e-08', energy_flux_error2='8.76e-05', EG='1.29', time_epoch_completed='1631379282.2', return_code='0', job_id='223920', GAL2='0.84', EG2='1.30', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='3.47e-09', ts2='3.86', photon_index='1.97' WHERE bin_id='705' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:54:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 223920: <4FGL_J1512.2+0202_daily_bin705> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin705> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 09:41:04 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:41:05 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:41:05 2021
Terminated at Sat Sep 11 09:54:42 2021
Results reported at Sat Sep 11 09:54:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin705 228.07 2.0403 422064001 422323201 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 :                                   653.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

