/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 14 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin243
RA = 228.07, Dec = 2.0403
tmin = 302313601, tmax = 302572801
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='223848', job_status='RUN', time_executed='2021-09-11 09:41:23.851793', time_epoch_executed='1631378483.85' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223848

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223848/ft1_4FGL_J1512.2+0202_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223848/ft2_4FGL_J1512.2+0202_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223848/ft1_4FGL_J1512.2+0202_daily_bin243.fits outfile=/scratch/kocevski/223848/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin243.fits ra=228.07 dec=2.0403 rad=12.0 tmin=302313601.0 tmax=302572801.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.51
user 3.29
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223848/ft1_filtered_4FGL_J1512.2+0202_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/223848/ft2_4FGL_J1512.2+0202_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/223848/ltcube_302313601_302572801_4FGL_J1512.2+0202_daily_bin243.fits outfile=/scratch/kocevski/223848/expmap_302313601_302572801_4FGL_J1512.2+0202_daily_bin243.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/223848/ltcube_302313601_302572801_4FGL_J1512.2+0202_daily_bin243.fits
.....................!
real 192.46
user 185.28
sys 5.16

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223848/ft1_filtered_4FGL_J1512.2+0202_daily_bin243.fits scfile=/scratch/kocevski/223848/ft2_4FGL_J1512.2+0202_daily_bin243.fits outfile=/scratch/kocevski/223848/cmap_HighResolution_302313601_302572801_4FGL_J1512.2+0202_daily_bin243.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.875       1.0000         .10000E-03   10000.    
     3 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.609       1.0000         .10000E-03   10000.    
     5 'norm      '    .74863       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5025       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9255       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0261       1.0000         .10000E-03   10000.    
     9 'norm      '    .11383E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .61192       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1329       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43577       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7133       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3485       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96281       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=   10932.62     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1918 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.939        62.634       -.18811E-04    .49354E-05
   2  Prefactor     15.868        16.127        .11872E-05    .24746E-04
   3  norm          .10000E-03    9.6031       -.33871E-06** at limit **
   4  Prefactor     33.610        27.337        .23865E-06    .30455E-04
   5  norm          .74866        .21165       -.32566E-07    .57101E-03
   6  norm          3.5020        2.1092        .79515E-07    .30520E-03
   7  norm          1.9253        4.2216        .60828E-05    .60179E-04
   8  norm          1.0266        4.1985        .62602E-06   -.83744E-04
   9  norm          .10000E-03    1.5909       -.34080E-06** at limit **
  10  norm          .61192        .13160       -.13697E-08    .10791E-02
  11  Prefactor     5.1330        10.984       -.47396E-07    .30494E-05
  12  Prefactor     .10000E-03    12.063       -.27846E-06** at limit **
  13  Prefactor     5.6434        4.3185       -.73574E-07    .38650E-04
  14  Prefactor     .10000E-03    10.303        .22530E-06** at limit **
  15  Prefactor     .10000E-03    14.865       -.87873E-07** at limit **
  16  Prefactor     .43477        1.7508        .85699E-06   -.72742E-03
  17  norm          4.7133        3.7147        .23841E-06   -.48018E-05
  18  Normalizat    1.3483        .21481       -.11855E-05   -.51744E-05
  19  Prefactor     .96290        .90606E-01    .11174E-05    .33016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.939
  Prefactor  = 15.8679
  norm       = 0.0001
  Prefactor  = 33.6099
  norm       = 0.748663
  norm       = 3.50198
  norm       = 1.92531
  norm       = 1.02664
  norm       = 0.0001
  norm       = 0.611918
  Prefactor  = 5.13302
  Prefactor  = 0.0001
  Prefactor  = 5.64337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.434767
  norm       = 4.71328
  Normalizat = 1.3483
  Prefactor  = 0.962896
 **********
 **   18 **HESSE 
 **********

 FCN=   10932.62     FROM HESSE     STATUS=OK           278 CALLS     2196 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.939        62.846        .89856E-04   -1.4815    
   2  Prefactor     15.868        16.129        .10052E-03   -1.4911    
   3  norm          .10000E-03    9.6592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.610        27.465        .69122E-04   -1.4548    
   5  norm          .74866        .21098        .24169E-04   -1.5535    
   6  norm          3.5020        2.0958        .11128E-03   -1.5334    
   7  norm          1.9253        4.2490        .14969E-02   -1.5430    
   8  norm          1.0266        4.2042        .39727E-03   -1.5505    
   9  norm          .10000E-03    3.4258        .25436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .61192        .13724        .14069E-04   -1.5552    
  11  Prefactor     5.1330        11.467        .17745E-03   -1.5255    
  12  Prefactor     .10000E-03    12.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6434        4.3017        .16910E-03   -1.5233    
  14  Prefactor     .10000E-03    10.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .43477        8.6326        .25004E-02   -1.5576    
  17  norm          4.7133        3.7039        .17033E-03   -1.5274    
  18  Normalizat    1.3483        .24835        .36188E-03   -.82136    
  19  Prefactor     .96290        .10547        .18967E-03   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51364e-09
Minuit parameter uncertainties:
  1  63.0557
  2  16.1334
  3  2.29276e-05
  4  27.4758
  5  0.210984
  6  2.09587
  7  4.24963
  8  4.15539
  9  4.02103e-06
  10  0.13724
  11  11.472
  12  1.30365e-05
  13  4.30191
  14  2.376e-05
  15  8.52576e-06
  16  3.87481
  17  3.70403
  18  0.248575
  19  0.105493
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  4.021e-06  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.629e-01  1.055e-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.348e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/223848/likelihoodResults_302313601_302572801_4FGL_J1512.2+0202_daily_bin243.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) = 10932.6193074
delta logL = -0.00138827981027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10932.6179189
delta logL = 2.11481165024e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0032       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96287       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=   10932.62     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      292 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    4.1275        .25676E-02** at limit **
   2  alpha         2.0306        3.4520        .50000       -.39222E-04
   3  Normalizat    1.3483        .22672        .36189E-03    .40777E-04
   4  Prefactor     .96290        .10326        .18967E-03    .87151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  alpha      = 2.0306
  Normalizat = 1.3483
  Prefactor  = 0.962895
 **********
 **   18 **HESSE 
 **********

 FCN=   10932.62     FROM HESSE     STATUS=OK            29 CALLS      321 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    3.6969        .51352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0306        3.4263        .50000       -.18888    
   3  Normalizat    1.3483        .22690        .14475E-04   -.82136    
   4  Prefactor     .96290        .10334        .75868E-05   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45866e-09
Minuit parameter uncertainties:
  1  0.000441661
  2  2.46128
  3  0.227064
  4  0.103363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223848': 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) = 10932.6179182
delta logL = 9.48217348196e-07

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  4.417e-04  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.031e+00  2.461e+00  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.629e-01  1.034e-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.348e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 228.070 2.040

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/223848/cmap_HighResolution_302313601_302572801_4FGL_J1512.2+0202_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-11 09:53:40.923818', job_id='223848', GAL2='0.96', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631379220.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='243' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:53:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 223848: <4FGL_J1512.2+0202_daily_bin243> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin243 228.07 2.0403 302313601 302572801 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 :                                   732.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            763 sec.

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

