/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 169 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 = 7284
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin118
RA = 228.07, Dec = 2.0403
tmin = 269913601, tmax = 270172801
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='220734', job_status='RUN', time_executed='2021-09-11 09:34:32.749404', time_epoch_executed='1631378072.75' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220734

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220734/ft1_4FGL_J1512.2+0202_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220734/ft2_4FGL_J1512.2+0202_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220734/ft1_4FGL_J1512.2+0202_daily_bin118.fits outfile=/scratch/kocevski/220734/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin118.fits ra=228.07 dec=2.0403 rad=12.0 tmin=269913601.0 tmax=270172801.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 1.66
user 1.46
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/220734/ft2_4FGL_J1512.2+0202_daily_bin118.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/220734/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/220734/ft1_filtered_4FGL_J1512.2+0202_daily_bin118.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/220734/ft1_filtered_4FGL_J1512.2+0202_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/220734/ft2_4FGL_J1512.2+0202_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/220734/ltcube_269913601_270172801_4FGL_J1512.2+0202_daily_bin118.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/220734/ft2_4FGL_J1512.2+0202_daily_bin118.fits
.....................!
real 11.70
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220734/ft1_filtered_4FGL_J1512.2+0202_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/220734/ft2_4FGL_J1512.2+0202_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/220734/ltcube_269913601_270172801_4FGL_J1512.2+0202_daily_bin118.fits outfile=/scratch/kocevski/220734/expmap_269913601_270172801_4FGL_J1512.2+0202_daily_bin118.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/220734/ltcube_269913601_270172801_4FGL_J1512.2+0202_daily_bin118.fits
.....................!
real 191.34
user 185.82
sys 5.15

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/220734/ft1_filtered_4FGL_J1512.2+0202_daily_bin118.fits scfile=/scratch/kocevski/220734/ft2_4FGL_J1512.2+0202_daily_bin118.fits outfile=/scratch/kocevski/220734/cmap_269913601_270172801_4FGL_J1512.2+0202_daily_bin118.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.60
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17732E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4645       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2002       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1484       1.0000         .10000E-03   10000.    
     7 'norm      '    .10729E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3208       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6636       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24451E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .24729       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5172       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88831       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.

 FCN=   13527.54     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1748 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.551         .0000    ** at limit **
   2  Prefactor     .10000E-03    65.777         .0000    ** at limit **
   3  norm          .10000E-03    14.779         .0000    ** at limit **
   4  Prefactor     6.4636        10.037         .0000        .29559E-03
   5  norm          1.2002        .21157         .0000       -.35667E-02
   6  norm          2.1485        1.8838         .0000        .27968E-01
   7  norm          .10000E-03    1.9644         .0000    ** at limit **
   8  norm          2.3211        2.7052         .0000        .85460E-03
   9  norm          2.6637        2.4033         .0000        .11118E-01
  10  norm          2.0284        .16415         .0000        .74669E-02
  11  Prefactor     .10000E-03    3.7051         .0000    ** at limit **
  12  Prefactor     15.659        15.671         .0000        .10978E-03
  13  Prefactor     .10000E-03    1.9114         .0000    ** at limit **
  14  Prefactor     .10000E-03    8.4371         .0000    ** at limit **
  15  Prefactor     16.842        38.602         .0000        .11165E-03
  16  Prefactor     .10000E-03    1.4294         .0000    ** at limit **
  17  norm          .24558        1.3019         .0000        .22506E-02
  18  Normalizat    1.5172        .18934         .0000        .13030E-02
  19  Prefactor     .88828        .84015E-01     .0000        .14789E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 6.46358
  norm       = 1.2002
  norm       = 2.1485
  norm       = 0.000100001
  norm       = 2.32107
  norm       = 2.66374
  norm       = 2.02839
  Prefactor  = 0.0001
  Prefactor  = 15.6591
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.8416
  Prefactor  = 0.0001
  norm       = 0.245582
  Normalizat = 1.51723
  Prefactor  = 0.888279
 **********
 **   18 **HESSE 
 **********

 FCN=   13527.54     FROM HESSE     STATUS=OK           272 CALLS     2020 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4636        10.033        .15785E-03   -1.5199    
   5  norm          1.2002        .21176        .21431E-04   -1.5489    
   6  norm          2.1485        1.8762        .70438E-03   -1.5415    
   7  norm          .10000E-03    9.6881        .31729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3211        2.6911        .19969E-03   -1.5403    
   9  norm          2.6637        2.3931        .82795E-03   -1.5382    
  10  norm          2.0284        .16413        .12902E-04   -1.5423    
  11  Prefactor     .10000E-03    3.7100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.659        15.671        .10122E-03   -1.4916    
  13  Prefactor     .10000E-03    13.123        .30740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.4480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.842        38.676        .48798E-03   -1.4887    
  16  Prefactor     .10000E-03    3.2493        .26744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .24558        3.3811        .25631E-02   -1.5609    
  18  Normalizat    1.5172        .21959        .35855E-03   -.77295    
  19  Prefactor     .88828        .97935E-01    .20473E-03   -.96552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25823e-09
Minuit parameter uncertainties:
  1  0.000490922
  2  0.000387766
  3  0.000230403
  4  10.0353
  5  0.211757
  6  1.87623
  7  0.000173849
  8  2.69128
  9  2.39316
  10  0.164134
  11  1.27812e-05
  12  15.6755
  13  1.8997e-05
  14  0.000167036
  15  38.7335
  16  1.14693e-06
  17  1.82222
  18  0.219726
  19  0.0979542
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.664e+00  2.393e+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.883e-01  9.795e-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.517e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.84e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/220734/likelihoodResults_269913601_270172801_4FGL_J1512.2+0202_daily_bin118.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) = 13527.4919712
delta logL = 0.0434150331494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13527.4900913
delta logL = 0.0452949726823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5288       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2133       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88921       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13527.49     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5290        2.4235        .15740E-03   -.11827E-02
   2  alpha         2.2134        .83852        .28461E-01   -.72797E-04
   3  Normalizat    1.5119        .21284        .35906E-03   -.68465E-03
   4  Prefactor     .88922        .96429E-01    .20463E-03   -.13715E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.529
  alpha      = 2.21337
  Normalizat = 1.51193
  Prefactor  = 0.889221
 **********
 **   18 **HESSE 
 **********

 FCN=   13527.49     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5290        2.3597        .62960E-05   -1.5390    
   2  alpha         2.2134        .81701        .11385E-02   -.11491    
   3  Normalizat    1.5119        .21281        .71811E-04   -.77444    
   4  Prefactor     .88922        .96465E-01    .40925E-04   -.96519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14095e-09
Minuit parameter uncertainties:
  1  2.3598
  2  0.832517
  3  0.212935
  4  0.0964834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220734': 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) = 13527.4900913
delta logL = 0.0452949893188

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.529e+00  2.360e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.213e+00  8.325e-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.892e-01  9.648e-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.512e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.21 +/- 0.83
Photon Flux (Free Index): 2.38e-08 +/- 2.80e-08
Energy Flux (Free Index): 1.06e-05 +/- 9.58e-06

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/220734/cmap_HighResolution_269913601_270172801_4FGL_J1512.2+0202_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', comment='SUCCESS', photon_flux='1.84e-08', energy_flux2='1.06e-05', photon_flux_error='1.66e-08', dlogl='4.53e-02', energy_flux='1.15e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-09-11 09:47:57.247418', photon_index_error2='0.83', photon_index2='2.21', ts='2.24', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.02e-08', energy_flux_error2='9.58e-06', EG='1.52', time_epoch_completed='1631378877.25', return_code='0', job_id='220734', GAL2='0.89', EG2='1.51', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.80e-08', ts2='2.33', photon_index='1.97' WHERE bin_id='118' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:47:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 220734: <4FGL_J1512.2+0202_daily_bin118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin118 228.07 2.0403 269913601 270172801 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 :                                   803.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

