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


Performing analysis on: 4FGL_J1010.2-3119_daily_bin675
RA = 152.572, Dec = -31.3207
tmin = 414288001, tmax = 414547201
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='696313', job_status='RUN', time_executed='2021-09-01 11:59:29.215841', time_epoch_executed='1630522769.22' WHERE source_name='4FGL J1010.2-3119' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/696313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/696313/ft1_4FGL_J1010.2-3119_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/696313/ft1_4FGL_J1010.2-3119_daily_bin675.fits outfile=/scratch/kocevski/696313/ft1_filteredMKT_4FGL_J1010.2-3119_daily_bin675.fits ra=152.572 dec=-31.3207 rad=12.0 tmin=414288001.0 tmax=414547201.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 7.48
user 5.24
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.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/696313/ft1_filteredMKT_4FGL_J1010.2-3119_daily_bin675.fits evtable="EVENTS" outfile="/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits" evtable="EVENTS" scfile=/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits sctable="SC_DATA" outfile=/scratch/kocevski/696313/ltcube_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.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/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits
.....................!
real 11.84
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/696313/ltcube_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.fits outfile=/scratch/kocevski/696313/expmap_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.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/696313/ltcube_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.fits
.....................!
real 191.98
user 187.21
sys 4.35

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
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 185 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1010.2-3119 @ 152.572 -31.3207

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits scfile=/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits outfile=/scratch/kocevski/696313/cmap_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.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.572 yref=-31.3207 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits scfile=/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits outfile=/scratch/kocevski/696313/cmap_HighResolution_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.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.572 yref=-31.3207 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/696313/Model_4FGL_J1010.2-3119_daily_bin675.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
adding source Vela Junior
Working on...
/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits.....................!
real 77.87
user 76.42
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits', '/scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits', expMap='/scratch/kocevski/696313/expmap_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.fits', expCube='/scratch/kocevski/696313/ltcube_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/696313/Model_4FGL_J1010.2-3119_daily_bin675.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1010.2-3119'

4FGL J1010.2-3119
   Spectrum: PowerLaw
334    Prefactor:  2.205e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
335        Index:  1.764e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  5.749e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/696313/ft1_filtered_4FGL_J1010.2-3119_daily_bin675.fits
Spacecraft file(s): /scratch/kocevski/696313/ft2_4FGL_J1010.2-3119_daily_bin675.fits
Exposure map: /scratch/kocevski/696313/expmap_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.fits
Exposure cube: /scratch/kocevski/696313/ltcube_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/696313/Model_4FGL_J1010.2-3119_daily_bin675.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) = 6913.02383183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.216       1.0000         .10000E-03   10000.    
     3 'norm      '    .42435E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7854       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6667       1.0000         .10000E-03   10000.    
     6 'norm      '    .44045       1.0000         .10000E-03   10000.    
     7 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.629       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9816       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.064       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .70960       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1472       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6913.003     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2248 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.588        13.891        .29423E-02   -.19268E-03
   2  Prefactor     21.217        31.652        .21740E-02    .11832E-03
   3  norm          .10004E-03    5.6394        .60059E-01** at limit **
   4  norm          3.7852        15.326        .51871E-02    .55591E-03
   5  norm          4.6661        8.4681        .46573E-02    .15475E-02
   6  norm          .44048        .89948        .20948E-01    .96921E-03
   7  norm          .10000E-03    12.060        .90712E-02** at limit **
   8  Prefactor     17.629        31.956        .23848E-02   -.84656E-04
   9  Prefactor     .10000E-03    33.177        .90712E-02** at limit **
  10  norm          2.9841        9.8055        .58779E-02   -.13585E-02
  11  norm          .10000E-03    3.6837        .90712E-02** at limit **
  12  Prefactor     .10000E-03    12.909        .90712E-02** at limit **
  13  Prefactor     .10000E-03    23.056        .90712E-02** at limit **
  14  norm          13.065        5.9242        .27705E-02    .12335E-03
  15  Prefactor     .10001E-03    12.647        .90712E-01** at limit **
  16  Prefactor     .10000E-03    6.9331        .90712E-02** at limit **
  17  Prefactor     .10000E-03    7.0082        .90712E-02** at limit **
  18  Normalizat    .70965        .25785        .10077        .66764E-04
  19  Prefactor     1.1472        .10510        .36019E-01    .45438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5878
  Prefactor  = 21.2173
  norm       = 0.000100038
  norm       = 3.78516
  norm       = 4.66606
  norm       = 0.440482
  norm       = 0.0001
  Prefactor  = 17.6288
  Prefactor  = 0.0001
  norm       = 2.98412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0652
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.709647
  Prefactor  = 1.14716
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.003     FROM HESSE     STATUS=OK           292 CALLS     2540 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.588        13.884        .11769E-03   -1.5027    
   2  Prefactor     21.217        31.655        .86958E-04   -1.4786    
   3  norm          .10004E-03    6.2038        .56150E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7852        15.353        .20748E-03   -1.5319    
   5  norm          4.6661        8.4559        .18629E-03   -1.5276    
   6  norm          .44048        .70024        .10852E-02   -1.5575    
   7  norm          .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.629        31.925        .95391E-04   -1.4868    
   9  Prefactor     .10000E-03    33.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9841        9.7509        .23512E-03   -1.5362    
  11  norm          .10000E-03    3.6907        .15576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.065        5.8975        .11082E-03   -1.4985    
  15  Prefactor     .10001E-03    12.327        .92772E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1667        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.0540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .70965        .27822        .44663E-03   -1.0351    
  19  Prefactor     1.1472        .11571        .15330E-03   -.87973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40465e-08
Minuit parameter uncertainties:
  1  13.8879
  2  31.6801
  3  0.000964769
  4  15.2533
  5  8.45811
  6  0.700253
  7  3.35715e-05
  8  31.9554
  9  4.73598e-05
  10  9.75606
  11  6.50925e-07
  12  2.12194e-05
  13  0.000118339
  14  5.89778
  15  0.000850828
  16  2.01677e-05
  17  1.24403e-05
  18  0.278774
  19  0.115735
Done.

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

Extracting fit parameters...

4FGL J1010.2-3119
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  4.736e-05  1.000e-04  1.000e+04 ( 1.000e-14)
335        Index:  1.764e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  5.749e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.147e+00  1.157e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  7.096e-01  2.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 152.572 -31.321
Photon Flux Upper Limit: 7.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/696313/likelihoodResults_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.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) = 6913.00277493
delta logL = -0.000140599152473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6913.00277492
delta logL = -0.000140588659633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7636       1.0000          .0000       10.000    
     3 'Normalizat'    .70965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1472       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6913.003     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      215 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    .27128E-01    .90713E-01** at limit **
   2  Index         1.8761        2.3543        .50000       -.31673E-04
   3  Normalizat    .70965        .32033E-03    .10077        .45774E-04
   4  Prefactor     1.1472        .13744E-03    .36019E-01    .18121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010053
  Index      = 1.87613
  Normalizat = 0.709647
  Prefactor  = 1.14716
 **********
 **   18 **HESSE 
 **********

 FCN=   6913.003     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      252 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    4.4272        .52328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8761        8.0932        .50000       -.67484    
   3  Normalizat    .70965        .15416E-02    .44663E-03   -1.0351    
   4  Prefactor     1.1472        .66366E-03    .15330E-03   -.87973    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.17946e-09
Minuit parameter uncertainties:
  1  0.00306445
  2  12.204
  3  0.00154161
  4  0.000663656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/696313': 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) = 6913.00263352
delta logL = 8.02682734502e-07

Extracting fit parameters...

4FGL J1010.2-3119
   Spectrum: PowerLaw
334    Prefactor:  1.005e-04  3.064e-03  1.000e-04  1.000e+04 ( 1.000e-14)
335        Index:  1.876e+00  1.220e+01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  5.749e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.147e+00  6.637e-04  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  7.096e-01  1.542e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.572 -31.321

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/696313/cmap_HighResolution_414288001_414547201_4FGL_J1010.2-3119_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-09-01 12:11:09.155233', job_id='696313', GAL2='1.15', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630523469.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='8.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.76' WHERE bin_id='675' AND source_name='4FGL J1010.2-3119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 12:11:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 696313: <4FGL_J1010.2-3119_daily_bin675> in cluster <slac> Done

Job <4FGL_J1010.2-3119_daily_bin675> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Sep  1 11:55:49 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:55:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 11:55:51 2021
Terminated at Wed Sep  1 12:11:09 2021
Results reported at Wed Sep  1 12:11:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1010.2-3119_daily_bin675 152.572 -31.3207 414288001 414547201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1010.2-3119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   696.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

