/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 69 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 = 7409
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin326
RA = 228.07, Dec = 2.0403
tmin = 323827201, tmax = 324086401
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='222226', job_status='RUN', time_executed='2021-09-11 09:37:32.590128', time_epoch_executed='1631378252.59' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222226/ft1_4FGL_J1512.2+0202_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222226/ft2_4FGL_J1512.2+0202_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222226/ft1_4FGL_J1512.2+0202_daily_bin326.fits outfile=/scratch/kocevski/222226/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin326.fits ra=228.07 dec=2.0403 rad=12.0 tmin=323827201.0 tmax=324086401.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.46
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222226/ft1_filtered_4FGL_J1512.2+0202_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/222226/ft2_4FGL_J1512.2+0202_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/222226/ltcube_323827201_324086401_4FGL_J1512.2+0202_daily_bin326.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/222226/ft2_4FGL_J1512.2+0202_daily_bin326.fits
.....................!
real 12.06
user 11.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222226/ft1_filtered_4FGL_J1512.2+0202_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/222226/ft2_4FGL_J1512.2+0202_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/222226/ltcube_323827201_324086401_4FGL_J1512.2+0202_daily_bin326.fits outfile=/scratch/kocevski/222226/expmap_323827201_324086401_4FGL_J1512.2+0202_daily_bin326.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/222226/ltcube_323827201_324086401_4FGL_J1512.2+0202_daily_bin326.fits
.....................!
real 193.66
user 187.43
sys 5.68

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.850       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5851       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4007       1.0000         .10000E-03   10000.    
     6 'norm      '    .16116       1.0000         .10000E-03   10000.    
     7 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3349       1.0000         .10000E-03   10000.    
    10 'norm      '    .68885       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65126E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3705       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.542       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.808       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1647       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3853       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81363       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=   9013.016     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2103 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.385        .33295E-06** at limit **
   2  Prefactor     30.092        55.676       -.49740E-05   -.62856E-04
   3  norm          1.5185        196.01        .11595E-04   -.14945E-04
   4  Prefactor     5.5869        21.376        .20303E-05    .10851E-04
   5  norm          1.4007        .27692       -.26473E-08   -.23900E-03
   6  norm          .15168        .88028        .26162E-07   -.41649E-03
   7  norm          .10000E-03    8.5525       -.12543E-06** at limit **
   8  norm          .10000E-03    1.5718       -.37495E-08** at limit **
   9  norm          1.3352        3.1525        .26234E-06   -.55222E-03
  10  norm          .68881        .12787        .89904E-09    .13611E-03
  11  Prefactor     .10000E-03    9.1040       -.90137E-07** at limit **
  12  Prefactor     .10000E-03    219.88        .75145E-05** at limit **
  13  Prefactor     4.3695        4.2569        .87454E-07   -.23333E-03
  14  Prefactor     45.520        26.764       -.12997E-05   -.11600E-03
  15  Prefactor     11.809        48.731       -.11653E-06   -.22780E-05
  16  Prefactor     2.1650        4.0373        .40595E-06   -.49027E-03
  17  norm          .10000E-03    1.4076        .62875E-07** at limit **
  18  Normalizat    1.3855        .22172       -.54838E-06   -.80185E-04
  19  Prefactor     .81363        .93185E-01    .98617E-07   -.19251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.0922
  norm       = 1.51847
  Prefactor  = 5.58687
  norm       = 1.4007
  norm       = 0.151678
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.33517
  norm       = 0.688814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36946
  Prefactor  = 45.5201
  Prefactor  = 11.809
  Prefactor  = 2.16499
  norm       = 0.0001
  Normalizat = 1.38547
  Prefactor  = 0.813625
 **********
 **   18 **HESSE 
 **********

 FCN=   9013.016     FROM HESSE     STATUS=OK           274 CALLS     2377 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.092        53.883        .73332E-04   -1.4610    
   3  norm          1.5185        188.29        .32525E-03   -1.5462    
   4  Prefactor     5.5869        21.247        .16999E-03   -1.5235    
   5  norm          1.4007        .27791        .20944E-04   -1.5471    
   6  norm          .15168        3.9022        .16661E-02   -1.5630    
   7  norm          .10000E-03    8.9199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3670        .23099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3352        3.1670        .25065E-03   -1.5477    
  10  norm          .68881        .12742        .14041E-04   -1.5542    
  11  Prefactor     .10000E-03    9.1529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    226.54        .42040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3695        4.2458        .18243E-03   -1.5290    
  14  Prefactor     45.520        26.794        .59412E-04   -1.4358    
  15  Prefactor     11.809        48.955        .11658E-03   -1.5021    
  16  Prefactor     2.1650        4.0407        .24502E-03   -1.5414    
  17  norm          .10000E-03    2.6879        .21833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3855        .25813        .34685E-03   -.81050    
  19  Prefactor     .81363        .10870        .19060E-03   -.99228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86533e-10
Minuit parameter uncertainties:
  1  2.25161e-05
  2  53.9701
  3  33.9267
  4  21.2753
  5  0.277909
  6  1.53828
  7  2.64013e-06
  8  7.41735e-06
  9  3.16735
  10  0.127423
  11  5.19899e-07
  12  0.000531127
  13  4.24608
  14  26.8011
  15  48.1555
  16  4.04118
  17  1.75073e-05
  18  0.258377
  19  0.108731
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.335e+00  3.167e+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:  8.136e-01  1.087e-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.385e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 228.070 2.040
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222226/likelihoodResults_323827201_324086401_4FGL_J1512.2+0202_daily_bin326.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) = 9012.9628962
delta logL = 0.0530900933009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9012.96085272
delta logL = 0.0551335762211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5055       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4004       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81408       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=   9012.961     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5062        113.86        .87201E-02    .13230E-02
   2  alpha         2.4011        2.5251        .41193        .47979E-04
   3  Normalizat    1.3781        .61982E-01    .78543E-01    .31655E-03
   4  Prefactor     .81406        .26896E-01    .43900E-01    .62587E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50617
  alpha      = 2.40114
  Normalizat = 1.37805
  Prefactor  = 0.81406
 **********
 **   18 **HESSE 
 **********

 FCN=   9012.961     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5062        3.1326        .21027E-03   -1.5463    
   2  alpha         2.4011        1.1906        .29910E-01   -.39556E-01
   3  Normalizat    1.3781        .24508        .34763E-03   -.81266    
   4  Prefactor     .81406        .10669        .19054E-03   -.99212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23061e-09
Minuit parameter uncertainties:
  1  3.13289
  2  1.24103
  3  0.245288
  4  0.10672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222226': 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) = 9012.96085235
delta logL = 0.0551339457397

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.506e+00  3.133e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.401e+00  1.241e+00  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:  8.141e-01  1.067e-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.378e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 228.070 2.040

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/222226/cmap_HighResolution_323827201_324086401_4FGL_J1512.2+0202_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-05', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-11 09:48:51.426465', job_id='222226', GAL2='0.81', fit_tolerance='1e-08', EG2='1.38', EG='1.39', time_epoch_completed='1631378931.43', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='5.51e-02', ts2='0.34', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='326' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:48:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 222226: <4FGL_J1512.2+0202_daily_bin326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin326 228.07 2.0403 323827201 324086401 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 :                                   659.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

