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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1330
RA = 155.996, Dec = -32.6034
tmin = 584064001, tmax = 584323201
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='866112', job_status='RUN', time_executed='2021-09-01 21:03:30.000294', time_epoch_executed='1630555410.0' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866112/ft1_4FGL_J1023.9-3236_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866112/ft1_4FGL_J1023.9-3236_daily_bin1330.fits outfile=/scratch/kocevski/866112/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1330.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=584064001.0 tmax=584323201.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 4.50
user 4.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/866112/ltcube_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.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/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits
.....................!
real 15.83
user 15.46
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/866112/ltcube_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.fits outfile=/scratch/kocevski/866112/expmap_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.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/866112/ltcube_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.fits
.....................!
real 193.39
user 187.87
sys 5.09

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/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits scfile=/scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits outfile=/scratch/kocevski/866112/cmap_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits scfile=/scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits outfile=/scratch/kocevski/866112/cmap_HighResolution_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866112/Model_4FGL_J1023.9-3236_daily_bin1330.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/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits.....................!
real 82.06
user 80.47
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits', '/scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits', expMap='/scratch/kocevski/866112/expmap_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.fits', expCube='/scratch/kocevski/866112/ltcube_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866112/Model_4FGL_J1023.9-3236_daily_bin1330.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/866112/ft1_filtered_4FGL_J1023.9-3236_daily_bin1330.fits
Spacecraft file(s): /scratch/kocevski/866112/ft2_4FGL_J1023.9-3236_daily_bin1330.fits
Exposure map: /scratch/kocevski/866112/expmap_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.fits
Exposure cube: /scratch/kocevski/866112/ltcube_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866112/Model_4FGL_J1023.9-3236_daily_bin1330.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) = 7363.09151727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9041       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7179       1.0000         .10000E-03   10000.    
     3 'norm      '    12.907       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7879       1.0000         .10000E-03   10000.    
     5 'norm      '    10.662       1.0000         .10000E-03   10000.    
     6 'norm      '    18.241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11988E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.724       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.5858       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12376E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.506       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.066       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.932       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70057E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98082       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1834       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=   7362.997     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     1902 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8958        183.40        .26139E-05    .13521E-04
   2  norm          5.7170        10.877       -.13224E-05   -.92262E-04
   3  norm          12.902        17.324       -.88947E-06   -.33683E-04
   4  norm          5.7880        6.7323       -.33944E-07   -.10572E-03
   5  norm          10.662        3.1539       -.66329E-07   -.40405E-03
   6  norm          18.239        13.815       -.34610E-06   -.30463E-03
   7  Prefactor     .10002E-03    120.51        .17237E-04** at limit **
   8  Prefactor     .10000E-03    8.7735       -.28449E-06** at limit **
   9  norm          14.720        13.949       -.28951E-06   -.81519E-03
  10  norm          .10000E-03    3.0477       -.84948E-07** at limit **
  11  norm          7.5869        9.7043       -.16871E-06   -.14605E-03
  12  Prefactor     .10000E-03    11.252       -.37273E-06** at limit **
  13  Prefactor     .10003E-03    36.154       -.91639E-06** at limit **
  14  norm          12.508        7.1325       -.46983E-06    .18173E-04
  15  Prefactor     15.066        18.309        .28047E-06    .14581E-03
  16  Prefactor     16.939        9.6456        .28432E-05    .12526E-02
  17  Prefactor     1.0522        35.849       -.96196E-05    .67091E-04
  18  Prefactor     .10001E-03    97.339        .62867E-04** at limit **
  19  Prefactor     .10000E-03    2.7358       -.67400E-07** at limit **
  20  Normalizat    .98039        .32164        .45839E-05    .37182E-05
  21  Prefactor     1.1836        .12155        .45276E-07   -.28168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89575
  norm       = 5.71703
  norm       = 12.902
  norm       = 5.788
  norm       = 10.6621
  norm       = 18.2392
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 14.7197
  norm       = 0.0001
  norm       = 7.58693
  Prefactor  = 0.000100001
  Prefactor  = 0.000100032
  norm       = 12.5078
  Prefactor  = 15.0659
  Prefactor  = 16.9387
  Prefactor  = 1.05217
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 0.980394
  Prefactor  = 1.18357
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.997     FROM HESSE     STATUS=OK           325 CALLS     2227 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8958        183.79        .20419E-03   -1.5313    
   2  norm          5.7170        10.860        .16798E-03   -1.5230    
   3  norm          12.902        17.353        .11149E-03   -1.4989    
   4  norm          5.7880        6.7326        .16694E-03   -1.5227    
   5  norm          10.662        3.1559        .80037E-04   -1.5055    
   6  norm          18.239        13.814        .93776E-04   -1.4854    
   7  Prefactor     .10002E-03    121.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.720        13.935        .10438E-03   -1.4940    
  10  norm          .10000E-03    3.0549        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5869        9.6888        .14560E-03   -1.5157    
  12  Prefactor     .10000E-03    11.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    36.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.508        7.1313        .11327E-03   -1.5000    
  15  Prefactor     15.066        18.312        .10319E-03   -1.4931    
  16  Prefactor     16.939        9.8159        .97334E-04   -1.4885    
  17  Prefactor     1.0522        39.445        .48547E-02   -1.5503    
  18  Prefactor     .10001E-03    8.9141        .72010E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7387        .13861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98039        .35842        .47633E-03   -.93690    
  21  Prefactor     1.1836        .13637        .17642E-03   -.86839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03547e-09
Minuit parameter uncertainties:
  1  53.692
  2  10.8637
  3  17.3596
  4  6.73347
  5  3.15596
  6  13.8168
  7  0.00334068
  8  7.5384e-05
  9  13.9376
  10  9.18064e-06
  11  9.69083
  12  0.000166337
  13  0.00216451
  14  7.13175
  15  18.3187
  16  9.81688
  17  12.893
  18  0.000499369
  19  9.55186e-06
  20  0.359298
  21  0.136412
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  7.587e+00  9.691e+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

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.184e+00  1.364e-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:  9.804e-01  3.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 155.996 -32.603
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/866112/likelihoodResults_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.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) = 7362.99673368
delta logL = 0.000504657441525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7362.99669119
delta logL = 0.00054714840644

Fit tolerance = 1e-08

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

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

 FCN=   7362.997     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      258 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5669        9.5143        .14581E-03    .89351E-04
   2  alpha         2.4611        1.2322        .31000E-01    .78929E-04
   3  Normalizat    .97826        .33540        .47679E-03    .70245E-04
   4  Prefactor     1.1841        .13379        .17639E-03   -.16757E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.56691
  alpha      = 2.46106
  Normalizat = 0.978259
  Prefactor  = 1.18406
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.997     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5669        9.3981        .58325E-05   -1.5158    
   2  alpha         2.4611        1.2181        .62000E-02   -.15575E-01
   3  Normalizat    .97826        .33547        .19071E-04   -.93762    
   4  Prefactor     1.1841        .13381        .35277E-04   -.86823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22264e-10
Minuit parameter uncertainties:
  1  9.39994
  2  1.27237
  3  0.336191
  4  0.133845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866112': 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) = 7362.99669107
delta logL = 0.000547273560187

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  7.567e+00  9.400e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.461e+00  1.272e+00  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:  1.184e+00  1.338e-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:  9.783e-01  3.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/866112/cmap_HighResolution_584064001_584323201_4FGL_J1023.9-3236_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-05', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-01 21:15:17.861633', job_id='866112', GAL2='1.18', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630556117.86', return_code2='0', ts='0.98', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='5.47e-04', ts2='0.98', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1330' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:15:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 866112: <4FGL_J1023.9-3236_daily_bin1330> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1330> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 21:00:57 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:02:33 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:02:33 2021
Terminated at Wed Sep  1 21:15:18 2021
Results reported at Wed Sep  1 21:15:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1330 155.996 -32.6034 584064001 584323201 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            861 sec.

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

