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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1339
RA = 228.07, Dec = 2.0403
tmin = 586396801, tmax = 586656001
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='227310', job_status='RUN', time_executed='2021-09-11 09:54:26.182846', time_epoch_executed='1631379266.18' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227310

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227310/ft1_4FGL_J1512.2+0202_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227310/ft2_4FGL_J1512.2+0202_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227310/ft1_4FGL_J1512.2+0202_daily_bin1339.fits outfile=/scratch/kocevski/227310/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1339.fits ra=228.07 dec=2.0403 rad=12.0 tmin=586396801.0 tmax=586656001.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.67
user 2.41
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227310/ft1_filtered_4FGL_J1512.2+0202_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/227310/ft2_4FGL_J1512.2+0202_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/227310/ltcube_586396801_586656001_4FGL_J1512.2+0202_daily_bin1339.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/227310/ft2_4FGL_J1512.2+0202_daily_bin1339.fits
.....................!
real 8.28
user 7.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227310/ft1_filtered_4FGL_J1512.2+0202_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/227310/ft2_4FGL_J1512.2+0202_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/227310/ltcube_586396801_586656001_4FGL_J1512.2+0202_daily_bin1339.fits outfile=/scratch/kocevski/227310/expmap_586396801_586656001_4FGL_J1512.2+0202_daily_bin1339.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/227310/ltcube_586396801_586656001_4FGL_J1512.2+0202_daily_bin1339.fits
.....................!
real 189.68
user 185.19
sys 4.17

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/227310/ft1_filtered_4FGL_J1512.2+0202_daily_bin1339.fits scfile=/scratch/kocevski/227310/ft2_4FGL_J1512.2+0202_daily_bin1339.fits outfile=/scratch/kocevski/227310/cmap_586396801_586656001_4FGL_J1512.2+0202_daily_bin1339.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.918       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10662E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11712E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11191       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2603       1.0000         .10000E-03   10000.    
     7 'norm      '    12.157       1.0000         .10000E-03   10000.    
     8 'norm      '    8.1504       1.0000         .10000E-03   10000.    
     9 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .60534       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39637E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5973       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15962E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3088       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5043       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8114       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76005       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=   6801.516     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1930 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.873        74.782       -.26619E-06    .41093E-04
   2  Prefactor     .10000E-03    8.9545        .39325E-07** at limit **
   3  norm          .10000E-03    5.0000       -.89487E-08** at limit **
   4  Prefactor     .10000E-03    18.207        .15100E-06** at limit **
   5  norm          .11158        .18227       -.30874E-06   -.45177E-02
   6  norm          4.2594        2.6720       -.67106E-07    .34199E-03
   7  norm          12.160        9.1495        .32640E-06    .23154E-03
   8  norm          8.1480        5.2846       -.76453E-07   -.47501E-04
   9  norm          .10000E-03    5.1159       -.36414E-06** at limit **
  10  norm          .60521        .16425        .25627E-07   -.34301E-02
  11  Prefactor     .10007E-03    42.094        .14209E-04** at limit **
  12  Prefactor     .10000E-03    19.032       -.14512E-06** at limit **
  13  Prefactor     .10000E-03    3.6730        .31543E-05** at limit **
  14  Prefactor     3.5948        86.920        .82512E-06    .36254E-04
  15  Prefactor     .10007E-03    313.06        .55303E-05** at limit **
  16  Prefactor     1.3099        3.0426       -.26339E-06    .83275E-04
  17  norm          1.5041        3.2346       -.17541E-06    .10982E-03
  18  Normalizat    1.8116        .25115        .41739E-05    .40376E-03
  19  Prefactor     .76014        .11071       -.14869E-05   -.26245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8733
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.111585
  norm       = 4.25935
  norm       = 12.1595
  norm       = 8.14801
  norm       = 0.0001
  norm       = 0.60521
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.59485
  Prefactor  = 0.000100065
  Prefactor  = 1.30988
  norm       = 1.50409
  Normalizat = 1.8116
  Prefactor  = 0.760141
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.516     FROM HESSE     STATUS=OK           268 CALLS     2198 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.873        75.268        .77215E-04   -1.4671    
   2  Prefactor     .10000E-03    8.9562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.0014        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11158        .18148        .45212E-03   -1.5641    
   6  norm          4.2594        2.6726        .10199E-03   -1.5295    
   7  norm          12.160        9.1505        .11489E-03   -1.5010    
   8  norm          8.1480        5.2827        .14043E-03   -1.5137    
   9  norm          .10000E-03    5.3645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .60521        .13922        .13957E-04   -1.5552    
  11  Prefactor     .10007E-03    50.799        .44489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9811        .24066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5948        85.306        .21305E-03   -1.5329    
  15  Prefactor     .10007E-03    312.99        .40842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3099        2.9969        .21098E-03   -1.5479    
  17  norm          1.5041        3.1663        .20525E-03   -1.5463    
  18  Normalizat    1.8116        .29448        .31850E-03   -.69361    
  19  Prefactor     .76014        .12690        .20390E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0832e-09
Minuit parameter uncertainties:
  1  75.5357
  2  2.29746e-06
  3  6.28051e-06
  4  3.91407e-05
  5  0.181481
  6  2.6727
  7  9.15158
  8  5.28296
  9  4.55686e-05
  10  0.139216
  11  0.00368863
  12  3.53223e-05
  13  0.000146649
  14  35.0794
  15  0.00909067
  16  2.9972
  17  3.16667
  18  0.294767
  19  0.126951
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  4.557e-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:  7.601e-01  1.270e-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.812e+00  2.948e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227310/likelihoodResults_586396801_586656001_4FGL_J1512.2+0202_daily_bin1339.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) = 6801.51679069
delta logL = -0.000890172549589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6801.5159048
delta logL = -4.28641305916e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13053E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0251       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76043       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=   6801.473     FROM MIGRAD    STATUS=FAILED       241 CALLS      401 TOTAL
                     EDM=   .51E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23894        71.248        .27137E-02   -.43842E-01
   2  alpha         3.4253        3.2120        .50000        .44121E-04
   3  Normalizat    1.7969        .90385E-01    .31850E-03   -.18204E-05
   4  Prefactor     .76231        .34656E-01    .20390E-03   -.45720E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6801.473     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      488 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23894        71.248        .17798E-03   -.43842E-01
   2  alpha         3.4253        3.2120        .42302E-02    .44121E-04
   3  Normalizat    1.7969        .90385E-01    .10999E-03   -.18204E-05
   4  Prefactor     .76231        .34656E-01    .38162E-04   -.45720E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6801.473     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      532 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23894        3.5934         .0000       -.71763E-04
   2  alpha         3.4253        4.1878         .0000        .17732E-03
   3  Normalizat    1.7969        .29001         .0000       -.17847E-05
   4  Prefactor     .76231        .12637         .0000       -.47392E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.238941
  alpha      = 3.42525
  Normalizat = 1.79695
  Prefactor  = 0.762306
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.473     FROM HESSE     STATUS=OK            27 CALLS      559 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23894        2.2297        .21710E-04   -1.5806    
   2  alpha         3.4253        4.0133        .87785E-02    .37912    
   3  Normalizat    1.7969        .28905        .25480E-05   -.69743    
   4  Prefactor     .76231        .12594        .16312E-05   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74236e-11
Minuit parameter uncertainties:
  1  1.45957
  2  3.19888
  3  0.289321
  4  0.12599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227310': 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) = 6801.47337448
delta logL = 0.0425260304846

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.389e-01  1.460e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  3.425e+00  3.199e+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:  7.623e-01  1.260e-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.797e+00  2.893e-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/227310/cmap_HighResolution_586396801_586656001_4FGL_J1512.2+0202_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-09-11 10:06:55.157701', job_id='227310', GAL2='0.76', fit_tolerance='1e-08', EG2='1.80', EG='1.81', time_epoch_completed='1631380015.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.25e-02', ts2='0.09', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1339' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:06:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 227310: <4FGL_J1512.2+0202_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1339 228.07 2.0403 586396801 586656001 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

