/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 16 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_bin1115
RA = 155.996, Dec = -32.6034
tmin = 528336001, tmax = 528595201
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='865775', job_status='RUN', time_executed='2021-09-01 21:01:55.829465', time_epoch_executed='1630555315.83' WHERE source_name='4FGL J1023.9-3236' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865775/ft1_4FGL_J1023.9-3236_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865775/ft1_4FGL_J1023.9-3236_daily_bin1115.fits outfile=/scratch/kocevski/865775/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1115.fits ra=155.996 dec=-32.6034 rad=12.0 tmin=528336001.0 tmax=528595201.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.56
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.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/865775/ft1_filteredMKT_4FGL_J1023.9-3236_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/865775/ft1_filtered_4FGL_J1023.9-3236_daily_bin1115.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865775/ft1_filtered_4FGL_J1023.9-3236_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/865775/ltcube_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.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/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.fits
.....................!
real 16.80
user 16.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865775/ft1_filtered_4FGL_J1023.9-3236_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/865775/ltcube_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.fits outfile=/scratch/kocevski/865775/expmap_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.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/865775/ltcube_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.fits
.....................!
real 192.04
user 186.61
sys 4.65

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/865775/ft1_filtered_4FGL_J1023.9-3236_daily_bin1115.fits scfile=/scratch/kocevski/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.fits outfile=/scratch/kocevski/865775/cmap_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865775/ft1_filtered_4FGL_J1023.9-3236_daily_bin1115.fits scfile=/scratch/kocevski/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.fits outfile=/scratch/kocevski/865775/cmap_HighResolution_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=155.996 yref=-32.6034 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865775/ft1_filtered_4FGL_J1023.9-3236_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/865775/ft2_4FGL_J1023.9-3236_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865775/Model_4FGL_J1023.9-3236_daily_bin1115.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/865775/ft1_filtered_4FGL_J1023.9-3236_daily_bin1115.fits.....................!
real 111.61
user 109.72
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .67579       1.0000         .10000E-03   10000.    
     4 'norm      '    .13126E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6207       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4901       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.046       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3250       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3652       1.0000         .10000E-03   10000.    
    10 'norm      '    .16944E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60604E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0893       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70284       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12649E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88195       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0862       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=   10383.09     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     1994 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.693       -.71901E-05** at limit **
   2  norm          .10000E-03    1.1381       -.60376E-08** at limit **
   3  norm          .63297        7.2411       -.18881E-05    .43600E-03
   4  norm          .10550E-03    4.6710       -.39239E-06** at limit **
   5  norm          1.6207        1.0024       -.17348E-07    .22828E-03
   6  norm          1.4874        4.5380       -.27237E-06   -.14915E-02
   7  Prefactor     12.060        18.696       -.21377E-04    .24822E-04
   8  Prefactor     7.3187        7.8275       -.21663E-05    .50019E-04
   9  norm          1.3647        3.8403        .56242E-06   -.16433E-02
  10  norm          .10009E-03    2.7184        .64842E-06** at limit **
  11  norm          .10000E-03    3.9174       -.33992E-07** at limit **
  12  Prefactor     .10043E-03    7.7030       -.20734E-05** at limit **
  13  Prefactor     9.0772        12.124       -.18047E-05    .89005E-04
  14  norm          .10000E-03    1.0420        .46445E-07** at limit **
  15  Prefactor     4.6943        14.838       -.24559E-05    .29103E-03
  16  Prefactor     .70416        2.5590       -.13134E-06    .50394E-05
  17  Prefactor     .10000E-03    15.696        .35861E-05** at limit **
  18  Prefactor     2.7507        4.3365       -.22874E-06    .21102E-04
  19  Prefactor     11.206        7.8749        .82265E-07   -.11731E-04
  20  Normalizat    .88161        .20627        .55898E-05    .27223E-03
  21  Prefactor     1.0863        .85220E-01   -.42657E-06    .97327E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.632974
  norm       = 0.000105503
  norm       = 1.6207
  norm       = 1.48743
  Prefactor  = 12.0596
  Prefactor  = 7.3187
  norm       = 1.36472
  norm       = 0.000100087
  norm       = 0.0001
  Prefactor  = 0.000100428
  Prefactor  = 9.07723
  norm       = 0.0001
  Prefactor  = 4.69433
  Prefactor  = 0.70416
  Prefactor  = 0.0001
  Prefactor  = 2.7507
  Prefactor  = 11.2058
  Normalizat = 0.881605
  Prefactor  = 1.08632
 **********
 **   18 **HESSE 
 **********

 FCN=   10383.09     FROM HESSE     STATUS=OK           339 CALLS     2333 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1402        .10616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .63297        69.437        .51713E-02   -1.5549    
   4  norm          .10550E-03    6.0231        .73735E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6207        .99934        .77882E-04   -1.5453    
   6  norm          1.4874        5.6872        .17561E-02   -1.5464    
   7  Prefactor     12.060        18.730        .11542E-03   -1.5013    
   8  Prefactor     7.3187        7.8439        .14820E-03   -1.5167    
   9  norm          1.3647        6.0522        .18675E-02   -1.5474    
  10  norm          .10009E-03    21.396        .32681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.9615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10043E-03    36.001        .49230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0772        11.884        .13294E-03   -1.5105    
  14  norm          .10000E-03    1.0468        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6943        13.751        .18541E-03   -1.5275    
  16  Prefactor     .70416        3.9994        .27157E-02   -1.5540    
  17  Prefactor     .10000E-03    16.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7507        4.3248        .24545E-03   -1.5376    
  19  Prefactor     11.206        7.8762        .11967E-03   -1.5038    
  20  Normalizat    .88161        .23237        .39312E-03   -.97110    
  21  Prefactor     1.0863        .98428E-01    .15627E-03   -.89905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24488e-08
Minuit parameter uncertainties:
  1  1.44759e-05
  2  2.95445e-07
  3  13.274
  4  0.0115153
  5  0.99935
  6  5.68931
  7  18.7391
  8  7.84502
  9  5.74867
  10  0.00273385
  11  5.28983e-06
  12  0.00785241
  13  11.8867
  14  5.91712e-06
  15  13.7606
  16  3.35644
  17  0.000161929
  18  4.32525
  19  7.87692
  20  0.23263
  21  0.0984447
Done.

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

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  5.290e-06  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.086e+00  9.844e-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:  8.816e-01  2.326e-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: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865775/likelihoodResults_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.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) = 10383.0862739
delta logL = -0.00120326373326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10383.0850771
delta logL = -6.40172765998e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4161       1.0000          .0000       5.0000    
     3 'Normalizat'    .88146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0862       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=   10383.09     FROM MIGRAD    STATUS=FAILED        87 CALLS      232 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10012E-03    739.17        .18142E-02** at limit **
   2  alpha         2.3702        2.5713        .16472        .17711E-05
   3  Normalizat    .88161        .10248        .39311E-03   -.26953E-04
   4  Prefactor     1.0863        .45083E-01    .15627E-03   -.58053E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10383.09     FROM SIMPLEX   STATUS=UNCHANGED    157 CALLS      389 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10012E-03    739.17        .38237E-03** at limit **
   2  alpha         2.3702        2.5713        .82186E-05    .17711E-05
   3  Normalizat    .88161        .10248        .63859E-06   -.26953E-04
   4  Prefactor     1.0863        .45083E-01    .24185E-06   -.58053E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10383.09     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      420 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9853        .36285E-03** at limit **
   2  alpha         2.3247        3.4969        .65890E-02   -.28297E-07
   3  Normalizat    .88161        .21731        .15724E-04    .51766E-04
   4  Prefactor     1.0863        .95679E-01    .62510E-05    .13458E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.32472
  Normalizat = 0.881606
  Prefactor  = 1.08632
 **********
 **   18 **HESSE 
 **********

 FCN=   10383.09     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9849        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3247        3.4262        .13178E-02   -.70170E-01
   3  Normalizat    .88161        .21765        .31449E-05   -.97110    
   4  Prefactor     1.0863        .95859E-01    .12502E-05   -.89905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50636e-11
Minuit parameter uncertainties:
  1  6.98242e-06
  2  248.7
  3  0.21787
  4  0.0958745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865775': 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) = 10383.0850706
delta logL = 6.87869032845e-08

Extracting fit parameters...

4FGL J1023.9-3236
   Spectrum: LogParabola
345         norm:  1.000e-04  6.982e-06  1.000e-04  1.000e+04 ( 1.000e-12)
346        alpha:  2.325e+00  2.487e+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:  1.086e+00  9.587e-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:  8.816e-01  2.179e-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/865775/cmap_HighResolution_528336001_528595201_4FGL_J1023.9-3236_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-05', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-01 21:17:05.210775', job_id='865775', GAL2='1.09', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630556225.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='6.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1115' AND source_name='4FGL J1023.9-3236' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 21:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 865775: <4FGL_J1023.9-3236_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

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

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

