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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin455
RA = 152.704, Dec = -1.9817
tmin = 357264001, tmax = 357523201
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='703839', job_status='RUN', time_executed='2021-09-01 12:21:00.980804', time_epoch_executed='1630524060.98' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703839

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703839/ft1_4FGL_J1010.8-0158_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703839/ft1_4FGL_J1010.8-0158_daily_bin455.fits outfile=/scratch/kocevski/703839/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin455.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=357264001.0 tmax=357523201.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.71
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.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/703839/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin455.fits evtable="EVENTS" outfile="/scratch/kocevski/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits" evtable="EVENTS" scfile=/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits sctable="SC_DATA" outfile=/scratch/kocevski/703839/ltcube_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.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/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits
.....................!
real 16.02
user 15.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/703839/ltcube_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.fits outfile=/scratch/kocevski/703839/expmap_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.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/703839/ltcube_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.fits
.....................!
real 192.93
user 186.88
sys 3.81

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/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits scfile=/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits outfile=/scratch/kocevski/703839/cmap_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.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.59
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits scfile=/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits outfile=/scratch/kocevski/703839/cmap_HighResolution_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.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.42
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703839/Model_4FGL_J1010.8-0158_daily_bin455.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/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits....................!
real 64.60
user 62.85
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits', '/scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits', expMap='/scratch/kocevski/703839/expmap_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.fits', expCube='/scratch/kocevski/703839/ltcube_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/703839/Model_4FGL_J1010.8-0158_daily_bin455.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/703839/ft1_filtered_4FGL_J1010.8-0158_daily_bin455.fits
Spacecraft file(s): /scratch/kocevski/703839/ft2_4FGL_J1010.8-0158_daily_bin455.fits
Exposure map: /scratch/kocevski/703839/expmap_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.fits
Exposure cube: /scratch/kocevski/703839/ltcube_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/703839/Model_4FGL_J1010.8-0158_daily_bin455.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) = 6507.92953169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.679       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3553       1.0000         .10000E-03   10000.    
     4 'norm      '    .43433       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3884       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11338E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5329       1.0000         .10000E-03   10000.    
     9 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    86.567       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3501       1.0000         .10000E-03   10000.    
    14 'norm      '    .13359       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.467       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0799       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89834       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=   6507.909     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2017 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.981        43.363        .34078E-06   -.44152E-05
   2  Prefactor     18.671        15.406        .10637E-06   -.18574E-04
   3  norm          2.3551        3.4227        .29356E-06   -.20821E-04
   4  norm          .43425        .53277        .96290E-07    .20112E-03
   5  norm          3.3883        2.3779        .63698E-07   -.32985E-04
   6  Prefactor     .10000E-03    12.347       -.20754E-05** at limit **
   7  Prefactor     .10000E-03    200.83        .68154E-06** at limit **
   8  Prefactor     1.5332        83.039        .31248E-05   -.56489E-05
   9  norm          .10000E-03    10.783       -.20420E-05** at limit **
  10  Prefactor     13.780        28.831        .41033E-05    .11133E-04
  11  Prefactor     49.946        76.284        .15840E-05    .64263E-06
  12  Prefactor     86.981        180.35       -.18156E-04    .67900E-05
  13  Prefactor     7.2955        33.309        .90424E-05    .31859E-05
  14  norm          .13091        .93127        .31166E-06   -.34907E-03
  15  Prefactor     .10000E-03    4.5347        .10489E-06** at limit **
  16  Prefactor     1.2225        3.1394        .10140E-05   -.18998E-05
  17  Prefactor     33.465        13.790       -.13516E-06   -.56524E-04
  18  Normalizat    1.0800        .19117       -.68937E-06   -.10740E-03
  19  Prefactor     .89834        .13763       -.45647E-06   -.11099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9811
  Prefactor  = 18.6713
  norm       = 2.35507
  norm       = 0.434252
  norm       = 3.38829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53316
  norm       = 0.0001
  Prefactor  = 13.78
  Prefactor  = 49.946
  Prefactor  = 86.9806
  Prefactor  = 7.29549
  norm       = 0.130913
  Prefactor  = 0.0001
  Prefactor  = 1.22252
  Prefactor  = 33.4655
  Normalizat = 1.07997
  Prefactor  = 0.898342
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.909     FROM HESSE     STATUS=OK           280 CALLS     2297 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.981        43.408        .81821E-04   -1.4728    
   2  Prefactor     18.671        15.400        .92671E-04   -1.4843    
   3  norm          2.3551        3.4027        .17269E-03   -1.5401    
   4  norm          .43425        .49966        .61481E-03   -1.5576    
   5  norm          3.3883        2.3760        .99240E-04   -1.5340    
   6  Prefactor     .10000E-03    12.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    206.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5332        84.041        .34464E-03   -1.5460    
   9  norm          .10000E-03    10.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.780        28.729        .10774E-03   -1.4965    
  11  Prefactor     49.946        76.384        .56697E-04   -1.4293    
  12  Prefactor     86.981        180.08        .21590E-03   -1.3840    
  13  Prefactor     7.2955        32.928        .14794E-03   -1.5168    
  14  norm          .13091        2.1290        .14641E-02   -1.5636    
  15  Prefactor     .10000E-03    4.6912        .33527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2225        3.1050        .21832E-03   -1.5487    
  17  Prefactor     33.465        13.768        .69267E-04   -1.4550    
  18  Normalizat    1.0800        .22365        .26922E-03   -.90397    
  19  Prefactor     .89834        .16190        .22144E-03   -.96199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44351e-08
Minuit parameter uncertainties:
  1  43.4648
  2  15.4035
  3  3.40293
  4  0.499663
  5  2.37604
  6  5.97216e-05
  7  4.85593e-05
  8  22.7352
  9  3.9518e-05
  10  28.7576
  11  76.5347
  12  181.232
  13  31.0266
  14  1.0555
  15  4.58206e-06
  16  3.10536
  17  13.7694
  18  0.223845
  19  0.161985
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.000e-04  4.856e-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.983e-01  1.620e-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.080e+00  2.238e-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: 9.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703839/likelihoodResults_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.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): 0
logL (Free Index) = 6507.90862667
delta logL = -2.29563720495e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6507.90860381
delta logL = -9.71485860646e-08

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.5017       1.0000          .0000       10.000    
     3 'Normalizat'    1.0800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89834       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.

 FCN=   6507.909     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      289 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21466E-02    1247.7        .12615    ** at limit **
   2  Index         2.6372        5.3031        .20000       -.27735E-03
   3  Normalizat    1.0800        .33179E-01    .26922E-03    .30417E-03
   4  Prefactor     .89834        .24188E-01    .22144E-03    .12111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00214656
  Index      = 2.63722
  Normalizat = 1.07997
  Prefactor  = 0.898341
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.909     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      324 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21466E-02    7081.7        .12376       -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6372        7.1003        .80000E-01   -.49219    
   3  Normalizat    1.0800        .12993        .53843E-04   -.90397    
   4  Prefactor     .89834        .70022E-01    .88577E-05   -.96199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.14088e-08
Minuit parameter uncertainties:
  1  6.34964
  2  51.5464
  3  0.129973
  4  0.0700289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703839': 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) = 6507.90860239
delta logL = 1.32532204589e-06

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  2.147e-03  6.350e+00  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.637e+00  5.155e+01  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.983e-01  7.003e-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.080e+00  1.300e-01  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/703839/cmap_HighResolution_357264001_357523201_4FGL_J1010.8-0158_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', job_status='DONE', photon_flux_upper_limit='9.48e-08', time_completed='2021-09-01 12:30:43.344463', job_id='703839', GAL2='0.90', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630524643.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.33e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='455' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 703839: <4FGL_J1010.8-0158_daily_bin455> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin455> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:20:37 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:20:41 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:20:41 2021
Terminated at Wed Sep  1 12:30:44 2021
Results reported at Wed Sep  1 12:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin455 152.704 -1.9817 357264001 357523201 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 :                                   578.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            607 sec.

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

