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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin23
RA = 183.774, Dec = 16.9372
tmin = 245289601, tmax = 245548801
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='433761', job_status='RUN', time_executed='2021-09-05 05:15:05.773135', time_epoch_executed='1630844105.77' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433761/ft1_4FGL_J1215.0+1656_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433761/ft2_4FGL_J1215.0+1656_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433761/ft1_4FGL_J1215.0+1656_daily_bin23.fits outfile=/scratch/kocevski/433761/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin23.fits ra=183.774 dec=16.9372 rad=12.0 tmin=245289601.0 tmax=245548801.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.46
user 1.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433761/ft2_4FGL_J1215.0+1656_daily_bin23.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/433761/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin23.fits evtable="EVENTS" outfile="/scratch/kocevski/433761/ft1_filtered_4FGL_J1215.0+1656_daily_bin23.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.46
user 0.31
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433761/ft1_filtered_4FGL_J1215.0+1656_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/433761/ft2_4FGL_J1215.0+1656_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/433761/ltcube_245289601_245548801_4FGL_J1215.0+1656_daily_bin23.fits outfile=/scratch/kocevski/433761/expmap_245289601_245548801_4FGL_J1215.0+1656_daily_bin23.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/433761/ltcube_245289601_245548801_4FGL_J1215.0+1656_daily_bin23.fits
.....................!
real 190.83
user 185.14
sys 5.32

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/433761/ft1_filtered_4FGL_J1215.0+1656_daily_bin23.fits scfile=/scratch/kocevski/433761/ft2_4FGL_J1215.0+1656_daily_bin23.fits outfile=/scratch/kocevski/433761/cmap_245289601_245548801_4FGL_J1215.0+1656_daily_bin23.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433761/ft1_filtered_4FGL_J1215.0+1656_daily_bin23.fits scfile=/scratch/kocevski/433761/ft2_4FGL_J1215.0+1656_daily_bin23.fits outfile=/scratch/kocevski/433761/cmap_HighResolution_245289601_245548801_4FGL_J1215.0+1656_daily_bin23.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8684       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.755       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2701       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6229       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5017       1.0000         .10000E-03   10000.    
    16 'norm      '    .19035       1.0000         .10000E-03   10000.    
    17 'Prefactor '    255.96       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7027       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.533       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4862       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.4863       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74785       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2307       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=   5960.000     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3059 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8676        34.232        .14539E-05   -.41753E-05
   2  Prefactor     .10000E-03    16.481        .49786E-06** at limit **
   3  Prefactor     .10000E-03    2.2420        .47721E-07** at limit **
   4  Prefactor     .10000E-03    .64101        .40331E-06** at limit **
   5  Prefactor     33.614        91.599        .29141E-04    .81667E-05
   6  Prefactor     .10000E-03    3.1841       -.57594E-06** at limit **
   7  Prefactor     .10000E-03    5.8428       -.14521E-07** at limit **
   8  Prefactor     1.2698        2.4993        .29702E-06   -.36953E-04
   9  Prefactor     .10000E-03    23.608       -.14903E-05** at limit **
  10  Prefactor     .10000E-03    .91425        .36519E-07** at limit **
  11  Prefactor     1.6224        2.9521        .45412E-06   -.61543E-04
  12  Prefactor     .10000E-03    28.271        .34325E-06** at limit **
  13  Prefactor     7.1469        3.2702       -.13007E-06   -.13635E-03
  14  Prefactor     .10000E-03    15.212        .60062E-06** at limit **
  15  Prefactor     1.5015        5.4763        .13497E-04   -.90915E-04
  16  norm          .19028        .22050        .98116E-07    .22473E-02
  17  Prefactor     255.98        157.77       -.14380E-05   -.12789E-04
  18  norm          3.7032        3.8918       -.13784E-05   -.69720E-04
  19  Prefactor     14.534        9.6417        .26902E-06   -.22466E-04
  20  Prefactor     .10000E-03    12.971       -.34414E-06** at limit **
  21  Prefactor     .10000E-03    16.111        .36648E-06** at limit **
  22  Prefactor     .10000E-03    4.7476        .20365E-06** at limit **
  23  Prefactor     3.4855        12.104        .35129E-06   -.13502E-04
  24  Prefactor     4.4873        16.450        .41213E-05   -.20715E-04
  25  Normalizat    .74785        .17885       -.17629E-05   -.13866E-03
  26  Prefactor     1.2308        .17361       -.16393E-05   -.18701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.62239
  Prefactor  = 0.0001
  Prefactor  = 7.14693
  Prefactor  = 0.0001
  Prefactor  = 1.50152
  norm       = 0.190279
  Prefactor  = 255.981
  norm       = 3.70315
  Prefactor  = 14.5343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.48554
  Prefactor  = 4.4873
  Normalizat = 0.747853
  Prefactor  = 1.23079
 **********
 **   18 **HESSE 
 **********

 FCN=   5960.000     FROM HESSE     STATUS=OK           458 CALLS     3517 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8676        34.206        .16578E-03   -1.5223    
   2  Prefactor     .10000E-03    16.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2444        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .97629        .11997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.614        91.592        .34486E-03   -1.4548    
   6  Prefactor     .10000E-03    3.1939        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2698        2.4562        .16417E-03   -1.5483    
   9  Prefactor     .10000E-03    23.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .92125        .71928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6224        2.9209        .16728E-03   -1.5453    
  12  Prefactor     .10000E-03    28.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1469        3.2711        .90477E-04   -1.5173    
  14  Prefactor     .10000E-03    15.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5015        5.4878        .15984E-02   -1.5463    
  16  norm          .19028        .20727        .36331E-03   -1.5621    
  17  Prefactor     255.98        157.76        .12664E-03   -1.2494    
  18  norm          3.7032        3.8879        .14532E-03   -1.5323    
  19  Prefactor     14.534        9.6405        .10506E-03   -1.4945    
  20  Prefactor     .10000E-03    12.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7968        .16425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4855        11.989        .21656E-03   -1.5335    
  24  Prefactor     4.4873        16.327        .95046E-03   -1.5284    
  25  Normalizat    .74785        .20917        .27776E-03   -1.0203    
  26  Prefactor     1.2308        .20559        .22507E-03   -.85389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23766e-10
Minuit parameter uncertainties:
  1  28.3585
  2  5.28735e-05
  3  3.57858e-06
  4  1.15631e-05
  5  91.979
  6  4.58954e-05
  7  1.54125e-06
  8  2.45636
  9  4.03372e-05
  10  1.23207e-06
  11  2.92117
  12  6.89244e-05
  13  3.27114
  14  3.51405e-05
  15  5.48961
  16  0.207271
  17  158.024
  18  3.88814
  19  9.64154
  20  2.38022e-05
  21  4.62131e-06
  22  2.34094e-05
  23  11.9969
  24  16.3433
  25  0.209392
  26  0.205725
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.622e+00  2.921e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.231e+00  2.057e-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.479e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433761/likelihoodResults_245289601_245548801_4FGL_J1215.0+1656_daily_bin23.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): 0
logL (Free Index) = 5959.99946225
delta logL = 6.55763051327e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5959.99941045
delta logL = 0.00011738383273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6611       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3892       1.0000          .0000       10.000    
     3 'Normalizat'    .74828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2306       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=   5959.999     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      228 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6626        93.236        .81830E-02    .63565E-03
   2  Index         2.3880        6.0864        .23946        .39638E-04
   3  Normalizat    .74823        .41045E-01    .62775E-01    .17606E-04
   4  Prefactor     1.2304        .42093E-01    .50917E-01   -.66529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66258
  Index      = 2.38797
  Normalizat = 0.748228
  Prefactor  = 1.23043
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.999     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6626        4.5018        .16926E-03   -1.5450    
   2  Index         2.3880        1.5887        .11511E-01   -.54967    
   3  Normalizat    .74823        .20239        .27770E-03   -1.0202    
   4  Prefactor     1.2304        .20586        .22510E-03   -.85400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6482e-09
Minuit parameter uncertainties:
  1  4.50271
  2  1.62795
  3  0.202596
  4  0.205992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433761': 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) = 5959.99940847
delta logL = 0.000119355749121

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.663e+00  4.503e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.388e+00  1.628e+00  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.230e+00  2.060e-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.482e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/433761/cmap_HighResolution_245289601_245548801_4FGL_J1215.0+1656_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-05 05:26:52.219374', job_id='433761', GAL2='1.23', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630844812.22', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.19e-04', ts2='0.38', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='23' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:26:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 433761: <4FGL_J1215.0+1656_daily_bin23> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin23 183.774 16.9372 245289601 245548801 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 :                                   703.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

