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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin783
RA = 228.07, Dec = 2.0403
tmin = 442281601, tmax = 442540801
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='224035', job_status='RUN', time_executed='2021-09-11 09:44:47.103333', time_epoch_executed='1631378687.1' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224035

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224035/ft1_4FGL_J1512.2+0202_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224035/ft2_4FGL_J1512.2+0202_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224035/ft1_4FGL_J1512.2+0202_daily_bin783.fits outfile=/scratch/kocevski/224035/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin783.fits ra=228.07 dec=2.0403 rad=12.0 tmin=442281601.0 tmax=442540801.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.47
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224035/ft2_4FGL_J1512.2+0202_daily_bin783.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/224035/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin783.fits evtable="EVENTS" outfile="/scratch/kocevski/224035/ft1_filtered_4FGL_J1512.2+0202_daily_bin783.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224035/ft1_filtered_4FGL_J1512.2+0202_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/224035/ft2_4FGL_J1512.2+0202_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/224035/ltcube_442281601_442540801_4FGL_J1512.2+0202_daily_bin783.fits outfile=/scratch/kocevski/224035/expmap_442281601_442540801_4FGL_J1512.2+0202_daily_bin783.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/224035/ltcube_442281601_442540801_4FGL_J1512.2+0202_daily_bin783.fits
.....................!
real 189.31
user 184.60
sys 4.38

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11103E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.8353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .72950       1.0000         .10000E-03   10000.    
     6 'norm      '    .30962       1.0000         .10000E-03   10000.    
     7 'norm      '    8.0038       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7843       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.790       1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.770       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13101E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.952       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4371       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5682       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4430       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90528       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=   7987.823     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1934 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.463        .87014E-05** at limit **
   2  Prefactor     .10000E-03    29.701        .28538E-05** at limit **
   3  norm          8.8278        13.706       -.59857E-06   -.17102E-03
   4  Prefactor     .10000E-03    12.821        .29538E-07** at limit **
   5  norm          .72954        .22396        .22164E-07   -.18810E-03
   6  norm          .30952        .93302        .26252E-06   -.51442E-04
   7  norm          8.0039        6.0798       -.40997E-06    .56125E-05
   8  norm          .10000E-03    2.4843       -.46854E-07** at limit **
   9  norm          4.7840        3.7692        .28496E-07   -.29079E-04
  10  norm          .10000E-03    .47248E-01   -.99224E-07** at limit **
  11  Prefactor     15.793        9.4325        .55676E-06    .59576E-03
  12  Prefactor     48.771        44.439        .43802E-07   -.14995E-04
  13  Prefactor     .10003E-03    1.9228        .31548E-06** at limit **
  14  Prefactor     10.952        21.615       -.42713E-06   -.11783E-04
  15  Prefactor     .10000E-03    48.524       -.84433E-05** at limit **
  16  Prefactor     2.4374        3.6992        .36808E-05   -.89921E-04
  17  norm          2.5681        3.8389        .76243E-07   -.10673E-04
  18  Normalizat    1.4429        .22214       -.87180E-06   -.73726E-04
  19  Prefactor     .90528        .99859E-01   -.23262E-06   -.41324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82776
  Prefactor  = 0.0001
  norm       = 0.729538
  norm       = 0.309522
  norm       = 8.00389
  norm       = 0.0001
  norm       = 4.784
  norm       = 0.0001
  Prefactor  = 15.7926
  Prefactor  = 48.7708
  Prefactor  = 0.000100028
  Prefactor  = 10.9518
  Prefactor  = 0.0001
  Prefactor  = 2.43737
  norm       = 2.56809
  Normalizat = 1.44291
  Prefactor  = 0.905284
 **********
 **   18 **HESSE 
 **********

 FCN=   7987.823     FROM HESSE     STATUS=OK           276 CALLS     2210 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.8278        13.712        .13485E-03   -1.5114    
   4  Prefactor     .10000E-03    12.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72954        .22466        .22226E-04   -1.5537    
   6  norm          .30952        1.0510        .14333E-02   -1.5597    
   7  norm          8.0039        6.0800        .14172E-03   -1.5142    
   8  norm          .10000E-03    2.5117        .13750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7840        3.7570        .14839E-03   -1.5270    
  10  norm          .10000E-03    .68368E-01    .34063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.793        8.5626        .10079E-03   -1.4913    
  12  Prefactor     48.771        44.427        .57421E-04   -1.4310    
  13  Prefactor     .10003E-03    19.678        .23630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.952        21.585        .12106E-03   -1.5046    
  15  Prefactor     .10000E-03    48.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4374        3.6945        .10122E-02   -1.5396    
  17  norm          2.5681        3.8211        .20316E-03   -1.5387    
  18  Normalizat    1.4429        .25684        .32945E-03   -.79396    
  19  Prefactor     .90528        .11632        .18537E-03   -.95957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0068e-08
Minuit parameter uncertainties:
  1  0.000149745
  2  1.37711e-05
  3  13.7173
  4  1.25008e-06
  5  0.22466
  6  1.05103
  7  6.08046
  8  3.90721e-07
  9  3.75717
  10  8.19334e-07
  11  8.56326
  12  44.4575
  13  0.00147258
  14  21.5999
  15  0.000127623
  16  3.69481
  17  3.82148
  18  0.25707
  19  0.116351
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.784e+00  3.757e+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.053e-01  1.164e-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.443e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.38
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/224035/likelihoodResults_442281601_442540801_4FGL_J1512.2+0202_daily_bin783.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) = 7987.70532525
delta logL = 0.117802472661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7987.70190161
delta logL = 0.121226111087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0860       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6795       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90344       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=   7987.702     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0906        163.93        .44571E-02    .13275E-03
   2  alpha         1.6808        3.1788        .44378       -.19957E-05
   3  Normalizat    1.4501        .25185        .74300E-01    .91121E-05
   4  Prefactor     .90362        .97996E-01    .45049E-01    .25322E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.09065
  alpha      = 1.6808
  Normalizat = 1.45007
  Prefactor  = 0.903624
 **********
 **   18 **HESSE 
 **********

 FCN=   7987.702     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0906        3.9313        .15132E-03   -1.5257    
   2  alpha         1.6808        .56451        .17757E-01   -.33385    
   3  Normalizat    1.4501        .24943        .32878E-03   -.79191    
   4  Prefactor     .90362        .11531        .18551E-03   -.96015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54988e-12
Minuit parameter uncertainties:
  1  3.93153
  2  0.570027
  3  0.24964
  4  0.115339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224035': 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) = 7987.70189707
delta logL = 0.121230652886

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.091e+00  3.932e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.681e+00  5.700e-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.036e-01  1.153e-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.450e+00  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.68 +/- 0.57
Photon Flux (Free Index): 2.64e-08 +/- 2.43e-08
Energy Flux (Free Index): 2.69e-05 +/- 2.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/224035/cmap_HighResolution_442281601_442540801_4FGL_J1512.2+0202_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-05', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='2.69e-05', photon_flux_error='2.60e-08', dlogl='1.21e-01', energy_flux='2.07e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-11 09:54:50.648666', photon_index_error2='0.57', photon_index2='1.68', ts='3.38', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.53e-08', energy_flux_error2='2.59e-05', EG='1.44', time_epoch_completed='1631379290.65', return_code='0', job_id='224035', GAL2='0.90', EG2='1.45', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='2.43e-08', ts2='3.63', photon_index='1.97' WHERE bin_id='783' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:54:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 224035: <4FGL_J1512.2+0202_daily_bin783> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin783 228.07 2.0403 442281601 442540801 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 :                                   598.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

