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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1183
RA = 183.774, Dec = 16.9372
tmin = 545961601, tmax = 546220801
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='440089', job_status='RUN', time_executed='2021-09-05 05:31:04.660205', time_epoch_executed='1630845064.66' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440089

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440089/ft1_4FGL_J1215.0+1656_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440089/ft2_4FGL_J1215.0+1656_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440089/ft1_4FGL_J1215.0+1656_daily_bin1183.fits outfile=/scratch/kocevski/440089/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1183.fits ra=183.774 dec=16.9372 rad=12.0 tmin=545961601.0 tmax=546220801.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.07
user 3.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440089/ft2_4FGL_J1215.0+1656_daily_bin1183.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/440089/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1183.fits evtable="EVENTS" outfile="/scratch/kocevski/440089/ft1_filtered_4FGL_J1215.0+1656_daily_bin1183.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.53
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440089/ft1_filtered_4FGL_J1215.0+1656_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/440089/ft2_4FGL_J1215.0+1656_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/440089/ltcube_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.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/440089/ft2_4FGL_J1215.0+1656_daily_bin1183.fits
.....................!
real 11.65
user 11.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440089/ft1_filtered_4FGL_J1215.0+1656_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/440089/ft2_4FGL_J1215.0+1656_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/440089/ltcube_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.fits outfile=/scratch/kocevski/440089/expmap_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.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/440089/ltcube_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.fits
.....................!
real 190.66
user 185.20
sys 4.91

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/440089/ft1_filtered_4FGL_J1215.0+1656_daily_bin1183.fits scfile=/scratch/kocevski/440089/ft2_4FGL_J1215.0+1656_daily_bin1183.fits outfile=/scratch/kocevski/440089/cmap_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.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.73
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440089/ft1_filtered_4FGL_J1215.0+1656_daily_bin1183.fits scfile=/scratch/kocevski/440089/ft2_4FGL_J1215.0+1656_daily_bin1183.fits outfile=/scratch/kocevski/440089/cmap_HighResolution_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.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.84
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2585       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98481       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0956       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0564       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1832       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7093       1.0000         .10000E-03   10000.    
    16 'norm      '    .83713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    80.167       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0376       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.406       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3531       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0422       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83070       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0079       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=   6947.702     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3114 TOTAL
                     EDM=   .93E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2593        40.180        .18893E-06   -.13388E-05
   2  Prefactor     .10000E-03    93.039        .12875E-06** at limit **
   3  Prefactor     .98601        .51810       -.46041E-08   -.70596E-04
   4  Prefactor     2.0926        2.1264       -.20884E-07   -.25567E-05
   5  Prefactor     .10000E-03    32.831       -.15842E-08** at limit **
   6  Prefactor     10.188        7.4305       -.54926E-08   -.21845E-05
   7  Prefactor     .10000E-03    2.7948       -.76799E-08** at limit **
   8  Prefactor     2.5891        4.1524       -.25245E-07   -.10159E-06
   9  Prefactor     .10000E-03    21.943       -.21125E-07** at limit **
  10  Prefactor     5.0563        2.8962       -.12294E-07    .56126E-05
  11  Prefactor     .10000E-03    1.1871       -.40594E-08** at limit **
  12  Prefactor     7.1828        17.037        .42636E-06    .19393E-06
  13  Prefactor     2.3110        3.5945        .14969E-07    .52174E-05
  14  Prefactor     .10000E-03    6.2970        .16099E-07** at limit **
  15  Prefactor     1.7098        5.7924       -.37709E-06   -.37732E-05
  16  norm          .83716        .33393        .39535E-09    .55480E-04
  17  Prefactor     80.158        72.089       -.82358E-05    .76073E-07
  18  norm          .10000E-03    2.3919        .86060E-08** at limit **
  19  Prefactor     7.0374        7.5746       -.73322E-07    .82530E-06
  20  Prefactor     32.408        25.702        .22914E-06    .15039E-05
  21  Prefactor     .10000E-03    11.586       -.96964E-08** at limit **
  22  Prefactor     .10000E-03    13.103       -.81754E-08** at limit **
  23  Prefactor     8.3537        10.224       -.62338E-07    .10187E-05
  24  Prefactor     6.0433        10.512       -.57910E-07    .43357E-06
  25  Normalizat    .83062        .17336       -.81398E-07    .14943E-04
  26  Prefactor     1.0079        .15762        .28990E-06   -.67479E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.25928
  Prefactor  = 0.0001
  Prefactor  = 0.986012
  Prefactor  = 2.09255
  Prefactor  = 0.0001
  Prefactor  = 10.1883
  Prefactor  = 0.0001
  Prefactor  = 2.58911
  Prefactor  = 0.0001
  Prefactor  = 5.05625
  Prefactor  = 0.0001
  Prefactor  = 7.18277
  Prefactor  = 2.31095
  Prefactor  = 0.0001
  Prefactor  = 1.70976
  norm       = 0.837159
  Prefactor  = 80.1582
  norm       = 0.0001
  Prefactor  = 7.03742
  Prefactor  = 32.4078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.35374
  Prefactor  = 6.04326
  Normalizat = 0.830618
  Prefactor  = 1.00793
 **********
 **   18 **HESSE 
 **********

 FCN=   6947.702     FROM HESSE     STATUS=OK           462 CALLS     3576 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2593        40.256        .97624E-03   -1.5295    
   2  Prefactor     .10000E-03    94.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .98601        11.036        .26224E-02   -1.5509    
   4  Prefactor     2.0926        2.1094        .11719E-03   -1.5419    
   5  Prefactor     .10000E-03    32.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.188        7.4393        .62768E-03   -1.5069    
   7  Prefactor     .10000E-03    2.7967        .13608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5891        4.1360        .19794E-03   -1.5386    
   9  Prefactor     .10000E-03    21.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0563        2.8810        .99656E-04   -1.5258    
  11  Prefactor     .10000E-03    1.2045        .88544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1828        17.055        .74832E-03   -1.5172    
  13  Prefactor     2.3110        3.5756        .18996E-03   -1.5404    
  14  Prefactor     .10000E-03    6.2994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7098        5.7534        .32156E-03   -1.5446    
  16  norm          .83716        .33110        .28323E-04   -1.5525    
  17  Prefactor     80.158        72.091        .44856E-04   -1.3915    
  18  norm          .10000E-03    2.4008        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0374        7.5639        .15122E-03   -1.5177    
  20  Prefactor     32.408        25.706        .70388E-04   -1.4569    
  21  Prefactor     .10000E-03    11.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.3537        10.218        .13871E-03   -1.5130    
  24  Prefactor     6.0433        10.500        .16334E-03   -1.5216    
  25  Normalizat    .83062        .19817        .27090E-03   -.98943    
  26  Prefactor     1.0079        .18070        .23628E-03   -.92466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44087e-09
Minuit parameter uncertainties:
  1  26.2116
  2  3.1422e-06
  3  6.59868
  4  2.10948
  5  2.00887e-06
  6  7.43995
  7  1.9664e-07
  8  4.13642
  9  9.89078e-07
  10  2.88105
  11  3.05525e-07
  12  17.066
  13  3.57592
  14  4.36105e-06
  15  5.75525
  16  0.331096
  17  72.1695
  18  1.00589e-06
  19  7.56497
  20  25.7146
  21  8.08753e-08
  22  4.61897e-06
  23  10.2201
  24  10.5028
  25  0.198342
  26  0.18081
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.055e-07  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.008e+00  1.808e-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.306e-01  1.983e-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: 5.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440089/likelihoodResults_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.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) = 6947.70631487
delta logL = -0.00394328194216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6947.70237175
delta logL = -1.62056494446e-07

Fit tolerance = 1e-08

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

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

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

 FCN=   6947.702     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-03    109.73        .88590E-03** at limit **
   2  Index         2.4717        8.0254        .50000       -.24719E-04
   3  Normalizat    .83062        .43773E-01    .27090E-03   -.23501E-05
   4  Prefactor     1.0079        .41827E-01    .23628E-03    .20016E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6947.702     FROM SIMPLEX   STATUS=PROGRESS     146 CALLS      377 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    109.73        .15291E-03** at limit **
   2  Index         2.4715        8.0254        .59008E-04   -.24719E-04
   3  Normalizat    .83061        .43773E-01    .12642E-05   -.23501E-05
   4  Prefactor     1.0079        .41827E-01    .65093E-06    .20016E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6947.702     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      422 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    241.98        .17718E-03** at limit **
   2  Index         2.7186        5.0501        .50000        .27376E-07
   3  Normalizat    .83062        .93342E-01    .10836E-04    .14269E-04
   4  Prefactor     1.0079        .85558E-01    .94512E-05    .96230E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.71863
  Normalizat = 0.830617
  Prefactor  = 1.00793
 **********
 **   18 **HESSE 
 **********

 FCN=   6947.702     FROM HESSE     STATUS=OK            29 CALLS      451 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3639        .35436E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7186        7.8300        .50000       -.47380    
   3  Normalizat    .83062        .18745        .21672E-05   -.98943    
   4  Prefactor     1.0079        .17943        .18902E-05   -.92466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.73695e-13
Minuit parameter uncertainties:
  1  1.3418e-06
  2  99.036
  3  0.187591
  4  0.179535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440089': 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) = 6947.7023705
delta logL = 1.08059703052e-06

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.342e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.719e+00  9.904e+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.008e+00  1.795e-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.306e-01  1.876e-01  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/440089/cmap_HighResolution_545961601_546220801_4FGL_J1215.0+1656_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-05 05:44:42.166495', job_id='440089', GAL2='1.01', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630845882.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1183' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 440089: <4FGL_J1215.0+1656_daily_bin1183> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1183 183.774 16.9372 545961601 546220801 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 :                                   780.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            840 sec.

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

