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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1335
RA = 228.07, Dec = 2.0403
tmin = 585360001, tmax = 585619201
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='227304', job_status='RUN', time_executed='2021-09-11 09:53:59.268111', time_epoch_executed='1631379239.27' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227304

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227304/ft1_4FGL_J1512.2+0202_daily_bin1335.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227304/ft2_4FGL_J1512.2+0202_daily_bin1335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227304/ft1_4FGL_J1512.2+0202_daily_bin1335.fits outfile=/scratch/kocevski/227304/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1335.fits ra=228.07 dec=2.0403 rad=12.0 tmin=585360001.0 tmax=585619201.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.85
user 2.64
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227304/ft1_filtered_4FGL_J1512.2+0202_daily_bin1335.fits evtable="EVENTS" scfile=/scratch/kocevski/227304/ft2_4FGL_J1512.2+0202_daily_bin1335.fits sctable="SC_DATA" expcube=/scratch/kocevski/227304/ltcube_585360001_585619201_4FGL_J1512.2+0202_daily_bin1335.fits outfile=/scratch/kocevski/227304/expmap_585360001_585619201_4FGL_J1512.2+0202_daily_bin1335.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/227304/ltcube_585360001_585619201_4FGL_J1512.2+0202_daily_bin1335.fits
.....................!
real 191.70
user 187.10
sys 4.26

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J1512.2+0202 @ 228.07 2.0403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/227304/ft1_filtered_4FGL_J1512.2+0202_daily_bin1335.fits scfile=/scratch/kocevski/227304/ft2_4FGL_J1512.2+0202_daily_bin1335.fits outfile=/scratch/kocevski/227304/cmap_585360001_585619201_4FGL_J1512.2+0202_daily_bin1335.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/227304/ft1_filtered_4FGL_J1512.2+0202_daily_bin1335.fits scfile=/scratch/kocevski/227304/ft2_4FGL_J1512.2+0202_daily_bin1335.fits outfile=/scratch/kocevski/227304/cmap_HighResolution_585360001_585619201_4FGL_J1512.2+0202_daily_bin1335.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12369E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64838E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .11206E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .28665       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9933       1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6756       1.0000         .10000E-03   10000.    
    10 'norm      '    .30334       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.143       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11176E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.783       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1562       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0690       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95595       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=   8877.481     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1936 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.189       -.57066E-06** at limit **
   2  Prefactor     .11398E-03    22.183       -.51284E-05** at limit **
   3  norm          .10000E-03    21.861        .24765E-06** at limit **
   4  Prefactor     .10000E-03    12.495       -.69599E-08** at limit **
   5  norm          .28665        .14895        .20793E-07    .11236E-02
   6  norm          2.9933        2.0645        .12823E-06    .38714E-03
   7  norm          .10000E-03    3.0627       -.51773E-07** at limit **
   8  norm          .10000E-03    2.1755        .29557E-06** at limit **
   9  norm          3.6755        2.7364        .32374E-08    .55399E-04
  10  norm          .30305        .15645       -.35336E-06   -.83783E-02
  11  Prefactor     10.167        17.285        .45623E-05   -.14606E-03
  12  Prefactor     .10000E-03    111.16       -.60996E-05** at limit **
  13  Prefactor     .10000E-03    1.5681        .78065E-08** at limit **
  14  Prefactor     .10000E-03    14.149       -.85100E-07** at limit **
  15  Prefactor     44.721        53.634        .61753E-05    .61585E-04
  16  Prefactor     .10000E-03    1.3510       -.11127E-07** at limit **
  17  norm          2.1560        2.1059       -.67039E-07   -.44511E-04
  18  Normalizat    1.0689        .19064       -.69031E-06    .28432E-03
  19  Prefactor     .95601        .88923E-01    .44071E-06    .33430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000113976
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.286651
  norm       = 2.99326
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.6755
  norm       = 0.303054
  Prefactor  = 10.1673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.7205
  Prefactor  = 0.0001
  norm       = 2.15601
  Normalizat = 1.06894
  Prefactor  = 0.956008
 **********
 **   18 **HESSE 
 **********

 FCN=   8877.481     FROM HESSE     STATUS=OK           276 CALLS     2212 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11398E-03    18.809        .12335       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    22.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .28665        .14586        .24900E-04   -1.5601    
   6  norm          2.9933        2.0621        .10591E-03   -1.5362    
   7  norm          .10000E-03    3.1085        .16102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7947        .26856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6755        2.7349        .13010E-03   -1.5325    
  10  norm          .30305        .15686        .16547E-04   -1.5598    
  11  Prefactor     10.167        17.244        .12581E-03   -1.5070    
  12  Prefactor     .10000E-03    112.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6251        .23037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.721        53.472        .29955E-03   -1.4369    
  16  Prefactor     .10000E-03    1.3609        .10692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1560        2.1135        .13166E-03   -1.5414    
  18  Normalizat    1.0689        .22035        .33860E-03   -.90755    
  19  Prefactor     .95601        .10298        .17116E-03   -.94211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47159e-09
Minuit parameter uncertainties:
  1  8.31245e-06
  2  0.0324364
  3  0.000171889
  4  9.57397e-06
  5  0.145856
  6  2.06211
  7  1.12227e-06
  8  1.74703e-06
  9  2.73501
  10  0.156863
  11  17.2526
  12  0.000243529
  13  5.84791e-07
  14  2.12688e-06
  15  53.5293
  16  4.08935e-07
  17  2.11353
  18  0.220534
  19  0.102999
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.676e+00  2.735e+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:  9.560e-01  1.030e-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.069e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.97
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.18e-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) = 8876.34801617
delta logL = 1.13339068495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8876.2169456
delta logL = 1.26446125583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3299       1.0000         .10000E-03   10000.    
     2 'alpha     '    .95285       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95536       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=   8876.217     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3302        1.7231        .67168E-02   -.27888E-03
   2  alpha         .95270        .42210        .43933       -.44048E-04
   3  Normalizat    1.0801        .18187        .76170E-01    .21224E-04
   4  Prefactor     .95532        .87913E-01    .45707E-01   -.97749E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33024
  alpha      = 0.952705
  Normalizat = 1.08012
  Prefactor  = 0.955323
 **********
 **   18 **HESSE 
 **********

 FCN=   8876.217     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .53E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3302        2.3041        .10029E-03   -1.5403    
   2  alpha         .95270        .56437        .19249E-02   -.66736    
   3  Normalizat    1.0801        .21011        .33712E-03   -.90393    
   4  Prefactor     .95532        .10176        .17120E-03   -.94234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27146e-14
Minuit parameter uncertainties:
  1  2.30419
  2  0.572448
  3  0.210272
  4  0.101778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227304': 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) = 8876.2169454
delta logL = 1.26446146097

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  2.330e+00  2.304e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  9.527e-01  5.724e-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:  9.553e-01  1.018e-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.080e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.51
Ra Dec: 228.070 2.040
Photon Index (Free Index): 0.95 +/- 0.57
Photon Flux (Free Index): 9.82e-09 +/- 8.30e-09
Energy Flux (Free Index): 4.79e-05 +/- 5.16e-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/227304/cmap_HighResolution_585360001_585619201_4FGL_J1512.2+0202_daily_bin1335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='4.79e-05', photon_flux_error='1.89e-08', dlogl='1.26e+00', energy_flux='1.59e-05', photon_flux2='9.82e-09', job_status='DONE', time_completed='2021-09-11 10:07:50.444262', photon_index_error2='0.57', photon_index2='0.95', ts='5.97', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='5.16e-05', EG='1.07', time_epoch_completed='1631380070.44', return_code='0', job_id='227304', GAL2='0.96', EG2='1.08', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='8.30e-09', ts2='8.51', photon_index='1.97' WHERE bin_id='1335' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:07:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 227304: <4FGL_J1512.2+0202_daily_bin1335> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1335 228.07 2.0403 585360001 585619201 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 :                                   574.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

