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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1020
RA = 228.07, Dec = 2.0403
tmin = 503712001, tmax = 503971201
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='225596', job_status='RUN', time_executed='2021-09-11 09:49:34.626724', time_epoch_executed='1631378974.63' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225596/ft1_4FGL_J1512.2+0202_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225596/ft2_4FGL_J1512.2+0202_daily_bin1020.fits


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

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

Done.
real 5.53
user 5.29
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225596/ft1_filtered_4FGL_J1512.2+0202_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/225596/ft2_4FGL_J1512.2+0202_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/225596/ltcube_503712001_503971201_4FGL_J1512.2+0202_daily_bin1020.fits outfile=/scratch/kocevski/225596/expmap_503712001_503971201_4FGL_J1512.2+0202_daily_bin1020.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/225596/ltcube_503712001_503971201_4FGL_J1512.2+0202_daily_bin1020.fits
.....................!
real 191.50
user 186.53
sys 4.65

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/225596/ft1_filtered_4FGL_J1512.2+0202_daily_bin1020.fits scfile=/scratch/kocevski/225596/ft2_4FGL_J1512.2+0202_daily_bin1020.fits outfile=/scratch/kocevski/225596/cmap_503712001_503971201_4FGL_J1512.2+0202_daily_bin1020.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225596/ft1_filtered_4FGL_J1512.2+0202_daily_bin1020.fits scfile=/scratch/kocevski/225596/ft2_4FGL_J1512.2+0202_daily_bin1020.fits outfile=/scratch/kocevski/225596/cmap_HighResolution_503712001_503971201_4FGL_J1512.2+0202_daily_bin1020.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24191E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.005       1.0000         .10000E-03   10000.    
     5 'norm      '    .83785       1.0000         .10000E-03   10000.    
     6 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .76191       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6377       1.0000         .10000E-03   10000.    
    10 'norm      '    .36749       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.261       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19835E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6028       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0232       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94546       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=   6732.019     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     2208 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    53.527        .18336    ** at limit **
   2  Prefactor     .10000E-03    12.237        .18142E-02** at limit **
   3  norm          .10000E-03    6.9447        .18142E-02** at limit **
   4  Prefactor     21.970        31.595        .85386E-04   -.44071E-04
   5  norm          .83799        .25521        .21680E-04   -.11243E-02
   6  norm          .10000E-03    2.5951        .17023E-02** at limit **
   7  norm          .10000E-03    2.6532        .13047E-02** at limit **
   8  norm          .76353        6.5872        .28252E-02    .63080E-03
   9  norm          4.6380        3.6366        .13446E-03   -.86409E-04
  10  norm          .36751        .10444        .13369E-04   -.34015E-05
  11  Prefactor     .10000E-03    6.9626        .18142E-02** at limit **
  12  Prefactor     50.215        37.268        .28283E-03   -.35131E-04
  13  Prefactor     1.9661        4.3847        .24278E-03   -.66074E-04
  14  Prefactor     .10000E-03    25.288        .18142E-02** at limit **
  15  Prefactor     .10000E-03    119.43        .18142E-02** at limit **
  16  Prefactor     4.6019        4.1481        .15185E-03   -.16568E-03
  17  norm          .10000E-03    1.2618        .89886E-03** at limit **
  18  Normalizat    1.0229        .26783        .35693E-03   -.15958E-03
  19  Prefactor     .94551        .11906        .17062E-03   -.62960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.9696
  norm       = 0.837986
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.763531
  norm       = 4.63797
  norm       = 0.367512
  Prefactor  = 0.0001
  Prefactor  = 50.215
  Prefactor  = 1.96611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.60187
  norm       = 0.0001
  Normalizat = 1.02293
  Prefactor  = 0.945506
 **********
 **   18 **HESSE 
 **********

 FCN=   6732.019     FROM HESSE     STATUS=OK           260 CALLS     2468 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    54.917        .17966       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.9449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.970        31.582        .34155E-05   -1.4770    
   5  norm          .83799        .25519        .86722E-06   -1.5525    
   6  norm          .10000E-03    2.6090        .34045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6532        .26094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .76353        6.5324        .11301E-03   -1.5533    
   9  norm          4.6380        3.6365        .53785E-05   -1.5277    
  10  norm          .36751        .10421        .53476E-06   -1.5587    
  11  Prefactor     .10000E-03    6.9636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.215        37.267        .11313E-04   -1.4290    
  13  Prefactor     1.9661        4.3835        .97110E-05   -1.5428    
  14  Prefactor     .10000E-03    25.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    119.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6019        4.1476        .60741E-05   -1.5279    
  17  norm          .10000E-03    1.2618        .17977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0229        .26790        .14277E-04   -.92266    
  19  Prefactor     .94551        .11909        .34125E-04   -.94569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14586e-09
Minuit parameter uncertainties:
  1  0.00124893
  2  2.70857e-06
  3  6.32197e-06
  4  31.6058
  5  0.255194
  6  5.88592e-05
  7  1.01528e-08
  8  4.467
  9  3.63664
  10  0.104206
  11  2.92148e-05
  12  37.2839
  13  4.38422
  14  2.94347e-05
  15  0.000484559
  16  4.14788
  17  2.64825e-06
  18  0.268252
  19  0.119128
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.638e+00  3.637e+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.455e-01  1.191e-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.023e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.91
Ra Dec: 228.070 2.040
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/225596/likelihoodResults_503712001_503971201_4FGL_J1512.2+0202_daily_bin1020.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) = 6731.90201003
delta logL = 0.117146295842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6731.90133848
delta logL = 0.117817840863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5502       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5932       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94484       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=   6731.901     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5502        7.3274        .47180E-02    .11664E-02
   2  alpha         1.5930        1.1858        .45240       -.87928E-05
   3  Normalizat    1.0309        .22254        .80367E-01    .31066E-03
   4  Prefactor     .94483        .10181        .45574E-01    .66546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.55022
  alpha      = 1.59303
  Normalizat = 1.03085
  Prefactor  = 0.944834
 **********
 **   18 **HESSE 
 **********

 FCN=   6731.901     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5502        3.8870        .13904E-03   -1.5281    
   2  alpha         1.5930        .76849        .21397E-01   -.37126    
   3  Normalizat    1.0309        .25129        .35575E-03   -.92004    
   4  Prefactor     .94483        .11684        .17069E-03   -.94592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90851e-10
Minuit parameter uncertainties:
  1  3.88718
  2  0.783162
  3  0.251578
  4  0.116875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225596': 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) = 6731.90133846
delta logL = 0.117817865958

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  4.550e+00  3.887e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.593e+00  7.832e-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.448e-01  1.169e-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.031e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 228.070 2.040
Photon Index (Free Index): 1.59 +/- 0.78
Photon Flux (Free Index): 2.20e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.66e-05 +/- 2.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/225596/cmap_HighResolution_503712001_503971201_4FGL_J1512.2+0202_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-05', comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='2.66e-05', photon_flux_error='2.52e-08', dlogl='1.18e-01', energy_flux='2.00e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-11 09:59:38.883007', photon_index_error2='0.78', photon_index2='1.59', ts='3.91', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='2.91e-05', EG='1.02', time_epoch_completed='1631379578.88', return_code='0', job_id='225596', GAL2='0.94', EG2='1.03', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.56e-08', ts2='4.14', photon_index='1.97' WHERE bin_id='1020' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:59:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 225596: <4FGL_J1512.2+0202_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1020 228.07 2.0403 503712001 503971201 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 :                                   581.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

