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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin72
RA = 183.774, Dec = 16.9372
tmin = 257990401, tmax = 258249601
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='433818', job_status='RUN', time_executed='2021-09-05 05:13:32.313354', time_epoch_executed='1630844012.31' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433818/ft1_4FGL_J1215.0+1656_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433818/ft2_4FGL_J1215.0+1656_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433818/ft1_4FGL_J1215.0+1656_daily_bin72.fits outfile=/scratch/kocevski/433818/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin72.fits ra=183.774 dec=16.9372 rad=12.0 tmin=257990401.0 tmax=258249601.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.39
user 1.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433818/ft2_4FGL_J1215.0+1656_daily_bin72.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/433818/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/433818/ft1_filtered_4FGL_J1215.0+1656_daily_bin72.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433818/ft1_filtered_4FGL_J1215.0+1656_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/433818/ft2_4FGL_J1215.0+1656_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/433818/ltcube_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.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/433818/ft2_4FGL_J1215.0+1656_daily_bin72.fits
.....................!
real 12.62
user 12.25
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433818/ft1_filtered_4FGL_J1215.0+1656_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/433818/ft2_4FGL_J1215.0+1656_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/433818/ltcube_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.fits outfile=/scratch/kocevski/433818/expmap_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.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/433818/ltcube_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.fits
.....................!
real 190.39
user 185.80
sys 4.21

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/433818/ft1_filtered_4FGL_J1215.0+1656_daily_bin72.fits scfile=/scratch/kocevski/433818/ft2_4FGL_J1215.0+1656_daily_bin72.fits outfile=/scratch/kocevski/433818/cmap_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.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/433818/ft1_filtered_4FGL_J1215.0+1656_daily_bin72.fits scfile=/scratch/kocevski/433818/ft2_4FGL_J1215.0+1656_daily_bin72.fits outfile=/scratch/kocevski/433818/cmap_HighResolution_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25855E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17515E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9996       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1584       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.409       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .49400       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.359       1.0000         .10000E-03   10000.    
    18 'norm      '    .12142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.982       1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.411       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5306       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.560       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93418       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0839       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=   5599.613     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3136 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.112        .16837E-06** at limit **
   2  Prefactor     .10000E-03    10.287        .13131E-06** at limit **
   3  Prefactor     .10000E-03    4.4421        .14478E-06** at limit **
   4  Prefactor     .10000E-03    .90329        .18190E-06** at limit **
   5  Prefactor     .10000E-03    717.22       -.15785E-04** at limit **
   6  Prefactor     1.2339        10.671        .31911E-05    .11487E-04
   7  Prefactor     18.446        15.082       -.25978E-06   -.18293E-04
   8  Prefactor     .10000E-03    1.8771        .12834E-06** at limit **
   9  Prefactor     .10000E-03    220.01        .42834E-05** at limit **
  10  Prefactor     1.9996        2.1785        .16745E-06   -.29897E-04
  11  Prefactor     .10000E-03    1.2515        .32473E-07** at limit **
  12  Prefactor     .10000E-03    8.9699       -.35629E-08** at limit **
  13  Prefactor     3.1586        2.0064        .29434E-07   -.72553E-04
  14  Prefactor     19.412        28.956        .20513E-06   -.46078E-05
  15  Prefactor     .10000E-03    2.5415        .55622E-07** at limit **
  16  norm          .49400        .28727        .40540E-07   -.29228E-03
  17  Prefactor     40.347        68.692        .12915E-06   -.45593E-05
  18  norm          .10000E-03    2.5841        .47442E-06** at limit **
  19  Prefactor     .10000E-03    4.1970       -.42378E-06** at limit **
  20  Prefactor     12.013        26.521        .65534E-06   -.20374E-04
  21  Prefactor     40.786        42.940        .27166E-06    .11194E-06
  22  Prefactor     13.409        8.8966        .15628E-06   -.21269E-04
  23  Prefactor     5.5280        9.9720        .20598E-06   -.22058E-05
  24  Prefactor     22.568        17.859        .19254E-06   -.39917E-04
  25  Normalizat    .93423        .19052       -.25523E-06   -.16805E-03
  26  Prefactor     1.0839        .18670       -.16023E-05   -.91451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.23387
  Prefactor  = 18.4463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15855
  Prefactor  = 19.4122
  Prefactor  = 0.0001
  norm       = 0.494002
  Prefactor  = 40.3475
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.0129
  Prefactor  = 40.7864
  Prefactor  = 13.4086
  Prefactor  = 5.52797
  Prefactor  = 22.5682
  Normalizat = 0.93423
  Prefactor  = 1.08388
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.613     FROM HESSE     STATUS=OK           460 CALLS     3596 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4731        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2549        .13765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    727.55        .39968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2339        10.821        .40596E-03   -1.5486    
   7  Prefactor     18.446        15.079        .93236E-04   -1.4849    
   8  Prefactor     .10000E-03    1.9170        .10011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    220.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9996        2.1626        .11021E-03   -1.5425    
  11  Prefactor     .10000E-03    1.2679        .81615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1586        2.0044        .82168E-04   -1.5353    
  14  Prefactor     19.412        28.956        .90912E-04   -1.4826    
  15  Prefactor     .10000E-03    2.5678        .11648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49400        .28281        .28453E-04   -1.5567    
  17  Prefactor     40.347        68.705        .63096E-04   -1.4437    
  18  norm          .10000E-03    7.6000        .23051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1945        .14953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.013        26.574        .11573E-03   -1.5015    
  21  Prefactor     40.786        42.925        .62773E-04   -1.4430    
  22  Prefactor     13.409        8.8989        .10938E-03   -1.4975    
  23  Prefactor     5.5280        9.9477        .17084E-03   -1.5238    
  24  Prefactor     22.568        17.903        .84332E-04   -1.4757    
  25  Normalizat    .93423        .22487        .25852E-03   -.95268    
  26  Prefactor     1.0839        .21661        .24155E-03   -.89983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98156e-10
Minuit parameter uncertainties:
  1  1.50082e-05
  2  9.78047e-06
  3  6.24126e-06
  4  1.20679e-05
  5  0.00335507
  6  7.30956
  7  15.0825
  8  3.31948e-06
  9  0.000148623
  10  2.16267
  11  1.46242e-06
  12  1.28838e-06
  13  2.00442
  14  28.9773
  15  1.13582e-06
  16  0.282815
  17  68.8402
  18  0.00017203
  19  1.98324e-06
  20  26.6003
  21  42.9579
  22  8.89977
  23  9.95068
  24  17.9075
  25  0.225097
  26  0.216781
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.462e-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:  1.084e+00  2.168e-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:  9.342e-01  2.251e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433818/likelihoodResults_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.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) = 5599.61633596
delta logL = -0.00373417197261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5599.61260188
delta logL = -9.48593879002e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4031       1.0000          .0000       10.000    
     3 'Normalizat'    .93427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0839       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=   5599.613     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    44.480        .81791E-03** at limit **
   2  Index         2.3656        5.8478        .50000        .38021E-04
   3  Normalizat    .93423        .27993E-01    .25852E-03    .15568E-04
   4  Prefactor     1.0839        .28086E-01    .24155E-03    .31440E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5599.613     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      367 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    44.480        .14204E-03** at limit **
   2  Index         2.3656        5.8478        .23721E-03    .38021E-04
   3  Normalizat    .93423        .27993E-01    .33325E-05    .15568E-04
   4  Prefactor     1.0839        .28086E-01    .40229E-05    .31440E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5599.613     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      409 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    222.37        .16358E-03** at limit **
   2  Index         2.1983        5.2723        .50000        .13706E-06
   3  Normalizat    .93423        .83026E-01    .10341E-04   -.16183E-03
   4  Prefactor     1.0839        .83196E-01    .96619E-05   -.16214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1983
  Normalizat = 0.934232
  Prefactor  = 1.08388
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.613     FROM HESSE     STATUS=OK            29 CALLS      438 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5337        .32716E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1983        8.8992        .50000       -.59480    
   3  Normalizat    .93423        .21321        .20682E-05   -.95268    
   4  Prefactor     1.0839        .21391        .19324E-05   -.89983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7652e-11
Minuit parameter uncertainties:
  1  2.37622e-06
  2  68.9449
  3  0.213402
  4  0.214078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433818': 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) = 5599.61260061
delta logL = 1.18483512779e-06

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.376e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.198e+00  6.894e+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.084e+00  2.141e-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:  9.342e-01  2.134e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/433818/cmap_HighResolution_257990401_258249601_4FGL_J1215.0+1656_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-05 05:25:14.664128', job_id='433818', GAL2='1.08', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630844714.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='72' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:25:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 433818: <4FGL_J1215.0+1656_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin72 183.774 16.9372 257990401 258249601 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 :                                   700.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

