/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 213 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 = 7439
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2358.3-1021_daily_bin212
RA = 359.582, Dec = -10.3616
tmin = 294278401, tmax = 294537601
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='227520', job_status='RUN', time_executed='2021-09-30 11:14:22.459028', time_epoch_executed='1633025662.46' WHERE source_name='4FGL J2358.3-1021' and cadence='daily' and bin_id='212'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227520/ft1_4FGL_J2358.3-1021_daily_bin212.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227520/ft1_4FGL_J2358.3-1021_daily_bin212.fits outfile=/scratch/kocevski/227520/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin212.fits ra=359.582 dec=-10.3616 rad=12.0 tmin=294278401.0 tmax=294537601.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.34
user 2.18
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.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/227520/ft1_filteredMKT_4FGL_J2358.3-1021_daily_bin212.fits evtable="EVENTS" outfile="/scratch/kocevski/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits" evtable="EVENTS" scfile=/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits sctable="SC_DATA" outfile=/scratch/kocevski/227520/ltcube_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.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/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits
.....................!
real 14.35
user 13.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits evtable="EVENTS" scfile=/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits sctable="SC_DATA" expcube=/scratch/kocevski/227520/ltcube_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.fits outfile=/scratch/kocevski/227520/expmap_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.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/227520/ltcube_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.fits
.....................!
real 191.46
user 185.54
sys 5.57

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2358.3-1021 @ 359.582 -10.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits scfile=/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits outfile=/scratch/kocevski/227520/cmap_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.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=359.582 yref=-10.3616 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits scfile=/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits outfile=/scratch/kocevski/227520/cmap_HighResolution_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.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=359.582 yref=-10.3616 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/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits evtable="EVENTS" scfile=/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227520/Model_4FGL_J2358.3-1021_daily_bin212.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/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits.....................!
real 54.36
user 53.08
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits', '/scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits', expMap='/scratch/kocevski/227520/expmap_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.fits', expCube='/scratch/kocevski/227520/ltcube_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/227520/Model_4FGL_J2358.3-1021_daily_bin212.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3-1021'

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  4.076e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/227520/ft1_filtered_4FGL_J2358.3-1021_daily_bin212.fits
Spacecraft file(s): /scratch/kocevski/227520/ft2_4FGL_J2358.3-1021_daily_bin212.fits
Exposure map: /scratch/kocevski/227520/expmap_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.fits
Exposure cube: /scratch/kocevski/227520/ltcube_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/227520/Model_4FGL_J2358.3-1021_daily_bin212.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) = 5946.12938968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4208       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5759       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5602       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2684       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    95.727       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.556       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.1849       1.0000         .10000E-03   10000.    
    23 'norm      '    2.3148       1.0000         .10000E-03   10000.    
    24 'norm      '    7.3354       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.416       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.6031       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0127       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74612       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5946.120     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3510 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.268        .14201E-06** at limit **
   2  norm          .10000E-03    25.299        .31554E-07** at limit **
   3  Prefactor     43.959        39.261       -.74935E-07    .17447E-04
   4  Prefactor     37.927        21.344       -.58593E-07   -.94238E-05
   5  Prefactor     3.4152        9.1686       -.24694E-06    .75299E-04
   6  norm          1.5755        2.7473       -.11366E-08    .10113E-03
   7  Prefactor     .10000E-03    18.792        .98985E-07** at limit **
   8  norm          7.6951        5.4396        .61196E-07    .11105E-03
   9  Prefactor     3.5591        12.679       -.93467E-07   -.42648E-06
  10  norm          5.0788        8.0735       -.60659E-07    .15929E-05
  11  Prefactor     .10000E-03    30.843       -.11535E-06** at limit **
  12  Prefactor     .10000E-03    14.174       -.22243E-07** at limit **
  13  Prefactor     .10000E-03    5.1482       -.11061E-07** at limit **
  14  norm          1.2686        .85174        .18340E-07    .54466E-03
  15  norm          2.5414        4.4998       -.25646E-07    .40915E-04
  16  Prefactor     58.069        59.292        .41797E-05    .12381E-04
  17  Prefactor     .10000E-03    60.738        .90368E-05** at limit **
  18  Prefactor     95.281        187.08       -.19894E-05    .12982E-05
  19  Prefactor     .10000E-03    5.6331        .20316E-06** at limit **
  20  norm          22.554        20.400        .80304E-07    .11487E-04
  21  Prefactor     .10000E-03    19.420        .14636E-07** at limit **
  22  Prefactor     7.1857        4.7319        .11382E-07    .64182E-04
  23  norm          2.3141        .87136        .13729E-07   -.23739E-03
  24  norm          7.3380        6.2687        .16407E-07    .37805E-04
  25  Prefactor     10.413        18.132       -.11105E-06    .64624E-05
  26  Prefactor     1.6055        8.4385       -.73891E-06   -.17529E-04
  27  Normalizat    1.0125        .19060        .26337E-08    .15881E-05
  28  Prefactor     .74638        .16368        .48485E-06    .10655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.9594
  Prefactor  = 37.9272
  Prefactor  = 3.41523
  norm       = 1.57548
  Prefactor  = 0.0001
  norm       = 7.69506
  Prefactor  = 3.5591
  norm       = 5.07876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26858
  norm       = 2.54143
  Prefactor  = 58.069
  Prefactor  = 0.0001
  Prefactor  = 95.281
  Prefactor  = 0.0001
  norm       = 22.5538
  Prefactor  = 0.0001
  Prefactor  = 7.1857
  norm       = 2.31414
  norm       = 7.33799
  Prefactor  = 10.4127
  Prefactor  = 1.60551
  Normalizat = 1.01245
  Prefactor  = 0.74638
 **********
 **   18 **HESSE 
 **********

 FCN=   5946.120     FROM HESSE     STATUS=OK           529 CALLS     4039 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    25.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.959        39.233        .30241E-03   -1.4381    
   4  Prefactor     37.927        21.212        .65083E-04   -1.4475    
   5  Prefactor     3.4152        9.1141        .10936E-02   -1.5338    
   6  norm          1.5755        2.7083        .15223E-03   -1.5457    
   7  Prefactor     .10000E-03    19.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6951        5.4113        .10509E-03   -1.5153    
   9  Prefactor     3.5591        12.664        .21420E-03   -1.5331    
  10  norm          5.0788        8.0601        .17841E-03   -1.5257    
  11  Prefactor     .10000E-03    30.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1707        .17057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2686        .84215        .55684E-04   -1.5483    
  15  norm          2.5414        4.4730        .20830E-03   -1.5389    
  16  Prefactor     58.069        59.579        .52570E-04   -1.4182    
  17  Prefactor     .10000E-03    60.609        .53598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     95.281        187.26        .20540E-03   -1.3753    
  19  Prefactor     .10000E-03    5.6694        .17892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.554        20.407        .84339E-04   -1.4758    
  21  Prefactor     .10000E-03    19.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.1857        4.7306        .12302E-03   -1.5172    
  23  norm          2.3141        .89202        .36103E-04   -1.5404    
  24  norm          7.3380        6.4247        .14515E-03   -1.5166    
  25  Prefactor     10.413        18.119        .12415E-03   -1.5062    
  26  Prefactor     1.6055        8.4278        .16738E-02   -1.5455    
  27  Normalizat    1.0125        .21939        .12444E-02   -.92614    
  28  Prefactor     .74638        .18871        .25679E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65471e-09
Minuit parameter uncertainties:
  1  0.000111795
  2  2.8164e-05
  3  39.2565
  4  21.2162
  5  9.11776
  6  2.70853
  7  0.000108904
  8  5.41161
  9  12.6733
  10  8.06178
  11  2.43311e-05
  12  8.10913e-06
  13  2.39541e-06
  14  0.842162
  15  4.47362
  16  59.6406
  17  0.000326699
  18  188.441
  19  8.23464e-05
  20  20.4131
  21  1.90764e-05
  22  4.73085
  23  0.892026
  24  6.42533
  25  18.1287
  26  7.35828
  27  0.219585
  28  0.188871
Done.

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

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  1.606e+00  7.358e+00  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  2.593e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  7.464e-01  1.889e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.012e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 359.582 -10.362
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227520/likelihoodResults_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.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) = 5944.48936657
delta logL = 1.63050874179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5944.4860385
delta logL = 1.63383681127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42810E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7254       1.0000          .0000       10.000    
     3 'Normalizat'    .89450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5944.486     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      255 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42561E-01    .43292        .22076E-02   -.71405E-02
   2  Index         6.7301        3.1841        .14118       -.44915E-04
   3  Normalizat    .89424        .50498E-01    .44831E-01   -.22210E-03
   4  Prefactor     .82076        .45663E-01    .43983E-01   -.18611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0425606
  Index      = 6.73006
  Normalizat = 0.894241
  Prefactor  = 0.82076
 **********
 **   18 **HESSE 
 **********

 FCN=   5944.486     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42561E-01    .88216        .99816E-04   -1.5667    
   2  Index         6.7301        7.7495        .56581E-02    .35332    
   3  Normalizat    .89424        .16946        .26255E-03   -.96663    
   4  Prefactor     .82076        .15005        .24601E-03   -.98968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.85324e-10
Minuit parameter uncertainties:
  1  0.387083
  2  5.66286
  3  0.169566
  4  0.150129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227520': 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) = 5944.48603373
delta logL = 1.63384158958

Extracting fit parameters...

4FGL J2358.3-1021
   Spectrum: PowerLaw
544    Prefactor:  4.256e-02  3.871e-01  1.000e-04  1.000e+04 ( 1.000e-12)
545        Index:  6.730e+00  5.663e+00  0.000e+00  1.000e+01 (-1.000e+00)
546        Scale:  5.750e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  8.208e-01  1.501e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  8.942e-01  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 359.582 -10.362
Photon Index (Free Index): 6.73 +/- 5.66
Photon Flux (Free Index): 9.75e-08 +/- 6.18e-08
Energy Flux (Free Index): 1.18e-05 +/- 8.42e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/227520/cmap_HighResolution_294278401_294537601_4FGL_J2358.3-1021_daily_bin212.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.63e+00', photon_flux2='9.75e-08', job_status='DONE', time_completed='2021-09-30 11:26:38.814512', photon_index_error2='5.66', photon_index2='6.73', ts='0.06', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='8.42e-06', EG='1.01', time_epoch_completed='1633026398.81', return_code='0', job_id='227520', GAL2='0.82', EG2='0.89', return_code2='102', photon_flux_error2='6.18e-08', ts2='3.63', photon_index='2.59' WHERE bin_id='212' AND source_name='4FGL J2358.3-1021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 227520: <4FGL_J2358.3-1021_daily_bin212> in cluster <slac> Done

Job <4FGL_J2358.3-1021_daily_bin212> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 11:10:39 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:10:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 11:10:40 2021
Terminated at Thu Sep 30 11:26:39 2021
Results reported at Thu Sep 30 11:26:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3-1021_daily_bin212 359.582 -10.3616 294278401 294537601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3-1021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

