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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1604
RA = 359.588, Dec = 38.5097
tmin = 655084801, tmax = 655344001
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='11851', job_status='RUN', time_executed='2021-10-08 00:36:13.991704', time_epoch_executed='1633678573.99' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11851

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11851/ft1_4FGL_J2358.3+3830_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11851/ft2_4FGL_J2358.3+3830_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11851/ft1_4FGL_J2358.3+3830_daily_bin1604.fits outfile=/scratch/kocevski/11851/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1604.fits ra=359.588 dec=38.5097 rad=12.0 tmin=655084801.0 tmax=655344001.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.92
user 2.70
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11851/ft1_filtered_4FGL_J2358.3+3830_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/11851/ft2_4FGL_J2358.3+3830_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/11851/ltcube_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.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/11851/ft2_4FGL_J2358.3+3830_daily_bin1604.fits
.....................!
real 13.91
user 13.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11851/ft1_filtered_4FGL_J2358.3+3830_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/11851/ft2_4FGL_J2358.3+3830_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/11851/ltcube_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.fits outfile=/scratch/kocevski/11851/expmap_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.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/11851/ltcube_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.fits
.....................!
real 191.56
user 186.07
sys 5.01

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/11851/ft1_filtered_4FGL_J2358.3+3830_daily_bin1604.fits scfile=/scratch/kocevski/11851/ft2_4FGL_J2358.3+3830_daily_bin1604.fits outfile=/scratch/kocevski/11851/cmap_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11851/ft1_filtered_4FGL_J2358.3+3830_daily_bin1604.fits scfile=/scratch/kocevski/11851/ft2_4FGL_J2358.3+3830_daily_bin1604.fits outfile=/scratch/kocevski/11851/cmap_HighResolution_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.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.60
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52559E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14219E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    1725.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45040E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.628       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4391       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0134       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8612       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3961       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11338E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0225       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.436       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0981       1.0000         .10000E-03   10000.    
    16 'norm      '    .52491E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.454       1.0000         .10000E-03   10000.    
    18 'norm      '    .11730E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    294.22       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9854       1.0000         .10000E-03   10000.    
    21 'Prefactor '    166.05       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4145       1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.2609       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .49402E-01   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=   518.7041     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     2797 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    470.40        .92826E-02** at limit **
   2  Prefactor     .10000E-03    330.69        .90940E-02** at limit **
   3  norm          1482.0        1344.7        .26468E-03    .78388E-06
   4  Prefactor     .10000E-03    467.36        .92458E-02** at limit **
   5  Prefactor    10000.0        7044.5        .29371E-02** at limit **
   6  Prefactor     .10003E-03    7256.8        .34499E-02** at limit **
   7  Prefactor     .10000E-03    7946.8        .94788E-02** at limit **
   8  Prefactor    10000.0        9345.6        .35409E-02** at limit **
   9  Prefactor    10000.0        9879.3        .45611E-02** at limit **
  10  norm         10000.0        5081.7        .77317E-02** at limit **
  11  Prefactor    10000.0        9961.1        .66138E-02** at limit **
  12  Prefactor     .10000E-03    34.163        .90796E-02** at limit **
  13  norm          4.2554        5.3554        .50267E-02    .14459E-03
  14  Prefactor     22.060        56.542        .19478E-02   -.25667E-04
  15  norm          5.6276        74.399        .35223E-02    .45225E-04
  16  norm          .10000E-03    42.890        .95673E-02** at limit **
  17  Prefactor     24.286        152.80        .25471E-02   -.38134E-04
  18  norm          .10000E-03    4.2891        .90712E-02** at limit **
  19  Prefactor     110.79        293.37        .59177E-03    .13899E-04
  20  Prefactor     .10001E-03    906.56        .73525E-02** at limit **
  21  Prefactor     581.01        926.75        .78257E-03   -.95663E-05
  22  Prefactor     .10000E-03    724.05        .68614E-02** at limit **
  23  Prefactor     .10000E-03    267.25        .47918E-02** at limit **
  24  Normalizat    1.8913        1.1783        .66099E-01   -.34430E-04
  25  Prefactor     .13645        .34005        .64972E-01   -.31121E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.000100002
  norm       = 1481.98
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100025
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 4.25535
  Prefactor  = 22.06
  norm       = 5.62762
  norm       = 0.0001
  Prefactor  = 24.2857
  norm       = 0.0001
  Prefactor  = 110.794
  Prefactor  = 0.000100007
  Prefactor  = 581.006
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.89125
  Prefactor  = 0.136449
 **********
 **   18 **HESSE 
 **********

 FCN=   518.7041     FROM HESSE     STATUS=OK           411 CALLS     3208 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    470.42        .18565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    330.70        .18188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1482.0        1355.6        .10587E-04   -.78046    
   4  Prefactor     .10000E-03    467.37        .18492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        7044.5        .58741E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    7256.9        .68998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7946.8        .18958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        9345.6        .70819E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        9879.3        .91223E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm         10000.0        5086.4        .15463E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        9961.2        .13228E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.168        .13013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2554        5.3422        .52861E-04   -1.5295    
  14  Prefactor     22.060        57.704        .77914E-04   -1.4768    
  15  norm          5.6276        69.744        .14089E-03   -1.5233    
  16  norm          .10000E-03    42.951        .14579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.286        146.57        .50942E-03   -1.6694    
  18  norm          .10000E-03    4.2919        .46077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     110.79        293.16        .23671E-04   -1.3599    
  20  Prefactor     .10001E-03    906.69        .14705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     581.01        927.38        .31303E-04   -1.0839    
  22  Prefactor     .10000E-03    724.05        .13723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    267.26        .95836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8913        1.3536        .29232E-03   -.67305    
  25  Prefactor     .13645        .36481        .28765E-03   -1.3366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15442e-10
Minuit parameter uncertainties:
  1  0.00539924
  2  0.00155332
  3  1390.84
  4  0.000384153
  5  0.0228613
  6  0.0234433
  7  0.00406465
  8  0.0342513
  9  0.0110646
  10  3.33609
  11  0.0442793
  12  4.19305e-05
  13  5.34284
  14  57.8506
  15  39.68
  16  6.43197e-05
  17  119.765
  18  2.54149e-05
  19  297.138
  20  0.00521176
  21  953.573
  22  0.00367674
  23  0.000104988
  24  1.38223
  25  0.371102
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  3.677e-03  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:  1.364e-01  3.711e-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.891e+00  1.382e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 2.35e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11851/likelihoodResults_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.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) = 518.704109387
delta logL = -6.42057852929e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 518.704109383
delta logL = -6.41682788682e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96257E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1749       1.0000          .0000       10.000    
     3 'Normalizat'    1.8912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .13645       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=   518.7041     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      236 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10749E-03    9059.7        .18145E-01** at limit **
   2  Index         1.7599        9.0903        .99483E-01    .96036E-07
   3  Normalizat    1.8912        .82458E-01    .29232E-03   -.92223E-04
   4  Prefactor     .13647        .24062E-01    .28764E-03    .50033E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107486
  Index      = 1.75991
  Normalizat = 1.8912
  Prefactor  = 0.136465
 **********
 **   18 **HESSE 
 **********

 FCN=   518.7041     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      259 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10749E-03    5110.8        .36289E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7599        6.4436        .39793E-02   -.70498    
   3  Normalizat    1.8912        .24426        .58464E-04   -.67306    
   4  Prefactor     .13647        .71279E-01    .11505E-04   -1.3366    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.49109e-09
Minuit parameter uncertainties:
  1  1.6374
  2  30409
  3  0.244416
  4  0.0713236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11851': 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) = 518.704102954
delta logL = 1.2538748706e-08

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.075e-04  1.637e+00  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  1.760e+00  3.041e+04  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:  1.365e-01  7.132e-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.891e+00  2.444e-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/11851/cmap_HighResolution_655084801_655344001_4FGL_J2358.3+3830_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-01', job_status='DONE', photon_flux_upper_limit='2.35e-06', time_completed='2021-10-08 00:41:57.727022', job_id='11851', GAL2='0.14', fit_tolerance='1e-08', EG2='1.89', EG='1.89', time_epoch_completed='1633678917.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.14', dlogl='1.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1604' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 11851: <4FGL_J2358.3+3830_daily_bin1604> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1604> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Oct  8 00:30:16 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:35:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:35:56 2021
Terminated at Fri Oct  8 00:41:58 2021
Results reported at Fri Oct  8 00:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1604 359.588 38.5097 655084801 655344001 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 :                                   346.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   362 sec.
    Turnaround time :                            702 sec.

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

