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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1624
RA = 228.07, Dec = 2.0403
tmin = 660268801, tmax = 660528001
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='380234', job_status='RUN', time_executed='2021-12-08 01:59:59.194844', time_epoch_executed='1638957599.19' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380234/ft1_4FGL_J1512.2+0202_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380234/ft2_4FGL_J1512.2+0202_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380234/ft1_4FGL_J1512.2+0202_daily_bin1624.fits outfile=/scratch/kocevski/380234/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1624.fits ra=228.07 dec=2.0403 rad=12.0 tmin=660268801.0 tmax=660528001.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.89
user 3.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380234/ft1_filtered_4FGL_J1512.2+0202_daily_bin1624.fits" evtable="EVENTS" scfile=/scratch/kocevski/380234/ft2_4FGL_J1512.2+0202_daily_bin1624.fits sctable="SC_DATA" outfile=/scratch/kocevski/380234/ltcube_660268801_660528001_4FGL_J1512.2+0202_daily_bin1624.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/380234/ft2_4FGL_J1512.2+0202_daily_bin1624.fits
.....................!
real 13.73
user 13.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380234/ft1_filtered_4FGL_J1512.2+0202_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/380234/ft2_4FGL_J1512.2+0202_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/380234/ltcube_660268801_660528001_4FGL_J1512.2+0202_daily_bin1624.fits outfile=/scratch/kocevski/380234/expmap_660268801_660528001_4FGL_J1512.2+0202_daily_bin1624.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/380234/ltcube_660268801_660528001_4FGL_J1512.2+0202_daily_bin1624.fits
.....................!
real 193.73
user 188.19
sys 4.95

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/380234/ft1_filtered_4FGL_J1512.2+0202_daily_bin1624.fits scfile=/scratch/kocevski/380234/ft2_4FGL_J1512.2+0202_daily_bin1624.fits outfile=/scratch/kocevski/380234/cmap_660268801_660528001_4FGL_J1512.2+0202_daily_bin1624.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380234/ft1_filtered_4FGL_J1512.2+0202_daily_bin1624.fits scfile=/scratch/kocevski/380234/ft2_4FGL_J1512.2+0202_daily_bin1624.fits outfile=/scratch/kocevski/380234/cmap_HighResolution_660268801_660528001_4FGL_J1512.2+0202_daily_bin1624.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=228.07 yref=2.0403 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.317       1.0000         .10000E-03   10000.    
     3 'norm      '    .18281E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   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      '    1.8667       1.0000         .10000E-03   10000.    
     9 'norm      '    5.8277       1.0000         .10000E-03   10000.    
    10 'norm      '    .10796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8985       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.902       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2892       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.7328       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89061       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=   9465.824     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     1700 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.356        .98523E-07** at limit **
   2  Prefactor     33.423        28.194        .46526E-05    .98159E-04
   3  norm          .10000E-03    83.714        .12269E-04** at limit **
   4  Prefactor     .10000E-03    69.315       -.34112E-06** at limit **
   5  norm          .10000E-03    .40659E-01   -.19389E-07** at limit **
   6  norm          .10000E-03    1.3824        .26985E-06** at limit **
   7  norm          .10000E-03    1.5688        .20751E-07** at limit **
   8  norm          1.8662        4.3000       -.38265E-06    .15805E-03
   9  norm          5.8271        4.1917       -.63570E-07    .70988E-04
  10  norm          .10794        .85706E-01   -.12045E-08    .52057E-03
  11  Prefactor     .10000E-03    5.8905        .12280E-07** at limit **
  12  Prefactor     .10001E-03    58.913        .24050E-05** at limit **
  13  Prefactor     7.8970        5.2146       -.42459E-07    .15004E-03
  14  Prefactor     41.899        30.544        .97690E-07    .19260E-04
  15  Prefactor     .10000E-03    21.549       -.17360E-07** at limit **
  16  Prefactor     5.2882        4.8060       -.87594E-06    .64104E-03
  17  norm          .10000E-03    3.0352       -.47666E-07** at limit **
  18  Normalizat    1.7329        .22059        .19975E-05    .27343E-03
  19  Prefactor     .89063        .98076E-01   -.53294E-06    .57292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.4232
  norm       = 0.000100002
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.86623
  norm       = 5.82714
  norm       = 0.107936
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 7.89697
  Prefactor  = 41.899
  Prefactor  = 0.0001
  Prefactor  = 5.28821
  norm       = 0.0001
  Normalizat = 1.73294
  Prefactor  = 0.890626
 **********
 **   18 **HESSE 
 **********

 FCN=   9465.824     FROM HESSE     STATUS=OK           268 CALLS     1968 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.423        28.491        .34711E-03   -1.4551    
   3  norm          .10000E-03    82.178        .65206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    71.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .10314        .38164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4132        .22265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5693        .11901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8662        4.2833        .29006E-03   -1.5435    
   9  norm          5.8271        4.1872        .16294E-03   -1.5225    
  10  norm          .10794        .80733E-01    .24071E-03   -1.5642    
  11  Prefactor     .10000E-03    5.9188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    59.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8970        5.2104        .14267E-03   -1.5146    
  14  Prefactor     41.899        30.513        .61928E-04   -1.4412    
  15  Prefactor     .10000E-03    21.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2882        4.8414        .87382E-03   -1.5248    
  17  norm          .10000E-03    3.0956        .16533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.7329        .25168        .33145E-03   -.71427    
  19  Prefactor     .89063        .11354        .19720E-03   -.96469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02185e-10
Minuit parameter uncertainties:
  1  2.8984e-05
  2  28.5025
  3  0.000797458
  4  0.001037
  5  1.20695e-06
  6  1.61882e-06
  7  1.11475e-07
  8  4.28401
  9  4.18738
  10  0.0807331
  11  3.44831e-06
  12  0.00164472
  13  5.21073
  14  30.5244
  15  5.22007e-05
  16  4.84176
  17  4.42402e-06
  18  0.251864
  19  0.113571
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.827e+00  4.187e+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.906e-01  1.136e-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.733e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.81e-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) = 9463.83150595
delta logL = 1.99205536149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9463.82566464
delta logL = 1.99789667298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4613       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1592       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91225       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=   9463.826     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      250 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4635        22.028        .54342E-02    .44221E-03
   2  alpha         3.1588        3.8549        .26169        .98785E-04
   3  Normalizat    1.6262        .10061        .76690E-01    .94928E-05
   4  Prefactor     .91242        .37641E-01    .45161E-01    .91585E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46349
  alpha      = 3.1588
  Normalizat = 1.62619
  Prefactor  = 0.912422
 **********
 **   18 **HESSE 
 **********

 FCN=   9463.826     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4635        3.6199        .78313E-04   -1.5336    
   2  alpha         3.1588        .70061        .10199E-01    .26667    
   3  Normalizat    1.6262        .26025        .33935E-03   -.74292    
   4  Prefactor     .91242        .11368        .19484E-03   -.95708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21056e-11
Minuit parameter uncertainties:
  1  3.62015
  2  0.710859
  3  0.260473
  4  0.113706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380234': 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) = 9463.82566134
delta logL = 1.99789997418

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.463e+00  3.620e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  3.159e+00  7.109e-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.124e-01  1.137e-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.626e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.16
Ra Dec: 228.070 2.040
Photon Index (Free Index): 3.16 +/- 0.71
Photon Flux (Free Index): 1.46e-07 +/- 8.12e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.43e-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/380234/cmap_HighResolution_660268801_660528001_4FGL_J1512.2+0202_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='3.12e-05', photon_flux_error='2.90e-08', dlogl='2.00e+00', energy_flux='2.52e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-12-08 02:09:47.354719', photon_index_error2='0.71', photon_index2='3.16', ts='4.07', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.73', time_epoch_completed='1638958187.35', return_code='0', job_id='380234', GAL2='0.91', EG2='1.63', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='8.12e-08', ts2='8.16', photon_index='1.97' WHERE bin_id='1624' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:09:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 380234: <4FGL_J1512.2+0202_daily_bin1624> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1624> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 01:55:27 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 01:57:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 01:57:05 2021
Terminated at Wed Dec  8 02:09:48 2021
Results reported at Wed Dec  8 02:09:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1624 228.07 2.0403 660268801 660528001 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 :                                   587.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            861 sec.

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

