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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin743
RA = 228.07, Dec = 2.0403
tmin = 431913601, tmax = 432172801
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='223976', job_status='RUN', time_executed='2021-09-11 09:45:09.446655', time_epoch_executed='1631378709.45' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223976/ft1_4FGL_J1512.2+0202_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223976/ft2_4FGL_J1512.2+0202_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223976/ft1_4FGL_J1512.2+0202_daily_bin743.fits outfile=/scratch/kocevski/223976/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin743.fits ra=228.07 dec=2.0403 rad=12.0 tmin=431913601.0 tmax=432172801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.04
user 3.77
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223976/ft2_4FGL_J1512.2+0202_daily_bin743.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/223976/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/223976/ft1_filtered_4FGL_J1512.2+0202_daily_bin743.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.42
user 0.27
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223976/ft1_filtered_4FGL_J1512.2+0202_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/223976/ft2_4FGL_J1512.2+0202_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/223976/ltcube_431913601_432172801_4FGL_J1512.2+0202_daily_bin743.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/223976/ft2_4FGL_J1512.2+0202_daily_bin743.fits
.....................!
real 9.36
user 9.02
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223976/ft1_filtered_4FGL_J1512.2+0202_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/223976/ft2_4FGL_J1512.2+0202_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/223976/ltcube_431913601_432172801_4FGL_J1512.2+0202_daily_bin743.fits outfile=/scratch/kocevski/223976/expmap_431913601_432172801_4FGL_J1512.2+0202_daily_bin743.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/223976/ltcube_431913601_432172801_4FGL_J1512.2+0202_daily_bin743.fits
.....................!
real 145.12
user 140.42
sys 4.40

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/223976/ft1_filtered_4FGL_J1512.2+0202_daily_bin743.fits scfile=/scratch/kocevski/223976/ft2_4FGL_J1512.2+0202_daily_bin743.fits outfile=/scratch/kocevski/223976/cmap_431913601_432172801_4FGL_J1512.2+0202_daily_bin743.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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223976/ft1_filtered_4FGL_J1512.2+0202_daily_bin743.fits scfile=/scratch/kocevski/223976/ft2_4FGL_J1512.2+0202_daily_bin743.fits outfile=/scratch/kocevski/223976/cmap_HighResolution_431913601_432172801_4FGL_J1512.2+0202_daily_bin743.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3158       1.0000         .10000E-03   10000.    
     5 'norm      '    .32871E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8868       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8188       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7723       1.0000         .10000E-03   10000.    
     9 'norm      '    5.9697       1.0000         .10000E-03   10000.    
    10 'norm      '    .86626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.221       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4065       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0987       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0892       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=   14266.81     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     2028 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.937        .18142E-02** at limit **
   2  Prefactor     .10000E-03    18.733        .18142E-02** at limit **
   3  norm          .10023E-03    59.505        .67489E-02** at limit **
   4  Prefactor     9.3163        12.962        .65653E-03    .24832E-04
   5  norm          .32884E-01    .11387        .57799E-03    .51532E-02
   6  norm          3.8868        1.8552        .10576E-03    .58478E-04
   7  norm          3.8186        5.6297        .20654E-03   -.73648E-04
   8  norm          1.7726        2.7045        .23437E-03   -.52485E-04
   9  norm          5.9697        3.2944        .15410E-03    .31722E-04
  10  norm          .86588        .16164        .13076E-04    .41513E-02
  11  Prefactor     .35398        116.76        .44685E-02   -.15501E-03
  12  Prefactor     3.2315        27.654        .11266E-02   -.75640E-04
  13  Prefactor     3.7104        2.9981        .17731E-03   -.50139E-04
  14  Prefactor     23.222        18.039        .83124E-04    .24618E-04
  15  Prefactor     .10000E-03    13.533        .18142E-02** at limit **
  16  Prefactor     3.4067        3.0212        .18511E-03   -.33164E-05
  17  norm          .10000E-03    2.9933        .26803E-02** at limit **
  18  Normalizat    1.0987        .20624        .39236E-03    .24003E-03
  19  Prefactor     1.0892        .92476E-01    .18051E-03    .34534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100228
  Prefactor  = 9.31627
  norm       = 0.0328845
  norm       = 3.88682
  norm       = 3.81858
  norm       = 1.77262
  norm       = 5.9697
  norm       = 0.865881
  Prefactor  = 0.353981
  Prefactor  = 3.23146
  Prefactor  = 3.7104
  Prefactor  = 23.2222
  Prefactor  = 0.0001
  Prefactor  = 3.40667
  norm       = 0.0001
  Normalizat = 1.09871
  Prefactor  = 1.08924
 **********
 **   18 **HESSE 
 **********

 FCN=   14266.81     FROM HESSE     STATUS=OK           252 CALLS     2280 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10023E-03    61.203        .26996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3163        12.958        .26261E-04   -1.5097    
   5  norm          .32884E-01    .11352        .23120E-04   -1.5672    
   6  norm          3.8868        1.8550        .42304E-05   -1.5314    
   7  norm          3.8186        5.6266        .82616E-05   -1.5317    
   8  norm          1.7726        2.7041        .93748E-05   -1.5442    
   9  norm          5.9697        3.2942        .61642E-05   -1.5219    
  10  norm          .86588        .13994        .26153E-05   -1.5522    
  11  Prefactor     .35398        89.649        .17874E-03   -1.5589    
  12  Prefactor     3.2315        27.642        .45066E-04   -1.5348    
  13  Prefactor     3.7104        2.9976        .70925E-05   -1.5323    
  14  Prefactor     23.222        18.038        .33250E-05   -1.4744    
  15  Prefactor     .10000E-03    13.533        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4067        3.0205        .74045E-05   -1.5339    
  17  norm          .10000E-03    3.0094        .53606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0987        .20601        .15695E-04   -.89793    
  19  Prefactor     1.0892        .92522E-01    .36102E-04   -.89811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43236e-09
Minuit parameter uncertainties:
  1  3.29669e-06
  2  2.67917e-05
  3  0.00747525
  4  12.9619
  5  0.113524
  6  1.855
  7  5.62735
  8  2.70424
  9  3.29427
  10  0.139943
  11  11.2821
  12  18.9138
  13  2.99768
  14  18.042
  15  1.31118e-06
  16  3.02061
  17  2.39625e-06
  18  0.206158
  19  0.0925359
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.089e+00  9.254e-02  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.099e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.79
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.42e-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) = 14266.7860904
delta logL = 0.0230312314034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14266.7851632
delta logL = 0.0239584641549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0785       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0953       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0899       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=   14266.79     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0784        3.1561        .14794E-03    .12089E-02
   2  alpha         2.0952        .55649        .17860E-01    .90306E-04
   3  Normalizat    1.0923        .20075        .39328E-03   -.21796E-04
   4  Prefactor     1.0899        .91558E-01    .18043E-03   -.68100E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.07839
  alpha      = 2.09524
  Normalizat = 1.09234
  Prefactor  = 1.0899
 **********
 **   18 **HESSE 
 **********

 FCN=   14266.79     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0784        3.1557        .59176E-05   -1.5215    
   2  alpha         2.0952        .55594        .71439E-03   -.16262    
   3  Normalizat    1.0923        .20077        .15731E-04   -.89998    
   4  Prefactor     1.0899        .91602E-01    .36086E-04   -.89790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21214e-10
Minuit parameter uncertainties:
  1  3.15575
  2  0.560758
  3  0.200909
  4  0.0916156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223976': 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) = 14266.7851631
delta logL = 0.0239585155305

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.090e+00  9.162e-02  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.092e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.83
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.10 +/- 0.56
Photon Flux (Free Index): 4.90e-08 +/- 4.33e-08
Energy Flux (Free Index): 2.55e-05 +/- 1.33e-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/223976/cmap_HighResolution_431913601_432172801_4FGL_J1512.2+0202_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='2.55e-05', photon_flux_error='2.28e-08', dlogl='2.40e-02', energy_flux='2.58e-05', photon_flux2='4.90e-08', job_status='DONE', time_completed='2021-09-11 09:55:19.796230', photon_index_error2='0.56', photon_index2='2.10', ts='10.79', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.33e-05', EG='1.10', time_epoch_completed='1631379319.8', return_code='0', job_id='223976', GAL2='1.09', EG2='1.09', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.33e-08', ts2='10.83', photon_index='1.97' WHERE bin_id='743' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:55:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 223976: <4FGL_J1512.2+0202_daily_bin743> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin743 228.07 2.0403 431913601 432172801 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 :                                   608.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            853 sec.

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

