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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin1038
RA = 228.07, Dec = 2.0403
tmin = 508377601, tmax = 508636801
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='225623', job_status='RUN', time_executed='2021-09-11 09:48:44.985837', time_epoch_executed='1631378924.99' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225623/ft1_4FGL_J1512.2+0202_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225623/ft2_4FGL_J1512.2+0202_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225623/ft1_4FGL_J1512.2+0202_daily_bin1038.fits outfile=/scratch/kocevski/225623/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin1038.fits ra=228.07 dec=2.0403 rad=12.0 tmin=508377601.0 tmax=508636801.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.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/225623/ft2_4FGL_J1512.2+0202_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/225623/ltcube_508377601_508636801_4FGL_J1512.2+0202_daily_bin1038.fits outfile=/scratch/kocevski/225623/expmap_508377601_508636801_4FGL_J1512.2+0202_daily_bin1038.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/225623/ltcube_508377601_508636801_4FGL_J1512.2+0202_daily_bin1038.fits
.....................!
real 189.85
user 184.81
sys 4.62

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/225623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1038.fits scfile=/scratch/kocevski/225623/ft2_4FGL_J1512.2+0202_daily_bin1038.fits outfile=/scratch/kocevski/225623/cmap_508377601_508636801_4FGL_J1512.2+0202_daily_bin1038.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225623/ft1_filtered_4FGL_J1512.2+0202_daily_bin1038.fits scfile=/scratch/kocevski/225623/ft2_4FGL_J1512.2+0202_daily_bin1038.fits outfile=/scratch/kocevski/225623/cmap_HighResolution_508377601_508636801_4FGL_J1512.2+0202_daily_bin1038.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56134       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .24079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.921       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4241       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5897       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3991       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7164       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99402       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0276       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=   11173.09     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     1741 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20994        43.279       -.40816E-05    .79004E-04
   2  Prefactor     .10000E-03    29.726       -.11912E-06** at limit **
   3  norm          .10000E-03    6.3546       -.21029E-06** at limit **
   4  Prefactor     11.926        18.037       -.16980E-05    .10334E-05
   5  norm          2.4241        .31195       -.14866E-07    .74251E-03
   6  norm          1.5896        1.6989       -.29966E-06   -.94741E-03
   7  norm          .10000E-03    4.8741        .47952E-08** at limit **
   8  norm          6.3995        4.0484       -.26638E-06   -.36127E-03
   9  norm          .10000E-03    1.7071       -.11377E-06** at limit **
  10  norm          .95267        .12038       -.27801E-08    .10657E-02
  11  Prefactor     .10000E-03    5.6743        .17350E-07** at limit **
  12  Prefactor     .10000E-03    17.309        .96104E-08** at limit **
  13  Prefactor     2.7149        3.7181       -.82690E-06   -.10752E-02
  14  Prefactor     .10000E-03    7.1092       -.30118E-07** at limit **
  15  Prefactor     15.734        46.507       -.52049E-04    .42698E-05
  16  Prefactor     .10000E-03    2.2900       -.22962E-06** at limit **
  17  norm          .10000E-03    1.5527       -.51210E-07** at limit **
  18  Normalizat    .99397        .20920        .54457E-06    .29401E-03
  19  Prefactor     1.0276        .91501E-01    .13827E-05    .24457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.209938
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9262
  norm       = 2.42405
  norm       = 1.58962
  norm       = 0.0001
  norm       = 6.39947
  norm       = 0.0001
  norm       = 0.952669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.71491
  Prefactor  = 0.0001
  Prefactor  = 15.7342
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.993966
  Prefactor  = 1.02759
 **********
 **   18 **HESSE 
 **********

 FCN=   11173.09     FROM HESSE     STATUS=OK           288 CALLS     2029 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20994        40.201        .19078       -1.5616    
   2  Prefactor     .10000E-03    29.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.8705        .10170       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.926        18.044        .11602E-03   -1.5017    
   5  norm          2.4241        .31298        .20169E-04   -1.5397    
   6  norm          1.5896        1.6739        .13511E-03   -1.5456    
   7  norm          .10000E-03    4.9276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3995        4.0469        .15866E-03   -1.5202    
   9  norm          .10000E-03    3.7198        .26603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95267        .12026        .12431E-04   -1.5513    
  11  Prefactor     .10000E-03    5.6966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7149        3.7145        .22602E-03   -1.5378    
  14  Prefactor     .10000E-03    7.1130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.734        46.403        .10105E-03   -1.4914    
  16  Prefactor     .10000E-03    7.4243        .30422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.5751        .12857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .99397        .23882        .40740E-03   -.93233    
  19  Prefactor     1.0276        .10511        .18281E-03   -.91816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54388e-09
Minuit parameter uncertainties:
  1  5.81279
  2  2.61036e-05
  3  7.37652e-05
  4  18.0523
  5  0.312977
  6  1.67398
  7  5.2403e-06
  8  4.04703
  9  2.33621e-05
  10  0.120262
  11  6.28017e-07
  12  1.33526e-05
  13  3.71484
  14  3.49782e-06
  15  46.5097
  16  5.74039e-05
  17  4.19591e-06
  18  0.239079
  19  0.10513
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  2.336e-05  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:  1.028e+00  1.051e-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:  9.940e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/225623/likelihoodResults_508377601_508636801_4FGL_J1512.2+0202_daily_bin1038.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11173.0936655
delta logL = -0.0012782801914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11173.092386
delta logL = 1.1768515833e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0162       1.0000          .0000       5.0000    
     3 'Normalizat'    .99397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0276       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=   11172.95     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      341 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19590E-01    .38139E-01    .27181E-02   -.13084E-01
   2  alpha         5.0000        4.0549        .50000    ** at limit **
   3  Normalizat    .95728        .23896        .40740E-03    .12574E-03
   4  Prefactor     1.0368        .10575        .18281E-03    .39860E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0195897
  alpha      = 5
  Normalizat = 0.957276
  Prefactor  = 1.03681
 **********
 **   18 **HESSE 
 **********

 FCN=   11172.95     FROM HESSE     STATUS=OK            31 CALLS      372 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19590E-01    .41786E-01    .27144E-04   -1.5736    
   2  alpha         5.0000        4.1470        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95728        .23934        .16296E-04   -.94476    
   4  Prefactor     1.0368        .10580        .36563E-04   -.91512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52433e-11
Minuit parameter uncertainties:
  1  0.0417858
  2  3.6176e-05
  3  0.239607
  4  0.105822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225623': 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) = 11172.9525751
delta logL = 0.13981203263

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.959e-02  4.179e-02  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  5.000e+00  3.618e-05  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:  1.037e+00  1.058e-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:  9.573e-01  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/225623/cmap_HighResolution_508377601_508636801_4FGL_J1512.2+0202_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-11 10:01:04.399704', job_id='225623', GAL2='1.04', fit_tolerance='1e-08', EG2='0.96', EG='0.99', time_epoch_completed='1631379664.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.40e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1038' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 10:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 225623: <4FGL_J1512.2+0202_daily_bin1038> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin1038> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 09:46:19 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:46:21 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:21 2021
Terminated at Sat Sep 11 10:01:05 2021
Results reported at Sat Sep 11 10:01:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin1038 228.07 2.0403 508377601 508636801 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 :                                   733.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            886 sec.

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

