/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is 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 = 7394
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1591
RA = 228.07, Dec = 2.0403
tmin = 651715201, tmax = 651974401
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='227682', job_status='RUN', time_executed='2021-09-11 09:52:19.080530', time_epoch_executed='1631379139.08' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227682

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227682/ft1_4FGL_J1512.2+0202_daily_bin1591.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227682/ft1_4FGL_J1512.2+0202_daily_bin1591.fits outfile=/scratch/kocevski/227682/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1591.fits ra=228.07 dec=2.0403 rad=12.0 tmin=651715201.0 tmax=651974401.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.45
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.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/227682/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1591.fits evtable="EVENTS" outfile="/scratch/kocevski/227682/ft1_filtered_4FGL_J1512.2+0202_daily_bin1591.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.56
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227682/ft1_filtered_4FGL_J1512.2+0202_daily_bin1591.fits" evtable="EVENTS" scfile=/scratch/kocevski/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.fits sctable="SC_DATA" outfile=/scratch/kocevski/227682/ltcube_651715201_651974401_4FGL_J1512.2+0202_daily_bin1591.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/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.fits
.....................!
real 12.30
user 11.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227682/ft1_filtered_4FGL_J1512.2+0202_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.fits sctable="SC_DATA" expcube=/scratch/kocevski/227682/ltcube_651715201_651974401_4FGL_J1512.2+0202_daily_bin1591.fits outfile=/scratch/kocevski/227682/expmap_651715201_651974401_4FGL_J1512.2+0202_daily_bin1591.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/227682/ltcube_651715201_651974401_4FGL_J1512.2+0202_daily_bin1591.fits
.....................!
real 191.33
user 186.72
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/227682/ft1_filtered_4FGL_J1512.2+0202_daily_bin1591.fits scfile=/scratch/kocevski/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.fits outfile=/scratch/kocevski/227682/cmap_651715201_651974401_4FGL_J1512.2+0202_daily_bin1591.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/227682/ft1_filtered_4FGL_J1512.2+0202_daily_bin1591.fits scfile=/scratch/kocevski/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.fits outfile=/scratch/kocevski/227682/cmap_HighResolution_651715201_651974401_4FGL_J1512.2+0202_daily_bin1591.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/227682/ft1_filtered_4FGL_J1512.2+0202_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/227682/ft2_4FGL_J1512.2+0202_daily_bin1591.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227682/Model_4FGL_J1512.2+0202_daily_bin1591.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/227682/ft1_filtered_4FGL_J1512.2+0202_daily_bin1591.fits.....................!
real 61.74
user 60.33
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.925       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.392       1.0000         .10000E-03   10000.    
     5 'norm      '    .21051       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5782       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8607       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9324       1.0000         .10000E-03   10000.    
     9 'norm      '    8.9666       1.0000         .10000E-03   10000.    
    10 'norm      '    .96086E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6051       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    146.60       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14733       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6784       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80561       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=   7414.334     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1885 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.905        53.083       -.33582E-05   -.28333E-03
   2  Prefactor     .10000E-03    7.1455       -.15835E-07** at limit **
   3  norm          .10000E-03    3.9154       -.37460E-07** at limit **
   4  Prefactor     16.383        19.307       -.22276E-05   -.39502E-03
   5  norm          .21044        .14741        .93850E-09    .19441E-04
   6  norm          3.5768        2.6595        .18758E-05   -.14129E-02
   7  norm          1.8602        3.8074        .13696E-06   -.13969E-03
   8  norm          6.9300        5.6730        .98089E-07   -.63197E-04
   9  norm          8.9653        5.1127       -.45953E-06   -.53702E-04
  10  norm          .96060E-01    .13416        .29515E-07    .17562E-03
  11  Prefactor     4.6025        14.564       -.65280E-06   -.12434E-03
  12  Prefactor     13.324        29.620       -.28625E-05   -.15896E-03
  13  Prefactor     .10000E-03    2.8040        .96554E-07** at limit **
  14  Prefactor     .10000E-03    7.9494        .55373E-07** at limit **
  15  Prefactor     146.57        86.206       -.22834E-05   -.19733E-03
  16  Prefactor     .90879E-01    1.9624       -.97925E-07    .17204E-03
  17  norm          .10000E-03    1.0292        .24953E-07** at limit **
  18  Normalizat    1.6788        .24080        .21751E-06   -.29769E-04
  19  Prefactor     .80564        .10633       -.40574E-06    .50248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.9052
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.3831
  norm       = 0.210442
  norm       = 3.57685
  norm       = 1.86015
  norm       = 6.93002
  norm       = 8.96533
  norm       = 0.0960604
  Prefactor  = 4.60253
  Prefactor  = 13.3238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 146.573
  Prefactor  = 0.0908789
  norm       = 0.0001
  Normalizat = 1.67878
  Prefactor  = 0.805644
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.334     FROM HESSE     STATUS=OK           272 CALLS     2157 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.905        54.426        .25915E-03   -1.4158    
   2  Prefactor     .10000E-03    7.1469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.9162        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.383        19.801        .98925E-04   -1.4898    
   5  norm          .21044        .14597        .26465E-04   -1.5616    
   6  norm          3.5768        2.7437        .58283E-03   -1.5330    
   7  norm          1.8602        3.7762        .23463E-03   -1.5435    
   8  norm          6.9300        5.6486        .15237E-03   -1.5181    
   9  norm          8.9653        5.1154        .13385E-03   -1.5109    
  10  norm          .96060E-01    .12084        .26553E-03   -1.5646    
  11  Prefactor     4.6025        14.117        .18757E-03   -1.5279    
  12  Prefactor     13.324        29.923        .10970E-03   -1.4978    
  13  Prefactor     .10000E-03    2.8507        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     146.57        87.559        .16641E-03   -1.3281    
  16  Prefactor     .90879E-01    42.164        .22947E-02   -1.5648    
  17  norm          .10000E-03    1.0328        .85295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6788        .28251        .31905E-03   -.72871    
  19  Prefactor     .80564        .12454        .19691E-03   -.99521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33131e-09
Minuit parameter uncertainties:
  1  54.4714
  2  2.50715e-06
  3  2.36693e-07
  4  19.809
  5  0.145967
  6  2.7438
  7  3.77671
  8  5.64906
  9  5.11567
  10  0.120837
  11  14.1273
  12  29.9562
  13  8.06378e-07
  14  3.75229e-06
  15  87.6363
  16  3.91562
  17  5.60252e-08
  18  0.282784
  19  0.124582
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  8.965e+00  5.116e+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.056e-01  1.246e-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.679e+00  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.90
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 3.88e-05 +/- 2.21e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7414.21518999
delta logL = 0.118966584381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7414.18004524
delta logL = 0.154111340128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0910       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5395       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80643       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=   7414.180     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0910        4.5920        .37661E-02    .16885E-02
   2  alpha         1.5394        .47774        .45860       -.27172E-04
   3  Normalizat    1.6969        .23301        .71867E-01    .44769E-05
   4  Prefactor     .80640        .10457        .43801E-01    .10609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.09097
  alpha      = 1.53939
  Normalizat = 1.6969
  Prefactor  = 0.806402
 **********
 **   18 **HESSE 
 **********

 FCN=   7414.180     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0910        7.0160        .14178E-03   -1.5175    
   2  alpha         1.5394        .85404        .16958E-01   -.39439    
   3  Normalizat    1.6969        .27082        .31794E-03   -.72386    
   4  Prefactor     .80640        .12196        .19700E-03   -.99493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31819e-10
Minuit parameter uncertainties:
  1  7.01681
  2  0.874834
  3  0.271057
  4  0.122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227682': 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) = 7414.18004518
delta logL = 0.154111393902

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  7.091e+00  7.017e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.539e+00  8.748e-01  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.064e-01  1.220e-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.697e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.22
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.54 +/- 0.87
Photon Flux (Free Index): 3.30e-08 +/- 4.89e-08
Energy Flux (Free Index): 4.45e-05 +/- 3.46e-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/227682/cmap_HighResolution_651715201_651974401_4FGL_J1512.2+0202_daily_bin1591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='4.45e-05', photon_flux_error='3.54e-08', dlogl='1.54e-01', energy_flux='3.88e-05', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-11 10:01:21.874456', photon_index_error2='0.87', photon_index2='1.54', ts='16.90', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.46e-05', EG='1.68', time_epoch_completed='1631379681.87', return_code='0', job_id='227682', GAL2='0.81', EG2='1.70', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='4.89e-08', ts2='17.22', photon_index='1.97' WHERE bin_id='1591' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:01:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 227682: <4FGL_J1512.2+0202_daily_bin1591> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1591> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 09:52:05 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:52:07 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:52:07 2021
Terminated at Sat Sep 11 10:01:22 2021
Results reported at Sat Sep 11 10:01:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1591 228.07 2.0403 651715201 651974401 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 :                                   529.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            557 sec.

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

