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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin715
RA = 228.07, Dec = 2.0403
tmin = 424656001, tmax = 424915201
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='223935', job_status='RUN', time_executed='2021-09-11 09:44:48.021288', time_epoch_executed='1631378688.02' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223935/ft1_4FGL_J1512.2+0202_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223935/ft2_4FGL_J1512.2+0202_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223935/ft1_4FGL_J1512.2+0202_daily_bin715.fits outfile=/scratch/kocevski/223935/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin715.fits ra=228.07 dec=2.0403 rad=12.0 tmin=424656001.0 tmax=424915201.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 4.54
user 4.32
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223935/ft1_filtered_4FGL_J1512.2+0202_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/223935/ft2_4FGL_J1512.2+0202_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/223935/ltcube_424656001_424915201_4FGL_J1512.2+0202_daily_bin715.fits outfile=/scratch/kocevski/223935/expmap_424656001_424915201_4FGL_J1512.2+0202_daily_bin715.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/223935/ltcube_424656001_424915201_4FGL_J1512.2+0202_daily_bin715.fits
.....................!
real 190.40
user 184.76
sys 5.27

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/223935/ft1_filtered_4FGL_J1512.2+0202_daily_bin715.fits scfile=/scratch/kocevski/223935/ft2_4FGL_J1512.2+0202_daily_bin715.fits outfile=/scratch/kocevski/223935/cmap_424656001_424915201_4FGL_J1512.2+0202_daily_bin715.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=228.07 yref=2.0403 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223935/ft1_filtered_4FGL_J1512.2+0202_daily_bin715.fits scfile=/scratch/kocevski/223935/ft2_4FGL_J1512.2+0202_daily_bin715.fits outfile=/scratch/kocevski/223935/cmap_HighResolution_424656001_424915201_4FGL_J1512.2+0202_daily_bin715.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0478       1.0000         .10000E-03   10000.    
     5 'norm      '    .43821       1.0000         .10000E-03   10000.    
     6 'norm      '    .38647       1.0000         .10000E-03   10000.    
     7 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9528       1.0000         .10000E-03   10000.    
    10 'norm      '    .51903       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    100.41       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0114       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=   7784.557     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1895 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.980       -.21850E-05** at limit **
   2  Prefactor     .10000E-03    9.9660       -.10732E-07** at limit **
   3  norm          .10000E-03    5.3201        .21296E-07** at limit **
   4  Prefactor     2.0100        78.528       -.14827E-04   -.35548E-04
   5  norm          .43805        .25752        .16714E-07    .24886E-03
   6  norm          .38727        1.8370       -.11572E-05   -.52670E-03
   7  norm          .10000E-03    3.0165        .22198E-07** at limit **
   8  norm          .10000E-03    3.8107       -.13745E-06** at limit **
   9  norm          3.9529        3.2255        .95523E-07    .17137E-03
  10  norm          .51957        .16946       -.35531E-06    .12351E-01
  11  Prefactor     13.796        18.009        .95098E-05   -.55581E-03
  12  Prefactor     .10000E-03    22.551        .64167E-06** at limit **
  13  Prefactor     .10000E-03    1.1284        .36669E-07** at limit **
  14  Prefactor     52.072        38.218       -.28799E-04   -.15687E-04
  15  Prefactor     100.43        93.552        .19456E-04   -.13355E-05
  16  Prefactor     .10000E-03    1.9575        .19900E-06** at limit **
  17  norm          .10000E-03    2.9140        .76012E-06** at limit **
  18  Normalizat    1.0990        .24418        .35593E-05    .58006E-04
  19  Prefactor     1.0113        .10383       -.71184E-06    .40205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.00998
  norm       = 0.438047
  norm       = 0.387274
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.95294
  norm       = 0.519568
  Prefactor  = 13.7957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.072
  Prefactor  = 100.429
  Prefactor  = 0.0001
  norm       = 0.000100002
  Normalizat = 1.09904
  Prefactor  = 1.01125
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.557     FROM HESSE     STATUS=OK           262 CALLS     2157 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.3216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0100        79.195        .28891E-03   -1.5424    
   5  norm          .43805        .25329        .32257E-04   -1.5576    
   6  norm          .38727        3.6372        .21926E-02   -1.5584    
   7  norm          .10000E-03    3.0199        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9206        .33590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9529        3.2155        .13782E-03   -1.5310    
  10  norm          .51957        .18841        .13802E-04   -1.5564    
  11  Prefactor     13.796        19.947        .10765E-03   -1.4965    
  12  Prefactor     .10000E-03    22.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1306        .91522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.072        38.526        .55556E-04   -1.4263    
  15  Prefactor     100.43        93.953        .40121E-04   -1.3700    
  16  Prefactor     .10000E-03    1.9718        .12053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9493        .14713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0990        .27925        .38623E-03   -.89783    
  19  Prefactor     1.0113        .12074        .17763E-03   -.92355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35727e-09
Minuit parameter uncertainties:
  1  1.81444e-05
  2  3.62098e-06
  3  4.3881e-06
  4  25.2687
  5  0.253291
  6  2.37355
  7  4.50841e-07
  8  2.40889e-05
  9  3.2156
  10  0.188414
  11  19.9564
  12  2.02997e-05
  13  4.43879e-06
  14  38.5444
  15  94.0923
  16  2.85023e-05
  17  0.000133701
  18  0.279626
  19  0.120771
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.953e+00  3.216e+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:  1.011e+00  1.208e-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.099e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.20
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.73e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.39e-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) = 7784.36717899
delta logL = 0.190096998019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7784.36683143
delta logL = 0.190444552509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9530       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5574       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0100       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=   7784.367     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9557        4.3309        .50721E-02   -.70263E-05
   2  alpha         1.5564        .72112        .45645       -.15472E-04
   3  Normalizat    1.1068        .22921        .86950E-01    .20027E-04
   4  Prefactor     1.0102        .10188        .43334E-01   -.71390E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.95568
  alpha      = 1.55643
  Normalizat = 1.10678
  Prefactor  = 1.01017
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.367     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9557        3.3946        .14200E-03   -1.5310    
   2  alpha         1.5564        .64144        .20581E-01   -.38702    
   3  Normalizat    1.1068        .26207        .38504E-03   -.89535    
   4  Prefactor     1.0102        .11717        .17772E-03   -.92391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04032e-10
Minuit parameter uncertainties:
  1  3.39481
  2  0.649944
  3  0.262376
  4  0.117199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223935': 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) = 7784.36682762
delta logL = 0.190448362599

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  3.956e+00  3.395e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.556e+00  6.499e-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:  1.010e+00  1.172e-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.107e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.56 +/- 0.65
Photon Flux (Free Index): 1.86e-08 +/- 1.98e-08
Energy Flux (Free Index): 2.43e-05 +/- 2.57e-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/223935/cmap_HighResolution_424656001_424915201_4FGL_J1512.2+0202_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.73e-08', energy_flux2='2.43e-05', photon_flux_error='2.22e-08', dlogl='1.90e-01', energy_flux='1.71e-05', photon_flux2='1.86e-08', job_status='DONE', time_completed='2021-09-11 09:53:57.870471', photon_index_error2='0.65', photon_index2='1.56', ts='4.20', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='1.10', time_epoch_completed='1631379237.87', return_code='0', job_id='223935', GAL2='1.01', EG2='1.11', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='1.98e-08', ts2='4.58', photon_index='1.97' WHERE bin_id='715' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:53:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 223935: <4FGL_J1512.2+0202_daily_bin715> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin715 228.07 2.0403 424656001 424915201 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 :                                   543.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            774 sec.

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

