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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin890
RA = 228.07, Dec = 2.0403
tmin = 470016001, tmax = 470275201
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='225399', job_status='RUN', time_executed='2021-09-11 09:46:20.527614', time_epoch_executed='1631378780.53' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225399

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225399/ft1_4FGL_J1512.2+0202_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225399/ft2_4FGL_J1512.2+0202_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225399/ft1_4FGL_J1512.2+0202_daily_bin890.fits outfile=/scratch/kocevski/225399/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin890.fits ra=228.07 dec=2.0403 rad=12.0 tmin=470016001.0 tmax=470275201.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.51
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225399/ft1_filtered_4FGL_J1512.2+0202_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/225399/ft2_4FGL_J1512.2+0202_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/225399/ltcube_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.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/225399/ft2_4FGL_J1512.2+0202_daily_bin890.fits
.....................!
real 11.96
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225399/ft1_filtered_4FGL_J1512.2+0202_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/225399/ft2_4FGL_J1512.2+0202_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/225399/ltcube_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.fits outfile=/scratch/kocevski/225399/expmap_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.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/225399/ltcube_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.fits
.....................!
real 192.43
user 187.85
sys 4.15

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/225399/ft1_filtered_4FGL_J1512.2+0202_daily_bin890.fits scfile=/scratch/kocevski/225399/ft2_4FGL_J1512.2+0202_daily_bin890.fits outfile=/scratch/kocevski/225399/cmap_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225399/ft1_filtered_4FGL_J1512.2+0202_daily_bin890.fits scfile=/scratch/kocevski/225399/ft2_4FGL_J1512.2+0202_daily_bin890.fits outfile=/scratch/kocevski/225399/cmap_HighResolution_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=228.07 yref=2.0403 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.947       1.0000         .10000E-03   10000.    
     3 'norm      '    9.1750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.034       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0031       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3682       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7736       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1603       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0811       1.0000         .10000E-03   10000.    
    10 'norm      '    .80326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12844E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9226       1.0000         .10000E-03   10000.    
    17 'norm      '    .42585E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6046       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80614       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=   7954.805     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1915 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.392       -.33684E-06** at limit **
   2  Prefactor     16.848        60.540       -.11090E-04   -.17927E-03
   3  norm          9.2313        34.712        .82983E-05    .67361E-04
   4  Prefactor     22.035        21.936        .29363E-06   -.82702E-05
   5  norm          2.0031        .32605        .13645E-07   -.36904E-03
   6  norm          1.3681        2.5989        .62587E-06   -.10062E-03
   7  norm          3.7730        4.1830       -.32466E-07    .57769E-04
   8  norm          5.1599        6.8716        .63951E-05   -.45996E-03
   9  norm          2.0810        3.7761        .45284E-06   -.12139E-03
  10  norm          .80328        .16340       -.64427E-07   -.90236E-03
  11  Prefactor     .10000E-03    10.435        .21375E-06** at limit **
  12  Prefactor     .10000E-03    14.801        .33647E-06** at limit **
  13  Prefactor     1.8156        4.3224        .11814E-05   -.11174E-03
  14  Prefactor     .10000E-03    10.862       -.32198E-06** at limit **
  15  Prefactor     .10000E-03    108.79        .48426E-06** at limit **
  16  Prefactor     4.9212        5.0672        .31452E-06   -.19936E-03
  17  norm          .10007E-03    1.6533        .37293E-06** at limit **
  18  Normalizat    1.6047        .24656       -.58623E-06   -.17048E-03
  19  Prefactor     .80609        .10431       -.14654E-05   -.14095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.8476
  norm       = 9.23133
  Prefactor  = 22.0347
  norm       = 2.00309
  norm       = 1.36808
  norm       = 3.77299
  norm       = 5.1599
  norm       = 2.08095
  norm       = 0.80328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.92116
  norm       = 0.000100068
  Normalizat = 1.60468
  Prefactor  = 0.806093
 **********
 **   18 **HESSE 
 **********

 FCN=   7954.805     FROM HESSE     STATUS=OK           280 CALLS     2195 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.848        62.633        .97290E-04   -1.4887    
   3  norm          9.2313        35.668        .13231E-03   -1.5100    
   4  Prefactor     22.035        21.984        .85330E-04   -1.4769    
   5  norm          2.0031        .32823        .19437E-04   -1.5425    
   6  norm          1.3681        2.5683        .18131E-03   -1.5474    
   7  norm          3.7730        4.1855        .18747E-03   -1.5319    
   8  norm          5.1599        6.9080        .88486E-03   -1.5254    
   9  norm          2.0810        3.7320        .22078E-03   -1.5419    
  10  norm          .80328        .16334        .15308E-04   -1.5529    
  11  Prefactor     .10000E-03    10.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8156        4.2958        .26994E-03   -1.5438    
  14  Prefactor     .10000E-03    10.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    109.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9212        5.0478        .18128E-03   -1.5264    
  17  norm          .10007E-03    2.4469        .42175E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6047        .28397        .34422E-03   -.74878    
  19  Prefactor     .80609        .11969        .20524E-03   -.99504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62679e-09
Minuit parameter uncertainties:
  1  0.000119332
  2  62.8794
  3  35.7507
  4  21.9916
  5  0.328229
  6  2.56846
  7  4.18581
  8  6.90906
  9  3.73242
  10  0.163342
  11  6.26013e-05
  12  0.000120802
  13  4.29651
  14  0.000103962
  15  0.00032753
  16  5.0482
  17  0.000815762
  18  0.284258
  19  0.119727
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.081e+00  3.732e+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:  8.061e-01  1.197e-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.605e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/225399/likelihoodResults_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.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) = 7954.33965571
delta logL = 0.464879374169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7954.33774844
delta logL = 0.466786647516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41921       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9643       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82633       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=   7954.338     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      300 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42045        5.1437        .10936E-01    .20399E-02
   2  alpha         3.9630        4.2845        .50000        .77967E-04
   3  Normalizat    1.5258        .49773E-01    .79385E-01    .63032E-04
   4  Prefactor     .82642        .22025E-01    .44059E-01    .14261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.420446
  alpha      = 3.963
  Normalizat = 1.52577
  Prefactor  = 0.826416
 **********
 **   18 **HESSE 
 **********

 FCN=   7954.338     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      335 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42045        18.152        .54731E-03   -1.5578    
   2  alpha         3.9630        3.3899        .19625E-01    .62513    
   3  Normalizat    1.5258        .22563        .35134E-03   -.77057    
   4  Prefactor     .82642        .95692E-01    .20296E-03   -.98762    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.32119e-10
Minuit parameter uncertainties:
  1  5.52639
  2  7.37846
  3  0.225781
  4  0.0957111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225399': 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): 102
logL (Free Index) = 7954.33774762
delta logL = 0.466787459864

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.204e-01  5.526e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  3.963e+00  7.378e+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:  8.264e-01  9.571e-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.526e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 228.070 2.040
Photon Index (Free Index): 3.96 +/- 7.38
Photon Flux (Free Index): 7.88e-08 +/- 1.14e-07
Energy Flux (Free Index): 1.30e-05 +/- 1.37e-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/225399/cmap_HighResolution_470016001_470275201_4FGL_J1512.2+0202_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-05', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='4.67e-01', photon_flux2='7.88e-08', job_status='DONE', time_completed='2021-09-11 09:56:40.131128', photon_index_error2='7.38', photon_index2='3.96', ts='0.40', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='8.05e-08', energy_flux_error2='1.37e-05', EG='1.60', time_epoch_completed='1631379400.13', return_code='0', job_id='225399', GAL2='0.83', EG2='1.53', return_code2='102', photon_flux_error2='1.14e-07', ts2='1.39', photon_index='1.97' WHERE bin_id='890' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:56:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 225399: <4FGL_J1512.2+0202_daily_bin890> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin890> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 09:46:03 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:46:05 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:46:05 2021
Terminated at Sat Sep 11 09:56:40 2021
Results reported at Sat Sep 11 09:56:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin890 228.07 2.0403 470016001 470275201 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 :                                   611.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

