aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 3 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1512.2+0202_weekly_bin738
RA = 228.07, Dec = 2.0403
tmin = 685324801, tmax = 685929601
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='259254', job_status='RUN', time_executed='2022-09-27 01:42:36.077136', time_epoch_executed='1664268156.08' WHERE source_name='4FGL J1512.2+0202' and cadence='weekly' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259254

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259254/ft1_4FGL_J1512.2+0202_weekly_bin738.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259254/ft1_4FGL_J1512.2+0202_weekly_bin738.fits outfile=/scratch/kocevski/259254/ft1_filteredMKT_4FGL_J1512.2+0202_weekly_bin738.fits ra=228.07 dec=2.0403 rad=12.0 tmin=685324801.0 tmax=685929601.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 9.81
user 9.41
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.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/259254/ft1_filteredMKT_4FGL_J1512.2+0202_weekly_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/259254/ft1_filtered_4FGL_J1512.2+0202_weekly_bin738.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.57
user 0.38
sys 0.18

Number of photons that the gtmktime cut: 1599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259254/ft1_filtered_4FGL_J1512.2+0202_weekly_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/259254/ltcube_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.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/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits
.....................!
real 31.69
user 31.16
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259254/ft1_filtered_4FGL_J1512.2+0202_weekly_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/259254/ltcube_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.fits outfile=/scratch/kocevski/259254/expmap_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.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/259254/ltcube_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.fits
.....................!
real 192.43
user 186.80
sys 5.26

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/259254/ft1_filtered_4FGL_J1512.2+0202_weekly_bin738.fits scfile=/scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits outfile=/scratch/kocevski/259254/cmap_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259254/ft1_filtered_4FGL_J1512.2+0202_weekly_bin738.fits scfile=/scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits outfile=/scratch/kocevski/259254/cmap_HighResolution_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.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.59
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/259254/ft1_filtered_4FGL_J1512.2+0202_weekly_bin738.fits', '/scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits', expMap='/scratch/kocevski/259254/expmap_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.fits', expCube='/scratch/kocevski/259254/ltcube_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/259254/Model_4FGL_J1512.2+0202_weekly_bin738.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  0.000e+00  1.000e+06 ( 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 -5.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/259254/ft1_filtered_4FGL_J1512.2+0202_weekly_bin738.fits
Spacecraft file(s): /scratch/kocevski/259254/ft2_4FGL_J1512.2+0202_weekly_bin738.fits
Exposure map: /scratch/kocevski/259254/expmap_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.fits
Exposure cube: /scratch/kocevski/259254/ltcube_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/259254/Model_4FGL_J1512.2+0202_weekly_bin738.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) = 17955.6340481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88779E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .83250       1.0000          .0000       .10000E+07
     3 'norm      '    .10937       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38826E-01   1.0000          .0000       .10000E+07
     5 'norm      '    .69119       1.0000          .0000       .10000E+07
     6 'norm      '    3.9444       1.0000          .0000       .10000E+07
     7 'norm      '    .83267E-09   1.0000          .0000       .10000E+07
     8 'norm      '    .15882E-06   1.0000          .0000       .10000E+07
     9 'norm      '    6.0041       1.0000          .0000       .10000E+07
    10 'norm      '    .32550E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .75445E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1236       1.0000          .0000       .10000E+07
    13 'Prefactor '    .24447E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    19.871       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.6195       1.0000          .0000       .10000E+07
    16 'norm      '    1.9557       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0482       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17954.61     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1035 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-08    21.569        .16248E-05** at limit **
   2  Prefactor     .26090E-08    96.802       -.37457E-05** at limit **
   3  norm          .15332E-05    2.5567        .62157E-06** at limit **
   4  Prefactor     .10547E-08    156.34        .25723E-05** at limit **
   5  norm          .69113        .15392       -.35156E-07    .19140E-01
   6  norm          3.9410        1.8668       -.14096E-06    .32513E-02
   7  norm           .0000        .96076        .36360E-06** at limit **
   8  norm           .0000        1.5951        .21012E-06** at limit **
   9  norm          6.0029        2.6815       -.17551E-06    .18911E-02
  10  norm          .32502E-01    .31652E-01    .29745E-07** at limit **
  11  Prefactor      .0000        2.8603        .64979E-06** at limit **
  12  Prefactor     2.1178        2.1131       -.14904E-07   -.45741E-02
  13  Prefactor      .0000        8.5040        .20297E-06** at limit **
  14  Prefactor     18.355        26.055       -.11264E-07    .77801E-04
  15  Prefactor     2.6181        2.4812       -.14486E-06   -.15377E-03
  16  norm          1.9451        2.7247        .81931E-07   -.39040E-03
  17  Normalizat    1.0468        .17572        .24749E-04    .11189E-03
  18  Prefactor     1.0484        .78156E-01   -.49504E-05    .33504E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-09
  Prefactor  = 2.60902e-09
  norm       = 1.53316e-06
  Prefactor  = 1.05471e-09
  norm       = 0.691129
  norm       = 3.94105
  norm       = 0
  norm       = 0
  norm       = 6.00286
  norm       = 0.0325016
  Prefactor  = 0
  Prefactor  = 2.11782
  Prefactor  = 0
  Prefactor  = 18.355
  Prefactor  = 2.61807
  norm       = 1.94505
  Normalizat = 1.04675
  Prefactor  = 1.04843
 **********
 **   18 **HESSE 
 **********

 FCN=   17954.61     FROM HESSE     STATUS=OK           288 CALLS     1323 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-08    21.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .26090E-08    96.918        .50543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15332E-05    6.9138        .13684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10547E-08    6.5449        .16017E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .69113        .15506        .53294E-03   -1.5691    
   6  norm          3.9410        1.8709        .50768E-03   -1.5668    
   7  norm           .0000        .96140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        1.5836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.0029        2.6844        .40954E-03   -1.5659    
  10  norm          .32502E-01    .38754E-01    .51810E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.8581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1178        2.1138        .70738E-03   -1.5679    
  13  Prefactor      .0000        8.5365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.355        25.988        .22440E-03   -1.5622    
  15  Prefactor     2.6181        2.5077        .62991E-03   -1.5676    
  16  norm          1.9451        2.7581        .74161E-03   -1.5680    
  17  Normalizat    1.0468        .15728        .86464E-01   -.91480    
  18  Prefactor     1.0484        .67936E-01    .40017E-01   -.91132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24661e-08
Minuit parameter uncertainties:
  1  0.000331892
  2  0.00100652
  3  0.00651155
  4  0.000166049
  5  0.155059
  6  1.87092
  7  6.04558e-06
  8  7.13282e-06
  9  2.68438
  10  0.038754
  11  1.29617e-05
  12  2.11377
  13  1.58064e-05
  14  25.9884
  15  2.50766
  16  2.75812
  17  0.157347
  18  0.0679421
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.003e+00  2.684e+00  0.000e+00  1.000e+06 ( 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 -5.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.048e+00  6.794e-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.047e+00  1.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.88
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 1.86e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.16e-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) = 17954.6065754
delta logL = 0.000690288736223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17954.6065532
delta logL = 0.000712500273949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0029       1.0000          .0000       .10000E+07
     2 'alpha     '    1.9508       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0483       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=   17954.61     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0012        51.916        .40959E-03    .18523E-02
   2  alpha         1.9504        3.2471        .42482        .25187E-04
   3  Normalizat    1.0475        .14023        .86440E-01    .54774E-04
   4  Prefactor     1.0483        .35920E-01    .40008E-01   -.71489E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.00116
  alpha      = 1.95035
  Normalizat = 1.04747
  Prefactor  = 1.04834
 **********
 **   18 **HESSE 
 **********

 FCN=   17954.61     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0012        2.6570        .14104E-04   -1.5659    
   2  alpha         1.9504        .47711        .19004E-01   -.22167    
   3  Normalizat    1.0475        .17061        .38277E-03   -.91457    
   4  Prefactor     1.0483        .77061E-01    .17251E-03   -.91135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62518e-13
Minuit parameter uncertainties:
  1  2.65701
  2  0.480205
  3  0.170702
  4  0.0770691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259254': 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) = 17954.6065525
delta logL = 0.000713194232958

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.001e+00  2.657e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        alpha:  1.950e+00  4.802e-01  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  1.575e-01  0.000e+00 -5.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.048e+00  7.707e-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.047e+00  1.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.89
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.95 +/- 0.48
Photon Flux (Free Index): 4.07e-08 +/- 2.84e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.27e-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/259254/cmap_HighResolution_685324801_685929601_4FGL_J1512.2+0202_weekly_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='2.61e-05', photon_flux_error='1.86e-08', dlogl='7.13e-04', energy_flux='2.59e-05', photon_flux2='4.07e-08', job_status='DONE', time_completed='2022-09-27 01:55:24.855061', photon_index_error2='0.48', photon_index2='1.95', ts='12.88', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.05', time_epoch_completed='1664268924.86', return_code='0', job_id='259254', GAL2='1.05', EG2='1.05', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.84e-08', ts2='12.89', photon_index='1.97' WHERE bin_id='738' AND source_name='4FGL J1512.2+0202' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Sep 27 01:55:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 259254: <4FGL_J1512.2+0202_weekly_bin738> in cluster <slac> Done

Job <4FGL_J1512.2+0202_weekly_bin738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 27 01:40:36 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 01:42:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 01:42:24 2022
Terminated at Tue Sep 27 01:55:25 2022
Results reported at Tue Sep 27 01:55:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_weekly_bin738 228.07 2.0403 685324801 685929601 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 :                                   767.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            889 sec.

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

