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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin667
RA = 228.07, Dec = 2.0403
tmin = 412214401, tmax = 412473601
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='223874', job_status='RUN', time_executed='2021-09-11 09:44:29.224545', time_epoch_executed='1631378669.22' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223874/ft1_4FGL_J1512.2+0202_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223874/ft2_4FGL_J1512.2+0202_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223874/ft1_4FGL_J1512.2+0202_daily_bin667.fits outfile=/scratch/kocevski/223874/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin667.fits ra=228.07 dec=2.0403 rad=12.0 tmin=412214401.0 tmax=412473601.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.41
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223874/ft2_4FGL_J1512.2+0202_daily_bin667.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/223874/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin667.fits evtable="EVENTS" outfile="/scratch/kocevski/223874/ft1_filtered_4FGL_J1512.2+0202_daily_bin667.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/223874/ft1_filtered_4FGL_J1512.2+0202_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/223874/ft2_4FGL_J1512.2+0202_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/223874/ltcube_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.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/223874/ft2_4FGL_J1512.2+0202_daily_bin667.fits
.....................!
real 11.91
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223874/ft1_filtered_4FGL_J1512.2+0202_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/223874/ft2_4FGL_J1512.2+0202_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/223874/ltcube_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.fits outfile=/scratch/kocevski/223874/expmap_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.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/223874/ltcube_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.fits
.....................!
real 189.77
user 185.42
sys 3.99

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223874/ft1_filtered_4FGL_J1512.2+0202_daily_bin667.fits scfile=/scratch/kocevski/223874/ft2_4FGL_J1512.2+0202_daily_bin667.fits outfile=/scratch/kocevski/223874/cmap_HighResolution_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223874/ft1_filtered_4FGL_J1512.2+0202_daily_bin667.fits', '/scratch/kocevski/223874/ft2_4FGL_J1512.2+0202_daily_bin667.fits', expMap='/scratch/kocevski/223874/expmap_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.fits', expCube='/scratch/kocevski/223874/ltcube_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223874/Model_4FGL_J1512.2+0202_daily_bin667.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/223874/ft1_filtered_4FGL_J1512.2+0202_daily_bin667.fits
Spacecraft file(s): /scratch/kocevski/223874/ft2_4FGL_J1512.2+0202_daily_bin667.fits
Exposure map: /scratch/kocevski/223874/expmap_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.fits
Exposure cube: /scratch/kocevski/223874/ltcube_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223874/Model_4FGL_J1512.2+0202_daily_bin667.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 842.599135754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 839.355403451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0505       1.0000         .10000E-03   10000.    
     3 'norm      '    .31696E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.174       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4273       1.0000         .10000E-03   10000.    
     7 'norm      '    26.041       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0240       1.0000         .10000E-03   10000.    
     9 'norm      '    21.159       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20278       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11785E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7523       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46713E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .13924E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .25555       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   839.3105     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      389 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.967        347.58        .75895E-05   -.62873E-06
   2  Prefactor     .10000E-03    224.43        .48187E-05** at limit **
   3  norm          .10000E-03    40.163        .32353E-04** at limit **
   4  Prefactor     57.652        60.911       -.86897E-06    .21713E-04
   5  norm          .10000E-03    .15870        .62567E-06** at limit **
   6  norm          5.4004        10.861       -.29974E-05    .43270E-04
   7  norm          26.164        19.691        .33180E-05   -.41975E-04
   8  norm          3.0240        1.0144         .0000         .0000    
   9  norm          21.236        22.754       -.65349E-06   -.10201E-04
  10  norm          1.1082        1.1822         .0000         .0000    
  11  Prefactor     3.2905        1.0120         .0000         .0000    
  12  Prefactor     .10000E-03    230.44       -.28755E-04** at limit **
  13  Prefactor     10.168        18.261       -.31115E-05    .31441E-04
  14  Prefactor     .10000E-03    39.023        .99095E-05** at limit **
  15  Prefactor     9.7523        1.0013         .0000         .0000    
  16  Prefactor     .10000E-03    38.338        .22558E-04** at limit **
  17  norm          .10000E-03    13.155        .57182E-05** at limit **
  18  Normalizat    .25000        .66131       -.45083E-04    .20651E-04
  19  Prefactor     .96728        .37481        .13920E-04    .39766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.9665
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 57.6518
  norm       = 0.0001
  norm       = 5.40042
  norm       = 26.164
  norm       = 3.02405
  norm       = 21.2359
  norm       = 1.10822
  Prefactor  = 3.2905
  Prefactor  = 0.000100003
  Prefactor  = 10.1677
  Prefactor  = 0.0001
  Prefactor  = 9.7523
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.250004
  Prefactor  = 0.967282
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   839.3105     FROM HESSE     STATUS=FAILED        37 CALLS      426 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.967        335.73        .47766E-02   -1.3808    
   2  Prefactor     .10000E-03    225.18        .40807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    40.143        .10683E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.652        56.441        .13264E-02   -1.4188    
   5  norm          .10000E-03    .15432        .51297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4004        10.224        .43122E-02   -1.5243    
   7  norm          26.164        19.414        .19625E-02   -1.4685    
   8  norm          554.04        550.93         .0000       -1.5360    
   9  norm          21.236        1.0021       -.65349E-06   -1.4786    
  10  norm          1.1082        1.1822         .0000       -1.5497    
  11  Prefactor     3.2905        1.0120         .0000       -1.5345    
  12  Prefactor     .10000E-03    .24951       -.28755E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.168        1.0021       -.31115E-05   -1.5070    
  14  Prefactor     .10000E-03    .26653        .99095E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7523        1.0013         .0000       -1.5083    
  16  Prefactor     .10000E-03    .21409        .22558E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571        .57182E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .25000        .53875       -.45083E-04   -1.2595    
  19  Prefactor     .96728        1.3108        .13920E-04   -.93828    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.28306e-11
Minuit parameter uncertainties:
  1  343.239
  2  0.000374917
  3  0.000316334
  4  56.4936
  5  3.97215e-07
  6  10.227
  7  19.419
  8  1.01437
  9  1.00209
  10  1.18227
  11  1.01204
  12  5.11171e-05
  13  1.00205
  14  1.59219e-05
  15  1.00132
  16  3.17341e-05
  17  7.02213e-07
  18  0.550554
  19  1.35805
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 839.310467451

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.124e+01  1.002e+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.673e-01  1.358e+00  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:  2.500e-01  5.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 6.93e-09
Energy Flux (Fixed Index): 9.18e-05 +/- 4.33e-06

TS (Fixed Index): 2.88
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 6.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223874/likelihoodResults_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.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) = 838.742086757
delta logL = 0.568380693527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 838.735414171
delta logL = 0.575053280292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.403       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1313       1.0000          .0000       5.0000    
     3 'Normalizat'    .29501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94319       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=   838.7354     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.400        23.169       -.70106E-05   -.10823E-03
   2  alpha         1.1292        .62051       -.56627E-05    .13691E-03
   3  Normalizat    .29391        .62698       -.43444E-05   -.43304E-05
   4  Prefactor     .94388        .35649        .18631E-05   -.99631E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 23.4001
  alpha      = 1.12919
  Normalizat = 0.293906
  Prefactor  = 0.943882
 **********
 **   18 **HESSE 
 **********

 FCN=   838.7354     FROM HESSE     STATUS=OK            27 CALLS      229 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.400        23.265        .82800E-04   -1.4740    
   2  alpha         1.1292        .67549        .84823E-03   -.58036    
   3  Normalizat    .29391        .64708        .51362E-03   -1.2320    
   4  Prefactor     .94388        .36936        .16178E-03   -.94624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87527e-09
Minuit parameter uncertainties:
  1  23.2736
  2  0.687828
  3  0.664704
  4  0.370347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223874': 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) = 838.735406757
delta logL = 0.575060693346

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.340e+01  2.327e+01  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.129e+00  6.878e-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:  9.439e-01  3.703e-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:  2.939e-01  6.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.13 +/- 0.69
Photon Flux (Free Index): 9.49e-08 +/- 9.35e-08
Energy Flux (Free Index): 3.12e-04 +/- 4.69e-04

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/223874/cmap_HighResolution_412214401_412473601_4FGL_J1512.2+0202_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-04', comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='3.12e-04', photon_flux_error='6.93e-09', dlogl='5.75e-01', energy_flux='9.18e-05', photon_flux2='9.49e-08', job_status='DONE', time_completed='2021-09-11 09:49:49.858361', photon_index_error2='0.69', photon_index2='1.13', ts='2.88', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.11e-07', energy_flux_error2='4.69e-04', EG='0.25', time_epoch_completed='1631378989.86', return_code='101', job_id='223874', GAL2='0.94', EG2='0.29', return_code2='0', energy_flux_error='4.33e-06', photon_flux_error2='9.35e-08', ts2='4.07', photon_index='1.97' WHERE bin_id='667' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 223874: <4FGL_J1512.2+0202_daily_bin667> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin667 228.07 2.0403 412214401 412473601 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 :                                   320.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             372.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   529 sec.
    Turnaround time :                            530 sec.

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

