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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin252
RA = 228.07, Dec = 2.0403
tmin = 304646401, tmax = 304905601
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='222112', job_status='RUN', time_executed='2021-09-11 09:37:07.408166', time_epoch_executed='1631378227.41' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222112/ft1_4FGL_J1512.2+0202_daily_bin252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222112/ft2_4FGL_J1512.2+0202_daily_bin252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222112/ft1_4FGL_J1512.2+0202_daily_bin252.fits outfile=/scratch/kocevski/222112/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin252.fits ra=228.07 dec=2.0403 rad=12.0 tmin=304646401.0 tmax=304905601.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.67
user 3.22
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222112/ft1_filtered_4FGL_J1512.2+0202_daily_bin252.fits" evtable="EVENTS" scfile=/scratch/kocevski/222112/ft2_4FGL_J1512.2+0202_daily_bin252.fits sctable="SC_DATA" outfile=/scratch/kocevski/222112/ltcube_304646401_304905601_4FGL_J1512.2+0202_daily_bin252.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/222112/ft2_4FGL_J1512.2+0202_daily_bin252.fits
.....................!
real 11.86
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222112/ft1_filtered_4FGL_J1512.2+0202_daily_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/222112/ft2_4FGL_J1512.2+0202_daily_bin252.fits sctable="SC_DATA" expcube=/scratch/kocevski/222112/ltcube_304646401_304905601_4FGL_J1512.2+0202_daily_bin252.fits outfile=/scratch/kocevski/222112/expmap_304646401_304905601_4FGL_J1512.2+0202_daily_bin252.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/222112/ltcube_304646401_304905601_4FGL_J1512.2+0202_daily_bin252.fits
.....................!
real 189.31
user 184.76
sys 4.05

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222112/ft1_filtered_4FGL_J1512.2+0202_daily_bin252.fits scfile=/scratch/kocevski/222112/ft2_4FGL_J1512.2+0202_daily_bin252.fits outfile=/scratch/kocevski/222112/cmap_HighResolution_304646401_304905601_4FGL_J1512.2+0202_daily_bin252.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.9619       1.0000         .10000E-03   10000.    
     3 'norm      '    .15085E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .76155       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1848       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0563       1.0000         .10000E-03   10000.    
    10 'norm      '    .95623       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21219E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1143       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5850       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0404       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98868       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8150.420     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     1629 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.721        1.0270       -.17295E-06    .77628E-03
   2  Prefactor     4.9248        5.4777       -.13480E-04    .34323E-02
   3  norm          .10000E-03    12.497        .34468E-05** at limit **
   4  Prefactor     .10040E-03    15.559       -.34498E-04** at limit **
   5  norm          .76151        .21478       -.98430E-08    .30854E-03
   6  norm          .10000E-03    .60029       -.12681E-06** at limit **
   7  norm          .10000E-03    3.2490        .13339E-05** at limit **
   8  norm          4.1850        3.7111        .32111E-05    .35058E-03
   9  norm          4.0563        3.3194       -.75548E-06   -.50128E-04
  10  norm          .95634        .16312        .48363E-07    .13911E-02
  11  Prefactor     14.207        1.1417        .58809E-06   -.31179E-03
  12  Prefactor     .10055E-03    16.619        .35534E-04** at limit **
  13  Prefactor     .10000E-03    5.4999       -.11809E-05** at limit **
  14  Prefactor     .10425E-03    20.782        .45268E-04** at limit **
  15  Prefactor     .10017E-03    58.299       -.23438E-04** at limit **
  16  Prefactor     1.1175        3.2351        .21820E-06   -.74727E-04
  17  norm          3.5842        2.8312       -.15672E-06   -.34607E-04
  18  Normalizat    1.0406        .24655        .27394E-05   -.33088E-04
  19  Prefactor     .98857        .11470       -.14895E-05   -.13281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.7213
  Prefactor  = 4.9248
  norm       = 0.000100003
  Prefactor  = 0.000100397
  norm       = 0.761506
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.18496
  norm       = 4.05633
  norm       = 0.956339
  Prefactor  = 14.2072
  Prefactor  = 0.000100551
  Prefactor  = 0.0001
  Prefactor  = 0.000104247
  Prefactor  = 0.000100169
  Prefactor  = 1.11755
  norm       = 3.58425
  Normalizat = 1.04057
  Prefactor  = 0.988565
 **********
 **   18 **HESSE 
 **********

 FCN=   8150.420     FROM HESSE     STATUS=OK           318 CALLS     1947 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.721        87.272        .12018E-02   -1.4036    
   2  Prefactor     4.9248        28.113        .45136E-02   -1.5264    
   3  norm          .10000E-03    12.516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10040E-03    17.484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .76151        .21513        .47719E-02   -1.5533    
   6  norm          .10000E-03    .59212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.2321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1850        3.7143        .49252E-02   -1.5299    
   9  norm          4.0563        3.3199        .50050E-02   -1.5305    
  10  norm          .95634        .19077        .32617E-02   -1.5512    
  11  Prefactor     14.207        15.109        .26560E-02   -1.4954    
  12  Prefactor     .10055E-03    19.371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4637        .44380E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10425E-03    10.112        .14777       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10017E-03    66.983        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1175        3.2779        .11162E-01   -1.5497    
  17  norm          3.5842        2.8418        .53357E-02   -1.5329    
  18  Normalizat    1.0406        .22186        .84697E-01   -.91683    
  19  Prefactor     .98857        .99283E-01    .46125E-01   -.93112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04876e-07
Minuit parameter uncertainties:
  1  87.4332
  2  23.5496
  3  0.000364704
  4  0.00527172
  5  0.215128
  6  3.00068e-06
  7  2.3716e-05
  8  3.71451
  9  3.32002
  10  0.190775
  11  15.113
  12  0.00653817
  13  1.05188e-05
  14  0.0131091
  15  0.00673154
  16  3.27844
  17  2.84194
  18  0.222054
  19  0.0993013
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.056e+00  3.320e+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.886e-01  9.930e-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.041e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.21
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.44e-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) = 8150.418872
delta logL = 0.000715791613402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8150.41880015
delta logL = 0.000787641604802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0234       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9333       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98849       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=   8150.419     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0173        123.19        .50261E-02    .20269E-04
   2  alpha         1.9315        3.5798        .42574        .12450E-04
   3  Normalizat    1.0417        .19746        .84659E-01    .38011E-04
   4  Prefactor     .98853        .55128E-01    .46123E-01    .22005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0173
  alpha      = 1.93149
  Normalizat = 1.04167
  Prefactor  = 0.988525
 **********
 **   18 **HESSE 
 **********

 FCN=   8150.419     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0173        3.4510        .14541E-03   -1.5307    
   2  alpha         1.9315        .90350        .23285E-01   -.22941    
   3  Normalizat    1.0417        .24327        .37485E-03   -.91647    
   4  Prefactor     .98853        .11335        .17857E-03   -.93113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09119e-12
Minuit parameter uncertainties:
  1  3.45113
  2  0.925642
  3  0.243535
  4  0.113377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222112': 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) = 8150.41879622
delta logL = 0.000791576095253

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.017e+00  3.451e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.931e+00  9.256e-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.885e-01  1.134e-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.042e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.93 +/- 0.93
Photon Flux (Free Index): 2.66e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.50e-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/222112/cmap_HighResolution_304646401_304905601_4FGL_J1512.2+0202_daily_bin252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='1.76e-05', photon_flux_error='2.30e-08', dlogl='7.92e-04', energy_flux='1.75e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-09-11 09:46:28.583301', photon_index_error2='0.93', photon_index2='1.93', ts='6.21', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.04', time_epoch_completed='1631378788.58', return_code='0', job_id='222112', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='4.02e-08', ts2='6.21', photon_index='1.97' WHERE bin_id='252' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:46:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 222112: <4FGL_J1512.2+0202_daily_bin252> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin252 228.07 2.0403 304646401 304905601 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 :                                   530.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            625 sec.

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

