/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 6 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 = 7442
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1215.0+1656_daily_bin474
RA = 183.774, Dec = 16.9372
tmin = 362188801, tmax = 362448001
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='435580', job_status='RUN', time_executed='2021-09-05 05:16:00.911975', time_epoch_executed='1630844160.91' WHERE source_name='4FGL J1215.0+1656' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435580/ft1_4FGL_J1215.0+1656_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435580/ft2_4FGL_J1215.0+1656_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435580/ft1_4FGL_J1215.0+1656_daily_bin474.fits outfile=/scratch/kocevski/435580/ft1_filteredMKT_4FGL_J1215.0+1656_daily_bin474.fits ra=183.774 dec=16.9372 rad=12.0 tmin=362188801.0 tmax=362448001.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 4.18
user 3.93
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435580/ft1_filtered_4FGL_J1215.0+1656_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/435580/ft2_4FGL_J1215.0+1656_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/435580/ltcube_362188801_362448001_4FGL_J1215.0+1656_daily_bin474.fits outfile=/scratch/kocevski/435580/expmap_362188801_362448001_4FGL_J1215.0+1656_daily_bin474.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/435580/ltcube_362188801_362448001_4FGL_J1215.0+1656_daily_bin474.fits
.....................!
real 190.05
user 185.48
sys 4.22

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/435580/ft1_filtered_4FGL_J1215.0+1656_daily_bin474.fits scfile=/scratch/kocevski/435580/ft2_4FGL_J1215.0+1656_daily_bin474.fits outfile=/scratch/kocevski/435580/cmap_362188801_362448001_4FGL_J1215.0+1656_daily_bin474.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11224E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.923       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31824E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    186.92       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0685       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.072       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4003       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8879       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10213E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.997       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.434       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5568       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0007       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1257       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=   7190.367     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3076 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.150       -.48484E-05** at limit **
   2  Prefactor     .10000E-03    40.527       -.36522E-05** at limit **
   3  Prefactor     1.6606        4.4911        .21162E-05   -.14069E-02
   4  Prefactor     1.4273        2.1026        .10627E-06   -.74110E-04
   5  Prefactor     .10000E-03    21.183        .62253E-05** at limit **
   6  Prefactor     .10000E-03    12.014       -.71417E-05** at limit **
   7  Prefactor     13.922        18.725       -.20926E-05    .42162E-04
   8  Prefactor     .10000E-03    1.9244       -.93070E-08** at limit **
   9  Prefactor     186.94        109.94        .10423E-04    .13460E-03
  10  Prefactor     1.7821        1.7545        .81622E-08   -.38417E-04
  11  Prefactor     .10000E-03    .73007        .21399E-07** at limit **
  12  Prefactor     .10000E-03    10.293        .65137E-05** at limit **
  13  Prefactor     2.0686        1.8814        .10225E-06    .70658E-04
  14  Prefactor     13.072        15.485        .56836E-07    .79112E-06
  15  Prefactor     5.3999        4.7137       -.21865E-05   -.24119E-03
  16  norm          1.8879        .37896        .38261E-07   -.21469E-03
  17  Prefactor     .10000E-03    40.378       -.63658E-06** at limit **
  18  norm          .10000E-03    2.9466        .16150E-06** at limit **
  19  Prefactor     12.997        8.6086       -.10366E-06    .83601E-05
  20  Prefactor     33.437        25.828        .13915E-05    .34720E-04
  21  Prefactor     .10000E-03    10.438        .63019E-05** at limit **
  22  Prefactor     .10000E-03    4.6931        .91273E-07** at limit **
  23  Prefactor     .10000E-03    8.7273       -.43107E-05** at limit **
  24  Prefactor     6.5622        15.600        .11904E-05    .29525E-04
  25  Normalizat    1.0004        .19822       -.10369E-05    .12210E-03
  26  Prefactor     1.1259        .17906       -.39462E-07    .74356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.66057
  Prefactor  = 1.42732
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.9219
  Prefactor  = 0.0001
  Prefactor  = 186.94
  Prefactor  = 1.78209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06861
  Prefactor  = 13.0724
  Prefactor  = 5.3999
  norm       = 1.88787
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9966
  Prefactor  = 33.4366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56224
  Normalizat = 1.0004
  Prefactor  = 1.12588
 **********
 **   18 **HESSE 
 **********

 FCN=   7190.367     FROM HESSE     STATUS=OK           460 CALLS     3536 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6606        16.402        .16325E-02   -1.5450    
   4  Prefactor     1.4273        2.0799        .14083E-03   -1.5469    
   5  Prefactor     .10000E-03    21.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.922        18.700        .10735E-03   -1.4962    
   8  Prefactor     .10000E-03    8.3235        .22336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     186.94        110.48        .14767E-03   -1.2965    
  10  Prefactor     1.7821        1.7457        .10734E-03   -1.5441    
  11  Prefactor     .10000E-03    .73328        .70733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0686        1.8921        .10771E-03   -1.5420    
  14  Prefactor     13.072        15.486        .11079E-03   -1.4985    
  15  Prefactor     5.3999        4.7151        .16675E-03   -1.5243    
  16  norm          1.8879        .38063        .22023E-04   -1.5433    
  17  Prefactor     .10000E-03    40.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0786        .28410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.997        8.6083        .11111E-03   -1.4987    
  20  Prefactor     33.437        25.826        .69301E-04   -1.4551    
  21  Prefactor     .10000E-03    10.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7607        .17938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.5622        15.622        .15672E-03   -1.5196    
  25  Normalizat    1.0004        .23374        .28897E-03   -.93017    
  26  Prefactor     1.1259        .21176        .26238E-03   -.88644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32118e-08
Minuit parameter uncertainties:
  1  6.40107e-05
  2  3.57697e-05
  3  10.4411
  4  2.08005
  5  0.000109695
  6  0.000168296
  7  18.7082
  8  2.61651e-05
  9  110.603
  10  1.74573
  11  1.73062e-07
  12  7.88917e-05
  13  1.89218
  14  15.4903
  15  4.71545
  16  0.38063
  17  1.61151e-05
  18  2.9771e-05
  19  8.60917
  20  25.8346
  21  8.1001e-05
  22  4.41346e-06
  23  3.82019e-05
  24  15.6315
  25  0.233977
  26  0.211922
Done.

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

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.731e-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.126e+00  2.119e-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.000e+00  2.340e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435580/likelihoodResults_362188801_362448001_4FGL_J1215.0+1656_daily_bin474.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) = 7190.37367239
delta logL = -0.00619036541138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7190.36748251
delta logL = -4.86542376166e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3921       1.0000          .0000       10.000    
     3 'Normalizat'    1.0004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1260       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=   7190.367     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      213 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8689        .90712E-02** at limit **
   2  Index         1.9024        9.0398        .50000       -.31370E-05
   3  Normalizat    1.0004        .10827E-01    .46172E-01    .17388E-04
   4  Prefactor     1.1259        .10408E-01    .59332E-01    .81667E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9024
  Normalizat = 1.0004
  Prefactor  = 1.12588
 **********
 **   18 **HESSE 
 **********

 FCN=   7190.367     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.277        .79005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9024        5.2683        .50000       -.66813    
   3  Normalizat    1.0004        .38110E-01    .28897E-03   -.93017    
   4  Prefactor     1.1259        .36627E-01    .26238E-03   -.88644    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.22386e-08
Minuit parameter uncertainties:
  1  3.62349e-06
  2  377.511
  3  0.0381111
  4  0.036628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435580': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7190.36746863
delta logL = 1.33959620143e-05

Extracting fit parameters...

4FGL J1215.0+1656
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.623e-06  1.000e-04  1.000e+04 ( 1.000e-12)
263        Index:  1.902e+00  3.775e+02  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.126e+00  3.663e-02  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.000e+00  3.811e-02  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/435580/cmap_HighResolution_362188801_362448001_4FGL_J1215.0+1656_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-05 05:29:27.962300', job_id='435580', GAL2='1.13', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630844967.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.34e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='474' AND source_name='4FGL J1215.0+1656' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:29:27 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1215.0+1656_daily_bin474 183.774 16.9372 362188801 362448001 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 :                                   797.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

