/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 54 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1512.2+0202_daily_bin275
RA = 228.07, Dec = 2.0403
tmin = 310608001, tmax = 310867201
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='222147', job_status='RUN', time_executed='2021-09-11 09:37:10.390396', time_epoch_executed='1631378230.39' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222147/ft1_4FGL_J1512.2+0202_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222147/ft2_4FGL_J1512.2+0202_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222147/ft1_4FGL_J1512.2+0202_daily_bin275.fits outfile=/scratch/kocevski/222147/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin275.fits ra=228.07 dec=2.0403 rad=12.0 tmin=310608001.0 tmax=310867201.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.50
user 3.27
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222147/ft1_filtered_4FGL_J1512.2+0202_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/222147/ft2_4FGL_J1512.2+0202_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/222147/ltcube_310608001_310867201_4FGL_J1512.2+0202_daily_bin275.fits outfile=/scratch/kocevski/222147/expmap_310608001_310867201_4FGL_J1512.2+0202_daily_bin275.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/222147/ltcube_310608001_310867201_4FGL_J1512.2+0202_daily_bin275.fits
.....................!
real 189.94
user 185.13
sys 4.30

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/222147/ft1_filtered_4FGL_J1512.2+0202_daily_bin275.fits scfile=/scratch/kocevski/222147/ft2_4FGL_J1512.2+0202_daily_bin275.fits outfile=/scratch/kocevski/222147/cmap_310608001_310867201_4FGL_J1512.2+0202_daily_bin275.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12094E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.344       1.0000         .10000E-03   10000.    
     5 'norm      '    .25075       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13519E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3686       1.0000         .10000E-03   10000.    
     9 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .14908       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2033       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.864       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11512E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.516       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4098       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0551       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=   9880.069     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     2246 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.595        .18142E-02** at limit **
   2  Prefactor     .10000E-03    22.882        .18142E-02** at limit **
   3  norm          4.1179        13.023        .19863E-03   -.98444E-05
   4  Prefactor     12.346        20.010        .11402E-03    .38090E-04
   5  norm          .25080        .16143        .31538E-03   -.13301E-02
   6  norm          .10000E-03    1.6657        .18581E-02** at limit **
   7  norm          .10001E-03    22.890        .32424E-02** at limit **
   8  norm          1.3696        4.9892        .18640E-02   -.73666E-03
   9  norm          .10000E-03    2.7558        .15922E-02** at limit **
  10  norm          .14908        .72299E-01    .18127E-04   -.41770E-03
  11  Prefactor     .10000E-03    2.1676        .14270E-02** at limit **
  12  Prefactor     .10000E-03    17.924        .18142E-02** at limit **
  13  Prefactor     1.2008        3.7022        .31818E-03   -.61457E-04
  14  Prefactor     21.872        20.072        .42831E-03   -.45899E-04
  15  Prefactor     .10000E-03    44.613        .19878    ** at limit **
  16  Prefactor     10.517        4.5039        .12355E-03    .27880E-03
  17  norm          .10000E-03    1.8763        .26007E-03** at limit **
  18  Normalizat    1.4098        .23869        .35179E-03    .25976E-03
  19  Prefactor     1.0550        .10829        .18258E-03    .10539E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11786
  Prefactor  = 12.3461
  norm       = 0.250796
  norm       = 0.0001
  norm       = 0.000100012
  norm       = 1.36965
  norm       = 0.0001
  norm       = 0.149076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20075
  Prefactor  = 21.8721
  Prefactor  = 0.0001
  Prefactor  = 10.5167
  norm       = 0.0001
  Normalizat = 1.40979
  Prefactor  = 1.05503
 **********
 **   18 **HESSE 
 **********

 FCN=   9880.069     FROM HESSE     STATUS=OK           262 CALLS     2508 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1179        13.022        .79453E-05   -1.5302    
   4  Prefactor     12.346        20.013        .45606E-05   -1.5005    
   5  norm          .25080        .16136        .12615E-04   -1.5608    
   6  norm          .10000E-03    1.6704        .37162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    23.600        .12970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3696        4.9742        .74561E-04   -1.5474    
   9  norm          .10000E-03    2.7578        .31844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .14908        .72244E-01    .72507E-06   -1.5631    
  11  Prefactor     .10000E-03    2.1676        .28540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2008        3.7010        .12727E-04   -1.5489    
  14  Prefactor     21.872        20.072        .85662E-04   -1.4772    
  15  Prefactor     .10000E-03    46.053        .19420       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.517        4.5034        .49422E-05   -1.5059    
  17  norm          .10000E-03    1.8763        .52013E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4098        .23875        .14072E-04   -.80346    
  19  Prefactor     1.0550        .10835        .36516E-04   -.90917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69911e-09
Minuit parameter uncertainties:
  1  6.59507e-05
  2  4.25879e-05
  3  13.0306
  4  20.0234
  5  0.161359
  6  9.37188e-06
  7  0.00107568
  8  4.97569
  9  9.76032e-06
  10  0.0722442
  11  2.9771e-06
  12  1.58588e-05
  13  3.70166
  14  20.0778
  15  0.000103352
  16  4.50355
  17  9.89025e-06
  18  0.238943
  19  0.108376
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  9.760e-06  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.055e+00  1.084e-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.410e+00  2.389e-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: 5.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222147/likelihoodResults_310608001_310867201_4FGL_J1512.2+0202_daily_bin275.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) = 9880.07103402
delta logL = -0.00172944423502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9880.06930459
delta logL = -1.30512489704e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0550       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=   9880.069     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      226 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7917        .15991E-02** at limit **
   2  alpha         1.9892        3.4134        .16938       -.20266E-04
   3  Normalizat    1.4098        .22976        .35179E-03    .12280E-04
   4  Prefactor     1.0550        .10590        .18258E-03    .15791E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.9892
  Normalizat = 1.40979
  Prefactor  = 1.05502
 **********
 **   18 **HESSE 
 **********

 FCN=   9880.069     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7794        .31982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9892        3.4123        .67751E-02   -.20577    
   3  Normalizat    1.4098        .22991        .14072E-04   -.80346    
   4  Prefactor     1.0550        .10597        .36516E-04   -.90917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30986e-10
Minuit parameter uncertainties:
  1  0.000114754
  2  2.4473
  3  0.230083
  4  0.105989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222147': 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) = 9880.06930441
delta logL = 1.60391209647e-07

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  1.148e-04  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  1.989e+00  2.447e+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:  1.055e+00  1.060e-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.410e+00  2.301e-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/222147/cmap_HighResolution_310608001_310867201_4FGL_J1512.2+0202_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-05', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-11 09:49:19.980828', job_id='222147', GAL2='1.06', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631378959.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='275' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:49:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 222147: <4FGL_J1512.2+0202_daily_bin275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin275 228.07 2.0403 310608001 310867201 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

