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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin658
RA = 359.588, Dec = 38.5097
tmin = 409881601, tmax = 410140801
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='222020', job_status='RUN', time_executed='2021-09-30 10:51:16.616535', time_epoch_executed='1633024276.62' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222020

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222020/ft1_4FGL_J2358.3+3830_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222020/ft1_4FGL_J2358.3+3830_daily_bin658.fits outfile=/scratch/kocevski/222020/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin658.fits ra=359.588 dec=38.5097 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.18
user 5.90
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.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/222020/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/222020/ltcube_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.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/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits
.....................!
real 11.99
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/222020/ltcube_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.fits outfile=/scratch/kocevski/222020/expmap_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.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/222020/ltcube_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.fits
.....................!
real 191.45
user 185.80
sys 5.33

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 154 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2358.3+3830 @ 359.588 38.5097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits scfile=/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits outfile=/scratch/kocevski/222020/cmap_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.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.588 yref=38.5097 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits scfile=/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits outfile=/scratch/kocevski/222020/cmap_HighResolution_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.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.588 yref=38.5097 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.51
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222020/Model_4FGL_J2358.3+3830_daily_bin658.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 FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits.....................!
real 63.41
user 62.01
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits', '/scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits', expMap='/scratch/kocevski/222020/expmap_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.fits', expCube='/scratch/kocevski/222020/ltcube_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/222020/Model_4FGL_J2358.3+3830_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2358.3+3830'

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  8.894e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/222020/ft1_filtered_4FGL_J2358.3+3830_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/222020/ft2_4FGL_J2358.3+3830_daily_bin658.fits
Exposure map: /scratch/kocevski/222020/expmap_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.fits
Exposure cube: /scratch/kocevski/222020/ltcube_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/222020/Model_4FGL_J2358.3+3830_daily_bin658.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) = 5310.70359298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28869E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.664       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7246       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8390       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5782       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3601       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.170       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5258       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5310.584     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2916 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.963        48.906        .11173E-05   -.63162E-05
   2  Prefactor     .10000E-03    9.1112       -.43687E-07** at limit **
   3  norm          9.5952        20.257        .18325E-06    .60216E-05
   4  Prefactor     .10000E-03    5.6869       -.86045E-06** at limit **
   5  Prefactor     29.272        16.596        .12813E-06   -.20336E-04
   6  Prefactor     3.1104        3.7989        .11924E-05    .46348E-04
   7  Prefactor     .10000E-03    15.966        .19726E-06** at limit **
   8  Prefactor     .10000E-03    68.266       -.18303E-05** at limit **
   9  Prefactor     78.660        53.049        .25539E-06   -.72387E-07
  10  norm          .10000E-03    1.7978        .82492E-07** at limit **
  11  Prefactor     .10000E-03    5.2420        .12199E-06** at limit **
  12  Prefactor     6.7182        33.494        .92828E-06   -.16121E-05
  13  norm          5.8082        2.7629       -.62939E-07   -.92182E-04
  14  Prefactor     2.8368        18.495        .58328E-05    .11608E-04
  15  norm          3.5858        6.4701       -.61980E-06   -.10259E-03
  16  norm          .10000E-03    5.2394        .34572E-07** at limit **
  17  Prefactor     6.3052        28.977        .57771E-05   -.55745E-05
  18  norm          .10000E-03    1.5796        .80134E-07** at limit **
  19  Prefactor     15.489        28.287        .65914E-06   -.84316E-05
  20  Prefactor     .10000E-03    17.637       -.56418E-07** at limit **
  21  Prefactor     68.158        67.775        .11800E-05   -.14836E-04
  22  Prefactor     .10000E-03    47.625        .11049E-05** at limit **
  23  Prefactor     5.5179        10.397        .15835E-06    .27359E-05
  24  Normalizat    1.1673        .28671       -.54591E-06    .38864E-04
  25  Prefactor     .87122        .12004       -.97735E-06   -.50646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.963
  Prefactor  = 0.0001
  norm       = 9.59522
  Prefactor  = 0.000100004
  Prefactor  = 29.2724
  Prefactor  = 3.11045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.6597
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71822
  norm       = 5.80819
  Prefactor  = 2.83677
  norm       = 3.5858
  norm       = 0.0001
  Prefactor  = 6.30518
  norm       = 0.0001
  Prefactor  = 15.4894
  Prefactor  = 0.0001
  Prefactor  = 68.1577
  Prefactor  = 0.0001
  Prefactor  = 5.51794
  Normalizat = 1.16731
  Prefactor  = 0.871221
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.584     FROM HESSE     STATUS=OK           427 CALLS     3343 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.963        48.896        .48332E-04   -1.4045    
   2  Prefactor     .10000E-03    9.1163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.5952        20.103        .12931E-03   -1.5088    
   4  Prefactor     .10000E-03    20.073        .32613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.272        16.831        .74041E-04   -1.4625    
   6  Prefactor     3.1104        3.8194        .74802E-03   -1.5355    
   7  Prefactor     .10000E-03    16.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    68.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     78.660        53.049        .45279E-04   -1.3932    
  10  norm          .10000E-03    1.8244        .95411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2892        .16295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7182        33.501        .15473E-03   -1.5190    
  13  norm          5.8082        2.7615        .79688E-04   -1.5226    
  14  Prefactor     2.8368        18.709        .12067E-02   -1.5371    
  15  norm          3.5858        6.4335        .21347E-03   -1.5329    
  16  norm          .10000E-03    5.2438        .16291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3052        29.054        .15916E-03   -1.5206    
  18  norm          .10000E-03    1.6129        .89421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.489        28.281        .10174E-03   -1.4921    
  20  Prefactor     .10000E-03    17.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     68.158        67.943        .48614E-04   -1.4055    
  22  Prefactor     .10000E-03    47.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5179        10.319        .17092E-03   -1.5238    
  24  Normalizat    1.1673        .33650        .34932E-03   -.87619    
  25  Prefactor     .87122        .14011        .17992E-03   -.97154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73023e-10
Minuit parameter uncertainties:
  1  48.9244
  2  7.66221e-06
  3  20.1167
  4  0.000588704
  5  16.834
  6  3.81971
  7  1.44705e-05
  8  0.000265034
  9  53.0806
  10  5.25074e-06
  11  1.0349e-05
  12  30.0311
  13  2.7616
  14  14.5765
  15  6.43476
  16  2.82948e-06
  17  27.0911
  18  1.65541e-06
  19  28.3058
  20  6.773e-07
  21  68.0206
  22  9.87201e-06
  23  10.3226
  24  0.337124
  25  0.140166
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  9.872e-06  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.175e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  8.712e-01  1.402e-01  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.167e+00  3.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222020/likelihoodResults_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.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): 102
logL (Free Index) = 5310.58420674
delta logL = -9.99231224341e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5310.5841069
delta logL = -8.13270162325e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5310.584     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7015.7        .90712E-02** at limit **
   2  Index         2.2230        8.8049        .50000        .17088E-05
   3  Normalizat    1.1673        .81525E-01    .78915E-01    .61159E-05
   4  Prefactor     .87122        .37064E-01    .44637E-01    .63667E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22303
  Normalizat = 1.16731
  Prefactor  = 0.871222
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.584     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8107.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2230        6.0800        .50000       -.58884    
   3  Normalizat    1.1673        .13259        .34932E-03   -.87619    
   4  Prefactor     .87122        .60386E-01    .17992E-03   -.97154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.66392e-11
Minuit parameter uncertainties:
  1  0.00151343
  2  55.6724
  3  0.132631
  4  0.0603903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222020': 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) = 5310.58410683
delta logL = -1.89702404896e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  1.513e-03  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.223e+00  5.567e+01  0.000e+00  1.000e+01 (-1.000e+00)
490        Scale:  2.145e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  8.712e-01  6.039e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  1.167e+00  1.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.588 38.510

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/222020/cmap_HighResolution_409881601_410140801_4FGL_J2358.3+3830_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-30 11:02:13.253827', job_id='222020', GAL2='0.87', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1633024933.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='658' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:02:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 222020: <4FGL_J2358.3+3830_daily_bin658> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin658> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 10:51:05 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:51:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 10:51:07 2021
Terminated at Thu Sep 30 11:02:14 2021
Results reported at Thu Sep 30 11:02:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin658 359.588 38.5097 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2358.3+3830 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            669 sec.

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

