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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1366
RA = 228.07, Dec = 2.0403
tmin = 593395201, tmax = 593654401
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='227354', job_status='RUN', time_executed='2021-09-11 09:51:46.175040', time_epoch_executed='1631379106.18' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227354

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227354/ft1_4FGL_J1512.2+0202_daily_bin1366.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227354/ft2_4FGL_J1512.2+0202_daily_bin1366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227354/ft1_4FGL_J1512.2+0202_daily_bin1366.fits outfile=/scratch/kocevski/227354/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1366.fits ra=228.07 dec=2.0403 rad=12.0 tmin=593395201.0 tmax=593654401.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 4.10
user 3.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227354/ft1_filtered_4FGL_J1512.2+0202_daily_bin1366.fits" evtable="EVENTS" scfile=/scratch/kocevski/227354/ft2_4FGL_J1512.2+0202_daily_bin1366.fits sctable="SC_DATA" outfile=/scratch/kocevski/227354/ltcube_593395201_593654401_4FGL_J1512.2+0202_daily_bin1366.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/227354/ft2_4FGL_J1512.2+0202_daily_bin1366.fits
.....................!
real 11.87
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227354/ft1_filtered_4FGL_J1512.2+0202_daily_bin1366.fits evtable="EVENTS" scfile=/scratch/kocevski/227354/ft2_4FGL_J1512.2+0202_daily_bin1366.fits sctable="SC_DATA" expcube=/scratch/kocevski/227354/ltcube_593395201_593654401_4FGL_J1512.2+0202_daily_bin1366.fits outfile=/scratch/kocevski/227354/expmap_593395201_593654401_4FGL_J1512.2+0202_daily_bin1366.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/227354/ltcube_593395201_593654401_4FGL_J1512.2+0202_daily_bin1366.fits
.....................!
real 192.52
user 187.33
sys 4.88

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/227354/ft1_filtered_4FGL_J1512.2+0202_daily_bin1366.fits scfile=/scratch/kocevski/227354/ft2_4FGL_J1512.2+0202_daily_bin1366.fits outfile=/scratch/kocevski/227354/cmap_593395201_593654401_4FGL_J1512.2+0202_daily_bin1366.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=228.07 yref=2.0403 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227354/ft1_filtered_4FGL_J1512.2+0202_daily_bin1366.fits scfile=/scratch/kocevski/227354/ft2_4FGL_J1512.2+0202_daily_bin1366.fits outfile=/scratch/kocevski/227354/cmap_HighResolution_593395201_593654401_4FGL_J1512.2+0202_daily_bin1366.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.7968       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .23855       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6855       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2738       1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.128       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1405       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4233       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0220       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=   7499.149     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1884 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    47.765        .90712E-02** at limit **
   2  Prefactor     .10000E-03    17.219        .90712E-02** at limit **
   3  norm          6.8000        11.373        .38475E-02   -.54443E-03
   4  Prefactor     .10000E-03    14.053        .90712E-02** at limit **
   5  norm          .23854        .17465        .64192E-02    .14402E-02
   6  norm          .10000E-03    .65394        .90712E-02** at limit **
   7  norm          .10000E-03    5.1108        .90712E-02** at limit **
   8  norm          3.6856        6.6708        .52596E-02    .25479E-02
   9  norm          5.2739        3.8137        .43756E-02    .77547E-04
  10  norm          .10000E-03    .20804        .90712E-03** at limit **
  11  Prefactor     32.126        14.900        .17673E-02    .45304E-03
  12  Prefactor     .10003E-03    48.858        .90712E-02** at limit **
  13  Prefactor     5.1401        5.5926        .44330E-02    .14296E-02
  14  Prefactor     .10000E-03    11.567        .90712E-02** at limit **
  15  Prefactor     .10000E-03    71.690        .90712E-02** at limit **
  16  Prefactor     .10000E-03    1.8030        .90712E-02** at limit **
  17  norm          .10000E-03    1.5718        .90712E-02** at limit **
  18  Normalizat    1.4233        .23469        .78050E-01    .23942E-04
  19  Prefactor     1.0219        .10844        .41950E-01    .19344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  norm       = 6.79996
  Prefactor  = 0.000100001
  norm       = 0.238536
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.68562
  norm       = 5.27386
  norm       = 0.0001
  Prefactor  = 32.1257
  Prefactor  = 0.000100031
  Prefactor  = 5.14011
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.42333
  Prefactor  = 1.02193
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.149     FROM HESSE     STATUS=OK           264 CALLS     2148 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    47.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8000        11.360        .15390E-03   -1.5186    
   4  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .23854        .16811        .29365E-03   -1.5610    
   6  norm          .10000E-03    .66396        .68357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.1825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6856        6.6490        .21038E-03   -1.5324    
   9  norm          5.2739        3.8123        .13964E-03   -1.5249    
  10  norm          .10000E-03    .20902        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.126        14.755        .70692E-04   -1.4574    
  12  Prefactor     .10003E-03    49.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1401        5.5859        .17732E-03   -1.5254    
  14  Prefactor     .10000E-03    11.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    71.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8146        .11351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5823        .10601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4233        .26804        .34543E-03   -.79956    
  19  Prefactor     1.0219        .12461        .18584E-03   -.92002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79318e-09
Minuit parameter uncertainties:
  1  0.00159049
  2  0.000195972
  3  11.3636
  4  0.000244204
  5  0.168114
  6  1.42778e-07
  7  3.1311e-07
  8  6.65034
  9  3.8125
  10  6.04831e-08
  11  14.757
  12  0.00245648
  13  5.58651
  14  0.000113576
  15  0.00106147
  16  5.19165e-07
  17  4.8598e-07
  18  0.268302
  19  0.12465
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.274e+00  3.813e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.968e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  1.575e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.022e+00  1.246e-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.423e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.57
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.65e-05

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) = 7499.08957809
delta logL = 0.0592650816516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7499.08526284
delta logL = 0.0635803359182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9456       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2239       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0237       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=   7499.085     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9453        3.8404        .12966E-03    .11751E-02
   2  alpha         2.2244        .72700        .16205E-01    .82400E-04
   3  Normalizat    1.4133        .26485        .34641E-03   -.10088E-03
   4  Prefactor     1.0237        .12334        .18567E-03   -.25492E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.94534
  alpha      = 2.22435
  Normalizat = 1.41327
  Prefactor  = 1.0237
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.085     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9453        3.7617        .51863E-05   -1.5263    
   2  alpha         2.2244        .71217        .64818E-03   -.11048    
   3  Normalizat    1.4133        .26486        .13857E-04   -.80246    
   4  Prefactor     1.0237        .12340        .37135E-04   -.91944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03786e-10
Minuit parameter uncertainties:
  1  3.76184
  2  0.722298
  3  0.265121
  4  0.123433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227354': 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) = 7499.0852626
delta logL = 0.0635805778084

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.945e+00  3.762e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.224e+00  7.223e-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:  1.024e+00  1.234e-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.413e+00  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.69
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.22 +/- 0.72
Photon Flux (Free Index): 4.72e-08 +/- 4.54e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.51e-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/227354/cmap_HighResolution_593395201_593654401_4FGL_J1512.2+0202_daily_bin1366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='2.08e-05', photon_flux_error='2.64e-08', dlogl='6.36e-02', energy_flux='2.28e-05', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-11 10:01:00.508032', photon_index_error2='0.72', photon_index2='2.22', ts='4.57', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.42', time_epoch_completed='1631379660.51', return_code='0', job_id='227354', GAL2='1.02', EG2='1.41', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='4.54e-08', ts2='4.69', photon_index='1.97' WHERE bin_id='1366' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:01:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 227354: <4FGL_J1512.2+0202_daily_bin1366> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1366> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:51:36 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:51:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 09:51:38 2021
Terminated at Sat Sep 11 10:01:01 2021
Results reported at Sat Sep 11 10:01:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1366 228.07 2.0403 593395201 593654401 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 :                                   542.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            565 sec.

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

