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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1492
RA = 183.774, Dec = 16.9372
tmin = 626054401, tmax = 626313601
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='441591', job_status='RUN', time_executed='2021-09-05 05:35:40.132906', time_epoch_executed='1630845340.13' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441591

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441591/ft1_4FGL_J1215.0+1656_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441591/ft1_4FGL_J1215.0+1656_daily_bin1492.fits outfile=/scratch/kocevski/441591/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1492.fits ra=183.774 dec=16.9372 rad=12.0 tmin=626054401.0 tmax=626313601.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 4.42
user 3.87
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.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/441591/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1492.fits evtable="EVENTS" outfile="/scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.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.94
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/441591/ltcube_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.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/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits
.....................!
real 12.61
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/441591/ltcube_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.fits outfile=/scratch/kocevski/441591/expmap_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.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/441591/ltcube_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.fits
.....................!
real 193.11
user 186.03
sys 4.60

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 183 point sources and 0 extended sources

Setting source of interest to:
4FGL J1215.0+1656 @ 183.774 16.9372

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits scfile=/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits outfile=/scratch/kocevski/441591/cmap_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.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=183.774 yref=16.9372 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits scfile=/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits outfile=/scratch/kocevski/441591/cmap_HighResolution_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.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=183.774 yref=16.9372 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/441591/Model_4FGL_J1215.0+1656_daily_bin1492.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/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits.....................!
real 50.56
user 49.05
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits', '/scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits', expMap='/scratch/kocevski/441591/expmap_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.fits', expCube='/scratch/kocevski/441591/ltcube_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/441591/Model_4FGL_J1215.0+1656_daily_bin1492.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1215.0+1656'

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.342e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/441591/ft1_filtered_4FGL_J1215.0+1656_daily_bin1492.fits
Spacecraft file(s): /scratch/kocevski/441591/ft2_4FGL_J1215.0+1656_daily_bin1492.fits
Exposure map: /scratch/kocevski/441591/expmap_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.fits
Exposure cube: /scratch/kocevski/441591/ltcube_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/441591/Model_4FGL_J1215.0+1656_daily_bin1492.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) = 5251.63783587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68152E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12684E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10884E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.996       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34753       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .89726E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7483       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.876       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13458E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80737       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5251.545     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3234 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1386        147.20        .17948E-04    .36715E-05
   2  Prefactor     .10000E-03    6.5236       -.60057E-07** at limit **
   3  Prefactor     13.396        11.312       -.17912E-07    .22027E-04
   4  Prefactor     .10000E-03    1.1541       -.24928E-06** at limit **
   5  Prefactor     .10000E-03    30.493       -.26483E-06** at limit **
   6  Prefactor     .10000E-03    11.326        .10936E-05** at limit **
   7  Prefactor     .10000E-03    7.5876        .60536E-06** at limit **
   8  Prefactor     .10000E-03    1.5355       -.65168E-07** at limit **
   9  Prefactor     31.948        87.067       -.11119E-04    .21363E-04
  10  Prefactor     .34958        1.8158        .33324E-06   -.10937E-03
  11  Prefactor     .10000E-03    1.5926       -.36737E-07** at limit **
  12  Prefactor     .10000E-03    15.396       -.20267E-07** at limit **
  13  Prefactor     .10000E-03    .76374       -.49843E-07** at limit **
  14  Prefactor     .10000E-03    51.504       -.11404E-06** at limit **
  15  Prefactor     .10000E-03    2.3245       -.39794E-07** at limit **
  16  norm          .89859E-01    .18048       -.50273E-07   -.64275E-03
  17  Prefactor     .10000E-03    74.037       -.53432E-07** at limit **
  18  norm          8.7520        4.5302        .76129E-09    .42898E-04
  19  Prefactor     17.903        14.366        .61495E-07    .66715E-05
  20  Prefactor     9.0559        27.849        .95538E-07    .27304E-05
  21  Prefactor     .10000E-03    26.251       -.48286E-07** at limit **
  22  Prefactor     .10000E-03    6.1513       -.18848E-06** at limit **
  23  Prefactor     .10000E-03    24.665       -.59088E-06** at limit **
  24  Prefactor     .10000E-03    29.830       -.36285E-06** at limit **
  25  Normalizat    .80689        .18497        .70707E-07    .69066E-04
  26  Prefactor     1.1849        .17877        .55995E-06    .98471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13862
  Prefactor  = 0.0001
  Prefactor  = 13.3961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.9475
  Prefactor  = 0.34958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0898589
  Prefactor  = 0.0001
  norm       = 8.75196
  Prefactor  = 17.9033
  Prefactor  = 9.05591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.806889
  Prefactor  = 1.18491
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.545     FROM HESSE     STATUS=OK           452 CALLS     3686 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1386        147.71        .18743E-02   -1.5495    
   2  Prefactor     .10000E-03    6.5378        .18077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.396        11.317        .10942E-03   -1.4976    
   4  Prefactor     .10000E-03    3.1972        .15008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5508        .87606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.948        87.095        .70837E-04   -1.4577    
  10  Prefactor     .34958        2.9453        .18041E-02   -1.5590    
  11  Prefactor     .10000E-03    1.6138        .89004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .77132        .61841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    51.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3390        .10786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .89859E-01    .17177        .40927E-03   -1.5648    
  17  Prefactor     .10000E-03    74.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7520        4.5262        .10710E-03   -1.5116    
  19  Prefactor     17.903        14.314        .94729E-04   -1.4861    
  20  Prefactor     9.0559        27.741        .13231E-03   -1.5106    
  21  Prefactor     .10000E-03    26.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2973        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.804        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .80689        .21050        .26087E-03   -.99814    
  26  Prefactor     1.1849        .20777        .22449E-03   -.86797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38165e-08
Minuit parameter uncertainties:
  1  26.0022
  2  3.75391e-06
  3  11.319
  4  3.32541e-05
  5  1.77008e-05
  6  0.00012554
  7  5.62286e-05
  8  3.52652e-06
  9  87.4442
  10  2.02926
  11  3.65044e-06
  12  2.51924e-06
  13  1.30947e-06
  14  3.04216e-05
  15  1.99385e-06
  16  0.171772
  17  9.7041e-06
  18  4.52634
  19  14.3164
  20  27.7807
  21  1.73057e-05
  22  1.44133e-05
  23  8.16301e-05
  24  0.000107979
  25  0.210711
  26  0.207916
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.650e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.185e+00  2.079e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.069e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441591/likelihoodResults_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.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) = 5251.54790263
delta logL = -0.00294469156597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5251.54495801
delta logL = -7.17536750017e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4206       1.0000          .0000       10.000    
     3 'Normalizat'    .80693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1849       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5251.545     FROM MIGRAD    STATUS=FAILED       171 CALLS      322 TOTAL
                     EDM=   .23E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8805.1         .0000    ** at limit **
   2  Index         2.9913        2.9745         .0000       -.19097E-03
   3  Normalizat    .80689        6.6537         .0000       -.29949E-04
   4  Prefactor     1.1849        5.1530         .0000       -.38243E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5251.545     FROM SIMPLEX   STATUS=UNCHANGED    243 CALLS      565 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8805.1        .25732E-03** at limit **
   2  Index         2.9913        2.9745        .14727E-07   -.19097E-03
   3  Normalizat    .80689        6.6537        .43540E-06   -.29949E-04
   4  Prefactor     1.1849        5.1530        .46718E-07   -.38243E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5251.545     FROM MIGRAD    STATUS=FAILED        84 CALLS      649 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    181.76        .12559E-02** at limit **
   2  Index         2.9946        6.1284        .50000       -.19519E-03
   3  Normalizat    .80689        .38504E-01    .10435E-04   -.11331E-04
   4  Prefactor     1.1849        .39505E-01    .89795E-05   -.19497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100392
  Index      = 2.99458
  Normalizat = 0.806887
  Prefactor  = 1.18491
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.545     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      678 TOTAL
                     EDM=   .61E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    538.46        .25118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9946        6.4893        .50000       -.41270    
   3  Normalizat    .80689        .92512E-01    .20870E-05   -.99814    
   4  Prefactor     1.1849        .94885E-01    .17959E-05   -.86797    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.05513e-05
Minuit parameter uncertainties:
  1  0.0293366
  2  63.2264
  3  0.0925305
  4  0.0948986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441591': 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): 1
logL (Free Index) = 5251.54494438
delta logL = 1.35609061545e-05

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.004e-04  2.934e-02  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.995e+00  6.323e+01  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.185e+00  9.490e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.069e-01  9.253e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.774 16.937

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/441591/cmap_HighResolution_626054401_626313601_4FGL_J1215.0+1656_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2021-09-05 05:49:38.815091', job_id='441591', GAL2='1.18', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630846178.82', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.36e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1492' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 441591: <4FGL_J1215.0+1656_daily_bin1492> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1492> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 05:35:23 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:35:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:35:25 2021
Terminated at Sun Sep  5 05:49:39 2021
Results reported at Sun Sep  5 05:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1492 183.774 16.9372 626054401 626313601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1215.0+1656 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

