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


Performing analysis on: 4FGL_J1007.6-3332_daily_bin1160
RA = 151.912, Dec = -33.5432
tmin = 540000001, tmax = 540259201
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='677349', job_status='RUN', time_executed='2021-09-01 10:57:04.733592', time_epoch_executed='1630519024.73' WHERE source_name='4FGL J1007.6-3332' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677349/ft1_4FGL_J1007.6-3332_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677349/ft1_4FGL_J1007.6-3332_daily_bin1160.fits outfile=/scratch/kocevski/677349/ft1_filteredMKT_4FGL_J1007.6-3332_daily_bin1160.fits ra=151.912 dec=-33.5432 rad=12.0 tmin=540000001.0 tmax=540259201.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.72
user 3.34
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.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/677349/ft1_filteredMKT_4FGL_J1007.6-3332_daily_bin1160.fits evtable="EVENTS" outfile="/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.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.62
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/677349/ltcube_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.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/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits
.....................!
real 12.17
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/677349/ltcube_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.fits outfile=/scratch/kocevski/677349/expmap_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.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/677349/ltcube_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.fits
.....................!
real 192.59
user 186.99
sys 4.60

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 X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 205 point sources and 2 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 J1007.6-3332 @ 151.912 -33.5432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits scfile=/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits outfile=/scratch/kocevski/677349/cmap_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.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=151.912 yref=-33.5432 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits scfile=/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits outfile=/scratch/kocevski/677349/cmap_HighResolution_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.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=151.912 yref=-33.5432 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/677349/Model_4FGL_J1007.6-3332_daily_bin1160.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
adding source Vela X
Working on...
/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits.....................!
real 104.16
user 102.59
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits', '/scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits', expMap='/scratch/kocevski/677349/expmap_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.fits', expCube='/scratch/kocevski/677349/ltcube_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/677349/Model_4FGL_J1007.6-3332_daily_bin1160.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1007.6-3332'

4FGL J1007.6-3332
   Spectrum: LogParabola
378         norm:  6.187e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
379        alpha:  2.280e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
380         beta:  2.030e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
381           Eb:  6.191e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/677349/ft1_filtered_4FGL_J1007.6-3332_daily_bin1160.fits
Spacecraft file(s): /scratch/kocevski/677349/ft2_4FGL_J1007.6-3332_daily_bin1160.fits
Exposure map: /scratch/kocevski/677349/expmap_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.fits
Exposure cube: /scratch/kocevski/677349/ltcube_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/677349/Model_4FGL_J1007.6-3332_daily_bin1160.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) = 8855.4047744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.781       1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.338       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3753       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8177       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .96246E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .77897E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1396       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3068       1.0000         .10000E-03   10000.    
    16 'norm      '    25.356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2371       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8855.398     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2276 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.570        .39541E-07** at limit **
   2  Prefactor     10.535        6.4132        .21730E-06   -.34274E-04
   3  Prefactor     23.755        43.127        .60544E-07   -.15452E-05
   4  norm          .10000E-03    4.9016        .16781E-07** at limit **
   5  norm          19.335        17.552       -.13080E-06    .60098E-04
   6  norm          .10000E-03    3.3486        .38129E-08** at limit **
   7  norm          6.3741        2.5799       -.21795E-07   -.31103E-03
   8  norm          2.8221        8.2757        .77964E-06    .26494E-03
   9  Prefactor     2.2321        66.870        .40553E-05    .10274E-03
  10  Prefactor     .10000E-03    15.734       -.31915E-06** at limit **
  11  norm          .10000E-03    9.7850        .39500E-06** at limit **
  12  norm          .10000E-03    2.5936        .25617E-07** at limit **
  13  norm          .46592E-03    6.5390       -.17093E-05** at limit **
  14  Prefactor     1.1396        23.278        .17568E-04   -.16246E-03
  15  Prefactor     4.3127        18.289        .45607E-05    .28115E-03
  16  norm          25.356        6.7381       -.77751E-06   -.63539E-03
  17  Prefactor     .10000E-03    14.065        .53168E-06** at limit **
  18  Prefactor     .10000E-03    2.0422       -.60973E-06** at limit **
  19  Prefactor     .10000E-03    9.0187       -.63707E-06** at limit **
  20  Normalizat    1.2375        .24288        .11539E-05    .41731E-03
  21  Prefactor     .88295        .82528E-01   -.68386E-06    .35106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.5352
  Prefactor  = 23.7554
  norm       = 0.0001
  norm       = 19.3351
  norm       = 0.0001
  norm       = 6.37409
  norm       = 2.82214
  Prefactor  = 2.23208
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000465924
  Prefactor  = 1.13964
  Prefactor  = 4.31272
  norm       = 25.3564
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 1.23753
  Prefactor  = 0.882954
 **********
 **   18 **HESSE 
 **********

 FCN=   8855.398     FROM HESSE     STATUS=OK           331 CALLS     2607 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.535        6.4327        .12344E-03   -1.5059    
   3  Prefactor     23.755        43.212        .82141E-04   -1.4733    
   4  norm          .10000E-03    4.9418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.335        17.554        .91080E-04   -1.4828    
   6  norm          .10000E-03    3.3513        .16818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3741        2.5941        .46032E-03   -1.5203    
   8  norm          2.8221        8.2633        .24231E-03   -1.5372    
   9  Prefactor     2.2321        67.675        .27507E-03   -1.5409    
  10  Prefactor     .10000E-03    15.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.452        .75158E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6130        .14800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .46592E-03    13.280        .61429E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1396        23.591        .21784E-02   -1.5494    
  15  Prefactor     4.3127        18.716        .19412E-03   -1.5293    
  16  norm          25.356        6.7728        .79553E-04   -1.4700    
  17  Prefactor     .10000E-03    14.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0742        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2375        .28399        .39212E-03   -.85451    
  21  Prefactor     .88295        .96265E-01    .16331E-03   -.96739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4299e-09
Minuit parameter uncertainties:
  1  2.3401e-05
  2  6.43313
  3  43.2687
  4  1.70743e-06
  5  17.5586
  6  1.14312e-08
  7  2.59411
  8  8.26665
  9  24.6111
  10  0.000107653
  11  4.3748e-05
  12  2.9388e-06
  13  0.139453
  14  10.3745
  15  17.9778
  16  6.77296
  17  0.000156718
  18  6.86691e-05
  19  0.000152707
  20  0.284348
  21  0.0962834
Done.

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

Extracting fit parameters...

4FGL J1007.6-3332
   Spectrum: LogParabola
378         norm:  2.822e+00  8.267e+00  1.000e-04  1.000e+04 ( 1.000e-12)
379        alpha:  2.280e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
380         beta:  2.030e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
381           Eb:  6.191e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.830e-01  9.628e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.238e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 151.912 -33.543
Photon Flux Upper Limit: 9.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/677349/likelihoodResults_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.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) = 8855.39198418
delta logL = 0.00597093247052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8855.39193079
delta logL = 0.00602432115375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7932       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4563       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88317       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8855.392     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      230 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7714        808.08        .60861E-02    .35306E-03
   2  alpha         2.4510        3.2707        .41160        .17259E-04
   3  Normalizat    1.2358        .10374        .88601E-01   -.25780E-04
   4  Prefactor     .88324        .40922E-01    .44790E-01    .79654E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7714
  alpha      = 2.45103
  Normalizat = 1.23576
  Prefactor  = 0.883238
 **********
 **   18 **HESSE 
 **********

 FCN=   8855.392     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7714        8.3147        .24344E-03   -1.5375    
   2  alpha         2.4510        1.5237        .50895E-01   -.19590E-01
   3  Normalizat    1.2358        .25763        .39237E-03   -.85505    
   4  Prefactor     .88324        .92752E-01    .16329E-03   -.96729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65822e-11
Minuit parameter uncertainties:
  1  8.31817
  2  1.63859
  3  0.257899
  4  0.0927683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677349': 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) = 8855.39191751
delta logL = 0.00603759591104

Extracting fit parameters...

4FGL J1007.6-3332
   Spectrum: LogParabola
378         norm:  2.771e+00  8.318e+00  1.000e-04  1.000e+04 ( 1.000e-12)
379        alpha:  2.451e+00  1.639e+00  0.000e+00  5.000e+00 ( 1.000e+00)
380         beta:  2.030e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
381           Eb:  6.191e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  8.832e-01  9.277e-02  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.236e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 151.912 -33.543

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/677349/cmap_HighResolution_540000001_540259201_4FGL_J1007.6-3332_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', job_status='DONE', photon_flux_upper_limit='9.03e-08', time_completed='2021-09-01 11:11:44.759274', job_id='677349', GAL2='0.88', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630519904.76', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='6.04e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1160' AND source_name='4FGL J1007.6-3332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:11:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 677349: <4FGL_J1007.6-3332_daily_bin1160> in cluster <slac> Done

Job <4FGL_J1007.6-3332_daily_bin1160> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:55:27 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:55:30 2021
Terminated at Wed Sep  1 11:11:45 2021
Results reported at Wed Sep  1 11:11:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1007.6-3332_daily_bin1160 151.912 -33.5432 540000001 540259201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1007.6-3332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   876.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            978 sec.

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

