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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin905
RA = 228.07, Dec = 2.0403
tmin = 473904001, tmax = 474163201
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='225421', job_status='RUN', time_executed='2021-09-11 09:46:15.668333', time_epoch_executed='1631378775.67' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225421/ft1_4FGL_J1512.2+0202_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225421/ft2_4FGL_J1512.2+0202_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225421/ft1_4FGL_J1512.2+0202_daily_bin905.fits outfile=/scratch/kocevski/225421/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin905.fits ra=228.07 dec=2.0403 rad=12.0 tmin=473904001.0 tmax=474163201.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.09
user 4.79
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225421/ft2_4FGL_J1512.2+0202_daily_bin905.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/225421/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/225421/ft1_filtered_4FGL_J1512.2+0202_daily_bin905.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225421/ft1_filtered_4FGL_J1512.2+0202_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/225421/ft2_4FGL_J1512.2+0202_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/225421/ltcube_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.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/225421/ft2_4FGL_J1512.2+0202_daily_bin905.fits
.....................!
real 12.49
user 12.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225421/ft1_filtered_4FGL_J1512.2+0202_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/225421/ft2_4FGL_J1512.2+0202_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/225421/ltcube_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.fits outfile=/scratch/kocevski/225421/expmap_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.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/225421/ltcube_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.fits
.....................!
real 191.76
user 187.00
sys 4.26

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/225421/ft1_filtered_4FGL_J1512.2+0202_daily_bin905.fits scfile=/scratch/kocevski/225421/ft2_4FGL_J1512.2+0202_daily_bin905.fits outfile=/scratch/kocevski/225421/cmap_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225421/ft1_filtered_4FGL_J1512.2+0202_daily_bin905.fits scfile=/scratch/kocevski/225421/ft2_4FGL_J1512.2+0202_daily_bin905.fits outfile=/scratch/kocevski/225421/cmap_HighResolution_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2569       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8023       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.480       1.0000         .10000E-03   10000.    
     9 'norm      '    .20463       1.0000         .10000E-03   10000.    
    10 'norm      '    .24244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4019       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99244       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=   7405.126     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1882 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.108        .59756E-04** at limit **
   2  Prefactor     .10000E-03    14.574       -.27708E-05** at limit **
   3  norm          .10000E-03    6.6132       -.37439E-07** at limit **
   4  Prefactor     .10000E-03    6.7743        .80521E-07** at limit **
   5  norm          3.2568        .41123        .36374E-08    .41472E-03
   6  norm          1.8045        3.1128       -.37945E-07   -.48298E-03
   7  norm          .10000E-03    4.5504       -.66453E-07** at limit **
   8  norm          16.479        6.8814       -.15794E-06   -.61140E-05
   9  norm          .18631        3.6034       -.15857E-05    .25044E-03
  10  norm          .24254        .20386       -.19428E-07   -.17084E-02
  11  Prefactor     19.719        20.615        .21104E-06   -.35160E-04
  12  Prefactor     .10000E-03    84.548       -.63840E-04** at limit **
  13  Prefactor     5.8773        4.7149        .18650E-05   -.96459E-04
  14  Prefactor     .10000E-03    15.725        .44519E-05** at limit **
  15  Prefactor     .10000E-03    33.674       -.10662E-04** at limit **
  16  Prefactor     .10000E-03    3.4672       -.52002E-07** at limit **
  17  norm          .10000E-03    1.6283        .18311E-07** at limit **
  18  Normalizat    1.4018        .26255       -.82360E-06    .15179E-03
  19  Prefactor     .99252        .11583        .70503E-07    .25748E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25684
  norm       = 1.80448
  norm       = 0.0001
  norm       = 16.4788
  norm       = 0.186309
  norm       = 0.242542
  Prefactor  = 19.7192
  Prefactor  = 0.000100002
  Prefactor  = 5.87726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40183
  Prefactor  = 0.992519
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.126     FROM HESSE     STATUS=OK           266 CALLS     2148 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.6181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2568        .41340        .18704E-04   -1.5347    
   6  norm          1.8045        3.0661        .17933E-03   -1.5439    
   7  norm          .10000E-03    4.5797        .17927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.479        6.8697        .98661E-04   -1.4896    
   9  norm          .18631        16.886        .30382E-02   -1.5622    
  10  norm          .24254        .22192        .23325E-04   -1.5609    
  11  Prefactor     19.719        23.015        .90196E-04   -1.4820    
  12  Prefactor     .10000E-03    84.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.8773        4.7097        .15987E-03   -1.5223    
  14  Prefactor     .10000E-03    15.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6025        .31269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6484        .10722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4018        .30324        .37783E-03   -.80576    
  19  Prefactor     .99252        .13431        .19987E-03   -.92979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34924e-09
Minuit parameter uncertainties:
  1  2.53448e-05
  2  2.85428e-06
  3  1.33264e-06
  4  1.26441e-06
  5  0.413401
  6  3.06635
  7  1.16802e-06
  8  6.87001
  9  3.54751
  10  0.221917
  11  23.0253
  12  0.000731557
  13  4.71
  14  8.51056e-06
  15  4.2555e-06
  16  1.03301e-05
  17  7.09593e-07
  18  0.30363
  19  0.134358
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.863e-01  3.548e+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:  9.925e-01  1.344e-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.402e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/225421/likelihoodResults_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.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) = 7404.23601267
delta logL = 0.889821976318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7404.12694563
delta logL = 0.99888901443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98577E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8911       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0242       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=   7404.127     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98375E-01    .10729        .44904E-02    .35232E-02
   2  alpha         4.8928        .86369        .48938       -.12388E-03
   3  Normalizat    1.2695        .26955        .88864E-01   -.73562E-05
   4  Prefactor     1.0242        .11732        .41747E-01   -.66261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0983751
  alpha      = 4.89278
  Normalizat = 1.26953
  Prefactor  = 1.02419
 **********
 **   18 **HESSE 
 **********

 FCN=   7404.127     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98375E-01    2.8987        .20466E-03   -1.5645    
   2  alpha         4.8928        3.4788        .55820E-01    1.2769    
   3  Normalizat    1.2695        .27433        .39354E-03   -.84481    
   4  Prefactor     1.0242        .11989        .19699E-03   -.91927    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73331e-05
Minuit parameter uncertainties:
  1  1.06752
  2  5.34907
  3  0.274643
  4  0.119918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225421': 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) = 7404.12694391
delta logL = 0.998890738611

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  9.838e-02  1.068e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  4.893e+00  5.349e+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.024e+00  1.199e-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.270e+00  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 228.070 2.040
Photon Index (Free Index): 4.89 +/- 5.35
Photon Flux (Free Index): 1.17e-07 +/- 9.08e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.59e-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/225421/cmap_HighResolution_473904001_474163201_4FGL_J1512.2+0202_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-05', comment='SUCCESS', energy_flux2='1.66e-05', dlogl='9.99e-01', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-11 09:56:16.380939', photon_index_error2='5.35', photon_index2='4.89', ts='0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.68e-08', energy_flux_error2='1.59e-05', EG='1.40', time_epoch_completed='1631379376.38', return_code='0', job_id='225421', GAL2='1.02', EG2='1.27', return_code2='102', photon_flux_error2='9.08e-08', ts2='2.16', photon_index='1.97' WHERE bin_id='905' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:56:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 225421: <4FGL_J1512.2+0202_daily_bin905> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin905 228.07 2.0403 473904001 474163201 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 :                                   597.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            611 sec.

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

