/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 196 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 = 7543
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1010.8-0158_daily_bin242
RA = 152.704, Dec = -1.9817
tmin = 302054401, tmax = 302313601
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='702462', job_status='RUN', time_executed='2021-09-01 12:19:15.083133', time_epoch_executed='1630523955.08' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/702462

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/702462/ft1_4FGL_J1010.8-0158_daily_bin242.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/702462/ft1_4FGL_J1010.8-0158_daily_bin242.fits outfile=/scratch/kocevski/702462/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin242.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=302054401.0 tmax=302313601.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 3.97
user 3.58
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.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/702462/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin242.fits evtable="EVENTS" outfile="/scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.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.55
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits" evtable="EVENTS" scfile=/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits sctable="SC_DATA" outfile=/scratch/kocevski/702462/ltcube_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.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/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits
.....................!
real 17.13
user 16.76
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/702462/ltcube_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.fits outfile=/scratch/kocevski/702462/expmap_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.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/702462/ltcube_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.fits
.....................!
real 191.62
user 186.61
sys 4.53

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J1010.8-0158 @ 152.704 -1.9817

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits scfile=/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits outfile=/scratch/kocevski/702462/cmap_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.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=152.704 yref=-1.9817 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits scfile=/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits outfile=/scratch/kocevski/702462/cmap_HighResolution_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.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=152.704 yref=-1.9817 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/702462/Model_4FGL_J1010.8-0158_daily_bin242.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/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits.....................!
real 65.33
user 63.81
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits', '/scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits', expMap='/scratch/kocevski/702462/expmap_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.fits', expCube='/scratch/kocevski/702462/ltcube_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/702462/Model_4FGL_J1010.8-0158_daily_bin242.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1010.8-0158'

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  9.399e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  7.428e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/702462/ft1_filtered_4FGL_J1010.8-0158_daily_bin242.fits
Spacecraft file(s): /scratch/kocevski/702462/ft2_4FGL_J1010.8-0158_daily_bin242.fits
Exposure map: /scratch/kocevski/702462/expmap_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.fits
Exposure cube: /scratch/kocevski/702462/ltcube_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/702462/Model_4FGL_J1010.8-0158_daily_bin242.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) = 6612.03331363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.007       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .28803       1.0000         .10000E-03   10000.    
     3 'norm      '    .94700       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7810       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10921E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.400       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.452       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48159       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7061       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6611.971     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1989 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.028        41.537        .29066E-05    .99128E-04
   2  Prefactor     .24672        11.869       -.98324E-06    .22791E-03
   3  norm          .94721        2.9184        .11640E-05   -.24933E-04
   4  norm          1.7811        .82891        .22960E-07    .29925E-03
   5  norm          .10000E-03    .72714       -.91685E-08** at limit **
   6  Prefactor     .10001E-03    8.8678        .74575E-06** at limit **
   7  Prefactor     .10000E-03    13.197       -.16104E-06** at limit **
   8  Prefactor     .10000E-03    21.922       -.18930E-05** at limit **
   9  norm          .10000E-03    11.163        .46146E-07** at limit **
  10  Prefactor     37.390        17.030        .33168E-06   -.18047E-03
  11  Prefactor     .10000E-03    20.685        .16690E-05** at limit **
  12  Prefactor     34.436        59.447       -.16932E-05   -.88498E-04
  13  Prefactor     .10000E-03    8.5479       -.32971E-06** at limit **
  14  norm          .48317        .78754        .64312E-06   -.27083E-03
  15  Prefactor     .10000E-03    2.3041       -.10996E-07** at limit **
  16  Prefactor     1.7061        3.6744        .77249E-06   -.46822E-04
  17  Prefactor     .10000E-03    3.9449       -.53237E-07** at limit **
  18  Normalizat    1.1688        .19122       -.85369E-06   -.19978E-05
  19  Prefactor     .89754        .13863       -.18624E-06   -.50363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0284
  Prefactor  = 0.246719
  norm       = 0.947208
  norm       = 1.78114
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 37.3895
  Prefactor  = 0.000100001
  Prefactor  = 34.436
  Prefactor  = 0.0001
  norm       = 0.483168
  Prefactor  = 0.0001
  Prefactor  = 1.70611
  Prefactor  = 0.0001
  Normalizat = 1.16876
  Prefactor  = 0.897537
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.971     FROM HESSE     STATUS=OK           272 CALLS     2261 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.028        42.389        .10339E-03   -1.4932    
   2  Prefactor     .24672        16.928        .79690E-01   -1.5609    
   3  norm          .94721        2.9206        .23737E-03   -1.5513    
   4  norm          1.7811        .82465        .46298E-04   -1.5441    
   5  norm          .10000E-03    .74070        .67680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    39.786        .45394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.390        16.842        .65536E-04   -1.4484    
  11  Prefactor     .10000E-03    21.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.436        60.050        .68273E-04   -1.4534    
  13  Prefactor     .10000E-03    8.5463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .48317        .79594        .22391E-03   -1.5569    
  15  Prefactor     .10000E-03    2.3152        .12051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7061        3.6794        .21808E-03   -1.5447    
  17  Prefactor     .10000E-03    3.9617        .15769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1688        .22719        .26129E-03   -.87574    
  19  Prefactor     .89754        .16481        .22328E-03   -.96227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93099e-09
Minuit parameter uncertainties:
  1  42.4741
  2  4.08767
  3  2.92103
  4  0.824657
  5  1.05e-07
  6  0.00133962
  7  1.6074e-05
  8  0.000309909
  9  6.58706e-07
  10  16.8439
  11  0.000300619
  12  60.1558
  13  1.05855e-05
  14  0.795962
  15  1.68486e-06
  16  3.67989
  17  3.54119e-06
  18  0.227384
  19  0.164901
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.607e-05  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  7.428e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  8.975e-01  1.649e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.169e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/702462/likelihoodResults_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.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) = 6611.97172242
delta logL = -0.000360548568096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6611.97136187
delta logL = 2.73666955763e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5234       1.0000          .0000       10.000    
     3 'Normalizat'    1.1687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89757       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+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=   6611.971     FROM MIGRAD    STATUS=FAILED        89 CALLS      239 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    346.14        .18142E-02** at limit **
   2  Index         2.4142        8.5552        .50000        .59564E-05
   3  Normalizat    1.1688        .24190E-01    .26129E-03    .28717E-05
   4  Prefactor     .89754        .18477E-01    .22328E-03    .25459E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6611.971     FROM SIMPLEX   STATUS=UNCHANGED    144 CALLS      383 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    346.14        .60383E-03** at limit **
   2  Index         2.4142        8.5552        .90466E-04    .59564E-05
   3  Normalizat    1.1688        .24190E-01    .87219E-06    .28717E-05
   4  Prefactor     .89754        .18477E-01    .78078E-06    .25459E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6611.971     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      427 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    341.40        .36285E-02** at limit **
   2  Index         2.0939        8.7063        .50000        .13165E-07
   3  Normalizat    1.1688        .23218E-01    .10452E-04   -.13923E-04
   4  Prefactor     .89754        .17734E-01    .89310E-05   -.14766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09395
  Normalizat = 1.16876
  Prefactor  = 0.897537
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.971     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      456 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1394.9        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0939        6.8527        .50000       -.62022    
   3  Normalizat    1.1688        .53282E-01    .20903E-05   -.87574    
   4  Prefactor     .89754        .40700E-01    .17862E-05   -.96227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65035e-11
Minuit parameter uncertainties:
  1  0.000110605
  2  2399.92
  3  0.0532841
  4  0.0407015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/702462': 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) = 6611.97136145
delta logL = 4.18194758822e-07

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  1.106e-04  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.094e+00  2.400e+03  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  7.428e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  8.975e-01  4.070e-02  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.169e+00  5.328e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.704 -1.982

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/702462/cmap_HighResolution_302054401_302313601_4FGL_J1010.8-0158_daily_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-01 12:29:11.077706', job_id='702462', GAL2='0.90', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630524551.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='242' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:29:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 702462: <4FGL_J1010.8-0158_daily_bin242> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin242> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:15:41 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:15:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 12:15:47 2021
Terminated at Wed Sep  1 12:29:14 2021
Results reported at Wed Sep  1 12:29:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin242 152.704 -1.9817 302054401 302313601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1010.8-0158 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            813 sec.

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

