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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1111
RA = 359.588, Dec = 38.5097
tmin = 527299201, tmax = 527558401
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='224510', job_status='RUN', time_executed='2021-09-30 11:04:27.388715', time_epoch_executed='1633025067.39' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1111'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224510/ft1_4FGL_J2358.3+3830_daily_bin1111.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224510/ft2_4FGL_J2358.3+3830_daily_bin1111.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224510/ft1_4FGL_J2358.3+3830_daily_bin1111.fits outfile=/scratch/kocevski/224510/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1111.fits ra=359.588 dec=38.5097 rad=12.0 tmin=527299201.0 tmax=527558401.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 4.95
user 4.67
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224510/ft2_4FGL_J2358.3+3830_daily_bin1111.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/224510/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1111.fits evtable="EVENTS" outfile="/scratch/kocevski/224510/ft1_filtered_4FGL_J2358.3+3830_daily_bin1111.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224510/ft1_filtered_4FGL_J2358.3+3830_daily_bin1111.fits" evtable="EVENTS" scfile=/scratch/kocevski/224510/ft2_4FGL_J2358.3+3830_daily_bin1111.fits sctable="SC_DATA" outfile=/scratch/kocevski/224510/ltcube_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.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/224510/ft2_4FGL_J2358.3+3830_daily_bin1111.fits
.....................!
real 12.02
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224510/ft1_filtered_4FGL_J2358.3+3830_daily_bin1111.fits evtable="EVENTS" scfile=/scratch/kocevski/224510/ft2_4FGL_J2358.3+3830_daily_bin1111.fits sctable="SC_DATA" expcube=/scratch/kocevski/224510/ltcube_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.fits outfile=/scratch/kocevski/224510/expmap_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.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/224510/ltcube_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.fits
.....................!
real 190.06
user 184.87
sys 4.80

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/224510/ft1_filtered_4FGL_J2358.3+3830_daily_bin1111.fits scfile=/scratch/kocevski/224510/ft2_4FGL_J2358.3+3830_daily_bin1111.fits outfile=/scratch/kocevski/224510/cmap_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224510/ft1_filtered_4FGL_J2358.3+3830_daily_bin1111.fits scfile=/scratch/kocevski/224510/ft2_4FGL_J2358.3+3830_daily_bin1111.fits outfile=/scratch/kocevski/224510/cmap_HighResolution_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    5.6824       1.0000         .10000E-03   10000.    
     3 'norm      '    .35429E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4208       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10750E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10767E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.008       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7457       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7104       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3082       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.706       1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7530       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.165       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85473       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91907       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4651.412     FROM MIGRAD    STATUS=CONVERGED   1041 CALLS     3378 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.154        .18142E-02** at limit **
   2  Prefactor     5.6987        37.674        .16851E-03    .68883E-04
   3  norm          .10000E-03    24.602        .82504E-01** at limit **
   4  Prefactor     .10000E-03    3.3856        .12225E-02** at limit **
   5  Prefactor     7.4222        8.5841        .73614E-03   -.33553E-03
   6  Prefactor     .48922        5.5727        .22195E-02    .93602E-03
   7  Prefactor     .10000E-03    24.189        .18142E-02** at limit **
   8  Prefactor     .10000E-03    13.760        .18142E-02** at limit **
   9  Prefactor     .10000E-03    150.31        .18142E-02** at limit **
  10  norm          .10000E-03    10.080        .17751E-02** at limit **
  11  Prefactor     16.579        8.8609        .98366E-04   -.59868E-04
  12  Prefactor     .10000E-03    21.390        .18142E-02** at limit **
  13  norm          1.2578        1.4851        .88212E-04    .35313E-04
  14  Prefactor     12.014        17.037        .11560E-03   -.56352E-04
  15  norm          6.7459        5.9350        .14705E-03   -.77390E-04
  16  norm          .10000E-03    17.331        .18142E-02** at limit **
  17  Prefactor     5.7158        19.106        .16809E-03   -.12918E-04
  18  norm          1.3085        3.4553        .19527E-03    .23172E-04
  19  Prefactor     21.708        22.826        .85973E-04   -.13488E-04
  20  Prefactor     68.141        73.451        .48624E-04    .10054E-04
  21  Prefactor     6.7593        34.573        .15441E-03   -.16935E-05
  22  Prefactor     45.158        52.408        .59658E-04   -.60790E-04
  23  Prefactor     .10000E-03    3.8583        .13057E-02** at limit **
  24  Normalizat    .85447        .27940        .33757E-03   -.79076E-04
  25  Prefactor     .91908        .13322        .16136E-03   -.12702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.69867
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.4222
  Prefactor  = 0.489218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 16.579
  Prefactor  = 0.0001
  norm       = 1.25783
  Prefactor  = 12.0136
  norm       = 6.74592
  norm       = 0.0001
  Prefactor  = 5.7158
  norm       = 1.30848
  Prefactor  = 21.7081
  Prefactor  = 68.1409
  Prefactor  = 6.75932
  Prefactor  = 45.1583
  Prefactor  = 0.0001
  Normalizat = 0.854469
  Prefactor  = 0.919079
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.412     FROM HESSE     STATUS=OK           413 CALLS     3791 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6987        37.584        .67404E-05   -1.5230    
   3  norm          .10000E-03    22.640        .87110E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3858        .24449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4222        8.5806        .29446E-04   -1.5163    
   6  Prefactor     .48922        5.5344        .88781E-04   -1.5568    
   7  Prefactor     .10000E-03    24.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    150.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.176        .35503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.579        8.8607        .39346E-05   -1.4893    
  12  Prefactor     .10000E-03    21.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2578        1.4850        .35285E-05   -1.5484    
  14  Prefactor     12.014        17.033        .46240E-05   -1.5015    
  15  norm          6.7459        5.9344        .58819E-05   -1.5188    
  16  norm          .10000E-03    17.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7158        19.103        .67235E-05   -1.5230    
  18  norm          1.3085        3.4544        .78106E-05   -1.5479    
  19  Prefactor     21.708        22.824        .34389E-05   -1.4776    
  20  Prefactor     68.141        73.444        .97248E-05   -1.4055    
  21  Prefactor     6.7593        34.568        .61762E-05   -1.5188    
  22  Prefactor     45.158        52.390        .11932E-04   -1.4363    
  23  Prefactor     .10000E-03    3.8585        .26114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85447        .27910        .13503E-04   -.98079    
  25  Prefactor     .91908        .13329        .32272E-04   -.95478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82961e-09
Minuit parameter uncertainties:
  1  4.61118e-05
  2  29.2961
  3  0.000533461
  4  6.02989e-06
  5  8.58199
  6  3.29098
  7  0.0001489
  8  2.30977e-05
  9  0.000871231
  10  0.000256682
  11  8.86138
  12  0.000140221
  13  1.48504
  14  17.0395
  15  5.93488
  16  8.53121e-06
  17  19.1229
  18  3.45492
  19  22.8333
  20  73.5422
  21  30.5993
  22  52.4438
  23  1.23916e-05
  24  0.279575
  25  0.133338
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  4.516e+01  5.244e+01  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.191e-01  1.333e-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:  8.545e-01  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 359.588 38.510
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/224510/likelihoodResults_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.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) = 4651.26701017
delta logL = 0.144659894228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4651.26023344
delta logL = 0.15143662742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.238       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7752       1.0000          .0000       10.000    
     3 'Normalizat'    .86433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91663       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4651.260     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      304 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.238        86.456        .47563E-04   -.26293E-04
   2  Index         1.7752        .69058        .93861E-02    .16284E-03
   3  Normalizat    .86440        .26352        .33577E-03   -.14931E-04
   4  Prefactor     .91659        .13129        .16153E-03   -.23465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.2384
  Index      = 1.77524
  Normalizat = 0.864399
  Prefactor  = 0.916591
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.260     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.238        85.244        .95126E-05   -1.4018    
   2  Index         1.7752        .68108        .18772E-02   -.70096    
   3  Normalizat    .86440        .26362        .13431E-04   -.97723    
   4  Prefactor     .91659        .13136        .32307E-04   -.95564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58614e-12
Minuit parameter uncertainties:
  1  85.3905
  2  0.684741
  3  0.264014
  4  0.131407
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224510': 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) = 4651.2602334
delta logL = 0.151436672481

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  7.124e+01  8.539e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  1.775e+00  6.847e-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:  9.166e-01  1.314e-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:  8.644e-01  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 359.588 38.510
Photon Index (Free Index): 1.78 +/- 0.68
Photon Flux (Free Index): 2.11e-08 +/- 2.97e-08
Energy Flux (Free Index): 2.73e-05 +/- 4.60e-05

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/224510/cmap_HighResolution_527299201_527558401_4FGL_J2358.3+3830_daily_bin1111.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='2.73e-05', photon_flux_error='3.51e-08', dlogl='1.51e-01', energy_flux='1.42e-05', photon_flux2='2.11e-08', job_status='DONE', time_completed='2021-09-30 11:16:43.838495', photon_index_error2='0.68', photon_index2='1.78', ts='1.51', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='4.60e-05', EG='0.85', time_epoch_completed='1633025803.84', return_code='0', job_id='224510', GAL2='0.92', EG2='0.86', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.97e-08', ts2='1.81', photon_index='2.17' WHERE bin_id='1111' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:16:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 224510: <4FGL_J2358.3+3830_daily_bin1111> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1111> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 11:00:36 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:00:38 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:00:38 2021
Terminated at Thu Sep 30 11:16:47 2021
Results reported at Thu Sep 30 11:16:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1111 359.588 38.5097 527299201 527558401 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 :                                   615.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            971 sec.

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

