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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin41
RA = 183.774, Dec = 16.9372
tmin = 249955201, tmax = 250214401
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='433779', job_status='RUN', time_executed='2021-09-05 05:13:06.365294', time_epoch_executed='1630843986.37' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433779/ft1_4FGL_J1215.0+1656_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433779/ft2_4FGL_J1215.0+1656_daily_bin41.fits


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

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

Done.
real 1.46
user 1.27
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433779/ft1_filtered_4FGL_J1215.0+1656_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/433779/ft2_4FGL_J1215.0+1656_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/433779/ltcube_249955201_250214401_4FGL_J1215.0+1656_daily_bin41.fits outfile=/scratch/kocevski/433779/expmap_249955201_250214401_4FGL_J1215.0+1656_daily_bin41.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/433779/ltcube_249955201_250214401_4FGL_J1215.0+1656_daily_bin41.fits
.....................!
real 191.33
user 185.40
sys 5.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/433779/ft1_filtered_4FGL_J1215.0+1656_daily_bin41.fits scfile=/scratch/kocevski/433779/ft2_4FGL_J1215.0+1656_daily_bin41.fits outfile=/scratch/kocevski/433779/cmap_249955201_250214401_4FGL_J1215.0+1656_daily_bin41.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=183.774 yref=16.9372 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433779/ft1_filtered_4FGL_J1215.0+1656_daily_bin41.fits scfile=/scratch/kocevski/433779/ft2_4FGL_J1215.0+1656_daily_bin41.fits outfile=/scratch/kocevski/433779/cmap_HighResolution_249955201_250214401_4FGL_J1215.0+1656_daily_bin41.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13285E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3234       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1496       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.619       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .21510       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26063E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.167       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.178       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2628       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2118       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98041       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=   6825.006     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2641 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2354        .70428E-06** at limit **
   2  Prefactor     .10000E-03    3.7789       -.66880E-08** at limit **
   3  Prefactor     .10003E-03    6.0859       -.13404E-06** at limit **
   4  Prefactor     .10000E-03    .43834       -.10896E-07** at limit **
   5  Prefactor     .10000E-03    43.832       -.10223E-07** at limit **
   6  Prefactor     6.3226        8.9930        .56196E-06    .30097E-04
   7  Prefactor     .10000E-03    12.099       -.60540E-06** at limit **
   8  Prefactor     .10000E-03    1.9459       -.23037E-07** at limit **
   9  Prefactor     .10000E-03    31.828       -.22132E-05** at limit **
  10  Prefactor     1.1518        2.4225        .53540E-06    .10602E-03
  11  Prefactor     .10000E-03    1.4148        .35344E-07** at limit **
  12  Prefactor     .10000E-03    7.3726       -.10956E-06** at limit **
  13  Prefactor     11.619        3.4382        .78383E-07   -.34650E-04
  14  Prefactor     .10000E-03    22.181        .94380E-06** at limit **
  15  Prefactor     .10000E-03    4.8294       -.31115E-06** at limit **
  16  norm          .21516        .22343        .61001E-07   -.36095E-03
  17  Prefactor     .10020E-03    786.26        .94477E-04** at limit **
  18  norm          .10000E-03    5.5076        .29846E-06** at limit **
  19  Prefactor     .10000E-03    4.9636        .14934E-06** at limit **
  20  Prefactor     11.168        14.573        .10866E-06   -.30531E-04
  21  Prefactor     .10000E-03    10.370        .31243E-07** at limit **
  22  Prefactor     10.179        7.0229        .36747E-06   -.48404E-05
  23  Prefactor     1.2626        7.0754        .20927E-04   -.20567E-03
  24  Prefactor     .10000E-03    6.3776       -.58218E-06** at limit **
  25  Normalizat    1.2118        .17935        .20318E-06   -.59706E-03
  26  Prefactor     .98031        .17176       -.32867E-05   -.56186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.215157
  Prefactor  = 0.000100196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1675
  Prefactor  = 0.0001
  Prefactor  = 10.1793
  Prefactor  = 1.26263
  Prefactor  = 0.0001
  Normalizat = 1.21177
  Prefactor  = 0.98031
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.006     FROM HESSE     STATUS=OK           450 CALLS     3091 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7799        .15685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    58.719        .38828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .44298        .53404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3226        8.9859        .15962E-03   -1.5205    
   7  Prefactor     .10000E-03    12.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9661        .11236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1518        2.3192        .17144E-03   -1.5493    
  11  Prefactor     .10000E-03    2.2387        .18469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.619        3.4398        .80677E-04   -1.5026    
  14  Prefactor     .10000E-03    22.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9084        .17714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .21516        .21083        .37271E-03   -1.5615    
  17  Prefactor     .10020E-03    787.83        .19976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.6560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9812        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.168        14.568        .11989E-03   -1.5039    
  21  Prefactor     .10000E-03    10.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.179        7.0211        .62798E-03   -1.5070    
  23  Prefactor     1.2626        7.0741        .19834E-02   -1.5483    
  24  Prefactor     .10000E-03    6.4249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2118        .21209        .24298E-03   -.86240    
  26  Prefactor     .98031        .20398        .26075E-03   -.93389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13091e-09
Minuit parameter uncertainties:
  1  3.12856e-05
  2  3.52194e-07
  3  0.00278826
  4  9.12683e-08
  5  5.76486e-06
  6  8.98782
  7  1.50076e-05
  8  4.92166e-07
  9  0.000190956
  10  2.31935
  11  8.57487e-06
  12  1.16416e-05
  13  3.43981
  14  9.20721e-05
  15  8.61943e-06
  16  0.210833
  17  0.0251841
  18  1.27632e-06
  19  2.03615e-06
  20  14.5731
  21  2.24032e-06
  22  7.02163
  23  5.97813
  24  1.55177e-05
  25  0.212242
  26  0.204138
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  8.575e-06  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:  9.803e-01  2.041e-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.212e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433779/likelihoodResults_249955201_250214401_4FGL_J1215.0+1656_daily_bin41.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) = 6825.00804491
delta logL = -0.00212814374663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6825.00591671
delta logL = 5.81349013373e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11092E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3587       1.0000          .0000       10.000    
     3 'Normalizat'    1.2119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98030       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=   6825.006     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      246 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3999        .51681E-01** at limit **
   2  Index         1.5438        5.7695        .50000        .53567E-05
   3  Normalizat    1.2118        .44089E-02    .54949E-01   -.15381E-02
   4  Prefactor     .98032        .43293E-02    .46020E-01   -.86395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.54378
  Normalizat = 1.21177
  Prefactor  = 0.980315
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.006     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      285 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9416        .36249E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5438        9.1239        .50000       -.76321    
   3  Normalizat    1.2118        .53642E-02    .24298E-03   -.86240    
   4  Prefactor     .98032        .52682E-02    .26075E-03   -.93389    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.31607e-09
Minuit parameter uncertainties:
  1  0.000132677
  2  58.6254
  3  0.00536424
  4  0.00526823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433779': 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) = 6825.00589127
delta logL = 2.54991446127e-05

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.327e-04  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.544e+00  5.863e+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:  9.803e-01  5.268e-03  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.212e+00  5.364e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.774 16.937

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/433779/cmap_HighResolution_249955201_250214401_4FGL_J1215.0+1656_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-05 05:25:28.670741', job_id='433779', GAL2='0.98', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630844728.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.55e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='41' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:25:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 433779: <4FGL_J1215.0+1656_daily_bin41> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin41 183.774 16.9372 249955201 250214401 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 :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

