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


Performing analysis on: 4FGL_J1010.8-0158_daily_bin580
RA = 152.704, Dec = -1.9817
tmin = 389664001, tmax = 389923201
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='704017', job_status='RUN', time_executed='2021-09-01 12:25:02.842624', time_epoch_executed='1630524302.84' WHERE source_name='4FGL J1010.8-0158' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/704017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/704017/ft1_4FGL_J1010.8-0158_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/704017/ft2_4FGL_J1010.8-0158_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/704017/ft1_4FGL_J1010.8-0158_daily_bin580.fits outfile=/scratch/kocevski/704017/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin580.fits ra=152.704 dec=-1.9817 rad=12.0 tmin=389664001.0 tmax=389923201.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.88
user 4.60
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/704017/ft2_4FGL_J1010.8-0158_daily_bin580.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/704017/ft1_filteredMKT_4FGL_J1010.8-0158_daily_bin580.fits evtable="EVENTS" outfile="/scratch/kocevski/704017/ft1_filtered_4FGL_J1010.8-0158_daily_bin580.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/704017/ft1_filtered_4FGL_J1010.8-0158_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/704017/ft2_4FGL_J1010.8-0158_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/704017/ltcube_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.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/704017/ft2_4FGL_J1010.8-0158_daily_bin580.fits
.....................!
real 13.16
user 12.82
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/704017/ft1_filtered_4FGL_J1010.8-0158_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/704017/ft2_4FGL_J1010.8-0158_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/704017/ltcube_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.fits outfile=/scratch/kocevski/704017/expmap_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.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/704017/ltcube_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.fits
.....................!
real 190.29
user 184.88
sys 5.10

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/704017/ft1_filtered_4FGL_J1010.8-0158_daily_bin580.fits scfile=/scratch/kocevski/704017/ft2_4FGL_J1010.8-0158_daily_bin580.fits outfile=/scratch/kocevski/704017/cmap_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/704017/ft1_filtered_4FGL_J1010.8-0158_daily_bin580.fits scfile=/scratch/kocevski/704017/ft2_4FGL_J1010.8-0158_daily_bin580.fits outfile=/scratch/kocevski/704017/cmap_HighResolution_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.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.56
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/704017/ft1_filtered_4FGL_J1010.8-0158_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/704017/ft2_4FGL_J1010.8-0158_daily_bin580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/704017/Model_4FGL_J1010.8-0158_daily_bin580.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/704017/ft1_filtered_4FGL_J1010.8-0158_daily_bin580.fits.....................!
real 63.65
user 62.32
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30768       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.578       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9831       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1833       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5238       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.720       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.037       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22822E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    142.82       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11931E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8760       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.401       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1499       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79031       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=   6352.826     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1912 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18123        24.925       -.98500E-07    .12400E-04
   2  Prefactor     21.587        16.015       -.27152E-06   -.19262E-03
   3  norm          5.9829        3.3352       -.94551E-09    .92226E-05
   4  norm          1.1833        .66653       -.13583E-08   -.30210E-04
   5  norm          1.5239        1.3558        .42066E-07   -.10416E-04
   6  Prefactor     11.710        13.684       -.32844E-07   -.80743E-04
   7  Prefactor     19.023        41.231       -.45017E-06   -.28486E-04
   8  Prefactor     .10000E-03    8.2703        .79244E-10** at limit **
   9  norm          .10000E-03    6.0564       -.26579E-06** at limit **
  10  Prefactor     .10000E-03    14.903        .10925E-05** at limit **
  11  Prefactor     142.74        83.925       -.21700E-05   -.23371E-03
  12  Prefactor     33.523        44.340        .35253E-06    .54849E-04
  13  Prefactor     .10000E-03    7.7571        .37577E-06** at limit **
  14  norm          .10000E-03    .43431       -.58132E-08** at limit **
  15  Prefactor     .10000E-03    8.5170        .24420E-06** at limit **
  16  Prefactor     7.8741        5.0971        .19236E-05   -.11424E-03
  17  Prefactor     12.399        11.548       -.11538E-05   -.49513E-04
  18  Normalizat    1.1502        .19997        .19410E-05   -.12481E-03
  19  Prefactor     .79009        .14299       -.20611E-05    .91014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.181227
  Prefactor  = 21.5867
  norm       = 5.98293
  norm       = 1.18334
  norm       = 1.5239
  Prefactor  = 11.7103
  Prefactor  = 19.0231
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 142.74
  Prefactor  = 33.5225
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87408
  Prefactor  = 12.399
  Normalizat = 1.15023
  Prefactor  = 0.790089
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.826     FROM HESSE     STATUS=OK           278 CALLS     2190 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18123        28.401        .12533       -1.5623    
   2  Prefactor     21.587        16.029        .86226E-04   -1.4778    
   3  norm          5.9829        3.3360        .10556E-03   -1.5219    
   4  norm          1.1833        .65302        .46077E-04   -1.5490    
   5  norm          1.5239        1.3470        .84968E-04   -1.5461    
   6  Prefactor     11.710        13.678        .11702E-03   -1.5023    
   7  Prefactor     19.023        41.366        .91797E-04   -1.4835    
   8  Prefactor     .10000E-03    8.2731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     142.74        84.767        .16856E-03   -1.3313    
  12  Prefactor     33.523        44.140        .69191E-04   -1.4549    
  13  Prefactor     .10000E-03    7.7572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .44401        .51250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.8741        5.1982        .67084E-03   -1.5147    
  17  Prefactor     12.399        11.547        .11375E-03   -1.5004    
  18  Normalizat    1.1502        .23227        .25808E-03   -.88155    
  19  Prefactor     .79009        .16430        .22893E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44499e-10
Minuit parameter uncertainties:
  1  4.53839
  2  16.0319
  3  3.33609
  4  0.653023
  5  1.34701
  6  13.6821
  7  41.4284
  8  7.49983e-06
  9  4.68715e-06
  10  4.94924e-06
  11  84.8391
  12  44.1833
  13  1.11297e-06
  14  2.78495e-07
  15  2.08511e-06
  16  5.19847
  17  11.5488
  18  0.232478
  19  0.164402
Done.

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

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.902e+01  4.143e+01  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:  7.901e-01  1.644e-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.150e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 152.704 -1.982
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/704017/likelihoodResults_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.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) = 6352.82024364
delta logL = 0.00618415311237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6352.81890179
delta logL = 0.00752599768111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.046       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6841       1.0000          .0000       10.000    
     3 'Normalizat'    1.1473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79170       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=   6352.819     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      254 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.049        45.225        .97007E-04   -.73481E-04
   2  Index         2.6839        1.3362        .12877E-01   -.53151E-04
   3  Normalizat    1.1474        .21853        .25836E-03    .39491E-03
   4  Prefactor     .79161        .16242        .22873E-03    .41889E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0495
  Index      = 2.68388
  Normalizat = 1.14738
  Prefactor  = 0.791609
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.819     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.049        41.713        .38803E-05   -1.4882    
   2  Index         2.6839        1.2341        .51508E-03   -.48163    
   3  Normalizat    1.1474        .21878        .51673E-04   -.88245    
   4  Prefactor     .79161        .16245        .45747E-04   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80315e-10
Minuit parameter uncertainties:
  1  41.7849
  2  1.25063
  3  0.218953
  4  0.162543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/704017': 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) = 6352.81890161
delta logL = 0.00752618049319

Extracting fit parameters...

4FGL J1010.8-0158
   Spectrum: PowerLaw
216    Prefactor:  1.705e+01  4.178e+01  1.000e-04  1.000e+04 ( 1.000e-13)
217        Index:  2.684e+00  1.251e+00  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:  7.916e-01  1.625e-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.147e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/704017/cmap_HighResolution_389664001_389923201_4FGL_J1010.8-0158_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-01 12:34:28.029385', job_id='704017', GAL2='0.79', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630524868.03', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='7.53e-03', ts2='0.25', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='580' AND source_name='4FGL J1010.8-0158' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:34:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 704017: <4FGL_J1010.8-0158_daily_bin580> in cluster <slac> Done

Job <4FGL_J1010.8-0158_daily_bin580> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 12:20:50 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 12:20:56 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:56 2021
Terminated at Wed Sep  1 12:34:28 2021
Results reported at Wed Sep  1 12:34:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.8-0158_daily_bin580 152.704 -1.9817 389664001 389923201 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 :                                   564.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            818 sec.

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

