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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1141
RA = 155.996, Dec = -32.6034
tmin = 535075201, tmax = 535334401
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='865813', job_status='RUN', time_executed='2021-09-01 21:03:45.684213', time_epoch_executed='1630555425.68' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865813

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865813/ft1_4FGL_J1023.9-3236_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865813/ft2_4FGL_J1023.9-3236_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865813/ft1_4FGL_J1023.9-3236_daily_bin1141.fits outfile=/scratch/kocevski/865813/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1141.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=535075201.0 tmax=535334401.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.93
user 4.66
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865813/ft1_filtered_4FGL_J1023.9-3236_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/865813/ft2_4FGL_J1023.9-3236_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/865813/ltcube_535075201_535334401_4FGL_J1023.9-3236_daily_bin1141.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/865813/ft2_4FGL_J1023.9-3236_daily_bin1141.fits
.....................!
real 11.98
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865813/ft1_filtered_4FGL_J1023.9-3236_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/865813/ft2_4FGL_J1023.9-3236_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/865813/ltcube_535075201_535334401_4FGL_J1023.9-3236_daily_bin1141.fits outfile=/scratch/kocevski/865813/expmap_535075201_535334401_4FGL_J1023.9-3236_daily_bin1141.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/865813/ltcube_535075201_535334401_4FGL_J1023.9-3236_daily_bin1141.fits
.....................!
real 192.67
user 187.82
sys 4.41

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/865813/ft1_filtered_4FGL_J1023.9-3236_daily_bin1141.fits scfile=/scratch/kocevski/865813/ft2_4FGL_J1023.9-3236_daily_bin1141.fits outfile=/scratch/kocevski/865813/cmap_535075201_535334401_4FGL_J1023.9-3236_daily_bin1141.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865813/ft1_filtered_4FGL_J1023.9-3236_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/865813/ft2_4FGL_J1023.9-3236_daily_bin1141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865813/Model_4FGL_J1023.9-3236_daily_bin1141.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/865813/ft1_filtered_4FGL_J1023.9-3236_daily_bin1141.fits.....................!
real 82.53
user 81.07
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    170.65       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .98145       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1939       1.0000         .10000E-03   10000.    
     6 'norm      '    16.042       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.537       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.053       1.0000         .10000E-03   10000.    
    10 'norm      '    .20318       1.0000         .10000E-03   10000.    
    11 'norm      '    17.103       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.265       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.248       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.085       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .55624       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1398       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=   7779.604     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2194 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     170.62        83.860       -.13277E-05   -.15855E-04
   2  norm          .10000E-03    2.5723        .38139E-06** at limit **
   3  norm          .98082        16.950        .26779E-05    .39780E-05
   4  norm          .10000E-03    2.9193        .25939E-07** at limit **
   5  norm          6.1936        2.2350       -.10923E-06   -.71525E-04
   6  norm          16.041        16.066       -.83690E-06   -.61127E-04
   7  Prefactor     24.497        34.345       -.99232E-06    .81796E-05
   8  Prefactor     .10000E-03    11.511        .20935E-05** at limit **
   9  norm          10.055        12.654        .77420E-07   -.54872E-04
  10  norm          .19933        4.0842       -.38125E-06    .11344E-04
  11  norm          17.101        12.484       -.61669E-06   -.55903E-04
  12  Prefactor     12.266        13.817       -.17989E-06   -.57764E-05
  13  Prefactor     11.246        19.150       -.60464E-06   -.59010E-05
  14  norm          6.6634        4.9236       -.17248E-06   -.17681E-04
  15  Prefactor     .10000E-03    7.7065       -.43357E-06** at limit **
  16  Prefactor     .10000E-03    1.3113       -.19869E-06** at limit **
  17  Prefactor     .10000E-03    6.6396       -.11868E-05** at limit **
  18  Prefactor     2.0132        6.5383       -.13480E-05   -.28488E-04
  19  Prefactor     11.082        9.0264       -.51334E-06   -.36103E-04
  20  Normalizat    .55643        .29244        .90504E-05    .11100E-04
  21  Prefactor     1.1398        .11501       -.18275E-05    .14522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 170.617
  norm       = 0.0001
  norm       = 0.980824
  norm       = 0.0001
  norm       = 6.19359
  norm       = 16.0405
  Prefactor  = 24.4968
  Prefactor  = 0.0001
  norm       = 10.0547
  norm       = 0.199332
  norm       = 17.101
  Prefactor  = 12.2662
  Prefactor  = 11.2463
  norm       = 6.66344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.01324
  Prefactor  = 11.0825
  Normalizat = 0.556435
  Prefactor  = 1.13976
 **********
 **   18 **HESSE 
 **********

 FCN=   7779.604     FROM HESSE     STATUS=OK           327 CALLS     2521 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     170.62        84.091        .15443E-03   -1.3088    
   2  norm          .10000E-03    2.5769        .13801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .98082        17.144        .26200E-02   -1.5510    
   4  norm          .10000E-03    2.9198        .14718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1936        2.2342        .76325E-04   -1.5210    
   6  norm          16.041        16.130        .99998E-04   -1.4907    
   7  Prefactor     24.497        34.280        .80867E-04   -1.4718    
   8  Prefactor     .10000E-03    11.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.055        12.600        .12638E-03   -1.5074    
  10  norm          .19933        21.550        .33731E-02   -1.5619    
  11  norm          17.101        12.474        .96845E-04   -1.4881    
  12  Prefactor     12.266        13.791        .11438E-03   -1.5007    
  13  Prefactor     11.246        19.102        .11946E-03   -1.5037    
  14  norm          6.6634        4.9075        .14184E-03   -1.5192    
  15  Prefactor     .10000E-03    7.7332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3183        .98636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0132        6.5467        .29158E-03   -1.5424    
  19  Prefactor     11.082        9.0448        .12033E-03   -1.5042    
  20  Normalizat    .55643        .29696        .52222E-03   -1.0987    
  21  Prefactor     1.1398        .11874        .15887E-03   -.88206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62099e-10
Minuit parameter uncertainties:
  1  84.1501
  2  3.81651e-06
  3  8.20354
  4  9.20417e-07
  5  2.23421
  6  16.1345
  7  34.3074
  8  1.94166e-05
  9  12.6029
  10  4.14569
  11  12.4755
  12  13.7942
  13  19.1128
  14  4.90783
  15  5.78766e-06
  16  1.48029e-06
  17  1.09501e-05
  18  6.54906
  19  9.04591
  20  0.297809
  21  0.118763
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.710e+01  1.248e+01  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.140e+00  1.188e-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:  5.564e-01  2.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 155.996 -32.603
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 8.80e-08 +/- 6.42e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 1.98e-05

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

Saving results to:
/scratch/kocevski/865813/likelihoodResults_535075201_535334401_4FGL_J1023.9-3236_daily_bin1141.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) = 7779.52636544
delta logL = 0.0776658889017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7779.52312364
delta logL = 0.0809076848209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.196       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7041       1.0000          .0000       5.0000    
     3 'Normalizat'    .53631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1461       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=   7779.523     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      296 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.202        13.747        .10630E-03    .86625E-04
   2  alpha         2.7047        .76562        .14631E-01   -.15299E-04
   3  Normalizat    .53621        .27866        .53135E-03   -.44803E-04
   4  Prefactor     1.1460        .11715        .15848E-03   -.16792E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.2024
  alpha      = 2.70471
  Normalizat = 0.536213
  Prefactor  = 1.14603
 **********
 **   18 **HESSE 
 **********

 FCN=   7779.523     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.202        12.872        .42522E-05   -1.4954    
   2  alpha         2.7047        .71750        .58525E-03    .81976E-01
   3  Normalizat    .53621        .27840        .21254E-04   -1.1077    
   4  Prefactor     1.1460        .11699        .31697E-04   -.88009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68823e-11
Minuit parameter uncertainties:
  1  12.8747
  2  0.727806
  3  0.279123
  4  0.11702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865813': 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) = 7779.52312192
delta logL = 0.0809094102642

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.420e+01  1.287e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.705e+00  7.278e-01  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.146e+00  1.170e-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:  5.362e-01  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.19
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 2.70 +/- 0.73
Photon Flux (Free Index): 1.02e-07 +/- 7.32e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.76e-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/865813/cmap_HighResolution_535075201_535334401_4FGL_J1023.9-3236_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-05', comment='SUCCESS', photon_flux='8.80e-08', energy_flux2='2.52e-05', photon_flux_error='6.42e-08', dlogl='8.09e-02', energy_flux='2.72e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-01 21:16:25.986863', photon_index_error2='0.73', photon_index2='2.70', ts='2.98', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='1.76e-05', EG='0.56', time_epoch_completed='1630556185.99', return_code='0', job_id='865813', GAL2='1.15', EG2='0.54', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='7.32e-08', ts2='3.19', photon_index='2.42' WHERE bin_id='1141' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:16:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 865813: <4FGL_J1023.9-3236_daily_bin1141> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1141> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 21:00:34 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:01:50 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:01:50 2021
Terminated at Wed Sep  1 21:16:26 2021
Results reported at Wed Sep  1 21:16:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1141 155.996 -32.6034 535075201 535334401 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 :                                   749.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            952 sec.

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

