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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin95
RA = 183.774, Dec = 16.9372
tmin = 263952001, tmax = 264211201
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='433851', job_status='RUN', time_executed='2021-09-05 05:11:40.572770', time_epoch_executed='1630843900.57' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433851/ft1_4FGL_J1215.0+1656_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433851/ft2_4FGL_J1215.0+1656_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433851/ft1_4FGL_J1215.0+1656_daily_bin95.fits outfile=/scratch/kocevski/433851/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin95.fits ra=183.774 dec=16.9372 rad=12.0 tmin=263952001.0 tmax=264211201.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.71
user 1.53
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433851/ft1_filtered_4FGL_J1215.0+1656_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/433851/ft2_4FGL_J1215.0+1656_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/433851/ltcube_263952001_264211201_4FGL_J1215.0+1656_daily_bin95.fits outfile=/scratch/kocevski/433851/expmap_263952001_264211201_4FGL_J1215.0+1656_daily_bin95.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/433851/ltcube_263952001_264211201_4FGL_J1215.0+1656_daily_bin95.fits
.....................!
real 190.67
user 185.78
sys 4.46

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/433851/ft1_filtered_4FGL_J1215.0+1656_daily_bin95.fits scfile=/scratch/kocevski/433851/ft2_4FGL_J1215.0+1656_daily_bin95.fits outfile=/scratch/kocevski/433851/cmap_263952001_264211201_4FGL_J1215.0+1656_daily_bin95.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433851/ft1_filtered_4FGL_J1215.0+1656_daily_bin95.fits scfile=/scratch/kocevski/433851/ft2_4FGL_J1215.0+1656_daily_bin95.fits outfile=/scratch/kocevski/433851/cmap_HighResolution_263952001_264211201_4FGL_J1215.0+1656_daily_bin95.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5993       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10749E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13664E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9719       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .82081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    105.04       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7531       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.083       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.431       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9860       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11948E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.182       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89327       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84958       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=   5670.298     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3126 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.303       -.88811E-07** at limit **
   2  Prefactor     .10000E-03    10.044        .11843E-07** at limit **
   3  Prefactor     .10000E-03    3.9294       -.55940E-07** at limit **
   4  Prefactor     .10000E-03    1.3428       -.54818E-07** at limit **
   5  Prefactor     .10000E-03    32.246       -.67314E-06** at limit **
   6  Prefactor     4.5917        8.3497        .28555E-06   -.22944E-04
   7  Prefactor     .10000E-03    34.691        .26883E-06** at limit **
   8  Prefactor     1.5099        4.4350        .17059E-05    .19433E-03
   9  Prefactor     .10000E-03    69.615       -.15252E-05** at limit **
  10  Prefactor     .10000E-03    1.6058       -.62430E-06** at limit **
  11  Prefactor     .39511        3.0013        .88532E-06   -.14859E-03
  12  Prefactor     .10000E-03    16.452       -.83219E-07** at limit **
  13  Prefactor     3.9720        2.0224        .86964E-08   -.21408E-05
  14  Prefactor     .10000E-03    59.666        .11267E-05** at limit **
  15  Prefactor     .10000E-03    1.2966       -.12560E-08** at limit **
  16  norm          .82086        .26696        .22156E-08   -.11952E-03
  17  Prefactor     105.01        137.06       -.15460E-05   -.43512E-04
  18  norm          1.7532        2.4112        .10121E-06    .16753E-06
  19  Prefactor     12.660        9.9069        .73033E-07   -.22452E-04
  20  Prefactor     40.081        26.931       -.81726E-07   -.43230E-04
  21  Prefactor     39.457        45.963        .18203E-05    .72120E-04
  22  Prefactor     2.9860        3.0663       -.42071E-07    .34940E-05
  23  Prefactor     .10000E-03    19.833        .29037E-05** at limit **
  24  Prefactor     10.186        12.959        .17245E-05   -.80138E-04
  25  Normalizat    .89315        .18031       -.10132E-05    .98972E-05
  26  Prefactor     .84961        .16490        .28701E-07   -.51429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59169
  Prefactor  = 0.0001
  Prefactor  = 1.50988
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.395113
  Prefactor  = 0.0001
  Prefactor  = 3.97203
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.820862
  Prefactor  = 105.009
  norm       = 1.75317
  Prefactor  = 12.6604
  Prefactor  = 40.0807
  Prefactor  = 39.457
  Prefactor  = 2.98602
  Prefactor  = 0.0001
  Prefactor  = 10.186
  Normalizat = 0.893153
  Prefactor  = 0.849609
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.298     FROM HESSE     STATUS=OK           462 CALLS     3588 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9485        .14576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6754        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5917        8.3361        .18769E-03   -1.5279    
   7  Prefactor     .10000E-03    35.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5099        4.4652        .24691E-03   -1.5462    
   9  Prefactor     .10000E-03    69.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.998        .15467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39511        4.4620        .21144E-02   -1.5582    
  12  Prefactor     .10000E-03    16.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9720        2.0247        .74295E-04   -1.5309    
  14  Prefactor     .10000E-03    60.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2982        .83730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .82086        .26663        .20997E-04   -1.5527    
  17  Prefactor     105.01        138.60        .19618E-03   -1.3655    
  18  norm          1.7532        2.3916        .13321E-03   -1.5443    
  19  Prefactor     12.660        9.8979        .11258E-03   -1.4996    
  20  Prefactor     40.081        26.935        .63312E-04   -1.4441    
  21  Prefactor     39.457        46.294        .63832E-04   -1.4451    
  22  Prefactor     2.9860        3.0734        .13036E-03   -1.5362    
  23  Prefactor     .10000E-03    19.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.186        12.899        .62787E-03   -1.5070    
  25  Normalizat    .89315        .20765        .23946E-03   -.96701    
  26  Prefactor     .84961        .19323        .23957E-03   -.97925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56448e-08
Minuit parameter uncertainties:
  1  6.19238e-06
  2  4.57087e-06
  3  4.78788e-06
  4  6.25018e-06
  5  0.000116345
  6  8.33821
  7  0.000101757
  8  4.46614
  9  0.000374874
  10  0.000110831
  11  2.65546
  12  1.09354e-05
  13  2.0247
  14  0.000484063
  15  1.3693e-07
  16  0.266632
  17  139.028
  18  2.39175
  19  9.89917
  20  26.9434
  21  46.3359
  22  3.0736
  23  0.000173526
  24  12.903
  25  0.207836
  26  0.19339
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  3.951e-01  2.655e+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:  8.496e-01  1.934e-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.932e-01  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 183.774 16.937
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433851/likelihoodResults_263952001_264211201_4FGL_J1215.0+1656_daily_bin95.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5670.27109193
delta logL = 0.0264581269139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5669.88835856
delta logL = 0.409191499735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9350       1.0000          .0000       10.000    
     3 'Normalizat'    .84724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88297       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=   5669.888     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      372 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .45274E-02    .36352E-03** at limit **
   2  Index         7.9347        3.3616        .18019        .11902E-03
   3  Normalizat    .84706        .37309E-01    .44224E-01    .77189E-05
   4  Prefactor     .88318        .36349E-01    .44788E-01   -.12370E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.93468
  Normalizat = 0.847058
  Prefactor  = 0.883176
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.888     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      413 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .26262E-01    .20502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9347        8.8533        .87563E-02    .62727    
   3  Normalizat    .84706        .81499E-01    .24514E-03   -.98346    
   4  Prefactor     .88318        .79227E-01    .23547E-03   -.96731    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.95876e-09
Minuit parameter uncertainties:
  1  3.62045e-08
  2  7.67068
  3  0.0815108
  4  0.0792375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433851': 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): 102
logL (Free Index) = 5669.8883577
delta logL = 0.409192353803

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.620e-08  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  7.935e+00  7.671e+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:  8.832e-01  7.924e-02  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.471e-01  8.151e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/433851/cmap_HighResolution_263952001_264211201_4FGL_J1215.0+1656_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-05 05:23:17.581781', job_id='433851', GAL2='0.88', fit_tolerance='1e-08', EG2='0.85', EG='0.89', time_epoch_completed='1630844597.58', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.09e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='95' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:23:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 433851: <4FGL_J1215.0+1656_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin95 183.774 16.9372 263952001 264211201 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 :                                   694.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

