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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1286
RA = 228.07, Dec = 2.0403
tmin = 572659201, tmax = 572918401
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='227224', job_status='RUN', time_executed='2021-09-11 09:51:42.324473', time_epoch_executed='1631379102.32' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227224/ft1_4FGL_J1512.2+0202_daily_bin1286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227224/ft2_4FGL_J1512.2+0202_daily_bin1286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227224/ft1_4FGL_J1512.2+0202_daily_bin1286.fits outfile=/scratch/kocevski/227224/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1286.fits ra=228.07 dec=2.0403 rad=12.0 tmin=572659201.0 tmax=572918401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.65
user 3.40
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227224/ft1_filtered_4FGL_J1512.2+0202_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/227224/ft2_4FGL_J1512.2+0202_daily_bin1286.fits sctable="SC_DATA" expcube=/scratch/kocevski/227224/ltcube_572659201_572918401_4FGL_J1512.2+0202_daily_bin1286.fits outfile=/scratch/kocevski/227224/expmap_572659201_572918401_4FGL_J1512.2+0202_daily_bin1286.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/227224/ltcube_572659201_572918401_4FGL_J1512.2+0202_daily_bin1286.fits
.....................!
real 190.83
user 184.78
sys 5.53

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/227224/ft1_filtered_4FGL_J1512.2+0202_daily_bin1286.fits scfile=/scratch/kocevski/227224/ft2_4FGL_J1512.2+0202_daily_bin1286.fits outfile=/scratch/kocevski/227224/cmap_572659201_572918401_4FGL_J1512.2+0202_daily_bin1286.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.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227224/ft1_filtered_4FGL_J1512.2+0202_daily_bin1286.fits scfile=/scratch/kocevski/227224/ft2_4FGL_J1512.2+0202_daily_bin1286.fits outfile=/scratch/kocevski/227224/cmap_HighResolution_572659201_572918401_4FGL_J1512.2+0202_daily_bin1286.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.277       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.471       1.0000         .10000E-03   10000.    
     5 'norm      '    .54514       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9876       1.0000         .10000E-03   10000.    
     7 'norm      '    .17139E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6214       1.0000         .10000E-03   10000.    
     9 'norm      '    6.1266       1.0000         .10000E-03   10000.    
    10 'norm      '    .74132       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.189       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2888       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8057       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55326E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .30616E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2752       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95893       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=   11904.14     FROM MIGRAD    STATUS=FAILED       720 CALLS     2328 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.292        33.017        .70529E-04    .30111E-04
   2  Prefactor     .10000E-03    52.407        .36285E-03** at limit **
   3  norm          2.6700        9.7604        .24786E-03    .21557E-04
   4  Prefactor     10.463        11.196        .12382E-03   -.67576E-04
   5  norm          .54516        .16742        .23764E-04   -.19997E-03
   6  norm          2.9876        1.9311        .11523E-03   -.12866E-03
   7  norm          .10000E-03    6.4971        .30683E-02** at limit **
   8  norm          3.6222        3.2682        .17992E-03   -.91622E-04
   9  norm          6.1261        3.1732        .13489E-03   -.46353E-04
  10  norm          .74118        .12948        .13319E-04    .35849E-03
  11  Prefactor     6.6845        9.7562        .15538E-03   -.16097E-04
  12  Prefactor     48.180        33.933        .57764E-04   -.41567E-04
  13  Prefactor     1.2886        3.1057        .28413E-03   -.26472E-03
  14  Prefactor     .75653        168.73        .78412E-02    .10703E-02
  15  Prefactor     6.7653        83.081        .15380E-03   -.30307E-04
  16  Prefactor     .10027E-03    3.1723        .40913E-01** at limit **
  17  norm          .47650E-01    3.4182        .48591E-01    .81557E-03
  18  Normalizat    1.2751        .22392        .35960E-03   -.18868E-03
  19  Prefactor     .95897        .10093        .18623E-03   -.22109E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11904.14     FROM SIMPLEX   STATUS=UNCHANGED    867 CALLS     3195 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.292        33.017        .97636E-06   -1.4571    
   2  Prefactor     .10000E-03    52.407        .16494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6700        9.7604        .13706E-06   -1.5381    
   4  Prefactor     10.463        11.196        .10566E-06   -1.5061    
   5  norm          .54516        .16742        .11046E-06   -1.5560    
   6  norm          2.9876        1.9311        .11171E-06   -1.5362    
   7  norm          .10000E-03    6.4971        .46502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6222        3.2682        .11000E-06   -1.5327    
   9  norm          6.1261        3.1732        .11170E-06   -1.5213    
  10  norm          .74118        .12948        .11107E-06   -1.5536    
  11  Prefactor     6.6845        9.7562        .16208E-06   -1.5191    
  12  Prefactor     48.180        33.933        .22256E-06   -1.4319    
  13  Prefactor     1.2886        3.1057        .21398E-06   -1.5481    
  14  Prefactor     .75653        168.73        .10090E-04   -1.5534    
  15  Prefactor     6.7653        83.081        .23011E-05   -1.5188    
  16  Prefactor     .10027E-03    3.1723        .17476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .47650E-01    3.4182        .27277E-06   -1.5664    
  18  Normalizat    1.2751        .22392        .11180E-06   -.84312    
  19  Prefactor     .95897        .10093        .69651E-07   -.94110    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11904.14     FROM MIGRAD    STATUS=CONVERGED    274 CALLS     3469 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.292        33.016        .14106E-04   -.19021E-04
   2  Prefactor     .10000E-03    52.408        .72569E-04** at limit **
   3  norm          2.6700        9.7594        .99145E-05   -.13760E-04
   4  Prefactor     10.463        11.196        .49528E-05    .42235E-04
   5  norm          .54516        .16741        .95058E-06    .12993E-03
   6  norm          2.9876        1.9309        .46090E-05    .74985E-04
   7  norm          .10000E-03    6.5794        .61366E-03** at limit **
   8  norm          3.6222        3.2679        .71968E-05    .56237E-04
   9  norm          6.1261        3.1731        .53958E-05    .23598E-04
  10  norm          .74117        .12945        .53277E-06   -.26273E-03
  11  Prefactor     6.6845        9.7543        .62151E-05    .87802E-05
  12  Prefactor     48.180        33.932        .11553E-04    .23224E-04
  13  Prefactor     1.2886        3.1050        .11365E-04    .11123E-03
  14  Prefactor     .75727        168.42        .15682E-02    .65258E-04
  15  Prefactor     6.7657        83.007        .61520E-05    .18480E-04
  16  Prefactor     .10023E-03    2.4688        .48415E-01** at limit **
  17  norm          .47625E-01    3.1894        .49972E-01    .81641E-03
  18  Normalizat    1.2751        .22411        .14384E-04    .11097E-03
  19  Prefactor     .95897        .10093        .37246E-04    .11501E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2918
  Prefactor  = 0.0001
  norm       = 2.67
  Prefactor  = 10.4628
  norm       = 0.545156
  norm       = 2.98758
  norm       = 0.0001
  norm       = 3.6222
  norm       = 6.12614
  norm       = 0.741175
  Prefactor  = 6.6845
  Prefactor  = 48.1802
  Prefactor  = 1.28861
  Prefactor  = 0.75727
  Prefactor  = 6.76573
  Prefactor  = 0.000100228
  norm       = 0.0476247
  Normalizat = 1.27514
  Prefactor  = 0.958969
 **********
 **   18 **HESSE 
 **********

 FCN=   11904.14     FROM HESSE     STATUS=OK           268 CALLS     3737 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.292        33.034        .28212E-05   -1.4571    
   2  Prefactor     .10000E-03    52.416        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6700        9.7630        .19829E-05   -1.5381    
   4  Prefactor     10.463        11.193        .99056E-06   -1.5061    
   5  norm          .54516        .16743        .37099E-06   -1.5560    
   6  norm          2.9876        1.9315        .92181E-06   -1.5362    
   7  norm          .10000E-03    6.5828        .12273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6222        3.2687        .14394E-05   -1.5327    
   9  norm          6.1261        3.1733        .10792E-05   -1.5213    
  10  norm          .74117        .12945        .37040E-06   -1.5536    
  11  Prefactor     6.6845        9.7526        .12430E-05   -1.5191    
  12  Prefactor     48.180        33.933        .23106E-05   -1.4319    
  13  Prefactor     1.2886        3.1046        .22731E-05   -1.5481    
  14  Prefactor     .75727        167.17        .62730E-04   -1.5534    
  15  Prefactor     6.7657        82.482        .12304E-05   -1.5188    
  16  Prefactor     .10023E-03    2.6694        .45877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .47625E-01    3.2138        .49531E-01   -1.5664    
  18  Normalizat    1.2751        .22429        .28768E-05   -.84312    
  19  Prefactor     .95897        .10094        .74491E-05   -.94110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23832e-09
Minuit parameter uncertainties:
  1  33.0528
  2  9.94342e-05
  3  9.76884
  4  11.1954
  5  0.167428
  6  1.93152
  7  6.75455e-06
  8  3.26889
  9  3.17335
  10  0.129451
  11  9.75488
  12  33.9465
  13  3.10499
  14  22.565
  15  47.3272
  16  0.00155868
  17  0.78167
  18  0.22446
  19  0.100959
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  6.126e+00  3.173e+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.590e-01  1.010e-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.275e+00  2.245e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.03
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 1.37e-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) = 11903.7011617
delta logL = 0.434550415097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11903.6962996
delta logL = 0.439412523687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4241       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5964       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96909       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=   11903.70     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      313 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4239        3.3350        .10616E-03    .53140E-03
   2  alpha         2.5964        .64119        .14626E-01    .71027E-04
   3  Normalizat    1.2250        .22432        .36539E-03   -.28500E-04
   4  Prefactor     .96912        .99630E-01    .18524E-03   -.23523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.42386
  alpha      = 2.59636
  Normalizat = 1.22498
  Prefactor  = 0.969115
 **********
 **   18 **HESSE 
 **********

 FCN=   11903.70     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4239        3.0994        .42462E-05   -1.5242    
   2  alpha         2.5964        .59543        .58503E-03    .38553E-01
   3  Normalizat    1.2250        .22322        .14616E-04   -.85834    
   4  Prefactor     .96912        .99502E-01    .37047E-04   -.93766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17926e-10
Minuit parameter uncertainties:
  1  3.09948
  2  0.601215
  3  0.223392
  4  0.0995206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227224': 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) = 11903.6962995
delta logL = 0.439412680182

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  5.424e+00  3.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.596e+00  6.012e-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.691e-01  9.952e-02  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.225e+00  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.91
Ra Dec: 228.070 2.040
Photon Index (Free Index): 2.60 +/- 0.60
Photon Flux (Free Index): 8.92e-08 +/- 6.38e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.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/227224/cmap_HighResolution_572659201_572918401_4FGL_J1512.2+0202_daily_bin1286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='2.71e-05', photon_flux_error='2.20e-08', dlogl='4.39e-01', energy_flux='2.65e-05', photon_flux2='8.92e-08', job_status='DONE', time_completed='2021-09-11 10:06:22.733577', photon_index_error2='0.60', photon_index2='2.60', ts='12.03', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.28', time_epoch_completed='1631379982.73', return_code='0', job_id='227224', GAL2='0.97', EG2='1.22', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.38e-08', ts2='12.91', photon_index='1.97' WHERE bin_id='1286' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:06:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 227224: <4FGL_J1512.2+0202_daily_bin1286> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1286 228.07 2.0403 572659201 572918401 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 :                                   872.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

