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


Performing analysis on: 4FGL_J1512.2+0202_weekly_bin694
RA = 228.07, Dec = 2.0403
tmin = 658713601, tmax = 659318401
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='648898', job_status='RUN', time_executed='2021-12-08 18:36:15.638802', time_epoch_executed='1639017375.64' WHERE source_name='4FGL J1512.2+0202' and cadence='weekly' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648898

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648898/ft1_4FGL_J1512.2+0202_weekly_bin694.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648898/ft2_4FGL_J1512.2+0202_weekly_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648898/ft1_4FGL_J1512.2+0202_weekly_bin694.fits outfile=/scratch/kocevski/648898/ft1_filteredMKT_4FGL_J1512.2+0202_weekly_bin694.fits ra=228.07 dec=2.0403 rad=12.0 tmin=658713601.0 tmax=659318401.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 5.32
user 4.90
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648898/ft1_filtered_4FGL_J1512.2+0202_weekly_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/648898/ft2_4FGL_J1512.2+0202_weekly_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/648898/ltcube_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.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/648898/ft2_4FGL_J1512.2+0202_weekly_bin694.fits
.....................!
real 32.14
user 28.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648898/ft1_filtered_4FGL_J1512.2+0202_weekly_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/648898/ft2_4FGL_J1512.2+0202_weekly_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/648898/ltcube_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.fits outfile=/scratch/kocevski/648898/expmap_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.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/648898/ltcube_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.fits
.....................!
real 174.06
user 153.72
sys 3.92

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/648898/ft1_filtered_4FGL_J1512.2+0202_weekly_bin694.fits scfile=/scratch/kocevski/648898/ft2_4FGL_J1512.2+0202_weekly_bin694.fits outfile=/scratch/kocevski/648898/cmap_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.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.70
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648898/ft1_filtered_4FGL_J1512.2+0202_weekly_bin694.fits scfile=/scratch/kocevski/648898/ft2_4FGL_J1512.2+0202_weekly_bin694.fits outfile=/scratch/kocevski/648898/cmap_HighResolution_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.525       1.0000         .10000E-03   10000.    
     3 'norm      '    29.027       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.137       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4549       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.1815       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.314       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6973       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2948       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .67728       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1381       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=   7918.325     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1923 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.107       -.79028E-06** at limit **
   2  Prefactor     15.528        57.738       -.73047E-05   -.12128E-04
   3  norm          29.037        36.839        .22754E-06   -.23840E-04
   4  Prefactor     33.134        21.387       -.71547E-06   -.13490E-04
   5  norm          .10000E-03    .29476E-01    .87340E-08** at limit **
   6  norm          3.4546        3.7407       -.10896E-06   -.81581E-03
   7  norm          .10000E-03    2.2683       -.15088E-08** at limit **
   8  norm          .10000E-03    7.1094       -.49908E-07** at limit **
   9  norm          6.1820        5.5876        .12116E-05   -.23666E-03
  10  norm          .10000E-03    .20785       -.33546E-10** at limit **
  11  Prefactor     .10000E-03    32.349        .15932E-05** at limit **
  12  Prefactor     18.298        40.301       -.20993E-04   -.34175E-04
  13  Prefactor     3.6937        7.8152        .11189E-04   -.27597E-03
  14  Prefactor     12.708        33.061        .22731E-05   -.62597E-05
  15  Prefactor     .10000E-03    93.051       -.39672E-05** at limit **
  16  Prefactor     .10000E-03    3.5539       -.15010E-06** at limit **
  17  norm          1.2943        3.9872       -.18710E-05   -.14846E-02
  18  Normalizat    .67724        .23233        .22899E-05   -.12501E-03
  19  Prefactor     1.1381        .11769       -.11616E-05    .82156E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.5276
  norm       = 29.0365
  Prefactor  = 33.1345
  norm       = 0.0001
  norm       = 3.45456
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.18202
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2985
  Prefactor  = 3.69372
  Prefactor  = 12.7081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29434
  Normalizat = 0.677241
  Prefactor  = 1.13807
 **********
 **   18 **HESSE 
 **********

 FCN=   7918.325     FROM HESSE     STATUS=OK           272 CALLS     2195 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.528        58.052        .10165E-03   -1.4920    
   3  norm          29.037        37.041        .74363E-04   -1.4630    
   4  Prefactor     33.134        21.434        .69610E-04   -1.4556    
   5  norm          .10000E-03    .31775E-01    .29540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4546        3.7104        .15860E-03   -1.5336    
   7  norm          .10000E-03    2.3037        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.1453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.1820        5.5659        .16147E-03   -1.5211    
  10  norm          .10000E-03    .20802        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.298        40.216        .93590E-04   -1.4852    
  13  Prefactor     3.6937        7.5856        .21003E-03   -1.5324    
  14  Prefactor     12.708        32.650        .11237E-03   -1.4995    
  15  Prefactor     .10000E-03    93.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5916        .16368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2943        4.0190        .28712E-03   -1.5480    
  18  Normalizat    .67724        .25656        .42858E-03   -1.0480    
  19  Prefactor     1.1381        .13279        .17488E-03   -.88259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46379e-09
Minuit parameter uncertainties:
  1  7.15899e-06
  2  58.2645
  3  37.0698
  4  21.4393
  5  1.66743e-07
  6  3.71062
  7  3.1816e-06
  8  7.11456e-07
  9  5.56638
  10  8.01183e-09
  11  1.03306e-06
  12  40.2754
  13  7.58761
  14  32.6956
  15  7.90579e-06
  16  3.32518e-05
  17  4.01981
  18  0.257017
  19  0.132828
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.182e+00  5.566e+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.138e+00  1.328e-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:  6.772e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 2.41e-05

TS (Fixed Index): 2.34
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648898/likelihoodResults_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.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) = 7918.29432686
delta logL = 0.031031781813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7918.29345628
delta logL = 0.0319023675083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3179       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1590       1.0000          .0000       5.0000    
     3 'Normalizat'    .67348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1372       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7918.293     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      236 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3180        5.2875        .15969E-03   -.26768E-03
   2  alpha         2.1589        .72414        .19228E-01   -.23455E-04
   3  Normalizat    .67346        .24311        .42960E-03    .22626E-04
   4  Prefactor     1.1373        .12753        .17491E-03    .87749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.31798
  alpha      = 2.15894
  Normalizat = 0.673456
  Prefactor  = 1.13726
 **********
 **   18 **HESSE 
 **********

 FCN=   7918.293     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3180        5.2634        .63877E-05   -1.5205    
   2  alpha         2.1589        .72073        .76914E-03   -.13685    
   3  Normalizat    .67346        .24314        .17184E-04   -1.0495    
   4  Prefactor     1.1373        .12760        .69962E-05   -.88284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02351e-10
Minuit parameter uncertainties:
  1  5.26376
  2  0.731312
  3  0.243533
  4  0.127637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648898': 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) = 7918.29345627
delta logL = 0.0319023746615

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.318e+00  5.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.159e+00  7.313e-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.137e+00  1.276e-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:  6.735e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.16 +/- 0.73
Photon Flux (Free Index): 5.52e-08 +/- 6.74e-08
Energy Flux (Free Index): 2.64e-05 +/- 2.20e-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/648898/cmap_HighResolution_658713601_659318401_4FGL_J1512.2+0202_weekly_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-05', comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='2.64e-05', photon_flux_error='3.85e-08', dlogl='3.19e-02', energy_flux='2.67e-05', photon_flux2='5.52e-08', job_status='DONE', time_completed='2021-12-08 18:45:41.433317', photon_index_error2='0.73', photon_index2='2.16', ts='2.34', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='2.20e-05', EG='0.68', time_epoch_completed='1639017941.43', return_code='0', job_id='648898', GAL2='1.14', EG2='0.67', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='6.74e-08', ts2='2.40', photon_index='1.97' WHERE bin_id='694' AND source_name='4FGL J1512.2+0202' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 18:45:41 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 648898: <4FGL_J1512.2+0202_weekly_bin694> in cluster <slac> Done

Job <4FGL_J1512.2+0202_weekly_bin694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Dec  8 18:30:33 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 18:33:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 18:33:16 2021
Terminated at Wed Dec  8 18:45:42 2021
Results reported at Wed Dec  8 18:45:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_weekly_bin694 228.07 2.0403 658713601 659318401 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            909 sec.

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

