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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1088
RA = 228.07, Dec = 2.0403
tmin = 521337601, tmax = 521596801
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='225699', job_status='RUN', time_executed='2021-09-11 09:49:36.937367', time_epoch_executed='1631378976.94' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1088'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225699

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225699/ft1_4FGL_J1512.2+0202_daily_bin1088.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225699/ft2_4FGL_J1512.2+0202_daily_bin1088.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225699/ft1_4FGL_J1512.2+0202_daily_bin1088.fits outfile=/scratch/kocevski/225699/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1088.fits ra=228.07 dec=2.0403 rad=12.0 tmin=521337601.0 tmax=521596801.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.11
user 4.85
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225699/ft1_filtered_4FGL_J1512.2+0202_daily_bin1088.fits" evtable="EVENTS" scfile=/scratch/kocevski/225699/ft2_4FGL_J1512.2+0202_daily_bin1088.fits sctable="SC_DATA" outfile=/scratch/kocevski/225699/ltcube_521337601_521596801_4FGL_J1512.2+0202_daily_bin1088.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/225699/ft2_4FGL_J1512.2+0202_daily_bin1088.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225699/ft1_filtered_4FGL_J1512.2+0202_daily_bin1088.fits evtable="EVENTS" scfile=/scratch/kocevski/225699/ft2_4FGL_J1512.2+0202_daily_bin1088.fits sctable="SC_DATA" expcube=/scratch/kocevski/225699/ltcube_521337601_521596801_4FGL_J1512.2+0202_daily_bin1088.fits outfile=/scratch/kocevski/225699/expmap_521337601_521596801_4FGL_J1512.2+0202_daily_bin1088.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/225699/ltcube_521337601_521596801_4FGL_J1512.2+0202_daily_bin1088.fits
.....................!
real 190.91
user 185.35
sys 5.20

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/225699/ft1_filtered_4FGL_J1512.2+0202_daily_bin1088.fits scfile=/scratch/kocevski/225699/ft2_4FGL_J1512.2+0202_daily_bin1088.fits outfile=/scratch/kocevski/225699/cmap_521337601_521596801_4FGL_J1512.2+0202_daily_bin1088.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30537E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33630E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .18842E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.936       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2540       1.0000         .10000E-03   10000.    
     6 'norm      '    6.8923       1.0000         .10000E-03   10000.    
     7 'norm      '    4.3492       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7465       1.0000         .10000E-03   10000.    
     9 'norm      '    6.2911       1.0000         .10000E-03   10000.    
    10 'norm      '    .34796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12607E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62265E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.180       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6004       1.0000         .10000E-03   10000.    
    17 'norm      '    .11007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3550       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92721       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=   8225.096     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1610 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10944E-03    36.729        .84632E-05** at limit **
   2  Prefactor     .10000E-03    .61384        .10667E-06** at limit **
   3  norm          .10000E-03    14.489       -.23201E-06** at limit **
   4  Prefactor     12.005        13.178        .17602E-05    .10081E-02
   5  norm          2.2539        .36497       -.71569E-07   -.10825E-03
   6  norm          6.8879        3.4201       -.36510E-06   -.45715E-03
   7  norm          4.3501        4.4674        .19814E-05    .73746E-03
   8  norm          3.7449        5.8602       -.18170E-05    .56101E-03
   9  norm          6.2921        4.5598        .81268E-06    .17690E-02
  10  norm          .34801        .10494        .92867E-07    .34103E-03
  11  Prefactor     .10000E-03    5.7943        .35444E-06** at limit **
  12  Prefactor     .10005E-03    19.806        .61979E-05** at limit **
  13  Prefactor     .10726E-03    65.492        .12545E-04** at limit **
  14  Prefactor     24.287        26.050        .36998E-05   -.49472E-02
  15  Prefactor     .10014E-03    39.743       -.11909E-04** at limit **
  16  Prefactor     5.5929        5.2760        .36583E-05    .11569E-02
  17  norm          .10000E-03    4.1597       -.33284E-06** at limit **
  18  Normalizat    1.3546        .28404       -.13995E-06    .17958E-04
  19  Prefactor     .92727        .11742        .79602E-06    .41224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010944
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 12.0055
  norm       = 2.25389
  norm       = 6.8879
  norm       = 4.35005
  norm       = 3.74495
  norm       = 6.29213
  norm       = 0.348011
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 0.000107257
  Prefactor  = 24.2874
  Prefactor  = 0.000100143
  Prefactor  = 5.59295
  norm       = 0.0001
  Normalizat = 1.35461
  Prefactor  = 0.927269
 **********
 **   18 **HESSE 
 **********

 FCN=   8225.096     FROM HESSE     STATUS=OK           314 CALLS     1924 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10944E-03    67.548        .99045E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.367        .10670E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.005        28.015        .28987E-02   -1.5015    
   5  norm          2.2539        .36574        .47524E-02   -1.5408    
   6  norm          6.8879        3.4089        .38205E-02   -1.5183    
   7  norm          4.3501        4.4636        .48286E-02   -1.5291    
   8  norm          3.7449        5.8939        .52150E-02   -1.5321    
   9  norm          6.2921        4.5681        .40009E-02   -1.5206    
  10  norm          .34801        .10553        .34537E-02   -1.5590    
  11  Prefactor     .10000E-03    5.7667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10005E-03    19.946        .10301E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10726E-03    4.6928        .58914E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.287        34.335        .20365E-02   -1.4722    
  15  Prefactor     .10014E-03    40.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5929        5.3882        .42439E-02   -1.5235    
  17  norm          .10000E-03    3.9917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3546        .25087        .85912E-01   -.81951    
  19  Prefactor     .92727        .10215        .45351E-01   -.95195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86496e-07
Minuit parameter uncertainties:
  1  0.0505618
  2  5.00196e-05
  3  0.00038705
  4  28.0459
  5  0.365736
  6  3.40897
  7  4.46391
  8  5.89482
  9  4.56831
  10  0.10553
  11  4.3574e-06
  12  0.00203904
  13  0.0116725
  14  34.3624
  15  0.00479697
  16  5.38871
  17  2.71061e-07
  18  0.2511
  19  0.102173
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.292e+00  4.568e+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.273e-01  1.022e-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.355e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.33
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.97e-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) = 8224.9901202
delta logL = 0.106050616245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8224.98323912
delta logL = 0.112931691474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8064       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2675       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92971       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=   8224.983     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8061        4.5156        .14458E-03    .11612E-02
   2  alpha         2.2677        .64755        .15576E-01    .99238E-04
   3  Normalizat    1.3413        .27085        .38187E-03   -.12712E-03
   4  Prefactor     .92971        .11650        .19269E-03   -.30400E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.80609
  alpha      = 2.26774
  Normalizat = 1.34131
  Prefactor  = 0.929711
 **********
 **   18 **HESSE 
 **********

 FCN=   8224.983     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8061        4.4140        .57832E-05   -1.5226    
   2  alpha         2.2677        .63299        .62302E-03   -.93040E-01
   3  Normalizat    1.3413        .27086        .15275E-04   -.82342    
   4  Prefactor     .92971        .11654        .38537E-04   -.95111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79222e-10
Minuit parameter uncertainties:
  1  4.41423
  2  0.640022
  3  0.271145
  4  0.116574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225699': 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) = 8224.98323908
delta logL = 0.112931733396

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.806e+00  4.414e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.268e+00  6.400e-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.297e-01  1.166e-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.341e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.27 +/- 0.64
Photon Flux (Free Index): 5.88e-08 +/- 5.17e-08
Energy Flux (Free Index): 2.46e-05 +/- 1.75e-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/225699/cmap_HighResolution_521337601_521596801_4FGL_J1512.2+0202_daily_bin1088.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='2.46e-05', photon_flux_error='3.16e-08', dlogl='1.13e-01', energy_flux='2.72e-05', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-11 09:59:02.675390', photon_index_error2='0.64', photon_index2='2.27', ts='4.33', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='1.35', time_epoch_completed='1631379542.68', return_code='0', job_id='225699', GAL2='0.93', EG2='1.34', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='5.17e-08', ts2='4.55', photon_index='1.97' WHERE bin_id='1088' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:59:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 225699: <4FGL_J1512.2+0202_daily_bin1088> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1088 228.07 2.0403 521337601 521596801 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 :                                   544.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

