/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 143 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2358.3+3830_daily_bin12
RA = 359.588, Dec = 38.5097
tmin = 242438401, tmax = 242697601
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='218980', job_status='RUN', time_executed='2021-09-30 10:43:08.032330', time_epoch_executed='1633023788.03' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218980/ft1_4FGL_J2358.3+3830_daily_bin12.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218980/ft2_4FGL_J2358.3+3830_daily_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218980/ft1_4FGL_J2358.3+3830_daily_bin12.fits outfile=/scratch/kocevski/218980/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin12.fits ra=359.588 dec=38.5097 rad=12.0 tmin=242438401.0 tmax=242697601.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 1.45
user 1.26
sys 0.16

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218980/ft1_filtered_4FGL_J2358.3+3830_daily_bin12.fits" evtable="EVENTS" scfile=/scratch/kocevski/218980/ft2_4FGL_J2358.3+3830_daily_bin12.fits sctable="SC_DATA" outfile=/scratch/kocevski/218980/ltcube_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.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/218980/ft2_4FGL_J2358.3+3830_daily_bin12.fits
.....................!
real 12.77
user 12.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218980/ft1_filtered_4FGL_J2358.3+3830_daily_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/218980/ft2_4FGL_J2358.3+3830_daily_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/218980/ltcube_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.fits outfile=/scratch/kocevski/218980/expmap_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.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/218980/ltcube_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.fits
.....................!
real 190.23
user 185.47
sys 4.40

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/218980/ft1_filtered_4FGL_J2358.3+3830_daily_bin12.fits scfile=/scratch/kocevski/218980/ft2_4FGL_J2358.3+3830_daily_bin12.fits outfile=/scratch/kocevski/218980/cmap_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218980/ft1_filtered_4FGL_J2358.3+3830_daily_bin12.fits scfile=/scratch/kocevski/218980/ft2_4FGL_J2358.3+3830_daily_bin12.fits outfile=/scratch/kocevski/218980/cmap_HighResolution_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.694       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7134       1.0000         .10000E-03   10000.    
     3 'norm      '    17.863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    80.165       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6782       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .79308       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5629       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9076       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .26155E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68091       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0972       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=   7017.366     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2964 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.711        38.780        .22234E-07    .11578E-04
   2  Prefactor     6.7407        40.433        .32064E-05    .44003E-04
   3  norm          17.819        22.146        .32783E-05    .49571E-03
   4  Prefactor     .10000E-03    8.2402        .17285E-06** at limit **
   5  Prefactor     .10000E-03    6.0350       -.13725E-06** at limit **
   6  Prefactor     .10001E-03    2.2367       -.10812E-06** at limit **
   7  Prefactor     .26911        23.129        .10862E-05   -.22986E-03
   8  Prefactor     15.292        26.518       -.18101E-06    .25263E-04
   9  Prefactor     80.201        53.452        .27320E-05    .70028E-04
  10  norm          4.6782        2.4745        .18962E-07    .23866E-04
  11  Prefactor     .10000E-03    4.9434        .11815E-07** at limit **
  12  Prefactor     .10000E-03    60.796       -.32008E-05** at limit **
  13  norm          4.8325        1.8691        .25438E-07    .73863E-04
  14  Prefactor     .10000E-03    7.0329       -.85542E-07** at limit **
  15  norm          .10000E-03    2.1245       -.30878E-07** at limit **
  16  norm          .10000E-03    3.5118       -.19868E-07** at limit **
  17  Prefactor     .10000E-03    4.1045       -.31308E-07** at limit **
  18  norm          .79269        2.0247        .46757E-06    .17673E-03
  19  Prefactor     7.5627        12.969        .18176E-06    .17963E-04
  20  Prefactor     .10000E-03    42.412        .32919E-05** at limit **
  21  Prefactor     .10000E-03    38.061       -.20071E-05** at limit **
  22  Prefactor     2.8193        254.52        .12753E-04    .85271E-04
  23  Prefactor     .10003E-03    6.8406       -.41400E-05** at limit **
  24  Normalizat    .68096        .23077       -.12905E-05    .26475E-03
  25  Prefactor     1.0972        .10685        .15545E-07    .50682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.711
  Prefactor  = 6.74067
  norm       = 17.8186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.269111
  Prefactor  = 15.2919
  Prefactor  = 80.2014
  norm       = 4.67822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.83251
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.792689
  Prefactor  = 7.56267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.8193
  Prefactor  = 0.000100034
  Normalizat = 0.680956
  Prefactor  = 1.09724
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.366     FROM HESSE     STATUS=OK           433 CALLS     3397 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.711        38.672        .61353E-04   -1.4400    
   2  Prefactor     6.7407        40.507        .15486E-03   -1.5189    
   3  norm          17.819        22.079        .94765E-04   -1.4863    
   4  Prefactor     .10000E-03    8.3949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.1686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    9.9437        .21392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26911        23.595        .96487E-01   -1.5604    
   8  Prefactor     15.292        26.527        .10240E-03   -1.4926    
   9  Prefactor     80.201        53.602        .44856E-04   -1.3914    
  10  norm          4.6782        2.4746        .93049E-04   -1.5275    
  11  Prefactor     .10000E-03    4.9809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    61.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8325        1.8674        .68503E-04   -1.5268    
  14  Prefactor     .10000E-03    7.0923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1369        .11922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5146        .15331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.1076        .16574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .79269        1.8353        .18397E-02   -1.5530    
  19  Prefactor     7.5627        12.962        .14583E-03   -1.5158    
  20  Prefactor     .10000E-03    42.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.8193        269.63        .23828E-03   -1.5372    
  23  Prefactor     .10003E-03    14.667        .36384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68096        .25314        .40184E-03   -1.0465    
  25  Prefactor     1.0972        .11982        .15893E-03   -.89555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20517e-09
Minuit parameter uncertainties:
  1  38.6946
  2  33.0815
  3  22.0887
  4  3.95706e-05
  5  1.27136e-05
  6  0.00065968
  7  5.04078
  8  26.5476
  9  53.6339
  10  2.47468
  11  8.41087e-08
  12  5.95899e-06
  13  1.86742
  14  4.22818e-06
  15  1.66861e-06
  16  1.51972e-07
  17  2.2304e-06
  18  1.83546
  19  12.9667
  20  3.15023e-05
  21  2.62728e-05
  22  55.3997
  23  0.00141476
  24  0.253577
  25  0.119846
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.819e+00  5.540e+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:  1.097e+00  1.198e-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:  6.810e-01  2.536e-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: 9.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/218980/likelihoodResults_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.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) = 7017.25528729
delta logL = 0.110704257762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7017.24702833
delta logL = 0.118963216159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96878       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7176       1.0000          .0000       10.000    
     3 'Normalizat'    .64527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1058       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=   7017.247     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      259 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94626        44.205        .13055E-01    .72860E-03
   2  Index         3.7277        3.2022        .10360        .11968E-03
   3  Normalizat    .64602        .40749E-01    .92952E-01   -.30605E-04
   4  Prefactor     1.1056        .20116E-01    .37369E-01   -.38052E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.946259
  Index      = 3.72772
  Normalizat = 0.646019
  Prefactor  = 1.10563
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.247     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      290 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94626        177.09        .15570E-03   -1.5513    
   2  Index         3.7277        6.1231        .84672E-02   -.25729    
   3  Normalizat    .64602        .17812        .41185E-03   -1.0606    
   4  Prefactor     1.1056        .85178E-01    .15837E-03   -.89287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.9984e-09
Minuit parameter uncertainties:
  1  25.9671
  2  10.1723
  3  0.17828
  4  0.0851885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218980': 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) = 7017.24701523
delta logL = 0.118976318786

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  9.463e-01  2.597e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  3.728e+00  1.017e+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:  1.106e+00  8.519e-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:  6.460e-01  1.783e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/218980/cmap_HighResolution_242438401_242697601_4FGL_J2358.3+3830_daily_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='9.24e-08', time_completed='2021-09-30 10:55:00.627082', job_id='218980', GAL2='1.11', fit_tolerance='1e-08', EG2='0.65', EG='0.68', time_epoch_completed='1633024500.63', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.19e-01', ts2='0.27', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='12' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 10:55:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 218980: <4FGL_J2358.3+3830_daily_bin12> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin12 359.588 38.5097 242438401 242697601 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 :                                   710.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            867 sec.

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

