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


Performing analysis on: 4FGL_J1007.6-3332_daily_bin574
RA = 151.912, Dec = -33.5432
tmin = 388108801, tmax = 388368001
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='672812', job_status='RUN', time_executed='2021-09-01 10:41:36.521614', time_epoch_executed='1630518096.52' WHERE source_name='4FGL J1007.6-3332' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672812/ft1_4FGL_J1007.6-3332_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672812/ft1_4FGL_J1007.6-3332_daily_bin574.fits outfile=/scratch/kocevski/672812/ft1_filteredMKT_4FGL_J1007.6-3332_daily_bin574.fits ra=151.912 dec=-33.5432 rad=12.0 tmin=388108801.0 tmax=388368001.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.42
user 3.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/672812/ltcube_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.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/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits
.....................!
real 11.73
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/672812/ltcube_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.fits outfile=/scratch/kocevski/672812/expmap_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.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/672812/ltcube_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.fits
.....................!
real 189.60
user 184.77
sys 4.42

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/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits scfile=/scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits outfile=/scratch/kocevski/672812/cmap_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.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.59
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits scfile=/scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits outfile=/scratch/kocevski/672812/cmap_HighResolution_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/672812/Model_4FGL_J1007.6-3332_daily_bin574.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/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits.....................!
real 84.54
user 82.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits', '/scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits', expMap='/scratch/kocevski/672812/expmap_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.fits', expCube='/scratch/kocevski/672812/ltcube_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/672812/Model_4FGL_J1007.6-3332_daily_bin574.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/672812/ft1_filtered_4FGL_J1007.6-3332_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/672812/ft2_4FGL_J1007.6-3332_daily_bin574.fits
Exposure map: /scratch/kocevski/672812/expmap_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.fits
Exposure cube: /scratch/kocevski/672812/ltcube_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/672812/Model_4FGL_J1007.6-3332_daily_bin574.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) = 6991.51367332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9941       1.0000         .10000E-03   10000.    
     5 'norm      '    11.430       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0430       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.296       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.039       1.0000         .10000E-03   10000.    
    11 'norm      '    14.276       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6439       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1788       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0003       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=   6991.512     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     2132 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.815       -.98490E-05** at limit **
   2  Prefactor     .10000E-03    8.1553       -.25836E-06** at limit **
   3  Prefactor     .10000E-03    11.299        .58362E-05** at limit **
   4  norm          4.9941        8.3113       -.29524E-06   -.17815E-03
   5  norm          11.430        16.063       -.85825E-06   -.26034E-04
   6  norm          .10000E-03    4.3766       -.17878E-05** at limit **
   7  norm          1.0428        1.8663       -.39649E-06   -.13334E-02
   8  norm          .10000E-03    5.7042        .48485E-05** at limit **
   9  Prefactor     11.292        33.569       -.92000E-05   -.17293E-04
  10  Prefactor     18.039        20.088        .99349E-06   -.21021E-04
  11  norm          14.277        13.013        .18296E-05   -.51746E-04
  12  norm          4.6440        4.7110        .90938E-07    .17619E-03
  13  norm          .10000E-03    4.4161        .10679E-05** at limit **
  14  Prefactor     .10000E-03    9.8004        .80620E-05** at limit **
  15  Prefactor     .10000E-03    6.3213       -.33521E-05** at limit **
  16  norm          .10000E-03    1.0482       -.36422E-07** at limit **
  17  Prefactor     .10000E-03    7.1192       -.63994E-05** at limit **
  18  Prefactor     .10000E-03    2.4579       -.34050E-07** at limit **
  19  Prefactor     .10000E-03    5.9763        .41523E-06** at limit **
  20  Normalizat    1.1789        .27030        .78435E-06   -.32738E-04
  21  Prefactor     1.0002        .92674E-01   -.20649E-07    .32086E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.99408
  norm       = 11.4296
  norm       = 0.0001
  norm       = 1.04281
  norm       = 0.0001
  Prefactor  = 11.2924
  Prefactor  = 18.0393
  norm       = 14.2774
  norm       = 4.64402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17889
  Prefactor  = 1.00023
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.512     FROM HESSE     STATUS=OK           315 CALLS     2447 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9941        8.3134        .17995E-03   -1.5261    
   5  norm          11.430        16.071        .11850E-03   -1.5032    
   6  norm          .10000E-03    4.3797        .17080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0428        1.6593        .14772E-02   -1.5504    
   8  norm          .10000E-03    5.7019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.292        33.610        .11920E-03   -1.5036    
  10  Prefactor     18.039        20.062        .94301E-04   -1.4858    
  11  norm          14.277        12.985        .10601E-03   -1.4952    
  12  norm          4.6440        4.7171        .17852E-03   -1.5277    
  13  norm          .10000E-03    4.4253        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0507        .83593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5005        .12797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1789        .30732        .41516E-03   -.87258    
  21  Prefactor     1.0002        .10636        .15770E-03   -.92722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26039e-10
Minuit parameter uncertainties:
  1  1.00158e-05
  2  2.42157e-06
  3  8.08083e-07
  4  8.31536
  5  16.0771
  6  1.30107e-06
  7  1.65933
  8  5.46369e-06
  9  33.6661
  10  20.069
  11  12.9877
  12  4.71748
  13  1.32228e-05
  14  9.85404e-06
  15  1.60116e-06
  16  3.95593e-07
  17  1.94538e-06
  18  1.75662e-06
  19  3.78464e-06
  20  0.307791
  21  0.106386
Done.

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

Extracting fit parameters...

4FGL J1007.6-3332
   Spectrum: LogParabola
378         norm:  1.000e-04  5.464e-06  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:  1.000e+00  1.064e-01  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.179e+00  3.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/672812/likelihoodResults_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.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) = 6991.51261282
delta logL = -0.000835768653815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6991.51177708
delta logL = -2.87272996502e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2898       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0002       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6991.512     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      255 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .50241        .59977E-01** at limit **
   2  alpha         3.8785        2.9120        .16535       -.19939E-08
   3  Normalizat    1.1789        .41557E-02    .41515E-03    .24443E-03
   4  Prefactor     1.0002        .14784E-02    .15770E-03    .48603E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.87846
  Normalizat = 1.1789
  Prefactor  = 1.00023
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.512     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2938        .20273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.8785        3.0582        .66139E-02    .58402    
   3  Normalizat    1.1789        .29670        .16606E-04   -.87258    
   4  Prefactor     1.0002        .10565        .31540E-04   -.92722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57219e-10
Minuit parameter uncertainties:
  1  1.80858e-09
  2  496.042
  3  0.297122
  4  0.105676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672812': 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) = 6991.51177454
delta logL = 2.51109486271e-06

Extracting fit parameters...

4FGL J1007.6-3332
   Spectrum: LogParabola
378         norm:  1.000e-04  1.809e-09  1.000e-04  1.000e+04 ( 1.000e-12)
379        alpha:  3.878e+00  4.960e+02  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:  1.000e+00  1.057e-01  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.179e+00  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/672812/cmap_HighResolution_388108801_388368001_4FGL_J1007.6-3332_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-01 10:53:57.142364', job_id='672812', GAL2='1.00', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630518837.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='574' AND source_name='4FGL J1007.6-3332' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:53:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 672812: <4FGL_J1007.6-3332_daily_bin574> in cluster <slac> Done

Job <4FGL_J1007.6-3332_daily_bin574> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  1 10:40:52 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:40:53 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:40:53 2021
Terminated at Wed Sep  1 10:53:57 2021
Results reported at Wed Sep  1 10:53:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1007.6-3332_daily_bin574 151.912 -33.5432 388108801 388368001 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 :                                   739.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

