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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin146
RA = 228.07, Dec = 2.0403
tmin = 277171201, tmax = 277430401
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='220779', job_status='RUN', time_executed='2021-09-11 09:34:37.490121', time_epoch_executed='1631378077.49' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220779

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220779/ft1_4FGL_J1512.2+0202_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220779/ft2_4FGL_J1512.2+0202_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220779/ft1_4FGL_J1512.2+0202_daily_bin146.fits outfile=/scratch/kocevski/220779/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin146.fits ra=228.07 dec=2.0403 rad=12.0 tmin=277171201.0 tmax=277430401.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.60
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220779/ft1_filtered_4FGL_J1512.2+0202_daily_bin146.fits" evtable="EVENTS" scfile=/scratch/kocevski/220779/ft2_4FGL_J1512.2+0202_daily_bin146.fits sctable="SC_DATA" outfile=/scratch/kocevski/220779/ltcube_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.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/220779/ft2_4FGL_J1512.2+0202_daily_bin146.fits
.....................!
real 14.70
user 14.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220779/ft1_filtered_4FGL_J1512.2+0202_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/220779/ft2_4FGL_J1512.2+0202_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/220779/ltcube_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.fits outfile=/scratch/kocevski/220779/expmap_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.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/220779/ltcube_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.fits
.....................!
real 191.23
user 185.61
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/220779/ft1_filtered_4FGL_J1512.2+0202_daily_bin146.fits scfile=/scratch/kocevski/220779/ft2_4FGL_J1512.2+0202_daily_bin146.fits outfile=/scratch/kocevski/220779/cmap_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.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/220779/ft1_filtered_4FGL_J1512.2+0202_daily_bin146.fits scfile=/scratch/kocevski/220779/ft2_4FGL_J1512.2+0202_daily_bin146.fits outfile=/scratch/kocevski/220779/cmap_HighResolution_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.056       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24153E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13253E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .36322       1.0000         .10000E-03   10000.    
     6 'norm      '    .14427E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3781       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3406       1.0000         .10000E-03   10000.    
     9 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .72861       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.692       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5195       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13475E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4337       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88195       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=   7965.690     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1612 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9257        33.832        .52520E-05    .91823E-04
   2  Prefactor     .10030E-03    18.891        .20710E-05** at limit **
   3  norm          13.022        16.425        .61864E-06    .82200E-03
   4  Prefactor     .10026E-03    19.989        .56359E-05** at limit **
   5  norm          .36326        .17811        .11260E-06   -.90923E-05
   6  norm          .10000E-03    3.6661       -.34882E-05** at limit **
   7  norm          3.3806        3.7342        .17089E-06    .17433E-05
   8  norm          3.3401        4.1229       -.16756E-05   -.11139E-04
   9  norm          .10000E-03    4.0762       -.17715E-06** at limit **
  10  norm          .72860        .14253        .38612E-08    .94866E-06
  11  Prefactor     .10000E-03    5.3554        .42697E-05** at limit **
  12  Prefactor     10.698        2.2147       -.26606E-06   -.15770E-03
  13  Prefactor     6.5172        5.5738        .59752E-05    .24091E-03
  14  Prefactor     .10000E-03    8.8183       -.61898E-06** at limit **
  15  Prefactor     .10000E-03    15.733       -.32307E-05** at limit **
  16  Prefactor     .10000E-03    1.7720       -.16750E-06** at limit **
  17  norm          .10000E-03    1.1885        .43518E-06** at limit **
  18  Normalizat    1.4335        .26072       -.80011E-05   -.40043E-05
  19  Prefactor     .88210        .11480        .23794E-05   -.10706E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.92569
  Prefactor  = 0.000100296
  norm       = 13.0218
  Prefactor  = 0.000100263
  norm       = 0.363264
  norm       = 0.0001
  norm       = 3.38056
  norm       = 3.3401
  norm       = 0.0001
  norm       = 0.728598
  Prefactor  = 0.0001
  Prefactor  = 10.6984
  Prefactor  = 6.51723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.43348
  Prefactor  = 0.882096
 **********
 **   18 **HESSE 
 **********

 FCN=   7965.690     FROM HESSE     STATUS=OK           316 CALLS     1928 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9257        34.043        .31589E-02   -1.5078    
   2  Prefactor     .10030E-03    35.475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.022        17.259        .27790E-02   -1.4986    
   4  Prefactor     .10026E-03    34.611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .36326        .17867        .56870E-02   -1.5587    
   6  norm          .10000E-03    1.3513        .31876E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3806        3.7315        .55038E-02   -1.5340    
   8  norm          3.3401        4.1358        .55361E-02   -1.5342    
   9  norm          .10000E-03    1.9248        .45512E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .72860        .14265        .32433E-02   -1.5537    
  11  Prefactor     .10000E-03    5.3434        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.698        43.279        .30633E-02   -1.5054    
  13  Prefactor     6.5172        5.5888        .39294E-02   -1.5197    
  14  Prefactor     .10000E-03    8.8123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.1838        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4335        .22714        .77130E-01   -.79665    
  19  Prefactor     .88210        .99147E-01    .44775E-01   -.96770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77338e-08
Minuit parameter uncertainties:
  1  34.1095
  2  0.00648935
  3  17.2652
  4  0.00603968
  5  0.178669
  6  7.05809e-07
  7  3.73177
  8  4.13617
  9  3.70931e-07
  10  0.142653
  11  2.83788e-06
  12  43.0898
  13  5.58924
  14  1.8719e-06
  15  7.56567e-06
  16  6.4141e-08
  17  2.11215e-07
  18  0.227301
  19  0.0991677
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  3.709e-07  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.821e-01  9.917e-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.433e+00  2.273e-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: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/220779/likelihoodResults_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.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) = 7965.69162991
delta logL = -0.00117312632756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7965.69045731
delta logL = -5.25978975929e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10952E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0043       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88211       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=   7965.690     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .92E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11898E-03    1737.9        .24250E-02** at limit **
   2  alpha         2.6064        3.0909        .16889E-01   -.90207E-05
   3  Normalizat    1.4335        .15091        .34134E-03   -.57062E-03
   4  Prefactor     .88209        .66913E-01    .18831E-03   -.12251E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7965.690     FROM SIMPLEX   STATUS=PROGRESS     144 CALLS      388 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10096E-03    1737.9        .37352E-03** at limit **
   2  alpha         2.6063        3.0909        .48625E-04   -.90207E-05
   3  Normalizat    1.4335        .15091        .35656E-05   -.57062E-03
   4  Prefactor     .88209        .66913E-01    .21599E-05   -.12251E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7965.690     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      430 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.567        .97002E-03** at limit **
   2  alpha         2.7215        2.8414        .33779E-01    .67313E-08
   3  Normalizat    1.4335        .25335        .68268E-04    .61616E-05
   4  Prefactor     .88210        .11369        .37661E-04   -.12195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.7215
  Normalizat = 1.43348
  Prefactor  = 0.882096
 **********
 **   18 **HESSE 
 **********

 FCN=   7965.690     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3034        .19400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7215        3.3969        .13511E-02    .88717E-01
   3  Normalizat    1.4335        .25337        .13654E-04   -.79665    
   4  Prefactor     .88210        .11370        .75323E-05   -.96770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11749e-12
Minuit parameter uncertainties:
  1  3.5319e-06
  2  189.669
  3  0.25359
  4  0.113733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220779': 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) = 7965.69044989
delta logL = 6.89271291776e-06

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  3.532e-06  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.722e+00  1.897e+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.821e-01  1.137e-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.433e+00  2.536e-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/220779/cmap_HighResolution_277171201_277430401_4FGL_J1512.2+0202_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-05', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-11 09:44:33.526774', job_id='220779', GAL2='0.88', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631378673.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='146' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:44:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 220779: <4FGL_J1512.2+0202_daily_bin146> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin146 228.07 2.0403 277171201 277430401 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 :                                   592.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

