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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1580
RA = 228.07, Dec = 2.0403
tmin = 648864001, tmax = 649123201
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='227665', job_status='RUN', time_executed='2021-09-11 09:52:17.343539', time_epoch_executed='1631379137.34' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227665/ft1_4FGL_J1512.2+0202_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227665/ft2_4FGL_J1512.2+0202_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227665/ft1_4FGL_J1512.2+0202_daily_bin1580.fits outfile=/scratch/kocevski/227665/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1580.fits ra=228.07 dec=2.0403 rad=12.0 tmin=648864001.0 tmax=649123201.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 2.97
user 2.79
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227665/ft1_filtered_4FGL_J1512.2+0202_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/227665/ft2_4FGL_J1512.2+0202_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/227665/ltcube_648864001_649123201_4FGL_J1512.2+0202_daily_bin1580.fits outfile=/scratch/kocevski/227665/expmap_648864001_649123201_4FGL_J1512.2+0202_daily_bin1580.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/227665/ltcube_648864001_649123201_4FGL_J1512.2+0202_daily_bin1580.fits
.....................!
real 191.89
user 186.75
sys 4.83

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/227665/ft1_filtered_4FGL_J1512.2+0202_daily_bin1580.fits scfile=/scratch/kocevski/227665/ft2_4FGL_J1512.2+0202_daily_bin1580.fits outfile=/scratch/kocevski/227665/cmap_648864001_649123201_4FGL_J1512.2+0202_daily_bin1580.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227665/ft1_filtered_4FGL_J1512.2+0202_daily_bin1580.fits scfile=/scratch/kocevski/227665/ft2_4FGL_J1512.2+0202_daily_bin1580.fits outfile=/scratch/kocevski/227665/cmap_HighResolution_648864001_649123201_4FGL_J1512.2+0202_daily_bin1580.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39897E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.970       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0308       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14164E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0782       1.0000         .10000E-03   10000.    
     9 'norm      '    .24483E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .32307       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3719       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.829       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1505       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2070       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98536       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=   10270.99     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1986 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.146        .12366E-08** at limit **
   2  Prefactor     .10000E-03    16.193        .42127E-06** at limit **
   3  norm          20.944        16.140       -.33891E-06   -.18176E-03
   4  Prefactor     .95463        12.184        .26348E-05   -.25369E-03
   5  norm          .10000E-03    .48902E-01   -.12990E-07** at limit **
   6  norm          .10000E-03    .85372       -.15963E-07** at limit **
   7  norm          .10023E-03    3.2675       -.10502E-05** at limit **
   8  norm          4.0779        4.0408        .21668E-05    .13777E-02
   9  norm          .10000E-03    1.7856       -.22993E-07** at limit **
  10  norm          .32306        .93043E-01   -.14303E-07   -.95543E-04
  11  Prefactor     .10000E-03    2.9840       -.45294E-08** at limit **
  12  Prefactor     .41335        22.849        .57402E-05   -.43820E-03
  13  Prefactor     2.3719        2.5314        .70442E-07   -.42504E-04
  14  Prefactor     .10000E-03    15.408       -.18012E-07** at limit **
  15  Prefactor     22.756        38.340        .60701E-05    .64552E-04
  16  Prefactor     .10000E-03    1.0387       -.11542E-07** at limit **
  17  norm          4.1510        2.7778        .30299E-07   -.81526E-05
  18  Normalizat    1.2069        .18673       -.88504E-06   -.18455E-03
  19  Prefactor     .98542        .87055E-01    .84766E-07   -.50622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.9443
  Prefactor  = 0.954633
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100231
  norm       = 4.07787
  norm       = 0.0001
  norm       = 0.323062
  Prefactor  = 0.0001
  Prefactor  = 0.413351
  Prefactor  = 2.37194
  Prefactor  = 0.0001
  Prefactor  = 22.7555
  Prefactor  = 0.0001
  norm       = 4.15101
  Normalizat = 1.20691
  Prefactor  = 0.985421
 **********
 **   18 **HESSE 
 **********

 FCN=   10270.99     FROM HESSE     STATUS=OK           294 CALLS     2280 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    79.031        .70447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.944        14.495        .87466E-04   -1.4792    
   4  Prefactor     .95463        80.312        .61798E-02   -1.5513    
   5  norm          .10000E-03    .70450E-01    .43036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6823        .17923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10023E-03    3.3028        .61699E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0779        4.0883        .98225E-03   -1.5304    
   9  norm          .10000E-03    7.0252        .26115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32306        .92811E-01    .16000E-04   -1.5594    
  11  Prefactor     .10000E-03    2.9921        .17088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .41335        16.896        .13893       -1.5579    
  13  Prefactor     2.3719        2.5191        .16111E-03   -1.5400    
  14  Prefactor     .10000E-03    15.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.756        38.424        .83834E-04   -1.4754    
  16  Prefactor     .10000E-03    1.0509        .10084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1510        2.7760        .13424E-03   -1.5300    
  18  Normalizat    1.2069        .21668        .33607E-03   -.86389    
  19  Prefactor     .98542        .10232        .17688E-03   -.93217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40957e-09
Minuit parameter uncertainties:
  1  2.73454e-06
  2  0.000140935
  3  14.4977
  4  17.5356
  5  1.29453e-07
  6  6.39919e-06
  7  0.00174569
  8  4.08857
  9  4.55795e-05
  10  0.0928115
  11  1.71171e-06
  12  5.28644
  13  2.51925
  14  4.02269e-06
  15  38.466
  16  5.54471e-07
  17  2.77611
  18  0.216843
  19  0.102336
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  4.558e-05  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.854e-01  1.023e-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.207e+00  2.168e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227665/likelihoodResults_648864001_649123201_4FGL_J1512.2+0202_daily_bin1580.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): 102
logL (Free Index) = 10270.9908208
delta logL = -0.000672933572787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10270.9901492
delta logL = -1.34198671731e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26248E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0807       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98549       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10270.98     FROM MIGRAD    STATUS=FAILED       191 CALLS      356 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24640        198.45        .21668E-02    .56359E-03
   2  alpha         2.7425        3.1737        .50000        .41995E-04
   3  Normalizat    1.2042        .60458E-01    .33608E-03   -.85870E-03
   4  Prefactor     .98492        .26630E-01    .17688E-03   -.14324E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10270.98     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      445 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24640        198.45        .16382E-03    .56359E-03
   2  alpha         2.7425        3.1737        .32870E-02    .41995E-04
   3  Normalizat    1.2042        .60458E-01    .76173E-04   -.85870E-03
   4  Prefactor     .98492        .26630E-01    .26278E-04   -.14324E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10270.98     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      479 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24644        4.1239        .86674E-04    .33028E-03
   2  alpha         2.7424        3.7811        .69024E-01   -.72665E-05
   3  Normalizat    1.2042        .20775        .67215E-04   -.76464E-03
   4  Prefactor     .98492        .10040        .35375E-04   -.12490E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.246437
  alpha      = 2.74244
  Normalizat = 1.20423
  Prefactor  = 0.984925
 **********
 **   18 **HESSE 
 **********

 FCN=   10270.98     FROM HESSE     STATUS=OK            25 CALLS      504 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24644        2.5368        .34670E-05   -1.5807    
   2  alpha         2.7424        3.6119        .27610E-02    .97130E-01
   3  Normalizat    1.2042        .20775        .13443E-04   -.86472    
   4  Prefactor     .98492        .10028        .70750E-05   -.93234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90472e-10
Minuit parameter uncertainties:
  1  1.58112
  2  2.51829
  3  0.207897
  4  0.1003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227665': 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) = 10270.9750183
delta logL = 0.0151295890755

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.464e-01  1.581e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.742e+00  2.518e+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.849e-01  1.003e-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.204e+00  2.079e-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/227665/cmap_HighResolution_648864001_649123201_4FGL_J1512.2+0202_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-09-11 10:04:16.892759', job_id='227665', GAL2='0.98', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1631379856.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.51e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1580' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:04:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 227665: <4FGL_J1512.2+0202_daily_bin1580> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1580> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:52:04 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:52:06 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:52:06 2021
Terminated at Sat Sep 11 10:04:17 2021
Results reported at Sat Sep 11 10:04:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1580 228.07 2.0403 648864001 649123201 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 :                                   709.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

