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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1420
RA = 183.774, Dec = 16.9372
tmin = 607392001, tmax = 607651201
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='440390', job_status='RUN', time_executed='2021-09-05 05:31:22.950866', time_epoch_executed='1630845082.95' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440390/ft1_4FGL_J1215.0+1656_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440390/ft1_4FGL_J1215.0+1656_daily_bin1420.fits outfile=/scratch/kocevski/440390/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1420.fits ra=183.774 dec=16.9372 rad=12.0 tmin=607392001.0 tmax=607651201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.29
user 4.99
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.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/440390/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1420.fits evtable="EVENTS" outfile="/scratch/kocevski/440390/ft1_filtered_4FGL_J1215.0+1656_daily_bin1420.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440390/ft1_filtered_4FGL_J1215.0+1656_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/440390/ltcube_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.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/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits
.....................!
real 11.74
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440390/ft1_filtered_4FGL_J1215.0+1656_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/440390/ltcube_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.fits outfile=/scratch/kocevski/440390/expmap_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.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/440390/ltcube_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.fits
.....................!
real 191.18
user 185.32
sys 5.44

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/440390/ft1_filtered_4FGL_J1215.0+1656_daily_bin1420.fits scfile=/scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits outfile=/scratch/kocevski/440390/cmap_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440390/ft1_filtered_4FGL_J1215.0+1656_daily_bin1420.fits scfile=/scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits outfile=/scratch/kocevski/440390/cmap_HighResolution_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.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.58
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/440390/ft1_filtered_4FGL_J1215.0+1656_daily_bin1420.fits', '/scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits', expMap='/scratch/kocevski/440390/expmap_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.fits', expCube='/scratch/kocevski/440390/ltcube_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/440390/Model_4FGL_J1215.0+1656_daily_bin1420.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/440390/ft1_filtered_4FGL_J1215.0+1656_daily_bin1420.fits
Spacecraft file(s): /scratch/kocevski/440390/ft2_4FGL_J1215.0+1656_daily_bin1420.fits
Exposure map: /scratch/kocevski/440390/expmap_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.fits
Exposure cube: /scratch/kocevski/440390/ltcube_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/440390/Model_4FGL_J1215.0+1656_daily_bin1420.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) = 5175.20817693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.417       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.769       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0944       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6946       1.0000         .10000E-03   10000.    
    16 'norm      '    .35798E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2577       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.382       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7932       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.236       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76782       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1498       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=   5175.154     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3090 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3411        24.453        .20302E-06   -.32557E-05
   2  Prefactor     38.419        21.628        .47685E-07   -.44975E-05
   3  Prefactor     .10000E-03    5.9725        .57653E-07** at limit **
   4  Prefactor     .10000E-03    1.0265        .26896E-07** at limit **
   5  Prefactor     .10000E-03    42.441        .75022E-06** at limit **
   6  Prefactor     15.768        12.536        .32338E-07    .13003E-05
   7  Prefactor     .10000E-03    7.1661       -.10443E-06** at limit **
   8  Prefactor     5.0950        4.2194        .44504E-07   -.85571E-04
   9  Prefactor     .10000E-03    35.666       -.21290E-05** at limit **
  10  Prefactor     .10000E-03    1.2730       -.59637E-08** at limit **
  11  Prefactor     .10000E-03    1.7416        .49300E-07** at limit **
  12  Prefactor     .10000E-03    8.5693        .25642E-06** at limit **
  13  Prefactor     .10000E-03    .93628       -.27847E-08** at limit **
  14  Prefactor     .10000E-03    11.292       -.25495E-06** at limit **
  15  Prefactor     8.6945        6.5361       -.40723E-07   -.64477E-04
  16  norm          .35792E-01    .13767        .11386E-06   -.73405E-03
  17  Prefactor     .10000E-03    82.777       -.34707E-05** at limit **
  18  norm          5.2576        4.1449       -.31000E-07   -.60176E-04
  19  Prefactor     10.376        12.371        .73450E-06   -.73393E-04
  20  Prefactor     .10000E-03    52.874        .36897E-05** at limit **
  21  Prefactor     .10000E-03    16.794        .26899E-06** at limit **
  22  Prefactor     .10000E-03    4.3826        .24640E-07** at limit **
  23  Prefactor     6.7931        9.9727        .25390E-05   -.52201E-04
  24  Prefactor     26.235        16.638       -.31827E-06   -.17219E-04
  25  Normalizat    .76789        .19386       -.18860E-06   -.77123E-04
  26  Prefactor     1.1498        .18823       -.29249E-06   -.65319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.34114
  Prefactor  = 38.4187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7682
  Prefactor  = 0.0001
  Prefactor  = 5.09503
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.69451
  norm       = 0.0357919
  Prefactor  = 0.000100003
  norm       = 5.25765
  Prefactor  = 10.3759
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79307
  Prefactor  = 26.2355
  Normalizat = 0.767891
  Prefactor  = 1.14975
 **********
 **   18 **HESSE 
 **********

 FCN=   5175.154     FROM HESSE     STATUS=OK           456 CALLS     3546 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3411        24.445        .14802E-03   -1.5166    
   2  Prefactor     38.419        21.611        .64665E-04   -1.4468    
   3  Prefactor     .10000E-03    6.0340        .17167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0462        .14184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.768        12.540        .10086E-03   -1.4914    
   7  Prefactor     .10000E-03    7.1824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0950        4.2172        .12619E-03   -1.5256    
   9  Prefactor     .10000E-03    36.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2909        .79074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0394        .18239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .95799        .67957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.6945        6.5151        .13594E-03   -1.5118    
  16  norm          .35792E-01    .17965        .48411E-03   -1.5670    
  17  Prefactor     .10000E-03    84.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2576        4.1419        .12164E-03   -1.5249    
  19  Prefactor     10.376        12.316        .12435E-03   -1.5064    
  20  Prefactor     .10000E-03    54.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4391        .14706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.7931        10.129        .76971E-03   -1.5187    
  24  Prefactor     26.235        16.645        .78209E-04   -1.4683    
  25  Normalizat    .76789        .21890        .26586E-03   -1.0127    
  26  Prefactor     1.1498        .21435        .22621E-03   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53687e-08
Minuit parameter uncertainties:
  1  24.4779
  2  21.6153
  3  4.65681e-06
  4  5.97202e-07
  5  0.000153972
  6  12.5422
  7  8.64768e-06
  8  4.21747
  9  0.000406453
  10  2.1389e-07
  11  6.48952e-06
  12  2.35803e-05
  13  6.58358e-08
  14  2.75167e-05
  15  6.51565
  16  0.16015
  17  0.00100914
  18  4.14213
  19  12.3195
  20  0.000667323
  21  2.49643e-05
  22  1.09097e-06
  23  10.1312
  24  16.6476
  25  0.219147
  26  0.214513
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  6.490e-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.150e+00  2.145e-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:  7.679e-01  2.191e-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.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440390/likelihoodResults_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.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) = 5175.1556901
delta logL = -0.001567840799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5175.15412271
delta logL = -4.4766238716e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3992       1.0000          .0000       10.000    
     3 'Normalizat'    .76780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1499       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.

 FCN=   5175.154     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29442        .34885E-01** at limit **
   2  Index         2.3895        7.5498        .50000        .25580E-04
   3  Normalizat    .76789        .18573E-02    .43189E-01    .21520E-03
   4  Prefactor     1.1498        .19058E-02    .35938E-01    .26101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.38947
  Normalizat = 0.767892
  Prefactor  = 1.14976
 **********
 **   18 **HESSE 
 **********

 FCN=   5175.154     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      251 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.253        .18366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3895        5.5325        .50000       -.54932    
   3  Normalizat    .76789        .13456E-01    .26586E-03   -1.0127    
   4  Prefactor     1.1498        .13815E-01    .22621E-03   -.87892    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.35908e-07
Minuit parameter uncertainties:
  1  0.000270947
  2  159.762
  3  0.0134565
  4  0.0138148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440390': 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): 102
logL (Free Index) = 5175.15412212
delta logL = 1.34530637297e-07

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.709e-04  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.389e+00  1.598e+02  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.150e+00  1.381e-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:  7.679e-01  1.346e-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/440390/cmap_HighResolution_607392001_607651201_4FGL_J1215.0+1656_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-05 05:42:50.075532', job_id='440390', GAL2='1.15', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630845770.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1420' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:42:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 440390: <4FGL_J1215.0+1656_daily_bin1420> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1420> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:31:04 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:31:06 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:31:06 2021
Terminated at Sun Sep  5 05:42:50 2021
Results reported at Sun Sep  5 05:42:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1420 183.774 16.9372 607392001 607651201 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 :                                   675.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

