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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin747
RA = 183.774, Dec = 16.9372
tmin = 432950401, tmax = 433209601
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='437263', job_status='RUN', time_executed='2021-09-05 05:21:04.761023', time_epoch_executed='1630844464.76' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437263

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437263/ft1_4FGL_J1215.0+1656_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437263/ft2_4FGL_J1215.0+1656_daily_bin747.fits


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

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

Done.
real 5.67
user 5.39
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437263/ft1_filtered_4FGL_J1215.0+1656_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/437263/ft2_4FGL_J1215.0+1656_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/437263/ltcube_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.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/437263/ft2_4FGL_J1215.0+1656_daily_bin747.fits
.....................!
real 11.99
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437263/ft1_filtered_4FGL_J1215.0+1656_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/437263/ft2_4FGL_J1215.0+1656_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/437263/ltcube_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.fits outfile=/scratch/kocevski/437263/expmap_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.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/437263/ltcube_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.fits
.....................!
real 190.38
user 184.93
sys 4.97

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/437263/ft1_filtered_4FGL_J1215.0+1656_daily_bin747.fits scfile=/scratch/kocevski/437263/ft2_4FGL_J1215.0+1656_daily_bin747.fits outfile=/scratch/kocevski/437263/cmap_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437263/ft1_filtered_4FGL_J1215.0+1656_daily_bin747.fits scfile=/scratch/kocevski/437263/ft2_4FGL_J1215.0+1656_daily_bin747.fits outfile=/scratch/kocevski/437263/cmap_HighResolution_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.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.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.710       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19458E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .44738       1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1033       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0624       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29522E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.960       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.612       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.259       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8244       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1004       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82727       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0892       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=   4092.467     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3118 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.706        47.461       -.58715E-05    .12963E-04
   2  Prefactor     .10000E-03    80.066       -.11626E-04** at limit **
   3  Prefactor     .10000E-03    5.5784        .23506E-05** at limit **
   4  Prefactor     .10000E-03    .92178       -.19253E-06** at limit **
   5  Prefactor     .10000E-03    40.507       -.11889E-04** at limit **
   6  Prefactor     .10000E-03    3.4633       -.39100E-07** at limit **
   7  Prefactor     .10000E-03    5.3822        .17959E-05** at limit **
   8  Prefactor     .10000E-03    2.6838        .99108E-07** at limit **
   9  Prefactor     .10000E-03    30.650       -.54429E-06** at limit **
  10  Prefactor     .10001E-03    3.8112       -.20199E-05** at limit **
  11  Prefactor     .44656        4.8224       -.10449E-05    .30458E-03
  12  Prefactor     73.709        52.415       -.25971E-05    .71288E-05
  13  Prefactor     2.2133        2.3563       -.20325E-06   -.10136E-03
  14  Prefactor     .10000E-03    54.931        .20964E-04** at limit **
  15  Prefactor     8.1029        6.8247        .23738E-05    .61595E-04
  16  norm          1.0624        .38911       -.28391E-07    .28319E-02
  17  Prefactor     .10000E-03    281.51       -.83847E-04** at limit **
  18  norm          12.163        7.1280       -.15802E-06    .42762E-04
  19  Prefactor     14.959        13.288        .78615E-06    .49523E-04
  20  Prefactor     55.605        38.308       -.46203E-05    .73799E-04
  21  Prefactor     26.260        64.165        .24029E-05    .42380E-05
  22  Prefactor     1.8216        8.0885       -.10562E-04   -.43068E-03
  23  Prefactor     7.0941        18.887       -.10668E-05   -.43049E-04
  24  Prefactor     .10000E-03    21.157        .87057E-06** at limit **
  25  Normalizat    .82752        .22504        .24601E-05    .50736E-03
  26  Prefactor     1.0892        .21260        .12819E-05    .46872E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.446563
  Prefactor  = 73.7092
  Prefactor  = 2.21325
  Prefactor  = 0.0001
  Prefactor  = 8.10285
  norm       = 1.06242
  Prefactor  = 0.0001
  norm       = 12.1633
  Prefactor  = 14.959
  Prefactor  = 55.6049
  Prefactor  = 26.2598
  Prefactor  = 1.82155
  Prefactor  = 7.09405
  Prefactor  = 0.0001
  Normalizat = 0.82752
  Prefactor  = 1.08923
 **********
 **   18 **HESSE 
 **********

 FCN=   4092.467     FROM HESSE     STATUS=OK           456 CALLS     3574 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.706        47.502        .71155E-04   -1.4581    
   2  Prefactor     .10000E-03    83.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6011        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4492        .11842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4667        .11627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3813        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.694        .19475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    5.5238        .21126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44656        7.7586        .23052E-02   -1.5574    
  12  Prefactor     73.709        52.404        .46764E-04   -1.3989    
  13  Prefactor     2.2133        2.3467        .97914E-04   -1.5410    
  14  Prefactor     .10000E-03    54.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1029        6.8113        .14084E-03   -1.5139    
  16  norm          1.0624        .38779        .22460E-04   -1.5502    
  17  Prefactor     .10000E-03    278.07        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.163        7.1256        .11485E-03   -1.5010    
  19  Prefactor     14.959        13.278        .10355E-03   -1.4934    
  20  Prefactor     55.605        38.242        .53790E-04   -1.4215    
  21  Prefactor     26.260        63.708        .78175E-04   -1.4683    
  22  Prefactor     1.8216        8.5666        .30908E-03   -1.5438    
  23  Prefactor     7.0941        18.712        .15054E-03   -1.5175    
  24  Prefactor     .10000E-03    21.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82752        .25287        .27247E-03   -.99056    
  26  Prefactor     1.0892        .24598        .24191E-03   -.89812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15355e-09
Minuit parameter uncertainties:
  1  47.5584
  2  1.12151e-06
  3  1.16442e-05
  4  1.01783e-05
  5  6.89188e-06
  6  2.06187e-06
  7  1.96636e-06
  8  0.00049003
  9  7.21316e-06
  10  0.000426546
  11  3.7229
  12  52.4372
  13  2.34677
  14  4.45589e-05
  15  6.81192
  16  0.387793
  17  0.000151357
  18  7.12606
  19  13.2806
  20  38.2593
  21  63.8734
  22  7.90216
  23  18.7278
  24  4.29798e-05
  25  0.25323
  26  0.246234
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  4.466e-01  3.723e+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.089e+00  2.462e-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.275e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437263/likelihoodResults_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.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) = 4092.41293693
delta logL = 0.0543726916321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4092.40821668
delta logL = 0.0590929413761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64851       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0656       1.0000          .0000       10.000    
     3 'Normalizat'    .81152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0950       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=   4092.408     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      217 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64887        46.222        .11863E-01    .90502E-03
   2  Index         3.0647        6.5305        .21961        .34858E-04
   3  Normalizat    .81147        .35797E-01    .43760E-01    .71797E-06
   4  Prefactor     1.0951        .36306E-01    .54577E-01   -.95546E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.648868
  Index      = 3.06469
  Normalizat = 0.811469
  Prefactor  = 1.09505
 **********
 **   18 **HESSE 
 **********

 FCN=   4092.408     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64887        3.0684        .13292E-03   -1.5547    
   2  Index         3.0647        2.0351        .11088E-01   -.39744    
   3  Normalizat    .81147        .24681        .27489E-03   -.99645    
   4  Prefactor     1.0951        .24369        .24130E-03   -.89625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07169e-09
Minuit parameter uncertainties:
  1  2.82207
  2  2.10776
  3  0.247156
  4  0.243938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437263': 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) = 4092.40821643
delta logL = 0.0590931904312

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  6.489e-01  2.822e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  3.065e+00  2.108e+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.095e+00  2.439e-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.115e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/437263/cmap_HighResolution_432950401_433209601_4FGL_J1215.0+1656_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-05 05:31:18.748670', job_id='437263', GAL2='1.10', fit_tolerance='1e-08', EG2='0.81', EG='0.83', time_epoch_completed='1630845078.75', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.91e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='747' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:31:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 437263: <4FGL_J1215.0+1656_daily_bin747> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin747 183.774 16.9372 432950401 433209601 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 :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

