/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 111 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1
RA = 183.774, Dec = 16.9372
tmin = 239587201, tmax = 239846401
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='433739', job_status='RUN', time_executed='2021-09-05 05:13:01.854827', time_epoch_executed='1630843981.85' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433739

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433739/ft1_4FGL_J1215.0+1656_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433739/ft2_4FGL_J1215.0+1656_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433739/ft1_4FGL_J1215.0+1656_daily_bin1.fits outfile=/scratch/kocevski/433739/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1.fits ra=183.774 dec=16.9372 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.32
user 1.13
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433739/ft1_filtered_4FGL_J1215.0+1656_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/433739/ft2_4FGL_J1215.0+1656_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/433739/ltcube_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.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/433739/ft2_4FGL_J1215.0+1656_daily_bin1.fits
.....................!
real 12.78
user 12.47
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433739/ft1_filtered_4FGL_J1215.0+1656_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/433739/ft2_4FGL_J1215.0+1656_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/433739/ltcube_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.fits outfile=/scratch/kocevski/433739/expmap_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.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/433739/ltcube_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.fits
.....................!
real 189.97
user 185.40
sys 4.15

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/433739/ft1_filtered_4FGL_J1215.0+1656_daily_bin1.fits scfile=/scratch/kocevski/433739/ft2_4FGL_J1215.0+1656_daily_bin1.fits outfile=/scratch/kocevski/433739/cmap_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.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.63
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433739/ft1_filtered_4FGL_J1215.0+1656_daily_bin1.fits scfile=/scratch/kocevski/433739/ft2_4FGL_J1215.0+1656_daily_bin1.fits outfile=/scratch/kocevski/433739/cmap_HighResolution_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.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.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.692       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3598       1.0000         .10000E-03   10000.    
     9 'Prefactor '    95.124       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19309E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23897       1.0000         .10000E-03   10000.    
    16 'norm      '    .11294E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.385       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6607       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0993       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .44221       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=   4140.767     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3129 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.087       -.47112E-05** at limit **
   2  Prefactor     .10000E-03    12.470        .49547E-06** at limit **
   3  Prefactor     16.691        13.045        .90227E-07   -.26772E-04
   4  Prefactor     2.1255        2.0011       -.11746E-06   -.20148E-03
   5  Prefactor     .10000E-03    27.031        .15291E-04** at limit **
   6  Prefactor     .10000E-03    3.8854       -.21415E-06** at limit **
   7  Prefactor     7.8790        18.186       -.20354E-05   -.47006E-04
   8  Prefactor     3.3593        4.3541        .19396E-05   -.18164E-03
   9  Prefactor     95.136        98.223        .11040E-04    .86614E-05
  10  Prefactor     2.9244        3.4314       -.12157E-05   -.40924E-03
  11  Prefactor     .10000E-03    1.0336        .13228E-06** at limit **
  12  Prefactor     .10000E-03    114.81       -.29116E-04** at limit **
  13  Prefactor     7.4915        3.0718        .17504E-06    .12718E-03
  14  Prefactor     .10000E-03    11.404        .21123E-05** at limit **
  15  Prefactor     .23962        4.8515       -.10556E-05   -.20448E-03
  16  norm          .11034E-01    .20091       -.11886E-06   -.56524E-03
  17  Prefactor     .10000E-03    49.801        .40036E-04** at limit **
  18  norm          11.385        5.4829        .85438E-07    .21771E-03
  19  Prefactor     .10000E-03    5.9165       -.14100E-06** at limit **
  20  Prefactor     5.8250        20.612        .25877E-05   -.19132E-04
  21  Prefactor     .10000E-03    35.076       -.38588E-04** at limit **
  22  Prefactor     .10000E-03    2.1959        .26957E-06** at limit **
  23  Prefactor     3.6586        10.455        .12349E-05    .93463E-04
  24  Prefactor     .10000E-03    3.7001        .26347E-06** at limit **
  25  Normalizat    1.0995        .18921       -.66874E-06    .35075E-03
  26  Prefactor     .44215        .16739        .50557E-06    .14053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6915
  Prefactor  = 2.12553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87902
  Prefactor  = 3.35932
  Prefactor  = 95.1358
  Prefactor  = 2.92443
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 7.49145
  Prefactor  = 0.0001
  Prefactor  = 0.239621
  norm       = 0.0110336
  Prefactor  = 0.0001
  norm       = 11.3848
  Prefactor  = 0.0001
  Prefactor  = 5.82497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65856
  Prefactor  = 0.0001
  Normalizat = 1.09948
  Prefactor  = 0.442153
 **********
 **   18 **HESSE 
 **********

 FCN=   4140.767     FROM HESSE     STATUS=OK           456 CALLS     3585 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.691        13.035        .98030E-04   -1.4891    
   4  Prefactor     2.1255        1.9994        .84412E-04   -1.5416    
   5  Prefactor     .10000E-03    27.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8931        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8790        18.117        .14277E-03   -1.5147    
   8  Prefactor     3.3593        4.3209        .13886E-03   -1.5341    
   9  Prefactor     95.136        97.987        .41209E-04   -1.3754    
  10  Prefactor     2.9244        3.4050        .11705E-03   -1.5366    
  11  Prefactor     .10000E-03    1.0368        .63815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    119.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.4915        3.0732        .70020E-04   -1.5160    
  14  Prefactor     .10000E-03    11.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .23962        14.398        .26931E-02   -1.5610    
  16  norm          .11034E-01    .77242        .53643E-03   -1.5687    
  17  Prefactor     .10000E-03    49.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.385        5.4621        .99589E-04   -1.5033    
  19  Prefactor     .10000E-03    5.9309        .15268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8250        20.593        .16620E-03   -1.5225    
  21  Prefactor     .10000E-03    35.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1985        .93124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.6586        10.458        .21112E-03   -1.5325    
  24  Prefactor     .10000E-03    3.7021        .12088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0995        .21666        .19988E-03   -.89768    
  26  Prefactor     .44215        .18999        .28282E-03   -1.1471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24883e-08
Minuit parameter uncertainties:
  1  9.71497e-07
  2  7.86762e-07
  3  13.0367
  4  1.99948
  5  4.97146e-06
  6  2.33151e-05
  7  18.1298
  8  4.32125
  9  98.1546
  10  3.40518
  11  3.61011e-06
  12  0.00135492
  13  3.07325
  14  1.43072e-06
  15  3.71499
  16  0.1838
  17  1.96652e-07
  18  5.46234
  19  1.80625e-05
  20  20.6181
  21  6.24174e-06
  22  4.18216e-07
  23  10.4629
  24  1.12665e-06
  25  0.216834
  26  0.190261
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.610e-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:  4.422e-01  1.903e-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:  1.099e+00  2.168e-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: 6.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433739/likelihoodResults_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.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) = 4140.77123182
delta logL = -0.00447594266279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4140.76675905
delta logL = -3.17838748742e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10925E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3850       1.0000          .0000       10.000    
     3 'Normalizat'    1.0995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44223       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=   4140.767     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      221 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.792        .90712E-02** at limit **
   2  Index         1.5686        7.5077        .50000       -.46523E-06
   3  Normalizat    1.0995        .14118E-01    .38023E-01    .10425E-03
   4  Prefactor     .44215        .13188E-01    .63899E-01    .79148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56863
  Normalizat = 1.09948
  Prefactor  = 0.442154
 **********
 **   18 **HESSE 
 **********

 FCN=   4140.767     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      252 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    182.36        .88581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5686        8.2232        .50000       -.75635    
   3  Normalizat    1.0995        .47635E-01    .19988E-03   -.89768    
   4  Prefactor     .44215        .44408E-01    .28282E-03   -1.1471    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.39252e-09
Minuit parameter uncertainties:
  1  5.72697e-05
  2  513.732
  3  0.047637
  4  0.0444118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433739': 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) = 4140.76673251
delta logL = 2.33607515838e-05

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  5.727e-05  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.569e+00  5.137e+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:  4.422e-01  4.441e-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:  1.099e+00  4.764e-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/433739/cmap_HighResolution_239587201_239846401_4FGL_J1215.0+1656_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-05 05:22:51.689985', job_id='433739', GAL2='0.44', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630844571.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='2.34e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:22:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 433739: <4FGL_J1215.0+1656_daily_bin1> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin1> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:10:57 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:10:58 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:10:58 2021
Terminated at Sun Sep  5 05:22:52 2021
Results reported at Sun Sep  5 05:22:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1 183.774 16.9372 239587201 239846401 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 :                                   586.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

