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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin113
RA = 359.588, Dec = 38.5097
tmin = 268617601, tmax = 268876801
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='220090', job_status='RUN', time_executed='2021-09-30 10:45:24.740396', time_epoch_executed='1633023924.74' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220090

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220090/ft1_4FGL_J2358.3+3830_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220090/ft2_4FGL_J2358.3+3830_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220090/ft1_4FGL_J2358.3+3830_daily_bin113.fits outfile=/scratch/kocevski/220090/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin113.fits ra=359.588 dec=38.5097 rad=12.0 tmin=268617601.0 tmax=268876801.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.54
user 1.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220090/ft1_filtered_4FGL_J2358.3+3830_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/220090/ft2_4FGL_J2358.3+3830_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/220090/ltcube_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.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/220090/ft2_4FGL_J2358.3+3830_daily_bin113.fits
.....................!
real 13.59
user 12.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220090/ft1_filtered_4FGL_J2358.3+3830_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/220090/ft2_4FGL_J2358.3+3830_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/220090/ltcube_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.fits outfile=/scratch/kocevski/220090/expmap_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.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/220090/ltcube_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.fits
.....................!
real 190.58
user 184.99
sys 5.22

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/220090/ft1_filtered_4FGL_J2358.3+3830_daily_bin113.fits scfile=/scratch/kocevski/220090/ft2_4FGL_J2358.3+3830_daily_bin113.fits outfile=/scratch/kocevski/220090/cmap_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=359.588 yref=38.5097 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220090/ft1_filtered_4FGL_J2358.3+3830_daily_bin113.fits scfile=/scratch/kocevski/220090/ft2_4FGL_J2358.3+3830_daily_bin113.fits outfile=/scratch/kocevski/220090/cmap_HighResolution_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.015       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11163E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.9774       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55058E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .37722E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96679E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1893       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3831       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .59245       1.0000         .10000E-03   10000.    
    18 'norm      '    .88473       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0843       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .43166E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.337       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2417       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82702       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=   10026.83     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3472 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.003        33.673       -.51383E-05   -.69293E-05
   2  Prefactor     .10000E-03    16.657       -.18147E-04** at limit **
   3  norm          .10000E-03    45.567        .25124E-05** at limit **
   4  Prefactor     5.9735        6.8183       -.25611E-05   -.36944E-03
   5  Prefactor     .10007E-03    2.8322        .11363E-06** at limit **
   6  Prefactor     .10000E-03    .57834       -.31564E-10** at limit **
   7  Prefactor     .10000E-03    22.231        .21271E-05** at limit **
   8  Prefactor     .10000E-03    15.769        .19253E-04** at limit **
   9  Prefactor     .10897E-03    16.710       -.25357E-05** at limit **
  10  norm          .10000E-03    .87245       -.53560E-07** at limit **
  11  Prefactor     .10001E-03    3.6382        .51531E-06** at limit **
  12  Prefactor     .10000E-03    5.1282       -.90361E-07** at limit **
  13  norm          .10000E-03    .42184       -.35163E-07** at limit **
  14  Prefactor     .22651E-01    5.1508       -.39020E-06    .21315E-04
  15  norm          2.1849        3.8277       -.11485E-05   -.14756E-02
  16  norm          8.3853        7.5936        .12143E-06    .24489E-04
  17  Prefactor     .66864        9.0815        .19858E-05   -.70933E-03
  18  norm          .88541        1.5555       -.17817E-06   -.95042E-03
  19  Prefactor     8.0814        12.974       -.45898E-06   -.57385E-04
  20  Prefactor     .10000E-03    160.41        .92806E-04** at limit **
  21  Prefactor     .10000E-03    13.545       -.33130E-05** at limit **
  22  Prefactor     25.336        26.524       -.22823E-05   -.20345E-04
  23  Prefactor     .10000E-03    2.4774        .16966E-06** at limit **
  24  Normalizat    1.2416        .17548        .20284E-06   -.41732E-03
  25  Prefactor     .82711        .78982E-01    .46646E-06   -.69372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.0027
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 5.97351
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000108968
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0226512
  norm       = 2.18493
  norm       = 8.38531
  Prefactor  = 0.668637
  norm       = 0.885406
  Prefactor  = 8.08137
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 25.3362
  Prefactor  = 0.0001
  Normalizat = 1.24162
  Prefactor  = 0.827108
 **********
 **   18 **HESSE 
 **********

 FCN=   10026.83     FROM HESSE     STATUS=OK           449 CALLS     3921 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.003        33.631        .75691E-04   -1.4649    
   2  Prefactor     .10000E-03    16.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    46.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9735        6.8154        .16424E-03   -1.5219    
   5  Prefactor     .10007E-03    62.582        .31932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .58129        .74353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10897E-03    17.636        .13500       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4926        .18178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    13.523        .36874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.9681        .12501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22651E-01    9.4118        .64152E-01   -1.5678    
  15  norm          2.1849        3.9574        .22580E-03   -1.5412    
  16  norm          8.3853        7.5937        .13846E-03   -1.5129    
  17  Prefactor     .66864        94.959        .50816E-02   -1.5544    
  18  norm          .88541        1.1757        .15861E-02   -1.5520    
  19  Prefactor     8.0814        12.970        .14101E-03   -1.5139    
  20  Prefactor     .10000E-03    160.97        .21228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.336        26.512        .79582E-04   -1.4701    
  23  Prefactor     .10000E-03    2.4842        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2416        .20354        .30159E-03   -.85326    
  25  Prefactor     .82711        .93066E-01    .16914E-03   -.98737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55897e-08
Minuit parameter uncertainties:
  1  33.6534
  2  9.84566e-05
  3  0.000795138
  4  6.81626
  5  0.0042569
  6  7.63019e-07
  7  2.27529e-06
  8  4.31472e-05
  9  0.0251602
  10  5.83795e-06
  11  0.000752761
  12  7.50577e-07
  13  1.28477e-05
  14  0.921551
  15  3.95783
  16  7.59453
  17  15.9612
  18  1.17569
  19  12.9749
  20  0.00109708
  21  5.82802e-06
  22  26.5241
  23  1.55034e-05
  24  0.203672
  25  0.0930838
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  2.534e+01  2.652e+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:  8.271e-01  9.308e-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.242e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 359.588 38.510
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.70e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 7.99e-06 +/- 8.36e-06

TS (Fixed Index): 2.65
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 6.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/220090/likelihoodResults_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.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) = 10026.0418969
delta logL = 0.789990906991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10026.0217418
delta logL = 0.8101459503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.955       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2601       1.0000          .0000       10.000    
     3 'Normalizat'    1.2537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82488       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=   10026.02     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      256 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.971        35.826        .70882E-04    .44909E-05
   2  Index         1.2602        .62719        .15048E-01   -.96161E-05
   3  Normalizat    1.2537        .19425        .30031E-03    .45428E-06
   4  Prefactor     .82490        .91479E-01    .16934E-03    .22727E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9707
  Index      = 1.26021
  Normalizat = 1.25371
  Prefactor  = 0.824899
 **********
 **   18 **HESSE 
 **********

 FCN=   10026.02     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.971        36.565        .28353E-05   -1.4577    
   2  Index         1.2602        .64026        .60191E-03   -.84498    
   3  Normalizat    1.2537        .19440        .12012E-04   -.84959    
   4  Prefactor     .82490        .91549E-01    .33867E-04   -.98817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69414e-11
Minuit parameter uncertainties:
  1  36.5909
  2  0.644297
  3  0.194509
  4  0.0915656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220090': 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) = 10026.0217417
delta logL = 0.810146060297

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  8.249e-01  9.157e-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.254e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 359.588 38.510
Photon Index (Free Index): 1.26 +/- 0.64
Photon Flux (Free Index): 4.88e-09 +/- 6.63e-09
Energy Flux (Free Index): 3.39e-05 +/- 5.16e-05

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/220090/cmap_HighResolution_268617601_268876801_4FGL_J2358.3+3830_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', comment='SUCCESS', photon_flux='1.70e-08', energy_flux2='3.39e-05', photon_flux_error='1.77e-08', dlogl='8.10e-01', energy_flux='7.99e-06', photon_flux2='4.88e-09', job_status='DONE', time_completed='2021-09-30 11:01:20.536883', photon_index_error2='0.64', photon_index2='1.26', ts='2.65', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.96e-08', energy_flux_error2='5.16e-05', EG='1.24', time_epoch_completed='1633024880.54', return_code='0', job_id='220090', GAL2='0.82', EG2='1.25', return_code2='0', energy_flux_error='8.36e-06', photon_flux_error2='6.63e-09', ts2='4.27', photon_index='2.17' WHERE bin_id='113' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:01:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 220090: <4FGL_J2358.3+3830_daily_bin113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin113 359.588 38.5097 268617601 268876801 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 :                                   954.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             351.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

