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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1428
RA = 155.996, Dec = -32.6034
tmin = 609465601, tmax = 609724801
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='867410', job_status='RUN', time_executed='2021-09-01 21:07:16.264493', time_epoch_executed='1630555636.26' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867410

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867410/ft1_4FGL_J1023.9-3236_daily_bin1428.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867410/ft1_4FGL_J1023.9-3236_daily_bin1428.fits outfile=/scratch/kocevski/867410/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1428.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=609465601.0 tmax=609724801.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.88
user 2.65
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.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/867410/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1428.fits evtable="EVENTS" outfile="/scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits" evtable="EVENTS" scfile=/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits sctable="SC_DATA" outfile=/scratch/kocevski/867410/ltcube_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.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/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits
.....................!
real 16.74
user 16.31
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits sctable="SC_DATA" expcube=/scratch/kocevski/867410/ltcube_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.fits outfile=/scratch/kocevski/867410/expmap_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.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/867410/ltcube_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.fits
.....................!
real 191.00
user 186.23
sys 4.12

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

Setting source of interest to:
4FGL J1023.9-3236 @ 155.996 -32.6034

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits scfile=/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits outfile=/scratch/kocevski/867410/cmap_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.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=155.996 yref=-32.6034 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits scfile=/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits outfile=/scratch/kocevski/867410/cmap_HighResolution_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.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=155.996 yref=-32.6034 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits evtable="EVENTS" scfile=/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867410/Model_4FGL_J1023.9-3236_daily_bin1428.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/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits.....................!
real 75.82
user 74.36
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits', '/scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits', expMap='/scratch/kocevski/867410/expmap_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.fits', expCube='/scratch/kocevski/867410/ltcube_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/867410/Model_4FGL_J1023.9-3236_daily_bin1428.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.9-3236'

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  3.622e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/867410/ft1_filtered_4FGL_J1023.9-3236_daily_bin1428.fits
Spacecraft file(s): /scratch/kocevski/867410/ft2_4FGL_J1023.9-3236_daily_bin1428.fits
Exposure map: /scratch/kocevski/867410/expmap_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.fits
Exposure cube: /scratch/kocevski/867410/ltcube_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/867410/Model_4FGL_J1023.9-3236_daily_bin1428.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) = 6210.21225488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.493       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    38.431       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7526       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6398       1.0000         .10000E-03   10000.    
     6 'norm      '    .12288E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5574       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.830       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10736E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5138       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .63137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6210.156     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2245 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.498        44.729        .74008E-05    .14625E-05
   2  norm          .10000E-03    2.2410       -.66120E-07** at limit **
   3  norm          38.432        22.341        .11877E-05    .36505E-04
   4  norm          4.7528        7.4712       -.14023E-06   -.13284E-03
   5  norm          1.6398        1.1962        .13147E-07   -.96094E-04
   6  norm          .10007E-03    4.9294       -.12186E-05** at limit **
   7  Prefactor     .10000E-03    5.6366        .70195E-06** at limit **
   8  Prefactor     .10000E-03    5.4805       -.81084E-06** at limit **
   9  norm          .10000E-03    2.1416        .23445E-07** at limit **
  10  norm          .10000E-03    2.3244       -.78812E-07** at limit **
  11  norm          .10000E-03    7.5326        .46906E-07** at limit **
  12  Prefactor     .10000E-03    24.435        .65532E-05** at limit **
  13  Prefactor     9.5571        11.284        .14795E-06   -.46282E-05
  14  norm          3.6245        4.1294        .62935E-06   -.38726E-03
  15  Prefactor     22.827        19.106       -.19414E-05   -.90329E-04
  16  Prefactor     6.9743        5.2537        .31242E-06   -.96442E-04
  17  Prefactor     1.3619        17.647       -.33351E-05   -.35313E-03
  18  Prefactor     .10000E-03    10.106       -.17371E-06** at limit **
  19  Prefactor     .10000E-03    4.7302       -.63954E-07** at limit **
  20  Normalizat    1.5138        .24163       -.79243E-07    .73224E-04
  21  Prefactor     .63135        .90696E-01   -.37612E-06    .18108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4976
  norm       = 0.0001
  norm       = 38.4323
  norm       = 4.75285
  norm       = 1.63984
  norm       = 0.000100068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.55712
  norm       = 3.62446
  Prefactor  = 22.8268
  Prefactor  = 6.97431
  Prefactor  = 1.3619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51378
  Prefactor  = 0.631351
 **********
 **   18 **HESSE 
 **********

 FCN=   6210.156     FROM HESSE     STATUS=OK           319 CALLS     2564 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.498        43.632        .73775E-04   -1.4621    
   2  norm          .10000E-03    2.2626        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          38.432        22.267        .64654E-04   -1.4467    
   4  norm          4.7528        7.4742        .18456E-03   -1.5272    
   5  norm          1.6398        1.1966        .71336E-04   -1.5452    
   6  norm          .10007E-03    25.052        .33127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4911        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1432        .11262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3288        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.7319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5571        11.282        .12963E-03   -1.5090    
  14  norm          3.6245        4.0726        .15878E-03   -1.5327    
  15  Prefactor     22.827        19.210        .83832E-04   -1.4752    
  16  Prefactor     6.9743        5.2429        .14677E-03   -1.5180    
  17  Prefactor     1.3619        20.577        .37468E-03   -1.5475    
  18  Prefactor     .10000E-03    10.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7377        .16739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5138        .28100        .30493E-03   -.77392    
  21  Prefactor     .63135        .10567        .17222E-03   -1.0628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8409e-09
Minuit parameter uncertainties:
  1  43.6788
  2  6.24875e-06
  3  22.2715
  4  7.47562
  5  1.1966
  6  0.00262018
  7  4.43708e-07
  8  3.54865e-06
  9  7.43528e-07
  10  4.74046e-07
  11  1.02373e-05
  12  6.10757e-05
  13  11.2842
  14  4.07293
  15  19.2148
  16  5.24321
  17  10.5915
  18  1.99672e-05
  19  2.0014e-06
  20  0.281286
  21  0.1057
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  1.024e-05  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  6.314e-01  1.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.514e+00  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.996 -32.603
Photon Flux Upper Limit: 8.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/867410/likelihoodResults_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.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) = 6210.15626554
delta logL = -0.000617135953689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6210.15564844
delta logL = -3.91837602365e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8534       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63162       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6210.156     FROM MIGRAD    STATUS=FAILED        89 CALLS      266 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10069E-03    1215.6        .33949E-02** at limit **
   2  alpha         1.7697        2.8750        .17217        .13582E-05
   3  Normalizat    1.5138        .51952E-01    .30493E-03    .12267E-03
   4  Prefactor     .63135        .19993E-01    .17222E-03    .25143E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6210.156     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      417 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10069E-03    1215.6        .77340E-03** at limit **
   2  alpha         1.7697        2.8750        .91022E-05    .13582E-05
   3  Normalizat    1.5138        .51952E-01    .22007E-06    .12267E-03
   4  Prefactor     .63135        .19993E-01    .38721E-07    .25143E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6210.156     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      478 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.931        .13579E-03** at limit **
   2  alpha         1.7464        2.7217        .27547E-02   -.33016E-08
   3  Normalizat    1.5138        .26794        .12197E-04   -.82767E-04
   4  Prefactor     .63135        .10313        .68887E-05   -.16734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.74644
  Normalizat = 1.51378
  Prefactor  = 0.63135
 **********
 **   18 **HESSE 
 **********

 FCN=   6210.156     FROM HESSE     STATUS=OK            23 CALLS      501 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.931        .27159E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7464        3.2519        .55094E-03   -.30619    
   3  Normalizat    1.5138        .26801        .24395E-05   -.77392    
   4  Prefactor     .63135        .10317        .13777E-05   -1.0628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41983e-11
Minuit parameter uncertainties:
  1  1.58204e-05
  2  198.779
  3  0.268266
  4  0.103199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867410': 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) = 6210.15564421
delta logL = 4.18666786572e-06

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  1.582e-05  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  1.746e+00  1.988e+02  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.106e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  6.383e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  6.314e-01  1.032e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  1.514e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.996 -32.603

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/867410/cmap_HighResolution_609465601_609724801_4FGL_J1023.9-3236_daily_bin1428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2021-09-01 21:19:06.593891', job_id='867410', GAL2='0.63', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630556346.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='4.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1428' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 867410: <4FGL_J1023.9-3236_daily_bin1428> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1428> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 21:05:37 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:05:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 21:05:38 2021
Terminated at Wed Sep  1 21:19:07 2021
Results reported at Wed Sep  1 21:19:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1428 155.996 -32.6034 609465601 609724801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.9-3236 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

