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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1598
RA = 228.07, Dec = 2.0403
tmin = 653529601, tmax = 653788801
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='727869', job_status='RUN', time_executed='2021-09-20 00:38:24.027290', time_epoch_executed='1632123504.03' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727869/ft1_4FGL_J1512.2+0202_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727869/ft2_4FGL_J1512.2+0202_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727869/ft1_4FGL_J1512.2+0202_daily_bin1598.fits outfile=/scratch/kocevski/727869/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1598.fits ra=228.07 dec=2.0403 rad=12.0 tmin=653529601.0 tmax=653788801.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 5.06
user 4.86
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727869/ft2_4FGL_J1512.2+0202_daily_bin1598.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/727869/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1598.fits evtable="EVENTS" outfile="/scratch/kocevski/727869/ft1_filtered_4FGL_J1512.2+0202_daily_bin1598.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727869/ft1_filtered_4FGL_J1512.2+0202_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/727869/ft2_4FGL_J1512.2+0202_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/727869/ltcube_653529601_653788801_4FGL_J1512.2+0202_daily_bin1598.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/727869/ft2_4FGL_J1512.2+0202_daily_bin1598.fits
.....................!
real 11.41
user 11.09
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727869/ft1_filtered_4FGL_J1512.2+0202_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/727869/ft2_4FGL_J1512.2+0202_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/727869/ltcube_653529601_653788801_4FGL_J1512.2+0202_daily_bin1598.fits outfile=/scratch/kocevski/727869/expmap_653529601_653788801_4FGL_J1512.2+0202_daily_bin1598.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/727869/ltcube_653529601_653788801_4FGL_J1512.2+0202_daily_bin1598.fits
.....................!
real 189.08
user 185.03
sys 3.72

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/727869/ft1_filtered_4FGL_J1512.2+0202_daily_bin1598.fits scfile=/scratch/kocevski/727869/ft2_4FGL_J1512.2+0202_daily_bin1598.fits outfile=/scratch/kocevski/727869/cmap_653529601_653788801_4FGL_J1512.2+0202_daily_bin1598.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8910       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .30114       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5727       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5602       1.0000         .10000E-03   10000.    
     8 'norm      '    13.586       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .15036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.783       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39262       1.0000         .10000E-03   10000.    
    17 'norm      '    .20649       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5070       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82694       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=   6483.836     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1697 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8038        121.88       -.61918E-05   -.86210E-04
   2  Prefactor     .10000E-03    28.293       -.48662E-06** at limit **
   3  norm          .10000E-03    18.531       -.27454E-06** at limit **
   4  Prefactor     .10000E-03    35.716        .37652E-06** at limit **
   5  norm          .30110        .25525        .75611E-07    .57242E-03
   6  norm          1.5727        2.9172        .51539E-06    .71455E-04
   7  norm          5.5602        5.4532       -.20929E-05   -.28957E-03
   8  norm          13.586        6.5217        .77194E-07   -.52608E-04
   9  norm          .10000E-03    4.0038        .14355E-06** at limit **
  10  norm          .15036        .86765E-01    .84734E-08   -.92437E-04
  11  Prefactor     .10000E-03    3.3094        .33250E-07** at limit **
  12  Prefactor     .10000E-03    41.536        .16855E-06** at limit **
  13  Prefactor     .10000E-03    5.0421        .46865E-06** at limit **
  14  Prefactor     .10000E-03    32.660        .38430E-06** at limit **
  15  Prefactor     83.787        61.280        .38856E-06    .83895E-05
  16  Prefactor     .39263        4.8214        .46905E-05    .26061E-03
  17  norm          .20835        2.6059       -.17403E-05    .11877E-02
  18  Normalizat    1.5071        .26883        .22800E-05   -.12330E-03
  19  Prefactor     .82685        .11205       -.20420E-05    .51548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80385
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.301103
  norm       = 1.57269
  norm       = 5.56015
  norm       = 13.5861
  norm       = 0.0001
  norm       = 0.150363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.7875
  Prefactor  = 0.392634
  norm       = 0.208353
  Normalizat = 1.50709
  Prefactor  = 0.826849
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.836     FROM HESSE     STATUS=OK           270 CALLS     1967 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8038        126.27        .14274E-03   -1.5149    
   2  Prefactor     .10000E-03    28.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30110        .24837        .34841E-03   -1.5598    
   6  norm          1.5727        2.9089        .17566E-03   -1.5457    
   7  norm          5.5602        5.4964        .85190E-03   -1.5236    
   8  norm          13.586        6.5119        .10867E-03   -1.4971    
   9  norm          .10000E-03    4.0938        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .15036        .85231E-01    .17285E-04   -1.5630    
  11  Prefactor     .10000E-03    3.3149        .14297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1583        .35260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     83.787        61.365        .21943E-03   -1.3875    
  16  Prefactor     .39263        4.9378        .33849E-03   -1.5583    
  17  norm          .20835        10.520        .22760E-02   -1.5617    
  18  Normalizat    1.5071        .31072        .33125E-03   -.77579    
  19  Prefactor     .82685        .13028        .18701E-03   -.98746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.56049e-09
Minuit parameter uncertainties:
  1  62.9402
  2  7.26358e-05
  3  7.49869e-06
  4  7.58044e-05
  5  0.248376
  6  2.9092
  7  5.49688
  8  6.5122
  9  3.5117e-06
  10  0.0852313
  11  2.78593e-07
  12  5.59438e-05
  13  1.43936e-06
  14  0.000116544
  15  61.411
  16  2.78472
  17  2.96089
  18  0.311113
  19  0.130325
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  3.512e-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:  8.268e-01  1.303e-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.507e+00  3.111e-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: 7.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/727869/likelihoodResults_653529601_653788801_4FGL_J1512.2+0202_daily_bin1598.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) = 6483.83687513
delta logL = -0.00116440489546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6483.8357077
delta logL = 3.03377146338e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2476       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82688       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=   6483.836     FROM MIGRAD    STATUS=FAILED        92 CALLS      278 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10192E-03    128.61        .26055E-02** at limit **
   2  alpha         2.3963        3.6483        .50000       -.62143E-05
   3  Normalizat    1.5071        .31743E-01    .33124E-03    .11594E-03
   4  Prefactor     .82685        .13853E-01    .18701E-03    .32474E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6483.836     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      411 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10192E-03    128.61        .38025E-03** at limit **
   2  alpha         2.3963        3.6483        .10261E-03   -.62143E-05
   3  Normalizat    1.5071        .31743E-01    .12319E-05    .11594E-03
   4  Prefactor     .82685        .13853E-01    .66784E-06    .32474E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6483.836     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      485 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1433.0        .10422E-03** at limit **
   2  alpha         2.4597        3.0006        .50000        .12276E-06
   3  Normalizat    1.5071        .26419        .26499E-05   -.50195E-03
   4  Prefactor     .82685        .11534        .74803E-05   -.82070E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4597
  Normalizat = 1.50709
  Prefactor  = 0.826848
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.836     FROM HESSE     STATUS=OK            29 CALLS      514 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4009        .20844E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4597        3.0854        .50000       -.16119E-01
   3  Normalizat    1.5071        .29308        .52999E-06   -.77579    
   4  Prefactor     .82685        .12777        .14961E-05   -.98746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04967e-10
Minuit parameter uncertainties:
  1  6.33439e-05
  2  124.434
  3  0.293406
  4  0.127821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727869': 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) = 6483.8357067
delta logL = 4.03211561206e-06

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  6.334e-05  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.460e+00  1.244e+02  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:  8.268e-01  1.278e-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.507e+00  2.934e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/727869/cmap_HighResolution_653529601_653788801_4FGL_J1512.2+0202_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', job_status='DONE', photon_flux_upper_limit='7.49e-08', time_completed='2021-09-20 00:47:24.424180', job_id='727869', GAL2='0.83', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1632124044.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.03e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1598' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:47:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 727869: <4FGL_J1512.2+0202_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1598> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 20 00:35:14 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:35:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:35:16 2021
Terminated at Mon Sep 20 00:47:24 2021
Results reported at Mon Sep 20 00:47:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1598 228.07 2.0403 653529601 653788801 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 :                                   543.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             244.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

