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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin163
RA = 228.07, Dec = 2.0403
tmin = 281577601, tmax = 281836801
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='220806', job_status='RUN', time_executed='2021-09-11 09:34:40.877649', time_epoch_executed='1631378080.88' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220806

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220806/ft1_4FGL_J1512.2+0202_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220806/ft2_4FGL_J1512.2+0202_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220806/ft1_4FGL_J1512.2+0202_daily_bin163.fits outfile=/scratch/kocevski/220806/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin163.fits ra=228.07 dec=2.0403 rad=12.0 tmin=281577601.0 tmax=281836801.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.56
user 3.32
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220806/ft1_filtered_4FGL_J1512.2+0202_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/220806/ft2_4FGL_J1512.2+0202_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/220806/ltcube_281577601_281836801_4FGL_J1512.2+0202_daily_bin163.fits outfile=/scratch/kocevski/220806/expmap_281577601_281836801_4FGL_J1512.2+0202_daily_bin163.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/220806/ltcube_281577601_281836801_4FGL_J1512.2+0202_daily_bin163.fits
.....................!
real 190.05
user 185.46
sys 4.24

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/220806/ft1_filtered_4FGL_J1512.2+0202_daily_bin163.fits scfile=/scratch/kocevski/220806/ft2_4FGL_J1512.2+0202_daily_bin163.fits outfile=/scratch/kocevski/220806/cmap_281577601_281836801_4FGL_J1512.2+0202_daily_bin163.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.307       1.0000         .10000E-03   10000.    
     3 'norm      '    .13512E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2830       1.0000         .10000E-03   10000.    
     5 'norm      '    .48102       1.0000         .10000E-03   10000.    
     6 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6922       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9029       1.0000         .10000E-03   10000.    
    10 'norm      '    .51325       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7490       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.026       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8223       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2313       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0131       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=   7614.212     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1667 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.987        .90712E-02** at limit **
   2  Prefactor     18.274        25.087        .23402E-02    .11737E-02
   3  norm          .10000E-03    10.126        .90712E-02** at limit **
   4  Prefactor     9.2698        26.348        .32884E-02    .53254E-03
   5  norm          .48097        .19313        .51904E-02   -.49839E-04
   6  norm          .10000E-03    1.1716        .57791E-01** at limit **
   7  norm          .10000E-03    2.6155        .90712E-02** at limit **
   8  norm          7.6926        6.5595        .36147E-02    .22617E-03
   9  norm          1.9029        4.5146        .75367E-02    .77448E-03
  10  norm          .51331        .14841        .38363E-02    .19657E-02
  11  Prefactor     .10000E-03    6.5584        .90712E-02** at limit **
  12  Prefactor     1.7500        55.424        .79266E-02    .21276E-03
  13  Prefactor     10.186        5.7474        .31385E-02    .22769E-03
  14  Prefactor     13.025        20.471        .27746E-02    .51267E-04
  15  Prefactor     .10001E-03    115.93        .90712E-02** at limit **
  16  Prefactor     .10000E-03    2.3181        .45841E-01** at limit **
  17  norm          2.8219        3.4059        .60524E-02    .38846E-03
  18  Normalizat    1.2316        .24639        .82455E-01    .81108E-04
  19  Prefactor     1.0130        .10810        .42904E-01    .15476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.2744
  norm       = 0.0001
  Prefactor  = 9.26982
  norm       = 0.480973
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.69256
  norm       = 1.90292
  norm       = 0.513314
  Prefactor  = 0.0001
  Prefactor  = 1.75
  Prefactor  = 10.186
  Prefactor  = 13.0249
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 2.82195
  Normalizat = 1.23157
  Prefactor  = 1.01298
 **********
 **   18 **HESSE 
 **********

 FCN=   7614.212     FROM HESSE     STATUS=OK           270 CALLS     1937 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.274        25.091        .93609E-04   -1.4853    
   3  norm          .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2698        26.538        .13154E-03   -1.5099    
   5  norm          .48097        .19178        .23094E-04   -1.5569    
   6  norm          .10000E-03    6.9328        .17498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6192        .13782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6926        6.5501        .14459E-03   -1.5153    
   9  norm          1.9029        4.4163        .26876E-03   -1.5432    
  10  norm          .51331        .14773        .17015E-04   -1.5565    
  11  Prefactor     .10000E-03    6.5717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7500        55.798        .31706E-03   -1.5443    
  13  Prefactor     10.186        5.7395        .12554E-03   -1.5070    
  14  Prefactor     13.025        20.449        .11098E-03   -1.4986    
  15  Prefactor     .10001E-03    116.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5965        .25567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8219        3.3888        .17057E-03   -1.5372    
  18  Normalizat    1.2316        .27964        .36504E-03   -.85633    
  19  Prefactor     1.0130        .12485        .18422E-03   -.92298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0067e-09
Minuit parameter uncertainties:
  1  0.000120989
  2  25.1053
  3  8.51932e-06
  4  26.572
  5  0.191778
  6  2.77745e-06
  7  3.50879e-06
  8  6.5507
  9  4.41708
  10  0.147729
  11  6.79307e-07
  12  19.7829
  13  5.73981
  14  20.4601
  15  0.00174135
  16  1.48712e-05
  17  3.38907
  18  0.279983
  19  0.124884
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.903e+00  4.417e+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.013e+00  1.249e-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.232e+00  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/220806/likelihoodResults_281577601_281836801_4FGL_J1512.2+0202_daily_bin163.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) = 7613.12289319
delta logL = 1.08939447482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7613.01203468
delta logL = 1.20025297963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48381       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0535       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0393       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=   7613.012     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      299 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48220        4.8727        .92050E-02    .14143E-02
   2  alpha         4.0553        4.2795        .35636        .71021E-04
   3  Normalizat    1.1231        .62526E-01    .85720E-01    .27381E-04
   4  Prefactor     1.0393        .29026E-01    .40579E-01   -.31228E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.482201
  alpha      = 4.05529
  Normalizat = 1.12306
  Prefactor  = 1.03926
 **********
 **   18 **HESSE 
 **********

 FCN=   7613.012     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      332 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48220        11.545        .42017E-03   -1.5569    
   2  alpha         4.0553        4.4289        .15234E-01    .67144    
   3  Normalizat    1.1231        .22190        .37957E-03   -.89015    
   4  Prefactor     1.0393        .10355        .18203E-03   -.91432    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40514e-07
Minuit parameter uncertainties:
  1  4.71941
  2  5.17179
  3  0.222084
  4  0.103565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220806': 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): 102
logL (Free Index) = 7613.01203393
delta logL = 1.20025373605

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.822e-01  4.719e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  4.055e+00  5.172e+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:  1.039e+00  1.036e-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.123e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 228.070 2.040
Photon Index (Free Index): 4.06 +/- 5.17
Photon Flux (Free Index): 1.08e-07 +/- 7.94e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.83e-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/220806/cmap_HighResolution_281577601_281836801_4FGL_J1512.2+0202_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-05', comment='SUCCESS', energy_flux2='1.75e-05', dlogl='1.20e+00', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-11 09:44:21.185900', photon_index_error2='5.17', photon_index2='4.06', ts='0.22', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='1.83e-05', EG='1.23', time_epoch_completed='1631378661.19', return_code='0', job_id='220806', GAL2='1.04', EG2='1.12', return_code2='102', photon_flux_error2='7.94e-08', ts2='2.75', photon_index='1.97' WHERE bin_id='163' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:44:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 220806: <4FGL_J1512.2+0202_daily_bin163> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin163 228.07 2.0403 281577601 281836801 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            761 sec.

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

