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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin850
RA = 359.588, Dec = 38.5097
tmin = 459648001, tmax = 459907201
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='223140', job_status='RUN', time_executed='2021-09-30 10:55:44.988152', time_epoch_executed='1633024544.99' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='850'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223140/ft1_4FGL_J2358.3+3830_daily_bin850.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223140/ft1_4FGL_J2358.3+3830_daily_bin850.fits outfile=/scratch/kocevski/223140/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin850.fits ra=359.588 dec=38.5097 rad=12.0 tmin=459648001.0 tmax=459907201.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.43
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.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/223140/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin850.fits evtable="EVENTS" outfile="/scratch/kocevski/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits" evtable="EVENTS" scfile=/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits sctable="SC_DATA" outfile=/scratch/kocevski/223140/ltcube_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.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/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits
.....................!
real 12.92
user 12.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits evtable="EVENTS" scfile=/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits sctable="SC_DATA" expcube=/scratch/kocevski/223140/ltcube_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.fits outfile=/scratch/kocevski/223140/expmap_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.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/223140/ltcube_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.fits
.....................!
real 190.31
user 185.61
sys 4.35

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/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits scfile=/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits outfile=/scratch/kocevski/223140/cmap_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits scfile=/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits outfile=/scratch/kocevski/223140/cmap_HighResolution_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits evtable="EVENTS" scfile=/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223140/Model_4FGL_J2358.3+3830_daily_bin850.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/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits.....................!
real 107.93
user 106.48
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits', '/scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits', expMap='/scratch/kocevski/223140/expmap_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.fits', expCube='/scratch/kocevski/223140/ltcube_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223140/Model_4FGL_J2358.3+3830_daily_bin850.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/223140/ft1_filtered_4FGL_J2358.3+3830_daily_bin850.fits
Spacecraft file(s): /scratch/kocevski/223140/ft2_4FGL_J2358.3+3830_daily_bin850.fits
Exposure map: /scratch/kocevski/223140/expmap_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.fits
Exposure cube: /scratch/kocevski/223140/ltcube_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223140/Model_4FGL_J2358.3+3830_daily_bin850.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) = 10354.0306294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7589       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34524E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0535       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8943       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .79534       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.642       1.0000         .10000E-03   10000.    
    15 'norm      '    12.927       1.0000         .10000E-03   10000.    
    16 'norm      '    11.742       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.838       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.748       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.591       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4023       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96378       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=   10354.03     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2887 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.985        .28546E-05** at limit **
   2  Prefactor     3.7560        16.815       -.14272E-05   -.63782E-04
   3  norm          4.4057        9.3388       -.36065E-06   -.11208E-03
   4  Prefactor     .10000E-03    3.3116        .36333E-06** at limit **
   5  Prefactor     .10000E-03    2.8305       -.49261E-06** at limit **
   6  Prefactor     .10000E-03    2.1237        .49937E-07** at limit **
   7  Prefactor     .10000E-03    14.349       -.12969E-05** at limit **
   8  Prefactor     3.0524        21.763       -.28439E-05   -.78347E-04
   9  Prefactor     .10000E-03    22.234        .99530E-05** at limit **
  10  norm          2.8944        2.4437       -.19037E-06   -.59290E-03
  11  Prefactor     6.0343        4.5920       -.42846E-06   -.40767E-04
  12  Prefactor     .10000E-03    14.678       -.73520E-06** at limit **
  13  norm          .79533        .91602       -.55517E-07   -.73686E-03
  14  Prefactor     17.642        9.9752       -.57135E-06   -.85141E-03
  15  norm          12.927        5.6749       -.67142E-06    .73762E-04
  16  norm          11.742        9.2320        .87410E-08   -.15843E-04
  17  Prefactor     .10000E-03    12.708       -.25944E-05** at limit **
  18  norm          .10000E-03    .78923       -.37045E-07** at limit **
  19  Prefactor     14.837        19.061       -.16352E-05   -.44235E-05
  20  Prefactor     33.741        46.991       -.10304E-04    .49459E-06
  21  Prefactor     51.596        28.748        .42454E-05    .34116E-04
  22  Prefactor     .10000E-03    25.497       -.81611E-05** at limit **
  23  Prefactor     6.4003        6.0774       -.77390E-06   -.16908E-03
  24  Normalizat    1.0105        .17772        .41109E-06    .81939E-04
  25  Prefactor     .96386        .82234E-01    .58817E-06    .16890E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.75604
  norm       = 4.40571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.05235
  Prefactor  = 0.0001
  norm       = 2.89441
  Prefactor  = 6.03432
  Prefactor  = 0.0001
  norm       = 0.795329
  Prefactor  = 17.6418
  norm       = 12.9274
  norm       = 11.7417
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.8368
  Prefactor  = 33.7406
  Prefactor  = 51.5964
  Prefactor  = 0.0001
  Prefactor  = 6.40031
  Normalizat = 1.01046
  Prefactor  = 0.963859
 **********
 **   18 **HESSE 
 **********

 FCN=   10354.03     FROM HESSE     STATUS=OK           433 CALLS     3320 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7560        16.794        .20824E-03   -1.5320    
   3  norm          4.4057        9.2721        .19183E-03   -1.5288    
   4  Prefactor     .10000E-03    14.451        .35030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2766        .32856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2173        .28900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0524        21.992        .23217E-03   -1.5359    
   9  Prefactor     .10000E-03    22.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8944        2.4427        .14113E-03   -1.5368    
  11  Prefactor     6.0343        4.5906        .16345E-03   -1.5217    
  12  Prefactor     .10000E-03    14.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .79533        .77623        .10101E-02   -1.5530    
  14  Prefactor     17.642        10.091        .47677E-03   -1.4868    
  15  norm          12.927        5.6529        .11141E-03   -1.4989    
  16  norm          11.742        9.2345        .11690E-03   -1.5023    
  17  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .79952        .88235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.837        19.074        .10398E-03   -1.4937    
  20  Prefactor     33.741        46.781        .68980E-04   -1.4546    
  21  Prefactor     51.596        28.701        .55836E-04   -1.4270    
  22  Prefactor     .10000E-03    25.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.4003        6.0125        .15863E-03   -1.5202    
  24  Normalizat    1.0105        .20054        .34357E-03   -.92681    
  25  Prefactor     .96386        .94586E-01    .16913E-03   -.93944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72715e-10
Minuit parameter uncertainties:
  1  1.28164e-05
  2  15.8918
  3  9.27513
  4  0.000104702
  5  4.57446e-05
  6  2.17588e-07
  7  7.62978e-07
  8  16.3944
  9  1.9622e-05
  10  2.44281
  11  4.59086
  12  3.13119e-06
  13  0.776236
  14  10.0924
  15  5.65309
  16  9.23563
  17  3.09973e-05
  18  4.28579e-08
  19  19.0815
  20  46.8323
  21  28.7089
  22  3.5641e-05
  23  6.01304
  24  0.200689
  25  0.0946023
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  3.564e-05  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:  9.639e-01  9.460e-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.010e+00  2.007e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223140/likelihoodResults_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.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) = 10354.0295638
delta logL = -0.00018770243878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10354.0293761
delta logL = 1.50812411448e-08

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 'Index     '    2.1610       1.0000          .0000       10.000    
     3 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96386       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=   10354.03     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.763        .90712E-02** at limit **
   2  Index         2.1477        8.2065        .50000        .41511E-05
   3  Normalizat    1.0105        .39602E-02    .77633E-01    .34702E-04
   4  Prefactor     .96386        .19184E-02    .45814E-01    .10529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14767
  Normalizat = 1.01046
  Prefactor  = 0.963859
 **********
 **   18 **HESSE 
 **********

 FCN=   10354.03     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    189.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1477        5.8953        .50000       -.60707    
   3  Normalizat    1.0105        .12671E-01    .34357E-03   -.92681    
   4  Prefactor     .96386        .61481E-02    .16913E-03   -.93944    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56607e-07
Minuit parameter uncertainties:
  1  5.5573e-05
  2  392.558
  3  0.0126708
  4  0.00614811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223140': 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) = 10354.0293761
delta logL = 2.88873707177e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  5.557e-05  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.148e+00  3.926e+02  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:  9.639e-01  6.148e-03  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.010e+00  1.267e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/223140/cmap_HighResolution_459648001_459907201_4FGL_J2358.3+3830_daily_bin850.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-30 11:11:03.578961', job_id='223140', GAL2='0.96', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1633025463.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='850' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 223140: <4FGL_J2358.3+3830_daily_bin850> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin850> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 10:55:34 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 10:55:35 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:55:35 2021
Terminated at Thu Sep 30 11:11:04 2021
Results reported at Thu Sep 30 11:11:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin850 359.588 38.5097 459648001 459907201 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 :                                   915.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

