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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin1532
RA = 183.774, Dec = 16.9372
tmin = 636422401, tmax = 636681601
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='441659', job_status='RUN', time_executed='2021-09-05 05:35:44.326247', time_epoch_executed='1630845344.33' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441659/ft1_4FGL_J1215.0+1656_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441659/ft2_4FGL_J1215.0+1656_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441659/ft1_4FGL_J1215.0+1656_daily_bin1532.fits outfile=/scratch/kocevski/441659/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin1532.fits ra=183.774 dec=16.9372 rad=12.0 tmin=636422401.0 tmax=636681601.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 6.39
user 3.46
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441659/ft1_filtered_4FGL_J1215.0+1656_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/441659/ft2_4FGL_J1215.0+1656_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/441659/ltcube_636422401_636681601_4FGL_J1215.0+1656_daily_bin1532.fits outfile=/scratch/kocevski/441659/expmap_636422401_636681601_4FGL_J1215.0+1656_daily_bin1532.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/441659/ltcube_636422401_636681601_4FGL_J1215.0+1656_daily_bin1532.fits
.....................!
real 190.90
user 185.05
sys 5.09

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/441659/ft1_filtered_4FGL_J1215.0+1656_daily_bin1532.fits scfile=/scratch/kocevski/441659/ft2_4FGL_J1215.0+1656_daily_bin1532.fits outfile=/scratch/kocevski/441659/cmap_636422401_636681601_4FGL_J1215.0+1656_daily_bin1532.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441659/ft1_filtered_4FGL_J1215.0+1656_daily_bin1532.fits scfile=/scratch/kocevski/441659/ft2_4FGL_J1215.0+1656_daily_bin1532.fits outfile=/scratch/kocevski/441659/cmap_HighResolution_636422401_636681601_4FGL_J1215.0+1656_daily_bin1532.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=183.774 yref=16.9372 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7588       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9855       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9936       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25314E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0431       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10959E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.578       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7019       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6914       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2416       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79961       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=   6396.025     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3150 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7131        127.49       -.34893E-05   -.66647E-04
   2  Prefactor     .10000E-03    32.345        .38474E-06** at limit **
   3  Prefactor     .10000E-03    4.4302       -.14947E-06** at limit **
   4  Prefactor     3.9863        2.1171       -.11639E-06    .92576E-04
   5  Prefactor     .10000E-03    39.147       -.15408E-06** at limit **
   6  Prefactor     .10000E-03    3.6099        .61231E-07** at limit **
   7  Prefactor     .10000E-03    6.8875        .65836E-07** at limit **
   8  Prefactor     7.9860        5.5954        .23660E-05    .82546E-05
   9  Prefactor     .10000E-03    64.187        .82847E-06** at limit **
  10  Prefactor     .10000E-03    1.7944       -.79305E-06** at limit **
  11  Prefactor     5.0145        3.8335        .12452E-06    .74335E-03
  12  Prefactor     8.0254        32.325        .97283E-07   -.42228E-04
  13  Prefactor     .10000E-03    1.3467       -.23647E-06** at limit **
  14  Prefactor     11.541        26.130       -.29035E-06   -.90209E-04
  15  Prefactor     .10000E-03    2.6832        .41427E-07** at limit **
  16  norm          .10712        .14291        .42826E-07    .67057E-03
  17  Prefactor     .10000E-03    42.023       -.15446E-06** at limit **
  18  norm          16.088        6.2393       -.78731E-07    .95784E-04
  19  Prefactor     .10000E-03    5.6238        .61262E-07** at limit **
  20  Prefactor     9.6829        22.681        .26857E-06   -.20065E-04
  21  Prefactor     .10000E-03    31.893        .45321E-06** at limit **
  22  Prefactor     5.6907        6.9818        .24896E-06    .23161E-04
  23  Prefactor     .10000E-03    7.1945        .27539E-06** at limit **
  24  Prefactor     .10000E-03    4.6610        .14910E-06** at limit **
  25  Normalizat    1.2416        .19079        .83655E-06    .18833E-03
  26  Prefactor     .79959        .17109       -.22353E-05    .28100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.71306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.98599
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 5.01447
  Prefactor  = 8.02543
  Prefactor  = 0.000100002
  Prefactor  = 11.5411
  Prefactor  = 0.0001
  norm       = 0.107121
  Prefactor  = 0.0001
  norm       = 16.0885
  Prefactor  = 0.0001
  Prefactor  = 9.68292
  Prefactor  = 0.0001
  Prefactor  = 5.69072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24164
  Prefactor  = 0.799586
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.025     FROM HESSE     STATUS=OK           458 CALLS     3608 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7131        130.73        .18444E-03   -1.5274    
   2  Prefactor     .10000E-03    32.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4422        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9863        2.1190        .81448E-04   -1.5309    
   5  Prefactor     .10000E-03    39.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6202        .14839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9860        5.6682        .70907E-03   -1.5143    
   9  Prefactor     .10000E-03    64.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5568        .18991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0145        3.6358        .12183E-03   -1.5260    
  12  Prefactor     8.0254        32.371        .14137E-03   -1.5141    
  13  Prefactor     .10000E-03    5.4151        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.541        26.164        .11773E-03   -1.5028    
  15  Prefactor     .10000E-03    2.7005        .12782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10712        .12645        .33545E-03   -1.5643    
  17  Prefactor     .10000E-03    42.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.088        6.2116        .99851E-04   -1.4906    
  19  Prefactor     .10000E-03    5.6371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.6829        22.686        .12865E-03   -1.5086    
  21  Prefactor     .10000E-03    31.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6907        6.9732        .16837E-03   -1.5231    
  23  Prefactor     .10000E-03    7.2469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6744        .16863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2416        .22580        .24487E-03   -.85326    
  26  Prefactor     .79959        .19997        .27689E-03   -.99744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34989e-09
Minuit parameter uncertainties:
  1  49.764
  2  1.64706e-05
  3  1.54924e-05
  4  2.11899
  5  0.000134926
  6  2.31488e-06
  7  9.81336e-07
  8  5.66858
  9  0.00046661
  10  0.00032243
  11  3.63597
  12  32.2665
  13  0.000197004
  14  26.1899
  15  2.61033e-06
  16  0.12645
  17  2.99564e-05
  18  6.21184
  19  1.43091e-05
  20  22.7064
  21  9.0847e-05
  22  6.97421
  23  5.48999e-07
  24  4.30889e-06
  25  0.225978
  26  0.200151
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  5.014e+00  3.636e+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:  7.996e-01  2.002e-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.242e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.47e-05

TS (Fixed Index): 2.80
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441659/likelihoodResults_636422401_636681601_4FGL_J1215.0+1656_daily_bin1532.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) = 6395.38360197
delta logL = 0.641689984446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6395.33913824
delta logL = 0.686153714095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3329       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5275       1.0000          .0000       10.000    
     3 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78703       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=   6395.339     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3329        3.0027        .55428E-02    .29199E-02
   2  Index         1.5275        .38472        .20530       -.79763E-04
   3  Normalizat    1.2823        .17890        .54601E-01    .44903E-05
   4  Prefactor     .78709        .16730        .63093E-01    .18540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33292
  Index      = 1.52746
  Normalizat = 1.28233
  Prefactor  = 0.787094
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.339     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3329        5.1267        .12363E-03   -1.5343    
   2  Index         1.5275        .73400        .80833E-02   -.76774    
   3  Normalizat    1.2823        .21276        .24143E-03   -.84095    
   4  Prefactor     .78709        .19936        .27908E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11072e-09
Minuit parameter uncertainties:
  1  5.12734
  2  0.739189
  3  0.212905
  4  0.199541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441659': 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) = 6395.33913817
delta logL = 0.686153778496

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.333e+00  5.127e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.527e+00  7.392e-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:  7.871e-01  1.995e-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.282e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 183.774 16.937
Photon Index (Free Index): 1.53 +/- 0.74
Photon Flux (Free Index): 1.63e-08 +/- 2.95e-08
Energy Flux (Free Index): 4.70e-05 +/- 5.86e-05

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/441659/cmap_HighResolution_636422401_636681601_4FGL_J1215.0+1656_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='4.70e-05', photon_flux_error='4.53e-08', dlogl='6.86e-01', energy_flux='2.02e-05', photon_flux2='1.63e-08', job_status='DONE', time_completed='2021-09-05 05:49:08.935287', photon_index_error2='0.74', photon_index2='1.53', ts='2.80', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='5.86e-05', EG='1.24', time_epoch_completed='1630846148.94', return_code='0', job_id='441659', GAL2='0.79', EG2='1.28', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='2.95e-08', ts2='4.15', photon_index='2.41' WHERE bin_id='1532' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:49:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 441659: <4FGL_J1215.0+1656_daily_bin1532> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin1532 183.774 16.9372 636422401 636681601 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 :                                   740.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            823 sec.

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

