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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin110
RA = 183.774, Dec = 16.9372
tmin = 267840001, tmax = 268099201
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='433870', job_status='RUN', time_executed='2021-09-05 05:11:20.956816', time_epoch_executed='1630843880.96' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433870/ft1_4FGL_J1215.0+1656_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433870/ft2_4FGL_J1215.0+1656_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433870/ft1_4FGL_J1215.0+1656_daily_bin110.fits outfile=/scratch/kocevski/433870/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin110.fits ra=183.774 dec=16.9372 rad=12.0 tmin=267840001.0 tmax=268099201.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.47
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433870/ft1_filtered_4FGL_J1215.0+1656_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/433870/ft2_4FGL_J1215.0+1656_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/433870/ltcube_267840001_268099201_4FGL_J1215.0+1656_daily_bin110.fits outfile=/scratch/kocevski/433870/expmap_267840001_268099201_4FGL_J1215.0+1656_daily_bin110.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/433870/ltcube_267840001_268099201_4FGL_J1215.0+1656_daily_bin110.fits
.....................!
real 190.34
user 185.41
sys 4.00

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/433870/ft1_filtered_4FGL_J1215.0+1656_daily_bin110.fits scfile=/scratch/kocevski/433870/ft2_4FGL_J1215.0+1656_daily_bin110.fits outfile=/scratch/kocevski/433870/cmap_267840001_268099201_4FGL_J1215.0+1656_daily_bin110.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433870/ft1_filtered_4FGL_J1215.0+1656_daily_bin110.fits scfile=/scratch/kocevski/433870/ft2_4FGL_J1215.0+1656_daily_bin110.fits outfile=/scratch/kocevski/433870/cmap_HighResolution_267840001_268099201_4FGL_J1215.0+1656_daily_bin110.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/433870/ft1_filtered_4FGL_J1215.0+1656_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/433870/ft2_4FGL_J1215.0+1656_daily_bin110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433870/Model_4FGL_J1215.0+1656_daily_bin110.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/433870/ft1_filtered_4FGL_J1215.0+1656_daily_bin110.fits.....................!
real 51.52
user 49.98
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12744E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.516       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .95151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3280       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0993       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5028       1.0000         .10000E-03   10000.    
    16 'norm      '    .81488       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.508       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.292       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .70781E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8817       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71029       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5391.357     FROM MIGRAD    STATUS=CONVERGED   1096 CALLS     3562 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    31.627        .12398    ** at limit **
   2  Prefactor     .10001E-03    19.861        .18142E-02** at limit **
   3  Prefactor     11.514        10.922        .59025E-03   -.21283E-04
   4  Prefactor     .95256        1.8938        .13806E-03   -.15398E-03
   5  Prefactor     81.389        74.736        .22259E-03    .12290E-03
   6  Prefactor     5.4509        11.103        .17214E-03    .52637E-04
   7  Prefactor     2.3353        29.242        .26880E-03    .35612E-04
   8  Prefactor     .10000E-03    3.8833        .27891E-03** at limit **
   9  Prefactor     .10000E-03    44.005        .18142E-02** at limit **
  10  Prefactor     8.1010        4.0044        .96315E-04    .83098E-04
  11  Prefactor     .10000E-03    1.3549        .83099E-03** at limit **
  12  Prefactor     .10000E-03    7.6927        .18142E-02** at limit **
  13  Prefactor     2.7154        2.2843        .99062E-04   -.76891E-04
  14  Prefactor     .10000E-03    12.211        .18142E-02** at limit **
  15  Prefactor     5.5036        6.9624        .17128E-03   -.34980E-04
  16  norm          .81492        .30215        .23304E-04    .10976E-03
  17  Prefactor     .10000E-03    36.893        .18142E-02** at limit **
  18  norm          12.509        6.5081        .11326E-03   -.48180E-04
  19  Prefactor     16.287        12.274        .99229E-04    .19236E-03
  20  Prefactor     .10001E-03    117.72        .41947E-03** at limit **
  21  Prefactor     .10000E-03    32.709        .18142E-02** at limit **
  22  Prefactor     5.8827        6.1601        .16559E-03    .18194E-04
  23  Prefactor     .10000E-03    8.1541        .18142E-02** at limit **
  24  Prefactor     .10000E-03    22.123        .18142E-02** at limit **
  25  Normalizat    .71023        .23689        .29728E-03    .64439E-04
  26  Prefactor     1.2400        .23169        .23382E-03   -.30632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 0.000100007
  Prefactor  = 11.5145
  Prefactor  = 0.952555
  Prefactor  = 81.3889
  Prefactor  = 5.45091
  Prefactor  = 2.3353
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 8.101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.71543
  Prefactor  = 0.0001
  Prefactor  = 5.50362
  norm       = 0.814922
  Prefactor  = 0.000100003
  norm       = 12.509
  Prefactor  = 16.2869
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 5.8827
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.710229
  Prefactor  = 1.23997
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.357     FROM HESSE     STATUS=OK           440 CALLS     4002 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    30.915        .12629       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    19.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.514        10.920        .23610E-04   -1.5029    
   4  Prefactor     .95256        1.8936        .55226E-05   -1.5513    
   5  Prefactor     81.389        74.735        .44517E-04   -1.3901    
   6  Prefactor     5.4509        11.101        .68855E-05   -1.5241    
   7  Prefactor     2.3353        29.225        .10752E-04   -1.5402    
   8  Prefactor     .10000E-03    3.8834        .55781E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1010        4.0044        .38526E-05   -1.5139    
  11  Prefactor     .10000E-03    1.3550        .16620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7154        2.2843        .39625E-05   -1.5378    
  14  Prefactor     .10000E-03    12.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5036        6.9621        .68512E-05   -1.5239    
  16  norm          .81492        .30215        .93216E-06   -1.5527    
  17  Prefactor     .10000E-03    36.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.509        6.5081        .45305E-05   -1.5000    
  19  Prefactor     16.287        12.274        .39691E-05   -1.4901    
  20  Prefactor     .10001E-03    117.73        .83894E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    32.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.8827        6.1601        .66235E-05   -1.5223    
  23  Prefactor     .10000E-03    8.1562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    22.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .71023        .23709        .11891E-04   -1.0349    
  26  Prefactor     1.2400        .23192        .93527E-05   -.85110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20613e-09
Minuit parameter uncertainties:
  1  0.00104579
  2  0.000743537
  3  10.9223
  4  1.89369
  5  74.8213
  6  11.105
  7  16.5324
  8  0.000104467
  9  0.000520252
  10  4.0045
  11  1.26457e-05
  12  4.4896e-06
  13  2.28437
  14  1.52592e-05
  15  6.96311
  16  0.302151
  17  0.000695784
  18  6.50845
  19  12.2754
  20  0.00178076
  21  0.000480405
  22  6.16073
  23  4.49592e-05
  24  0.000623935
  25  0.237438
  26  0.232116
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.265e-05  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.240e+00  2.321e-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:  7.102e-01  2.374e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433870/likelihoodResults_267840001_268099201_4FGL_J1215.0+1656_daily_bin110.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) = 5391.36021896
delta logL = -0.00346777571667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5391.35675128
delta logL = -1.00454599306e-07

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     '    2.4124       1.0000          .0000       10.000    
     3 'Normalizat'    .71025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2400       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=   5391.357     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 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    76.843        .90712E-02** at limit **
   2  Index         2.4147        6.1206        .50000       -.15786E-04
   3  Normalizat    .71023        .38344E-01    .67184E-01    .25557E-04
   4  Prefactor     1.2400        .38925E-01    .52885E-01    .69530E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41475
  Normalizat = 0.710227
  Prefactor  = 1.23997
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.357     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0689        .83113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4147        6.1533        .50000       -.54340    
   3  Normalizat    .71023        .22460        .29728E-03   -1.0349    
   4  Prefactor     1.2400        .22877        .23382E-03   -.85110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88639e-10
Minuit parameter uncertainties:
  1  9.36146e-07
  2  5.28887
  3  0.224892
  4  0.228953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433870': 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) = 5391.35675116
delta logL = 1.7358615878e-08

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  9.361e-07  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.415e+00  5.289e+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:  1.240e+00  2.290e-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:  7.102e-01  2.249e-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/433870/cmap_HighResolution_267840001_268099201_4FGL_J1215.0+1656_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-05 05:23:15.888148', job_id='433870', GAL2='1.24', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630844595.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='110' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:23:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 433870: <4FGL_J1215.0+1656_daily_bin110> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin110> 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) <bullet0211>, 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:23:16 2021
Results reported at Sun Sep  5 05:23:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin110 183.774 16.9372 267840001 268099201 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 :                                   709.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            729 sec.

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

