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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin118
RA = 183.774, Dec = 16.9372
tmin = 269913601, tmax = 270172801
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='433881', job_status='RUN', time_executed='2021-09-05 05:11:26.497715', time_epoch_executed='1630843886.5' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433881/ft1_4FGL_J1215.0+1656_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433881/ft2_4FGL_J1215.0+1656_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433881/ft1_4FGL_J1215.0+1656_daily_bin118.fits outfile=/scratch/kocevski/433881/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin118.fits ra=183.774 dec=16.9372 rad=12.0 tmin=269913601.0 tmax=270172801.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.64
user 1.47
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433881/ft1_filtered_4FGL_J1215.0+1656_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/433881/ft2_4FGL_J1215.0+1656_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/433881/ltcube_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.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/433881/ft2_4FGL_J1215.0+1656_daily_bin118.fits
.....................!
real 12.01
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433881/ft1_filtered_4FGL_J1215.0+1656_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/433881/ft2_4FGL_J1215.0+1656_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/433881/ltcube_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.fits outfile=/scratch/kocevski/433881/expmap_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.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/433881/ltcube_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.fits
.....................!
real 191.03
user 185.88
sys 4.74

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/433881/ft1_filtered_4FGL_J1215.0+1656_daily_bin118.fits scfile=/scratch/kocevski/433881/ft2_4FGL_J1215.0+1656_daily_bin118.fits outfile=/scratch/kocevski/433881/cmap_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433881/ft1_filtered_4FGL_J1215.0+1656_daily_bin118.fits scfile=/scratch/kocevski/433881/ft2_4FGL_J1215.0+1656_daily_bin118.fits outfile=/scratch/kocevski/433881/cmap_HighResolution_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2662       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.070       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4497       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5317       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3625       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.570       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7605       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5321       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7334       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5646       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7237       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0462       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2245       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=   9126.484     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3226 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2658        29.565        .20910E-06   -.20914E-04
   2  Prefactor     5.6334        18.030        .68574E-06   -.22049E-05
   3  Prefactor     .10000E-03    4.3954        .10902E-06** at limit **
   4  Prefactor     .10000E-03    .91982        .63851E-07** at limit **
   5  Prefactor     69.066        84.052       -.15841E-05   -.45058E-04
   6  Prefactor     5.4489        6.7985        .30720E-05   -.10101E-02
   7  Prefactor     6.5330        9.0607       -.21279E-06   -.72943E-04
   8  Prefactor     .10000E-03    1.1577        .16509E-07** at limit **
   9  Prefactor     .10000E-03    30.212       -.31148E-06** at limit **
  10  Prefactor     .10000E-03    .56567       -.21595E-07** at limit **
  11  Prefactor     .10000E-03    .84650        .17574E-08** at limit **
  12  Prefactor     2.0134        38.836        .70586E-06   -.27433E-04
  13  Prefactor     4.3941        2.2942        .15112E-07   -.11038E-03
  14  Prefactor     .10000E-03    9.2294        .18359E-05** at limit **
  15  Prefactor     2.3625        2.3537        .10797E-07    .21010E-03
  16  norm          1.6210        .32367        .75979E-08   -.51594E-03
  17  Prefactor     54.592        61.374        .61091E-05    .33094E-03
  18  norm          2.7605        3.1113        .40472E-06    .26959E-03
  19  Prefactor     6.5321        6.5422       -.15786E-06   -.25004E-04
  20  Prefactor     6.7371        23.231        .21389E-05    .85515E-04
  21  Prefactor     .10000E-03    8.9101       -.17928E-05** at limit **
  22  Prefactor     2.5645        4.6410        .38533E-06   -.12474E-03
  23  Prefactor     .10000E-03    3.9175       -.62824E-07** at limit **
  24  Prefactor     4.7206        12.411        .38975E-06   -.31523E-04
  25  Normalizat    1.0461        .16771       -.60115E-06   -.50325E-04
  26  Prefactor     1.2246        .15831       -.26050E-06   -.60616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26583
  Prefactor  = 5.63337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.0663
  Prefactor  = 5.44894
  Prefactor  = 6.53301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01344
  Prefactor  = 4.39407
  Prefactor  = 0.000100001
  Prefactor  = 2.36249
  norm       = 1.62104
  Prefactor  = 54.5922
  norm       = 2.76052
  Prefactor  = 6.53205
  Prefactor  = 6.7371
  Prefactor  = 0.000100001
  Prefactor  = 2.56454
  Prefactor  = 0.0001
  Prefactor  = 4.72061
  Normalizat = 1.04613
  Prefactor  = 1.22458
 **********
 **   18 **HESSE 
 **********

 FCN=   9126.484     FROM HESSE     STATUS=OK           462 CALLS     3688 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2658        29.592        .19507E-03   -1.5295    
   2  Prefactor     5.6334        17.730        .16926E-03   -1.5233    
   3  Prefactor     .10000E-03    4.4177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6775        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     69.066        84.087        .48298E-04   -1.4044    
   6  Prefactor     5.4489        7.2746        .86063E-03   -1.5241    
   7  Prefactor     6.5330        9.0552        .15703E-03   -1.5197    
   8  Prefactor     .10000E-03    1.1678        .10033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .57050        .70141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .85792        .85789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0134        39.116        .29170E-03   -1.5424    
  13  Prefactor     4.3941        2.2932        .10119E-03   -1.5289    
  14  Prefactor     .10000E-03    9.4247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.3625        2.3667        .14241E-03   -1.5401    
  16  norm          1.6210        .32476        .22782E-04   -1.5453    
  17  Prefactor     54.592        65.183        .27149E-03   -1.4229    
  18  norm          2.7605        3.1054        .17289E-03   -1.5376    
  19  Prefactor     6.5321        6.5206        .15702E-03   -1.5197    
  20  Prefactor     6.7371        23.206        .15463E-03   -1.5189    
  21  Prefactor     .10000E-03    9.1082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5645        4.6278        .25491E-03   -1.5388    
  23  Prefactor     .10000E-03    3.9351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.7206        12.418        .18514E-03   -1.5273    
  25  Normalizat    1.0461        .20039        .28251E-03   -.91501    
  26  Prefactor     1.2246        .18979        .25861E-03   -.85578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27317e-09
Minuit parameter uncertainties:
  1  22.4866
  2  17.7467
  3  1.26165e-05
  4  3.23916e-07
  5  84.2324
  6  7.27581
  7  9.0571
  8  1.6012e-06
  9  6.47909e-05
  10  3.64274e-07
  11  3.10647e-07
  12  17.7621
  13  2.29321
  14  0.000234632
  15  2.36681
  16  0.32476
  17  65.268
  18  3.10562
  19  6.52129
  20  23.2368
  21  0.00023258
  22  4.62848
  23  4.75583e-06
  24  12.4247
  25  0.200534
  26  0.189901
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.106e-07  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.225e+00  1.899e-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.046e+00  2.005e-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: 4.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433881/likelihoodResults_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.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) = 9126.48929218
delta logL = -0.00548172787057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9126.48381069
delta logL = -2.38409484155e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3991       1.0000          .0000       10.000    
     3 'Normalizat'    1.0461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2246       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9126.484     FROM MIGRAD    STATUS=FAILED        86 CALLS      240 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    25.619        .86222E-03** at limit **
   2  Index         2.3486        5.0620        .50000        .87675E-04
   3  Normalizat    1.0461        .22928E-01    .28251E-03    .15557E-03
   4  Prefactor     1.2246        .22601E-01    .25861E-03    .16728E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9126.484     FROM SIMPLEX   STATUS=PROGRESS     140 CALLS      380 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    25.619        .10518E-03** at limit **
   2  Index         2.3479        5.0620        .19723E-03    .87675E-04
   3  Normalizat    1.0461        .22928E-01    .15605E-05    .15557E-03
   4  Prefactor     1.2246        .22601E-01    .10346E-05    .16728E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9126.484     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      429 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    144.59        .17244E-03** at limit **
   2  Index         2.1356        5.5940        .50000        .48522E-07
   3  Normalizat    1.0461        .68733E-01    .11300E-04    .17706E-04
   4  Prefactor     1.2246        .67720E-01    .51722E-04    .34641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13561
  Normalizat = 1.04613
  Prefactor  = 1.22458
 **********
 **   18 **HESSE 
 **********

 FCN=   9126.484     FROM HESSE     STATUS=OK            29 CALLS      458 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1216        .34489E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1356        5.9551        .50000       -.61001    
   3  Normalizat    1.0461        .18974        .22601E-05   -.91501    
   4  Prefactor     1.2246        .18707        .10344E-04   -.85578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79029e-12
Minuit parameter uncertainties:
  1  2.31464e-07
  2  54.2018
  3  0.189863
  4  0.187167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433881': 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) = 9126.48380686
delta logL = 3.59555815521e-06

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.315e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.136e+00  5.420e+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:  1.225e+00  1.872e-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.046e+00  1.899e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/433881/cmap_HighResolution_269913601_270172801_4FGL_J1215.0+1656_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.76e-08', time_completed='2021-09-05 05:27:20.324161', job_id='433881', GAL2='1.22', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630844840.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='3.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='118' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:27:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 433881: <4FGL_J1215.0+1656_daily_bin118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin118 183.774 16.9372 269913601 270172801 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 :                                   950.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

