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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin786
RA = 228.07, Dec = 2.0403
tmin = 443059201, tmax = 443318401
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='224039', job_status='RUN', time_executed='2021-09-11 09:42:15.145275', time_epoch_executed='1631378535.15' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224039/ft1_4FGL_J1512.2+0202_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224039/ft2_4FGL_J1512.2+0202_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224039/ft1_4FGL_J1512.2+0202_daily_bin786.fits outfile=/scratch/kocevski/224039/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin786.fits ra=228.07 dec=2.0403 rad=12.0 tmin=443059201.0 tmax=443318401.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 7.40
user 3.57
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224039/ft2_4FGL_J1512.2+0202_daily_bin786.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/224039/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/224039/ft1_filtered_4FGL_J1512.2+0202_daily_bin786.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/224039/ft1_filtered_4FGL_J1512.2+0202_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/224039/ft2_4FGL_J1512.2+0202_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/224039/ltcube_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.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/224039/ft2_4FGL_J1512.2+0202_daily_bin786.fits
.....................!
real 11.79
user 11.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224039/ft1_filtered_4FGL_J1512.2+0202_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/224039/ft2_4FGL_J1512.2+0202_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/224039/ltcube_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.fits outfile=/scratch/kocevski/224039/expmap_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.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/224039/ltcube_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.fits
.....................!
real 190.07
user 185.40
sys 4.28

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/224039/ft1_filtered_4FGL_J1512.2+0202_daily_bin786.fits scfile=/scratch/kocevski/224039/ft2_4FGL_J1512.2+0202_daily_bin786.fits outfile=/scratch/kocevski/224039/cmap_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224039/ft1_filtered_4FGL_J1512.2+0202_daily_bin786.fits scfile=/scratch/kocevski/224039/ft2_4FGL_J1512.2+0202_daily_bin786.fits outfile=/scratch/kocevski/224039/cmap_HighResolution_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.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/224039/ft1_filtered_4FGL_J1512.2+0202_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/224039/ft2_4FGL_J1512.2+0202_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224039/Model_4FGL_J1512.2+0202_daily_bin786.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/224039/ft1_filtered_4FGL_J1512.2+0202_daily_bin786.fits.....................!
real 69.14
user 67.83
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3894       1.0000         .10000E-03   10000.    
     3 'norm      '    .11861E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33178E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .65289       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8563       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1539       1.0000         .10000E-03   10000.    
    10 'norm      '    .37776       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8450       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6167       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0146       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5605       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75903       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8903.825     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1894 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.476         .0000    ** at limit **
   2  Prefactor     8.4013        23.870         .0000       -.97528E-03
   3  norm          .10000E-03    13.679         .0000    ** at limit **
   4  Prefactor     .10000E-03    100.29         .0000    ** at limit **
   5  norm          .65273        .21213         .0000        .77392E-03
   6  norm          .10000E-03    .97218         .0000    ** at limit **
   7  norm          .10000E-03    2.7384         .0000    ** at limit **
   8  norm          1.8568        4.1783         .0000        .29602E-01
   9  norm          3.1545        2.9938         .0000        .22722E-03
  10  norm          .37777        .97897E-01     .0000       -.88486E-04
  11  Prefactor     .10000E-03    2.1238         .0000    ** at limit **
  12  Prefactor     7.8507        21.889         .0000        .17265E-03
  13  Prefactor     1.6175        4.4354         .0000        .13199E-02
  14  Prefactor     .10000E-03    9.3589         .0000    ** at limit **
  15  Prefactor     13.447        46.155         .0000       -.77289E-03
  16  Prefactor     .10000E-03    1.1075         .0000    ** at limit **
  17  norm          5.0153        3.7706         .0000        .11427E-02
  18  Normalizat    1.5603        .21100         .0000       -.55909E-05
  19  Prefactor     .75904        .92001E-01     .0000       -.46642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.40131
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.65273
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.85684
  norm       = 3.15453
  norm       = 0.377769
  Prefactor  = 0.0001
  Prefactor  = 7.85074
  Prefactor  = 1.61745
  Prefactor  = 0.0001
  Prefactor  = 13.4472
  Prefactor  = 0.0001
  norm       = 5.01527
  Normalizat = 1.56034
  Prefactor  = 0.759041
 **********
 **   18 **HESSE 
 **********

 FCN=   8903.825     FROM HESSE     STATUS=OK           268 CALLS     2162 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4013        23.868        .13841E-03   -1.5128    
   3  norm          .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    104.22        .36751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .65273        .21221        .23493E-04   -1.5546    
   6  norm          .10000E-03    2.7258        .17910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7462        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8568        4.1562        .13623E-02   -1.5435    
   9  norm          3.1545        2.9775        .15362E-03   -1.5353    
  10  norm          .37777        .97650E-01    .14359E-04   -1.5585    
  11  Prefactor     .10000E-03    2.1255        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8507        21.878        .14316E-03   -1.5148    
  13  Prefactor     1.6175        4.4213        .30717E-03   -1.5454    
  14  Prefactor     .10000E-03    9.3702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.447        46.275        .10924E-03   -1.4974    
  16  Prefactor     .10000E-03    1.1136        .96933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0153        3.7669        .15329E-03   -1.5260    
  18  Normalizat    1.5603        .24750        .31347E-03   -.76097    
  19  Prefactor     .75904        .10840        .18946E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74139e-08
Minuit parameter uncertainties:
  1  2.31075e-05
  2  23.8948
  3  3.16196e-05
  4  0.000287205
  5  0.212209
  6  3.49225e-05
  7  2.66161e-05
  8  4.15681
  9  2.97764
  10  0.0976497
  11  2.16715e-06
  12  21.9006
  13  4.42221
  14  2.03995e-05
  15  46.3989
  16  1.3818e-06
  17  3.76707
  18  0.247697
  19  0.10843
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.155e+00  2.978e+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

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  7.590e-01  1.084e-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.560e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.29e-05

TS (Fixed Index): 2.17
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224039/likelihoodResults_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.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): 0
logL (Free Index) = 8903.8250566
delta logL = 0.000212861363252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8903.82503897
delta logL = 0.000230489940805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1407       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9932       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75909       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8903.825     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      233 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1378        3.3648         .0000        .28142E-03
   2  alpha         1.9915        1.1188         .0000        .43817E-03
   3  Normalizat    1.5599        .20443         .0000       -.39251E-05
   4  Prefactor     .75913        .90210E-01     .0000       -.95343E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13782
  alpha      = 1.99153
  Normalizat = 1.55987
  Prefactor  = 0.759131
 **********
 **   18 **HESSE 
 **********

 FCN=   8903.825     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1378        3.0820        .15286E-03   -1.5354    
   2  alpha         1.9915        1.0359        .84549E-02   -.20482    
   3  Normalizat    1.5599        .24003        .31351E-03   -.76110    
   4  Prefactor     .75913        .10598        .18945E-03   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78941e-11
Minuit parameter uncertainties:
  1  3.08218
  2  1.06956
  3  0.240209
  4  0.106013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224039': 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) = 8903.82503623
delta logL = 0.000233236476561

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.138e+00  3.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.992e+00  1.070e+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.591e-01  1.060e-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.560e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.99 +/- 1.07
Photon Flux (Free Index): 2.23e-08 +/- 3.01e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.52e-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/224039/cmap_HighResolution_443059201_443318401_4FGL_J1512.2+0202_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-05', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.35e-05', photon_flux_error='2.06e-08', dlogl='2.33e-04', energy_flux='1.36e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-09-11 09:53:09.488948', photon_index_error2='1.07', photon_index2='1.99', ts='2.17', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='7.39e-08', energy_flux_error2='1.52e-05', EG='1.56', time_epoch_completed='1631379189.49', return_code='0', job_id='224039', GAL2='0.76', EG2='1.56', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.01e-08', ts2='2.17', photon_index='1.97' WHERE bin_id='786' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:53:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 224039: <4FGL_J1512.2+0202_daily_bin786> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin786> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 09:41:12 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:41:14 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:41:14 2021
Terminated at Sat Sep 11 09:53:09 2021
Results reported at Sat Sep 11 09:53:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin786 228.07 2.0403 443059201 443318401 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 :                                   636.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

