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


Performing analysis on: 4FGL_J1023.9-3236_daily_bin1486
RA = 155.996, Dec = -32.6034
tmin = 624499201, tmax = 624758401
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='867495', job_status='RUN', time_executed='2021-09-01 21:07:05.715018', time_epoch_executed='1630555625.72' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867495

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867495/ft1_4FGL_J1023.9-3236_daily_bin1486.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867495/ft2_4FGL_J1023.9-3236_daily_bin1486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867495/ft1_4FGL_J1023.9-3236_daily_bin1486.fits outfile=/scratch/kocevski/867495/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1486.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=624499201.0 tmax=624758401.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 3.69
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867495/ft1_filtered_4FGL_J1023.9-3236_daily_bin1486.fits" evtable="EVENTS" scfile=/scratch/kocevski/867495/ft2_4FGL_J1023.9-3236_daily_bin1486.fits sctable="SC_DATA" outfile=/scratch/kocevski/867495/ltcube_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.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/867495/ft2_4FGL_J1023.9-3236_daily_bin1486.fits
.....................!
real 18.97
user 18.37
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867495/ft1_filtered_4FGL_J1023.9-3236_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/867495/ft2_4FGL_J1023.9-3236_daily_bin1486.fits sctable="SC_DATA" expcube=/scratch/kocevski/867495/ltcube_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.fits outfile=/scratch/kocevski/867495/expmap_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.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/867495/ltcube_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.fits
.....................!
real 191.60
user 186.36
sys 4.37

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/867495/ft1_filtered_4FGL_J1023.9-3236_daily_bin1486.fits scfile=/scratch/kocevski/867495/ft2_4FGL_J1023.9-3236_daily_bin1486.fits outfile=/scratch/kocevski/867495/cmap_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.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.59
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867495/ft1_filtered_4FGL_J1023.9-3236_daily_bin1486.fits scfile=/scratch/kocevski/867495/ft2_4FGL_J1023.9-3236_daily_bin1486.fits outfile=/scratch/kocevski/867495/cmap_HighResolution_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/867495/ft1_filtered_4FGL_J1023.9-3236_daily_bin1486.fits evtable="EVENTS" scfile=/scratch/kocevski/867495/ft2_4FGL_J1023.9-3236_daily_bin1486.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867495/Model_4FGL_J1023.9-3236_daily_bin1486.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/867495/ft1_filtered_4FGL_J1023.9-3236_daily_bin1486.fits.....................!
real 104.66
user 103.26
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.9145       1.0000         .10000E-03   10000.    
     3 'norm      '    14.144       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8961       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3976       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4009       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4168       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4925       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2193       1.0000         .10000E-03   10000.    
    14 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43526       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3211       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88420       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=   9572.430     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2229 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.327        .17140E-06** at limit **
   2  norm          1.9145        2.5405        .18331E-08   -.46605E-04
   3  norm          14.143        16.992        .14584E-06   -.56698E-04
   4  norm          3.8961        5.5802        .99051E-06   -.25368E-03
   5  norm          3.3974        1.7534        .35425E-07   -.12735E-03
   6  norm          4.4012        7.7829       -.15779E-06   -.80542E-04
   7  Prefactor     31.671        25.681       -.24004E-06   -.17507E-03
   8  Prefactor     .10000E-03    8.7659       -.26871E-07** at limit **
   9  norm          3.4171        8.0469        .24581E-05   -.34139E-03
  10  norm          4.4925        4.6309        .76968E-06   -.32031E-03
  11  norm          .10000E-03    6.0513        .25562E-06** at limit **
  12  Prefactor     3.8830        10.210        .16945E-06   -.78997E-04
  13  Prefactor     8.2264        12.624       -.88388E-06   -.11056E-03
  14  norm          .10000E-03    1.2277        .58920E-06** at limit **
  15  Prefactor     11.274        10.764        .67227E-07   -.10611E-03
  16  Prefactor     .42793        2.8640       -.25578E-05    .82617E-05
  17  Prefactor     .10000E-03    5.2393        .11195E-06** at limit **
  18  Prefactor     .10000E-03    6.8509        .51948E-05** at limit **
  19  Prefactor     .10000E-03    5.3063        .49343E-07** at limit **
  20  Normalizat    1.3212        .21166       -.94325E-06   -.41803E-03
  21  Prefactor     .88418        .84862E-01    .13224E-06   -.54189E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.91445
  norm       = 14.1431
  norm       = 3.89614
  norm       = 3.39744
  norm       = 4.40119
  Prefactor  = 31.6707
  Prefactor  = 0.0001
  norm       = 3.41714
  norm       = 4.49253
  norm       = 0.0001
  Prefactor  = 3.88305
  Prefactor  = 8.22641
  norm       = 0.000100001
  Prefactor  = 11.2743
  Prefactor  = 0.427932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32115
  Prefactor  = 0.884183
 **********
 **   18 **HESSE 
 **********

 FCN=   9572.430     FROM HESSE     STATUS=OK           321 CALLS     2550 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9145        2.5278        .17506E-03   -1.5431    
   3  norm          14.143        17.058        .10650E-03   -1.4956    
   4  norm          3.8961        5.9003        .10220E-02   -1.5313    
   5  norm          3.3974        1.7590        .88932E-04   -1.5339    
   6  norm          4.4012        7.7677        .19198E-03   -1.5288    
   7  Prefactor     31.671        25.806        .71197E-04   -1.4582    
   8  Prefactor     .10000E-03    8.7986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4171        9.5323        .10942E-02   -1.5338    
  10  norm          4.4925        4.9118        .94979E-03   -1.5284    
  11  norm          .10000E-03    6.1598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8830        10.185        .20474E-03   -1.5314    
  13  Prefactor     8.2264        12.842        .13984E-03   -1.5134    
  14  norm          .10000E-03    1.2892        .10770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.274        10.749        .11931E-03   -1.5036    
  16  Prefactor     .42793        8.1045        .23433E-02   -1.5577    
  17  Prefactor     .10000E-03    5.2953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.666        .33566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3212        .25159        .34174E-03   -.82937    
  21  Prefactor     .88418        .10088        .17012E-03   -.96696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15898e-09
Minuit parameter uncertainties:
  1  0.000120133
  2  2.52793
  3  17.0643
  4  5.90121
  5  1.75899
  6  7.76948
  7  25.8156
  8  9.03636e-05
  9  9.53658
  10  4.91223
  11  4.95645e-05
  12  10.1897
  13  12.8459
  14  5.07743e-05
  15  10.7508
  16  3.72475
  17  2.36351e-06
  18  0.000116779
  19  4.41464e-05
  20  0.251825
  21  0.100903
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  4.956e-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:  8.842e-01  1.009e-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.321e+00  2.518e-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: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/867495/likelihoodResults_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.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) = 9572.43050419
delta logL = -0.000774071742853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9572.42973022
delta logL = -1.07778760139e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4239       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88417       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=   9572.430     FROM MIGRAD    STATUS=FAILED        91 CALLS      237 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    964.95        .18142E-02** at limit **
   2  alpha         2.5215        2.9473        .16470       -.65850E-07
   3  Normalizat    1.3212        .90335E-01    .34174E-03    .64538E-04
   4  Prefactor     .88418        .37875E-01    .17012E-03    .12414E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9572.430     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      421 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    964.95        .39411E-03** at limit **
   2  alpha         2.5215        2.9473        .30671E-06   -.65850E-07
   3  Normalizat    1.3212        .90335E-01    .13779E-07    .64538E-04
   4  Prefactor     .88418        .37875E-01    .15202E-08    .12414E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9572.430     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      449 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2302        .36285E-03** at limit **
   2  alpha         2.5233        3.6065        .65881E-02    .69025E-08
   3  Normalizat    1.3212        .23302        .13670E-04    .65536E-04
   4  Prefactor     .88418        .97795E-01    .34023E-04    .12537E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.52334
  Normalizat = 1.32116
  Prefactor  = 0.884183
 **********
 **   18 **HESSE 
 **********

 FCN=   9572.430     FROM HESSE     STATUS=OK            23 CALLS      472 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2289        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5233        3.4095        .13176E-02    .93346E-02
   3  Normalizat    1.3212        .23329        .27339E-05   -.82937    
   4  Prefactor     .88418        .97886E-01    .68047E-05   -.96696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75429e-12
Minuit parameter uncertainties:
  1  8.81254e-06
  2  249.268
  3  0.233475
  4  0.0979055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867495': 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) = 9572.42973003
delta logL = 8.58690327732e-08

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  8.813e-06  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.523e+00  2.493e+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:  8.842e-01  9.791e-02  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.321e+00  2.335e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/867495/cmap_HighResolution_624499201_624758401_4FGL_J1023.9-3236_daily_bin1486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-01 21:22:21.080979', job_id='867495', GAL2='0.88', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630556541.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1486' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:22:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 867495: <4FGL_J1023.9-3236_daily_bin1486> in cluster <slac> Done

Job <4FGL_J1023.9-3236_daily_bin1486> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 21:05:45 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 21:05:47 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:47 2021
Terminated at Wed Sep  1 21:22:21 2021
Results reported at Wed Sep  1 21:22:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.9-3236_daily_bin1486 155.996 -32.6034 624499201 624758401 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 :                                   883.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

