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


Performing analysis on: 4FGL_J1215.0+1656_daily_bin71
RA = 183.774, Dec = 16.9372
tmin = 257731201, tmax = 257990401
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='433816', job_status='RUN', time_executed='2021-09-05 05:14:59.057294', time_epoch_executed='1630844099.06' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433816

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433816/ft1_4FGL_J1215.0+1656_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433816/ft2_4FGL_J1215.0+1656_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433816/ft1_4FGL_J1215.0+1656_daily_bin71.fits outfile=/scratch/kocevski/433816/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin71.fits ra=183.774 dec=16.9372 rad=12.0 tmin=257731201.0 tmax=257990401.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.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433816/ft2_4FGL_J1215.0+1656_daily_bin71.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/433816/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/433816/ft1_filtered_4FGL_J1215.0+1656_daily_bin71.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/433816/ft1_filtered_4FGL_J1215.0+1656_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/433816/ft2_4FGL_J1215.0+1656_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/433816/ltcube_257731201_257990401_4FGL_J1215.0+1656_daily_bin71.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/433816/ft2_4FGL_J1215.0+1656_daily_bin71.fits
.....................!
real 12.74
user 12.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433816/ft1_filtered_4FGL_J1215.0+1656_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/433816/ft2_4FGL_J1215.0+1656_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/433816/ltcube_257731201_257990401_4FGL_J1215.0+1656_daily_bin71.fits outfile=/scratch/kocevski/433816/expmap_257731201_257990401_4FGL_J1215.0+1656_daily_bin71.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/433816/ltcube_257731201_257990401_4FGL_J1215.0+1656_daily_bin71.fits
.....................!
real 189.58
user 185.06
sys 4.14

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/433816/ft1_filtered_4FGL_J1215.0+1656_daily_bin71.fits scfile=/scratch/kocevski/433816/ft2_4FGL_J1215.0+1656_daily_bin71.fits outfile=/scratch/kocevski/433816/cmap_257731201_257990401_4FGL_J1215.0+1656_daily_bin71.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433816/ft1_filtered_4FGL_J1215.0+1656_daily_bin71.fits scfile=/scratch/kocevski/433816/ft2_4FGL_J1215.0+1656_daily_bin71.fits outfile=/scratch/kocevski/433816/cmap_HighResolution_257731201_257990401_4FGL_J1215.0+1656_daily_bin71.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/433816/ft1_filtered_4FGL_J1215.0+1656_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/433816/ft2_4FGL_J1215.0+1656_daily_bin71.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433816/Model_4FGL_J1215.0+1656_daily_bin71.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/433816/ft1_filtered_4FGL_J1215.0+1656_daily_bin71.fits.....................!
real 58.62
user 57.26
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.407       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.991       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43422       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5620       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.395       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .22193       1.0000         .10000E-03   10000.    
    17 'Prefactor '    126.92       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.828       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.934       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1120       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=   6358.942     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3162 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.411        34.304        .12363E-05   -.40985E-04
   2  Prefactor     11.191        22.496       -.59529E-06   -.17265E-05
   3  Prefactor     .10000E-03    5.1702       -.14017E-07** at limit **
   4  Prefactor     2.7039        2.1051       -.44303E-07   -.21927E-03
   5  Prefactor     61.985        60.059       -.49575E-05    .11642E-03
   6  Prefactor     .10000E-03    3.2600       -.45932E-09** at limit **
   7  Prefactor     .10000E-03    4.1667       -.41696E-08** at limit **
   8  Prefactor     .10000E-03    1.4987        .78036E-07** at limit **
   9  Prefactor     .10000E-03    185.46       -.13613E-05** at limit **
  10  Prefactor     .43451        1.8621       -.16929E-05   -.16471E-02
  11  Prefactor     4.5613        2.8626        .23327E-06    .25264E-03
  12  Prefactor     .10000E-03    8.5196       -.11080E-07** at limit **
  13  Prefactor     10.309        3.1516        .33250E-07    .58540E-03
  14  Prefactor     53.400        36.330        .67254E-06   -.68163E-04
  15  Prefactor     .10000E-03    2.4790       -.17499E-07** at limit **
  16  norm          .22193        .15864       -.40905E-08   -.77011E-04
  17  Prefactor     126.93        122.09        .83413E-05   -.10745E-03
  18  norm          .10000E-03    2.4041        .21909E-07** at limit **
  19  Prefactor     .10000E-03    13.051        .40362E-06** at limit **
  20  Prefactor     20.838        21.612       -.47431E-05    .29877E-03
  21  Prefactor     .10000E-03    34.215       -.45119E-06** at limit **
  22  Prefactor     .10000E-03    4.7198       -.10008E-06** at limit **
  23  Prefactor     .10000E-03    4.6570        .24399E-07** at limit **
  24  Prefactor     36.935        17.994       -.26126E-06    .44614E-04
  25  Normalizat    .79245        .18262        .89652E-06    .63569E-04
  26  Prefactor     1.1121        .17225        .48844E-07    .10456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.411
  Prefactor  = 11.1911
  Prefactor  = 0.0001
  Prefactor  = 2.70394
  Prefactor  = 61.9847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.434506
  Prefactor  = 4.56129
  Prefactor  = 0.0001
  Prefactor  = 10.3085
  Prefactor  = 53.3997
  Prefactor  = 0.0001
  norm       = 0.22193
  Prefactor  = 126.935
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8378
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.9352
  Normalizat = 0.792446
  Prefactor  = 1.11212
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.942     FROM HESSE     STATUS=OK           452 CALLS     3614 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.411        34.225        .88664E-04   -1.4804    
   2  Prefactor     11.191        22.421        .11977E-03   -1.5039    
   3  Prefactor     .10000E-03    5.2279        .17703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7039        2.0902        .92137E-04   -1.5379    
   5  Prefactor     61.985        59.250        .25482E-03   -1.4132    
   6  Prefactor     .10000E-03    3.2732        .14060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1721        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4321        .18812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    187.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .43451        2.4514        .22680E-03   -1.5576    
  11  Prefactor     4.5613        2.8439        .98198E-04   -1.5281    
  12  Prefactor     .10000E-03    8.5267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.309        3.1548        .38001E-03   -1.5066    
  14  Prefactor     53.400        36.256        .54890E-04   -1.4245    
  15  Prefactor     .10000E-03    2.4926        .12259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .22193        .15487        .25828E-04   -1.5614    
  17  Prefactor     126.93        119.21        .17866E-03   -1.3450    
  18  norm          .10000E-03    2.4381        .12069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.838        20.941        .87764E-04   -1.4795    
  21  Prefactor     .10000E-03    34.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.598        .33161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6694        .16802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.935        18.000        .65946E-04   -1.4492    
  25  Normalizat    .79245        .20532        .27410E-03   -1.0035    
  26  Prefactor     1.1121        .19575        .23422E-03   -.89080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29647e-09
Minuit parameter uncertainties:
  1  34.2584
  2  22.4375
  3  2.5133e-06
  4  2.09026
  5  59.3062
  6  3.45378e-07
  7  3.97999e-07
  8  1.83642e-05
  9  0.000204183
  10  2.06402
  11  2.84399
  12  4.26808e-06
  13  3.1549
  14  36.271
  15  1.63521e-06
  16  0.154873
  17  119.432
  18  3.82466e-06
  19  0.000152828
  20  20.9488
  21  3.8833e-05
  22  0.000248008
  23  2.85289e-06
  24  18.0025
  25  0.205517
  26  0.195881
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  4.561e+00  2.844e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  2.410e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  8.538e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.112e+00  1.959e-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.924e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.81
Ra Dec: 183.774 16.937
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.69e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.15e-05

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): 0
logL (Free Index) = 6358.67776945
delta logL = 0.264190570061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6358.66786134
delta logL = 0.274098687789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1925       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9454       1.0000          .0000       10.000    
     3 'Normalizat'    .82131       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0951       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=   6358.668     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      230 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1925        10.206        .44103E-02    .12128E-02
   2  Index         1.9453        1.4049        .17175       -.19480E-04
   3  Normalizat    .82131        .18671        .43888E-01    .19189E-04
   4  Prefactor     1.0951        .17919        .37776E-01    .54803E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19246
  Index      = 1.94531
  Normalizat = 0.821312
  Prefactor  = 1.09509
 **********
 **   18 **HESSE 
 **********

 FCN=   6358.668     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1925        3.5740        .11916E-03   -1.5252    
   2  Index         1.9453        .60069        .94316E-02   -.65725    
   3  Normalizat    .82131        .19755        .26973E-03   -.99283    
   4  Prefactor     1.0951        .19517        .23583E-03   -.89624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8357e-10
Minuit parameter uncertainties:
  1  3.57417
  2  0.60302
  3  0.197726
  4  0.195298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433816': 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) = 6358.66786132
delta logL = 0.274098706351

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  5.192e+00  3.574e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.945e+00  6.030e-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.095e+00  1.953e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.213e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.33
Ra Dec: 183.774 16.937
Photon Index (Free Index): 1.95 +/- 0.60
Photon Flux (Free Index): 3.56e-08 +/- 3.66e-08
Energy Flux (Free Index): 2.83e-05 +/- 2.98e-05

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/433816/cmap_HighResolution_257731201_257990401_4FGL_J1215.0+1656_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-08', energy_flux2='2.83e-05', photon_flux_error='3.54e-08', dlogl='2.74e-01', energy_flux='1.84e-05', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-05 05:26:09.308447', photon_index_error2='0.60', photon_index2='1.95', ts='6.81', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.98e-05', EG='0.79', time_epoch_completed='1630844769.31', return_code='0', job_id='433816', GAL2='1.10', EG2='0.82', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.66e-08', ts2='7.33', photon_index='2.41' WHERE bin_id='71' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:26:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 433816: <4FGL_J1215.0+1656_daily_bin71> in cluster <slac> Done

Job <4FGL_J1215.0+1656_daily_bin71> 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) <bullet0268>, 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:26:10 2021
Results reported at Sun Sep  5 05:26:10 2021

Your job looked like:

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

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

