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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1047
RA = 155.996, Dec = -32.6034
tmin = 510710401, tmax = 510969601
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='865671', job_status='RUN', time_executed='2021-09-01 21:03:25.051706', time_epoch_executed='1630555405.05' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865671

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865671/ft1_4FGL_J1023.9-3236_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865671/ft1_4FGL_J1023.9-3236_daily_bin1047.fits outfile=/scratch/kocevski/865671/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1047.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=510710401.0 tmax=510969601.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.87
user 2.60
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.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/865671/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1047.fits evtable="EVENTS" outfile="/scratch/kocevski/865671/ft1_filtered_4FGL_J1023.9-3236_daily_bin1047.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865671/ft1_filtered_4FGL_J1023.9-3236_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/865671/ltcube_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.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/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.fits
.....................!
real 10.45
user 10.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865671/ft1_filtered_4FGL_J1023.9-3236_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/865671/ltcube_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.fits outfile=/scratch/kocevski/865671/expmap_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.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/865671/ltcube_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.fits
.....................!
real 155.56
user 151.66
sys 3.61

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/865671/ft1_filtered_4FGL_J1023.9-3236_daily_bin1047.fits scfile=/scratch/kocevski/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.fits outfile=/scratch/kocevski/865671/cmap_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865671/ft1_filtered_4FGL_J1023.9-3236_daily_bin1047.fits scfile=/scratch/kocevski/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.fits outfile=/scratch/kocevski/865671/cmap_HighResolution_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865671/ft1_filtered_4FGL_J1023.9-3236_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/865671/ft2_4FGL_J1023.9-3236_daily_bin1047.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865671/Model_4FGL_J1023.9-3236_daily_bin1047.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/865671/ft1_filtered_4FGL_J1023.9-3236_daily_bin1047.fits.....................!
real 69.12
user 67.93
sys 1.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.420       1.0000         .10000E-03   10000.    
     4 'norm      '    .17722E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1860       1.0000         .10000E-03   10000.    
     6 'norm      '    14.961       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.743       1.0000         .10000E-03   10000.    
     9 'norm      '    31.579       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.9145       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1212       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95486       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.

 FCN=   7590.278     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1899 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.462        .90712E-02** at limit **
   2  norm          .10000E-03    6.3310        .90712E-02** at limit **
   3  norm          10.421        13.956        .31031E-02    .86102E-03
   4  norm          .10001E-03    40.715        .10167E-01** at limit **
   5  norm          1.1859        1.5729        .10474E-01    .95907E-03
   6  norm          14.960        14.387        .25887E-02    .54569E-03
   7  Prefactor     .10000E-03    66.660        .90712E-02** at limit **
   8  Prefactor     24.741        18.839        .20133E-02    .26265E-03
   9  norm          31.578        17.038        .17825E-02    .13858E-02
  10  norm          .10000E-03    2.2048        .90712E-02** at limit **
  11  norm          6.9114        11.689        .38143E-02    .17128E-02
  12  Prefactor     17.746        17.519        .23766E-02   -.67215E-03
  13  Prefactor     .10000E-03    5.1186        .90712E-02** at limit **
  14  norm          .10000E-03    1.2747        .90712E-02** at limit **
  15  Prefactor     19.855        20.293        .22469E-02   -.30830E-03
  16  Prefactor     .10000E-03    2.7884        .90712E-02** at limit **
  17  Prefactor     9.8161        12.661        .31968E-02    .15175E-03
  18  Prefactor     2.4291        6.7859        .65593E-02   -.22584E-02
  19  Prefactor     .10000E-03    2.9465        .90712E-02** at limit **
  20  Normalizat    1.1215        .24612        .85894E-01    .15639E-05
  21  Prefactor     .95475        .95043E-01    .45700E-01   -.23703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4206
  norm       = 0.000100009
  norm       = 1.18586
  norm       = 14.9603
  Prefactor  = 0.000100004
  Prefactor  = 24.7406
  norm       = 31.5783
  norm       = 0.0001
  norm       = 6.91144
  Prefactor  = 17.7457
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8554
  Prefactor  = 0.0001
  Prefactor  = 9.81615
  Prefactor  = 2.42907
  Prefactor  = 0.0001
  Normalizat = 1.12148
  Prefactor  = 0.954752
 **********
 **   18 **HESSE 
 **********

 FCN=   7590.278     FROM HESSE     STATUS=OK           311 CALLS     2210 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.4571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.421        13.974        .62061E-03   -1.5062    
   4  norm          .10001E-03    42.424        .40669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1859        1.5425        .12093E-03   -1.5490    
   6  norm          14.960        14.373        .10355E-03   -1.4934    
   7  Prefactor     .10000E-03    67.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.741        18.830        .80531E-04   -1.4713    
   9  norm          31.578        16.974        .71302E-04   -1.4583    
  10  norm          .10000E-03    2.2070        .12634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.9114        11.629        .15257E-03   -1.5182    
  12  Prefactor     17.746        17.530        .95064E-04   -1.4865    
  13  Prefactor     .10000E-03    5.1220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2823        .96023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.855        20.283        .89876E-04   -1.4816    
  16  Prefactor     .10000E-03    2.8198        .14182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.8161        12.705        .12787E-03   -1.5081    
  18  Prefactor     2.4291        6.7932        .26237E-03   -1.5396    
  19  Prefactor     .10000E-03    2.9543        .14604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1215        .28492        .38034E-03   -.89065    
  21  Prefactor     .95475        .11046        .16791E-03   -.94253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86076e-08
Minuit parameter uncertainties:
  1  6.35082e-05
  2  9.47358e-06
  3  13.9781
  4  0.00121952
  5  1.54256
  6  14.3761
  7  0.00105733
  8  18.8341
  9  16.9766
  10  1.169e-06
  11  11.6333
  12  17.5349
  13  3.08621e-07
  14  7.64849e-07
  15  20.2898
  16  1.38828e-06
  17  12.7089
  18  6.79539
  19  7.36345e-07
  20  0.28531
  21  0.110491
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  6.911e+00  1.163e+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:  9.548e-01  1.105e-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.121e+00  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/865671/likelihoodResults_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.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) = 7589.49298709
delta logL = 0.784818174385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7589.48644285
delta logL = 0.791362408635

Fit tolerance = 1e-08

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

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

 FCN=   7589.486     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      252 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2378        45.707        .56185E-02    .36182E-03
   2  alpha         3.8900        4.4228        .45237        .47090E-04
   3  Normalizat    1.0315        .78408E-01    .88947E-01    .45705E-05
   4  Prefactor     .97641        .31742E-01    .45972E-01   -.21832E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.23785
  alpha      = 3.89003
  Normalizat = 1.0315
  Prefactor  = 0.976408
 **********
 **   18 **HESSE 
 **********

 FCN=   7589.486     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2378        86.503        .11062E-03   -1.5348    
   2  alpha         3.8900        3.6155        .19182E-01    .58958    
   3  Normalizat    1.0315        .27431        .39390E-03   -.91982    
   4  Prefactor     .97641        .11342        .16614E-03   -.93520    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.33376e-07
Minuit parameter uncertainties:
  1  33.5248
  2  7.04017
  3  0.274686
  4  0.113445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865671': 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): 102
logL (Free Index) = 7589.48644176
delta logL = 0.791363506551

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  3.238e+00  3.352e+01  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  3.890e+00  7.040e+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:  9.764e-01  1.134e-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.032e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 155.996 -32.603
Photon Index (Free Index): 3.89 +/- 7.04
Photon Flux (Free Index): 1.17e-07 +/- 8.89e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.91e-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/865671/cmap_HighResolution_510710401_510969601_4FGL_J1023.9-3236_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-05', comment='SUCCESS', energy_flux2='1.87e-05', dlogl='7.91e-01', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-01 21:13:13.464303', photon_index_error2='7.04', photon_index2='3.89', ts='0.52', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='2.91e-05', EG='1.12', time_epoch_completed='1630555993.46', return_code='0', job_id='865671', GAL2='0.98', EG2='1.03', return_code2='102', photon_flux_error2='8.89e-08', ts2='2.27', photon_index='2.42' WHERE bin_id='1047' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:13:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 865671: <4FGL_J1023.9-3236_daily_bin1047> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1047 155.996 -32.6034 510710401 510969601 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 :                                   580.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            772 sec.

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

