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


Performing analysis on: 4FGL_J1512.2+0202_daily_bin978
RA = 228.07, Dec = 2.0403
tmin = 492825601, tmax = 493084801
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='225532', job_status='RUN', time_executed='2021-09-11 09:49:00.879175', time_epoch_executed='1631378940.88' WHERE source_name='4FGL J1512.2+0202' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225532/ft1_4FGL_J1512.2+0202_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225532/ft2_4FGL_J1512.2+0202_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225532/ft1_4FGL_J1512.2+0202_daily_bin978.fits outfile=/scratch/kocevski/225532/ft1_filteredMKT_4FGL_J1512.2+0202_daily_bin978.fits ra=228.07 dec=2.0403 rad=12.0 tmin=492825601.0 tmax=493084801.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.73
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225532/ft1_filtered_4FGL_J1512.2+0202_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/225532/ft2_4FGL_J1512.2+0202_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/225532/ltcube_492825601_493084801_4FGL_J1512.2+0202_daily_bin978.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/225532/ft2_4FGL_J1512.2+0202_daily_bin978.fits
.....................!
real 11.87
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225532/ft1_filtered_4FGL_J1512.2+0202_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/225532/ft2_4FGL_J1512.2+0202_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/225532/ltcube_492825601_493084801_4FGL_J1512.2+0202_daily_bin978.fits outfile=/scratch/kocevski/225532/expmap_492825601_493084801_4FGL_J1512.2+0202_daily_bin978.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/225532/ltcube_492825601_493084801_4FGL_J1512.2+0202_daily_bin978.fits
.....................!
real 190.98
user 185.95
sys 4.66

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19523E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8956       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12924E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .86150       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .71561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.706       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6799       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12296E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0322       1.0000         .10000E-03   10000.    
    17 'norm      '    .35292       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3611       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0245       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=   7706.872     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2174 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.177        .20705E-06** at limit **
   2  Prefactor     .10000E-03    57.134       -.39592E-06** at limit **
   3  norm          7.8990        12.566       -.26626E-05   -.27636E-03
   4  Prefactor     .10004E-03    17.870        .13236E-06** at limit **
   5  norm          .86150        .22951       -.55021E-09   -.10861E-03
   6  norm          .10000E-03    .60518        .30491E-08** at limit **
   7  norm          .10000E-03    2.4746        .19909E-08** at limit **
   8  norm          .10000E-03    1.6566        .56114E-08** at limit **
   9  norm          .10000E-03    1.7324        .47316E-08** at limit **
  10  norm          .71565        .14869       -.16790E-09   -.79910E-07
  11  Prefactor     .10000E-03    3.9747        .15772E-08** at limit **
  12  Prefactor     21.661        51.272        .32977E-08    .65276E-06
  13  Prefactor     2.6817        4.5883        .16862E-06   -.23283E-03
  14  Prefactor     .10000E-03    8.5928       -.15617E-07** at limit **
  15  Prefactor     .10000E-03    17.906        .27972E-07** at limit **
  16  Prefactor     2.0326        3.8706        .53508E-07   -.26125E-03
  17  norm          .35323        1.9927        .99613E-06   -.71175E-03
  18  Normalizat    1.3612        .24562        .22295E-06   -.34381E-04
  19  Prefactor     1.0244        .11115       -.12811E-06   -.10298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 7.89898
  Prefactor  = 0.000100037
  norm       = 0.861503
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.715649
  Prefactor  = 0.0001
  Prefactor  = 21.6607
  Prefactor  = 2.6817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0326
  norm       = 0.353232
  Normalizat = 1.36117
  Prefactor  = 1.02436
 **********
 **   18 **HESSE 
 **********

 FCN=   7706.872     FROM HESSE     STATUS=OK           276 CALLS     2450 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8990        13.379        .14270E-03   -1.5146    
   4  Prefactor     .10004E-03    21.067        .10463       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .86150        .23015        .20685E-04   -1.5522    
   6  norm          .10000E-03    .60963        .66669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4780        .13487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6623        .11033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7417        .11282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .71565        .14871        .14922E-04   -1.5539    
  11  Prefactor     .10000E-03    3.9801        .17087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.661        51.325        .85972E-04   -1.4777    
  13  Prefactor     2.6817        4.6275        .23612E-03   -1.5380    
  14  Prefactor     .10000E-03    8.5971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0326        3.8628        .22833E-03   -1.5423    
  17  norm          .35323        3.2476        .30446E-03   -1.5589    
  18  Normalizat    1.3612        .28592        .35986E-03   -.81758    
  19  Prefactor     1.0244        .12964        .18905E-03   -.91922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47149e-10
Minuit parameter uncertainties:
  1  4.9631e-05
  2  0.000697363
  3  13.3843
  4  0.00176955
  5  0.230154
  6  3.7845e-08
  7  4.86519e-09
  8  1.07287e-07
  9  1.38508e-07
  10  0.148713
  11  7.00617e-08
  12  51.4297
  13  4.62816
  14  1.48308e-06
  15  2.26846e-06
  16  3.86328
  17  2.14197
  18  0.286257
  19  0.129681
Done.

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

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  1.385e-07  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.024e+00  1.297e-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.361e+00  2.863e-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.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225532/likelihoodResults_492825601_493084801_4FGL_J1512.2+0202_daily_bin978.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) = 7706.87436116
delta logL = -0.00272099479662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7706.8716404
delta logL = -2.39272594627e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9722       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0245       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7706.872     FROM MIGRAD    STATUS=FAILED        91 CALLS      235 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    131.40        .11287E-02** at limit **
   2  alpha         2.0565        3.6255        .50000        .12557E-05
   3  Normalizat    1.3612        .60885E-01    .35986E-03   -.10836E-03
   4  Prefactor     1.0244        .28432E-01    .18905E-03   -.19888E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7706.872     FROM SIMPLEX   STATUS=UNCHANGED    192 CALLS      427 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    131.40        .23249E-03** at limit **
   2  alpha         2.0565        3.6255        .23971E-05    .12557E-05
   3  Normalizat    1.3612        .60885E-01    .90182E-07   -.10836E-03
   4  Prefactor     1.0244        .28432E-01    .25843E-07   -.19888E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7706.872     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      459 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    406.40        .22574E-03** at limit **
   2  alpha         2.0572        2.5974        .50000        .77898E-07
   3  Normalizat    1.3612        .20408        .14394E-04   -.10805E-03
   4  Prefactor     1.0244        .95333E-01    .37811E-04   -.19826E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.05718
  Normalizat = 1.36117
  Prefactor  = 1.02436
 **********
 **   18 **HESSE 
 **********

 FCN=   7706.872     FROM HESSE     STATUS=OK            29 CALLS      488 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8483        .45149E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0572        2.5738        .50000       -.17807    
   3  Normalizat    1.3612        .27311        .28788E-05   -.81758    
   4  Prefactor     1.0244        .12763        .75621E-05   -.91922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42279e-11
Minuit parameter uncertainties:
  1  4.20445e-06
  2  114.922
  3  0.2734
  4  0.127663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225532': 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) = 7706.87163997
delta logL = 1.92390871234e-07

Extracting fit parameters...

4FGL J1512.2+0202
   Spectrum: LogParabola
231         norm:  1.000e-04  4.204e-06  1.000e-04  1.000e+04 ( 1.000e-12)
232        alpha:  2.057e+00  1.149e+02  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.024e+00  1.277e-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.361e+00  2.734e-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/225532/cmap_HighResolution_492825601_493084801_4FGL_J1512.2+0202_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-11 09:59:32.098649', job_id='225532', GAL2='1.02', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631379572.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='978' AND source_name='4FGL J1512.2+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 225532: <4FGL_J1512.2+0202_daily_bin978> in cluster <slac> Done

Job <4FGL_J1512.2+0202_daily_bin978> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 09:46:12 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 09:46:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 09:46:13 2021
Terminated at Sat Sep 11 09:59:32 2021
Results reported at Sat Sep 11 09:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1512.2+0202_daily_bin978 228.07 2.0403 492825601 493084801 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 :                                   626.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

