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


Performing analysis on: 4FGL_J2007.9-4432_daily_bin1429
RA = 301.983, Dec = -44.5363
tmin = 609724801, tmax = 609984001
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='665947', job_status='RUN', time_executed='2021-09-24 14:27:30.594354', time_epoch_executed='1632518850.59' WHERE source_name='4FGL J2007.9-4432' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665947/ft1_4FGL_J2007.9-4432_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665947/ft1_4FGL_J2007.9-4432_daily_bin1429.fits outfile=/scratch/kocevski/665947/ft1_filteredMKT_4FGL_J2007.9-4432_daily_bin1429.fits ra=301.983 dec=-44.5363 rad=12.0 tmin=609724801.0 tmax=609984001.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 2.57
user 2.35
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.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/665947/ft1_filteredMKT_4FGL_J2007.9-4432_daily_bin1429.fits evtable="EVENTS" outfile="/scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.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.58
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/665947/ltcube_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.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/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits
.....................!
real 14.73
user 14.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/665947/ltcube_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.fits outfile=/scratch/kocevski/665947/expmap_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.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/665947/ltcube_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.fits
.....................!
real 191.63
user 185.87
sys 5.29

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J2007.9-4432 @ 301.983 -44.5363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits scfile=/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits outfile=/scratch/kocevski/665947/cmap_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.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=301.983 yref=-44.5363 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits scfile=/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits outfile=/scratch/kocevski/665947/cmap_HighResolution_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.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=301.983 yref=-44.5363 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665947/Model_4FGL_J2007.9-4432_daily_bin1429.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/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits.....................!
real 70.76
user 69.29
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits', '/scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits', expMap='/scratch/kocevski/665947/expmap_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.fits', expCube='/scratch/kocevski/665947/ltcube_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/665947/Model_4FGL_J2007.9-4432_daily_bin1429.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2007.9-4432'

4FGL J2007.9-4432
   Spectrum: LogParabola
348         norm:  7.940e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  2.468e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.316e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  4.576e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/665947/ft1_filtered_4FGL_J2007.9-4432_daily_bin1429.fits
Spacecraft file(s): /scratch/kocevski/665947/ft2_4FGL_J2007.9-4432_daily_bin1429.fits
Exposure map: /scratch/kocevski/665947/expmap_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.fits
Exposure cube: /scratch/kocevski/665947/ltcube_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/665947/Model_4FGL_J2007.9-4432_daily_bin1429.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) = 8866.76801825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.769       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1690       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0032       1.0000         .10000E-03   10000.    
     9 'norm      '    2.3610       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.040       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3739       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5521       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .87644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8866.764     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1742 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8036       -.18042E-06** at limit **
   2  Prefactor     .10000E-03    2.4987        .18192E-06** at limit **
   3  Prefactor     6.9967        19.572        .81124E-06   -.25617E-04
   4  Prefactor     .10000E-03    5.7808        .69556E-07** at limit **
   5  norm          14.768        18.882       -.19118E-06   -.65927E-05
   6  norm          1.1689        .94770       -.37837E-07   -.64992E-03
   7  norm          .10000E-03    6.9995       -.54135E-06** at limit **
   8  norm          5.0045        18.420        .28161E-05   -.68490E-05
   9  norm          2.3611        1.3772        .26869E-07    .28027E-03
  10  Prefactor     .10000E-03    33.450       -.18389E-05** at limit **
  11  norm          .10000E-03    2.6084        .10913E-06** at limit **
  12  norm          .10000E-03    8.4593        .30948E-06** at limit **
  13  Prefactor     22.870        22.785       -.40443E-05   -.49802E-05
  14  Prefactor     87.050        77.009        .10669E-04   -.49366E-06
  15  Prefactor     .10000E-03    9.7850        .24957E-06** at limit **
  16  norm          7.3738        2.3018       -.39925E-07   -.14274E-03
  17  Normalizat    1.5523        .23861       -.11483E-05    .84829E-04
  18  Prefactor     .87630        .92764E-01    .24690E-06    .12762E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.99674
  Prefactor  = 0.0001
  norm       = 14.7682
  norm       = 1.16888
  norm       = 0.0001
  norm       = 5.00448
  norm       = 2.36112
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.8699
  Prefactor  = 87.0505
  Prefactor  = 0.0001
  norm       = 7.37382
  Normalizat = 1.55231
  Prefactor  = 0.876305
 **********
 **   18 **HESSE 
 **********

 FCN=   8866.764     FROM HESSE     STATUS=OK           244 CALLS     1986 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8522        .24682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5107        .14534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9967        19.562        .15168E-03   -1.5179    
   4  Prefactor     .10000E-03    5.8129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.768        18.908        .10422E-03   -1.4939    
   6  norm          1.1689        .92563        .79214E-04   -1.5492    
   7  norm          .10000E-03    46.787        .45113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0045        17.534        .17978E-03   -1.5261    
   9  norm          2.3611        1.3829        .82150E-04   -1.5401    
  10  Prefactor     .10000E-03    33.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7032        .29677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.870        22.848        .83747E-04   -1.4751    
  14  Prefactor     87.050        76.849        .43063E-04   -1.3839    
  15  Prefactor     .10000E-03    9.8158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3738        2.3085        .76563E-04   -1.5165    
  17  Normalizat    1.5523        .28376        .34862E-03   -.76319    
  18  Prefactor     .87630        .11094        .17875E-03   -.96974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95276e-11
Minuit parameter uncertainties:
  1  1.52401e-06
  2  4.32784e-07
  3  19.5798
  4  4.56499e-06
  5  18.9154
  6  0.925641
  7  0.000303321
  8  17.552
  9  1.38289
  10  1.36076e-05
  11  4.69394e-06
  12  1.53656e-05
  13  22.8567
  14  76.9365
  15  4.22166e-06
  16  2.30849
  17  0.284054
  18  0.110966
Done.

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

Extracting fit parameters...

4FGL J2007.9-4432
   Spectrum: LogParabola
348         norm:  5.004e+00  1.755e+01  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  2.468e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.316e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  4.576e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
634    Prefactor:  8.763e-01  1.110e-01  0.000e+00  1.000e+01 ( 1.000e+00)
635        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
636        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  1.552e+00  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 301.983 -44.536
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/665947/likelihoodResults_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.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) = 8866.22107983
delta logL = 0.542933834869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8866.21522006
delta logL = 0.54879360694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1099       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1331       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89357       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6370E+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=   8866.215     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      279 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1159        33.777        .17786E-03    .49103E-03
   2  alpha         4.1323        4.5609        .41235E-01    .31211E-04
   3  Normalizat    1.4760        .28390        .35594E-03   -.53021E-04
   4  Prefactor     .89364        .11123        .17716E-03   -.18074E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.11586
  alpha      = 4.1323
  Normalizat = 1.47597
  Prefactor  = 0.893636
 **********
 **   18 **HESSE 
 **********

 FCN=   8866.215     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1159        10.554        .71144E-05   -1.5256    
   2  alpha         4.1323        1.4560        .16494E-02    .71143    
   3  Normalizat    1.4760        .28462        .14237E-04   -.78456    
   4  Prefactor     .89364        .11116        .35432E-04   -.96364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46334e-10
Minuit parameter uncertainties:
  1  10.5583
  2  1.66087
  3  0.284924
  4  0.11119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665947': 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) = 8866.21521967
delta logL = 0.548793995506

Extracting fit parameters...

4FGL J2007.9-4432
   Spectrum: LogParabola
348         norm:  5.116e+00  1.056e+01  1.000e-04  1.000e+04 ( 1.000e-12)
349        alpha:  4.132e+00  1.661e+00  0.000e+00  5.000e+00 ( 1.000e+00)
350         beta:  1.316e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  4.576e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
634    Prefactor:  8.936e-01  1.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
635        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
636        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
633   Normalization:  1.476e+00  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 301.983 -44.536
Photon Index (Free Index): 4.13 +/- 1.66
Photon Flux (Free Index): 7.19e-08 +/- 7.39e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.11e-05

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/665947/cmap_HighResolution_609724801_609984001_4FGL_J2007.9-4432_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='5.49e-01', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-09-24 14:39:09.783554', photon_index_error2='1.66', photon_index2='4.13', ts='0.09', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.11e-05', EG='1.55', time_epoch_completed='1632519549.78', return_code='0', job_id='665947', GAL2='0.89', EG2='1.48', return_code2='0', photon_flux_error2='7.39e-08', ts2='1.26', photon_index='2.47' WHERE bin_id='1429' AND source_name='4FGL J2007.9-4432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 14:39:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 665947: <4FGL_J2007.9-4432_daily_bin1429> in cluster <slac> Done

Job <4FGL_J2007.9-4432_daily_bin1429> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 24 14:26:21 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 14:27:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 14:27:08 2021
Terminated at Fri Sep 24 14:39:10 2021
Results reported at Fri Sep 24 14:39:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2007.9-4432_daily_bin1429 301.983 -44.5363 609724801 609984001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2007.9-4432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   697.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            769 sec.

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

