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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin770
RA = 183.774, Dec = 16.9372
tmin = 438912001, tmax = 439171201
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='437296', job_status='RUN', time_executed='2021-09-05 05:21:04.331031', time_epoch_executed='1630844464.33' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437296

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437296/ft1_4FGL_J1215.0+1656_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437296/ft2_4FGL_J1215.0+1656_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437296/ft1_4FGL_J1215.0+1656_daily_bin770.fits outfile=/scratch/kocevski/437296/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin770.fits ra=183.774 dec=16.9372 rad=12.0 tmin=438912001.0 tmax=439171201.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.20
user 5.81
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437296/ft1_filtered_4FGL_J1215.0+1656_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/437296/ft2_4FGL_J1215.0+1656_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/437296/ltcube_438912001_439171201_4FGL_J1215.0+1656_daily_bin770.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/437296/ft2_4FGL_J1215.0+1656_daily_bin770.fits
.....................!
real 12.81
user 12.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437296/ft1_filtered_4FGL_J1215.0+1656_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/437296/ft2_4FGL_J1215.0+1656_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/437296/ltcube_438912001_439171201_4FGL_J1215.0+1656_daily_bin770.fits outfile=/scratch/kocevski/437296/expmap_438912001_439171201_4FGL_J1215.0+1656_daily_bin770.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/437296/ltcube_438912001_439171201_4FGL_J1215.0+1656_daily_bin770.fits
.....................!
real 190.61
user 185.23
sys 4.99

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/437296/ft1_filtered_4FGL_J1215.0+1656_daily_bin770.fits scfile=/scratch/kocevski/437296/ft2_4FGL_J1215.0+1656_daily_bin770.fits outfile=/scratch/kocevski/437296/cmap_438912001_439171201_4FGL_J1215.0+1656_daily_bin770.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.61
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    124.56       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2489       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.643       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0273       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7645       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98707       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2547       1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.935       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4169       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62021       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=   8449.420     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3064 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     124.57        73.810        .39987E-05   -.64494E-06
   2  Prefactor     .10000E-03    43.908        .21579E-04** at limit **
   3  Prefactor     .10000E-03    7.1514       -.19403E-06** at limit **
   4  Prefactor     4.2490        2.4702       -.48335E-07   -.64313E-03
   5  Prefactor     .10000E-03    57.617       -.11294E-04** at limit **
   6  Prefactor     .10000E-03    2.8941        .53126E-07** at limit **
   7  Prefactor     22.644        18.691        .18889E-07    .41136E-05
   8  Prefactor     .10000E-03    4.8241        .97280E-07** at limit **
   9  Prefactor     .10000E-03    35.840        .33912E-05** at limit **
  10  Prefactor     .10000E-03    1.4472       -.13881E-07** at limit **
  11  Prefactor     2.1686        3.3520        .18450E-06    .20946E-04
  12  Prefactor     .10000E-03    60.404       -.27722E-04** at limit **
  13  Prefactor     6.0274        2.3729        .29919E-07   -.28687E-04
  14  Prefactor     .10000E-03    22.148        .11336E-04** at limit **
  15  Prefactor     .10000E-03    1.3282       -.11662E-07** at limit **
  16  norm          4.7646        .49453       -.94311E-09    .16472E-03
  17  Prefactor     .10000E-03    46.213        .21450E-04** at limit **
  18  norm          3.6169        2.5781       -.36801E-07    .29131E-05
  19  Prefactor     .10000E-03    4.2900       -.17890E-07** at limit **
  20  Prefactor     .10000E-03    26.691       -.23258E-04** at limit **
  21  Prefactor     .10000E-03    23.086       -.12692E-05** at limit **
  22  Prefactor     .98684        .67604        .91853E-07   -.19801E-02
  23  Prefactor     5.2564        11.612        .12965E-06    .38893E-04
  24  Prefactor     33.937        15.813        .12491E-07    .54263E-04
  25  Normalizat    1.4167        .19186       -.19773E-06    .15375E-03
  26  Prefactor     .62030        .16666       -.13451E-06    .10703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 124.569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.16862
  Prefactor  = 0.0001
  Prefactor  = 6.02742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.76465
  Prefactor  = 0.0001
  norm       = 3.61687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.986843
  Prefactor  = 5.25642
  Prefactor  = 33.9373
  Normalizat = 1.41671
  Prefactor  = 0.620304
 **********
 **   18 **HESSE 
 **********

 FCN=   8449.420     FROM HESSE     STATUS=OK           450 CALLS     3514 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     124.57        73.905        .36065E-04   -1.3471    
   2  Prefactor     .10000E-03    44.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2490        2.4702        .10567E-03   -1.5296    
   5  Prefactor     .10000E-03    57.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8964        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.644        18.740        .84177E-04   -1.4756    
   8  Prefactor     .10000E-03    5.0047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4743        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1686        3.3319        .19629E-03   -1.5413    
  12  Prefactor     .10000E-03    60.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.0274        2.3744        .86278E-04   -1.5217    
  14  Prefactor     .10000E-03    22.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3303        .10345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7646        .49915        .19519E-04   -1.5271    
  17  Prefactor     .10000E-03    46.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6169        2.5803        .12121E-03   -1.5328    
  19  Prefactor     .10000E-03    4.3094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .98684        4.9556        .19461E-02   -1.5509    
  23  Prefactor     5.2564        11.580        .17535E-03   -1.5249    
  24  Prefactor     33.937        15.815        .68789E-04   -1.4542    
  25  Normalizat    1.4167        .22894        .26747E-03   -.80147    
  26  Prefactor     .62030        .19549        .34873E-03   -1.0674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55869e-09
Minuit parameter uncertainties:
  1  73.9595
  2  0.000160892
  3  5.23075e-06
  4  2.47021
  5  1.64475e-06
  6  8.87168e-08
  7  18.7448
  8  3.01635e-06
  9  2.17964e-06
  10  1.0922e-06
  11  3.33217
  12  0.000257134
  13  2.37445
  14  1.42006e-06
  15  1.81049e-07
  16  0.499146
  17  1.93043e-05
  18  2.58036
  19  8.5214e-06
  20  8.82733e-05
  21  4.00608e-06
  22  4.42323
  23  11.5849
  24  15.8173
  25  0.229102
  26  0.195703
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  2.169e+00  3.332e+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:  6.203e-01  1.957e-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.417e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/437296/likelihoodResults_438912001_439171201_4FGL_J1215.0+1656_daily_bin770.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) = 8449.41352829
delta logL = 0.00642297192826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8449.41167595
delta logL = 0.00827530941933

Fit tolerance = 1e-08

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

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

 FCN=   8449.412     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      244 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3882        3.9733        .20362E-03   -.54338E-03
   2  Index         2.2914        .91087        .13248E-01   -.78240E-04
   3  Normalizat    1.4197        .21582        .26724E-03    .17400E-03
   4  Prefactor     .61785        .19505        .34937E-03    .17728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38817
  Index      = 2.29144
  Normalizat = 1.41969
  Prefactor  = 0.617845
 **********
 **   18 **HESSE 
 **********

 FCN=   8449.412     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3882        3.8370        .81446E-05   -1.5399    
   2  Index         2.2914        .87998        .52992E-03   -.57247    
   3  Normalizat    1.4197        .21584        .53447E-04   -.80061    
   4  Prefactor     .61785        .19497        .13975E-04   -1.0684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20779e-10
Minuit parameter uncertainties:
  1  3.8374
  2  0.886541
  3  0.215974
  4  0.195179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437296': 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) = 8449.41167592
delta logL = 0.0082753409697

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  2.388e+00  3.837e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.291e+00  8.865e-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:  6.178e-01  1.952e-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.420e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 183.774 16.937

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/437296/cmap_HighResolution_438912001_439171201_4FGL_J1215.0+1656_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.07e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-05 05:36:25.003276', job_id='437296', GAL2='0.62', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630845385.0', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='8.28e-03', ts2='0.53', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='770' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:36:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 437296: <4FGL_J1215.0+1656_daily_bin770> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin770 183.774 16.9372 438912001 439171201 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 :                                   909.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

