/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 229 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1192
RA = 359.588, Dec = 38.5097
tmin = 548294401, tmax = 548553601
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='224630', job_status='RUN', time_executed='2021-09-30 11:04:43.026714', time_epoch_executed='1633025083.03' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224630/ft1_4FGL_J2358.3+3830_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224630/ft2_4FGL_J2358.3+3830_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224630/ft1_4FGL_J2358.3+3830_daily_bin1192.fits outfile=/scratch/kocevski/224630/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1192.fits ra=359.588 dec=38.5097 rad=12.0 tmin=548294401.0 tmax=548553601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.89
user 3.65
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224630/ft1_filtered_4FGL_J2358.3+3830_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/224630/ft2_4FGL_J2358.3+3830_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/224630/ltcube_548294401_548553601_4FGL_J2358.3+3830_daily_bin1192.fits outfile=/scratch/kocevski/224630/expmap_548294401_548553601_4FGL_J2358.3+3830_daily_bin1192.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/224630/ltcube_548294401_548553601_4FGL_J2358.3+3830_daily_bin1192.fits
.....................!
real 191.43
user 187.04
sys 4.07

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/224630/ft1_filtered_4FGL_J2358.3+3830_daily_bin1192.fits scfile=/scratch/kocevski/224630/ft2_4FGL_J2358.3+3830_daily_bin1192.fits outfile=/scratch/kocevski/224630/cmap_548294401_548553601_4FGL_J2358.3+3830_daily_bin1192.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224630/ft1_filtered_4FGL_J2358.3+3830_daily_bin1192.fits scfile=/scratch/kocevski/224630/ft2_4FGL_J2358.3+3830_daily_bin1192.fits outfile=/scratch/kocevski/224630/cmap_HighResolution_548294401_548553601_4FGL_J2358.3+3830_daily_bin1192.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .71812E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11703E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28725E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11323E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.0507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.915       1.0000         .10000E-03   10000.    
    13 'norm      '    5.6905       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.738       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2491       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.787       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    388.77       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.428       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32761E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3608       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .34853       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=   1964.991     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3457 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    471.99        .41602E-05** at limit **
   2  Prefactor     .10030E-03    450.29       -.13080E-04** at limit **
   3  norm          18.713        60.411        .58602E-06   -.34788E-04
   4  Prefactor     .10000E-03    25.632       -.66170E-06** at limit **
   5  Prefactor     .10002E-03    47.602        .14907E-04** at limit **
   6  Prefactor     .10000E-03    13.739       -.57936E-06** at limit **
   7  Prefactor     .10004E-03    251.10       -.63526E-05** at limit **
   8  Prefactor     .10000E-03    46.014       -.80167E-07** at limit **
   9  Prefactor     .10000E-03    93.728        .35995E-06** at limit **
  10  norm          5.0504        5.3561        .56972E-07    .10775E-03
  11  Prefactor     11.651        22.001       -.12106E-06    .13306E-04
  12  Prefactor     30.918        43.122       -.50957E-06    .50538E-05
  13  norm          5.6906        3.1195        .36806E-07    .57980E-03
  14  Prefactor     21.729        24.298       -.36890E-06    .21827E-05
  15  norm          1.2401        32.207       -.22030E-05    .21673E-03
  16  norm          .10000E-03    9.9446       -.98987E-07** at limit **
  17  Prefactor     49.832        43.623        .18284E-05    .39013E-03
  18  norm          .10000E-03    2.4360       -.72932E-07** at limit **
  19  Prefactor     .10000E-03    14.258        .48112E-07** at limit **
  20  Prefactor     388.36        446.30        .10052E-05    .12943E-04
  21  Prefactor     .10000E-03    17.285       -.67773E-07** at limit **
  22  Prefactor     67.426        214.19       -.29492E-05   -.29301E-04
  23  Prefactor     .10000E-03    68.069       -.14674E-05** at limit **
  24  Normalizat    1.3609        .37456       -.11193E-05    .55592E-05
  25  Prefactor     .34863        .16503        .30084E-05    .28658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100297
  norm       = 18.7126
  Prefactor  = 0.000100001
  Prefactor  = 0.000100024
  Prefactor  = 0.000100001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.05043
  Prefactor  = 11.6513
  Prefactor  = 30.9176
  norm       = 5.69063
  Prefactor  = 21.7289
  norm       = 1.24008
  norm       = 0.0001
  Prefactor  = 49.8322
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 388.357
  Prefactor  = 0.0001
  Prefactor  = 67.426
  Prefactor  = 0.000100004
  Normalizat = 1.3609
  Prefactor  = 0.348626
 **********
 **   18 **HESSE 
 **********

 FCN=   1964.991     FROM HESSE     STATUS=OK           419 CALLS     3876 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    470.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10030E-03    469.49        .20965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.713        60.244        .92573E-04   -1.4843    
   4  Prefactor     .10000E-03    25.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    49.076        .29507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.795        .16072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    254.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    93.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0504        5.3598        .10132E-03   -1.5258    
  11  Prefactor     11.651        21.989        .11735E-03   -1.5025    
  12  Prefactor     30.918        43.181        .72062E-04   -1.4595    
  13  norm          5.6906        3.1103        .53255E-04   -1.5231    
  14  Prefactor     21.729        24.278        .85909E-04   -1.4775    
  15  norm          1.2401        33.019        .35473E-03   -1.5485    
  16  norm          .10000E-03    9.9472        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.832        43.737        .56834E-04   -1.4295    
  18  norm          .10000E-03    2.4423        .67573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.269        .16352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     388.36        445.05        .10347E-03   -1.1741    
  21  Prefactor     .10000E-03    17.290        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     67.426        212.81        .48879E-04   -1.4064    
  23  Prefactor     .10000E-03    68.641        .21352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3609        .41492        .26153E-03   -.81766    
  25  Prefactor     .34863        .18907        .22034E-03   -1.1952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5337e-09
Minuit parameter uncertainties:
  1  0.00122754
  2  0.0238019
  3  60.441
  4  0.000289508
  5  0.00218585
  6  0.000173734
  7  0.0061667
  8  5.12793e-05
  9  0.000174667
  10  5.36032
  11  22.0041
  12  43.2243
  13  3.11042
  14  24.289
  15  12.8052
  16  2.83684e-05
  17  43.7649
  18  9.34562e-06
  19  1.04111e-05
  20  449.083
  21  2.55128e-05
  22  215.289
  23  0.00108688
  24  0.415951
  25  0.189404
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  6.743e+01  2.153e+02  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:  3.486e-01  1.894e-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.361e+00  4.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 359.588 38.510
Photon Flux Upper Limit: 3.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/224630/likelihoodResults_548294401_548553601_4FGL_J2358.3+3830_daily_bin1192.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) = 1964.36422625
delta logL = 0.626641431252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1964.31650172
delta logL = 0.674365956055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.687       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4176       1.0000          .0000       10.000    
     3 'Normalizat'    1.2537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36916       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=   1964.316     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      315 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.727        75.219        .98047E-04    .42604E-03
   2  Index         3.4171        1.7003        .29048E-02    .16651E-03
   3  Normalizat    1.2522        .40849        .26979E-03   -.18308E-03
   4  Prefactor     .36988        .18071        .21345E-03    .72967E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7265
  Index      = 3.41714
  Normalizat = 1.25221
  Prefactor  = 0.369885
 **********
 **   18 **HESSE 
 **********

 FCN=   1964.316     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.727        43.066        .39219E-05   -1.4890    
   2  Index         3.4171        1.0455        .11619E-03   -.32211    
   3  Normalizat    1.2522        .40631        .53957E-04   -.85004    
   4  Prefactor     .36988        .17933        .85381E-05   -1.1837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89213e-10
Minuit parameter uncertainties:
  1  43.146
  2  1.05418
  3  0.407343
  4  0.179599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224630': 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) = 1964.31649262
delta logL = 0.674375054104

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.673e+01  4.315e+01  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  3.417e+00  1.054e+00  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:  3.699e-01  1.796e-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.252e+00  4.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 359.588 38.510
Photon Index (Free Index): 3.42 +/- 1.05
Photon Flux (Free Index): 2.46e-07 +/- 2.47e-07
Energy Flux (Free Index): 4.19e-05 +/- 3.89e-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/224630/cmap_HighResolution_548294401_548553601_4FGL_J2358.3+3830_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-02', comment='SUCCESS', energy_flux2='4.19e-05', dlogl='6.74e-01', photon_flux2='2.46e-07', job_status='DONE', time_completed='2021-09-30 11:13:44.439913', photon_index_error2='1.05', photon_index2='3.42', ts='0.23', fit_tolerance='1e-08', GAL='0.35', photon_index_error='0.00', photon_flux_upper_limit='3.09e-07', energy_flux_error2='3.89e-05', EG='1.36', time_epoch_completed='1633025624.44', return_code='0', job_id='224630', GAL2='0.37', EG2='1.25', return_code2='0', photon_flux_error2='2.47e-07', ts2='1.62', photon_index='2.17' WHERE bin_id='1192' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 224630: <4FGL_J2358.3+3830_daily_bin1192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1192 359.588 38.5097 548294401 548553601 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 :                                   431.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

