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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin505
RA = 228.07, Dec = 2.0403
tmin = 370224001, tmax = 370483201
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='222500', job_status='RUN', time_executed='2021-09-11 09:40:28.457946', time_epoch_executed='1631378428.46' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222500/ft1_4FGL_J1512.2+0202_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222500/ft1_4FGL_J1512.2+0202_daily_bin505.fits outfile=/scratch/kocevski/222500/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin505.fits ra=228.07 dec=2.0403 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.18
user 15.57
sys 0.56

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222500/ft1_filtered_4FGL_J1512.2+0202_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/222500/ltcube_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.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/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits
.....................!
real 10.44
user 10.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222500/ft1_filtered_4FGL_J1512.2+0202_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/222500/ltcube_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.fits outfile=/scratch/kocevski/222500/expmap_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.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/222500/ltcube_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.fits
.....................!
real 194.26
user 187.35
sys 5.38

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/222500/ft1_filtered_4FGL_J1512.2+0202_daily_bin505.fits scfile=/scratch/kocevski/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits outfile=/scratch/kocevski/222500/cmap_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222500/ft1_filtered_4FGL_J1512.2+0202_daily_bin505.fits scfile=/scratch/kocevski/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits outfile=/scratch/kocevski/222500/cmap_HighResolution_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.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.58
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222500/ft1_filtered_4FGL_J1512.2+0202_daily_bin505.fits', '/scratch/kocevski/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits', expMap='/scratch/kocevski/222500/expmap_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.fits', expCube='/scratch/kocevski/222500/ltcube_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222500/Model_4FGL_J1512.2+0202_daily_bin505.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/222500/ft1_filtered_4FGL_J1512.2+0202_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/222500/ft2_4FGL_J1512.2+0202_daily_bin505.fits
Exposure map: /scratch/kocevski/222500/expmap_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.fits
Exposure cube: /scratch/kocevski/222500/ltcube_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222500/Model_4FGL_J1512.2+0202_daily_bin505.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 108.192556678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 106.194106684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4805       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8084       1.0000         .10000E-03   10000.    
     3 'norm      '    3.5273       1.0000         .10000E-03   10000.    
     4 'Prefactor '    146.55       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .52921E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .81272E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0240       1.0000         .10000E-03   10000.    
     9 'norm      '    .47629E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94799       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .87823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7523       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2414       1.0000         .10000E-03   10000.    
    17 'norm      '    .14008E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .61993       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   106.1778     FROM MIGRAD    STATUS=CONVERGED    202 CALLS      431 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    343.98        .64894E-02** at limit **
   2  Prefactor     22.142        318.42        .33763E-02    .20715E-02
   3  norm          .13821E-03    312.54        .53810E-02** at limit **
   4  Prefactor     145.41        118.57        .83219E-03    .28597E-01
   5  norm          .10000E-03    .82067        .42312E-02** at limit **
   6  norm          .10000E-03    18.808        .10565E-01** at limit **
   7  norm          .10000E-03    25.126        .10446E-01** at limit **
   8  norm          3.0240        1.0144         .0000         .0000    
   9  norm          .10000E-03    .23205        .30977E-06** at limit **
  10  norm          1.1082        1.1822         .0000         .0000    
  11  Prefactor     3.2905        1.0120         .0000         .0000    
  12  Prefactor     .10000E-03    .42123       -.33471E-05** at limit **
  13  Prefactor     .10000E-03    .40502       -.34373E-06** at limit **
  14  Prefactor     .14576E-02    .90013E-01   -.21538E-04** at limit **
  15  Prefactor     9.7523        1.0013         .0000         .0000    
  16  Prefactor     .10000E-03    .25296       -.37816E-05** at limit **
  17  norm          .10000E-03    .26326       -.39232E-05** at limit **
  18  Normalizat    .10000E-01    .25744       -.26731E-05** at limit **
  19  Prefactor     .61542        .96511        .72401E-06   -.44868E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100486
  Prefactor  = 22.1418
  norm       = 0.00013821
  Prefactor  = 145.41
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.02405
  norm       = 0.0001
  norm       = 1.10822
  Prefactor  = 3.2905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0014576
  Prefactor  = 9.7523
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.615425
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   106.1778     FROM HESSE     STATUS=FAILED        23 CALLS      454 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10049E-03    343.98        .64894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.142        318.42        .33763E-02   -1.4767    
   3  norm          .13821E-03    312.54        .53810E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     145.41        118.57        .83219E-03   -1.3290    
   5  norm          .10000E-03    .82067        .42312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.808        .10565E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    25.126        .10446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          554.04        550.93         .0000       -1.5360    
   9  norm          .10000E-03    .23205        .30977E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1082        1.1822         .0000       -1.5497    
  11  Prefactor     3.2905        1.0120         .0000       -1.5345    
  12  Prefactor     .10000E-03    .42123       -.33471E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .40502       -.34373E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14576E-02    .90013E-01   -.21538E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7523        1.0013         .0000       -1.5083    
  16  Prefactor     .10000E-03    .25296       -.37816E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .26326       -.39232E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .25744       -.26731E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .61542        .96511        .72401E-06   -1.0694    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.39475e-10
Minuit parameter uncertainties:
  1  0.0260129
  2  169.028
  3  0.219716
  4  118.763
  5  2.22321e-06
  6  2.5287e-05
  7  5.25592e-05
  8  1.01437
  9  7.36335e-07
  10  1.18227
  11  1.01204
  12  2.24531e-05
  13  1.5476e-05
  14  0.022109
  15  1.00132
  16  4.43183e-05
  17  3.42555e-05
  18  9.82789e-07
  19  0.993137
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 106.177835321

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  7.363e-07  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:  6.154e-01  9.931e-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.000e-02  9.828e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 2.73e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222500/likelihoodResults_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.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): 102
logL (Free Index) = 106.177905945
delta logL = -7.06241686572e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 106.177840036
delta logL = -4.71522925238e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1006       1.0000          .0000       5.0000    
     3 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61559       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   106.1778     FROM MIGRAD    STATUS=FAILED       108 CALLS      288 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7929.4        .50435E-02** at limit **
   2  alpha         1.4953        2.7587        .17105        .11591E-07
   3  Normalizat    .10000E-01    .23012        .57779E-02** at limit **
   4  Prefactor     .61542        .16233        .13461E-03   -.14910E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   106.1778     FROM SIMPLEX   STATUS=UNCHANGED    188 CALLS      476 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7929.4        .10210E-02** at limit **
   2  alpha         1.4953        2.7587        .10057E-06    .11591E-07
   3  Normalizat    .10000E-01    .23012        .40902E-02** at limit **
   4  Prefactor     .61542        .16233        .20643E-08   -.14910E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   106.1778     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      504 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    74.145        .86941E-03** at limit **
   2  alpha         1.4868        3.1469        .68420E-02   -.26741E-08
   3  Normalizat    .10000E-01    .87690        .11556E-02** at limit **
   4  Prefactor     .61542        .31973        .26921E-04   -.14888E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.48679
  Normalizat = 0.01
  Prefactor  = 0.615424
 **********
 **   18 **HESSE 
 **********

 FCN=   106.1778     FROM HESSE     STATUS=OK            23 CALLS      527 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    74.115        .17388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4868        3.2152        .13684E-02   -.41729    
   3  Normalizat    .10000E-01    .87690        .23112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61542        .31973        .53843E-05   -1.0694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77007e-12
Minuit parameter uncertainties:
  1  0.000200567
  2  1166.29
  3  6.77773e-07
  4  0.320677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222500': 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) = 106.177835237
delta logL = 8.36386107039e-08

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  2.006e-04  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.487e+00  1.166e+03  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:  6.154e-01  3.207e-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.000e-02  6.778e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 228.070 2.040

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/222500/cmap_HighResolution_370224001_370483201_4FGL_J1512.2+0202_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-03', job_status='DONE', photon_flux_upper_limit='2.73e-06', time_completed='2021-09-11 09:46:49.266890', job_id='222500', GAL2='0.62', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631378809.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.62', dlogl='8.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='505' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:46:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 222500: <4FGL_J1512.2+0202_daily_bin505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin505 228.07 2.0403 370224001 370483201 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 :                                   371.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             200.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            619 sec.

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

