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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin676
RA = 359.588, Dec = 38.5097
tmin = 414547201, tmax = 414806401
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='222049', job_status='RUN', time_executed='2021-09-30 10:51:30.289749', time_epoch_executed='1633024290.29' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222049

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222049/ft1_4FGL_J2358.3+3830_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222049/ft2_4FGL_J2358.3+3830_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222049/ft1_4FGL_J2358.3+3830_daily_bin676.fits outfile=/scratch/kocevski/222049/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin676.fits ra=359.588 dec=38.5097 rad=12.0 tmin=414547201.0 tmax=414806401.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 5.97
user 5.54
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222049/ft1_filtered_4FGL_J2358.3+3830_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/222049/ft2_4FGL_J2358.3+3830_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/222049/ltcube_414547201_414806401_4FGL_J2358.3+3830_daily_bin676.fits outfile=/scratch/kocevski/222049/expmap_414547201_414806401_4FGL_J2358.3+3830_daily_bin676.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/222049/ltcube_414547201_414806401_4FGL_J2358.3+3830_daily_bin676.fits
.....................!
real 191.03
user 185.37
sys 5.21

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/222049/ft1_filtered_4FGL_J2358.3+3830_daily_bin676.fits scfile=/scratch/kocevski/222049/ft2_4FGL_J2358.3+3830_daily_bin676.fits outfile=/scratch/kocevski/222049/cmap_414547201_414806401_4FGL_J2358.3+3830_daily_bin676.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222049/ft1_filtered_4FGL_J2358.3+3830_daily_bin676.fits scfile=/scratch/kocevski/222049/ft2_4FGL_J2358.3+3830_daily_bin676.fits outfile=/scratch/kocevski/222049/cmap_HighResolution_414547201_414806401_4FGL_J2358.3+3830_daily_bin676.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/222049/ft1_filtered_4FGL_J2358.3+3830_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/222049/ft2_4FGL_J2358.3+3830_daily_bin676.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222049/Model_4FGL_J2358.3+3830_daily_bin676.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/222049/ft1_filtered_4FGL_J2358.3+3830_daily_bin676.fits.....................!
real 66.64
user 65.31
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3684       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .52604       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8091       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11269E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2796       1.0000         .10000E-03   10000.    
    16 'norm      '    .16885E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7824       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.753       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7297       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71440       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=   5557.357     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2854 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3758        143.53        .11146E-04   -.50961E-04
   2  Prefactor     .10000E-03    24.441        .42573E-05** at limit **
   3  norm          .10000E-03    9.8708        .27160E-06** at limit **
   4  Prefactor     5.5103        5.3749        .59067E-06    .29367E-04
   5  Prefactor     .10000E-03    22.855        .69161E-05** at limit **
   6  Prefactor     .10000E-03    .95506        .55969E-07** at limit **
   7  Prefactor     .10000E-03    3.9625       -.41414E-07** at limit **
   8  Prefactor     .10000E-03    27.811       -.32296E-05** at limit **
   9  Prefactor     .10000E-03    28.698       -.51275E-05** at limit **
  10  norm          .52542        3.3266       -.13330E-05   -.13381E-02
  11  Prefactor     .10000E-03    3.3907        .67975E-07** at limit **
  12  Prefactor     .10000E-03    33.481       -.10311E-04** at limit **
  13  norm          8.8088        2.9651        .32194E-06   -.46814E-06
  14  Prefactor     .10000E-03    25.432        .21741E-05** at limit **
  15  norm          3.2742        6.4250       -.31990E-05   -.37979E-03
  16  norm          .10009E-03    13.713       -.50225E-06** at limit **
  17  Prefactor     .10000E-03    12.297        .29738E-05** at limit **
  18  norm          8.7826        4.5149       -.39599E-06   -.69217E-04
  19  Prefactor     .10000E-03    12.644       -.30265E-05** at limit **
  20  Prefactor     59.815        91.237        .70107E-04   -.20478E-04
  21  Prefactor     .10000E-03    47.128        .14805E-04** at limit **
  22  Prefactor     .10000E-03    18.510       -.24635E-05** at limit **
  23  Prefactor     .10000E-03    2.3524        .87411E-07** at limit **
  24  Normalizat    1.7302        .25898       -.25697E-05   -.12575E-03
  25  Prefactor     .71430        .11778       -.29677E-05   -.43812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3758
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 5.51025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.525421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.8088
  Prefactor  = 0.0001
  norm       = 3.27415
  norm       = 0.000100086
  Prefactor  = 0.0001
  norm       = 8.78264
  Prefactor  = 0.0001
  Prefactor  = 59.8147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.73015
  Prefactor  = 0.714298
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.357     FROM HESSE     STATUS=OK           419 CALLS     3273 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3758        142.26        .22048E-03   -1.5340    
   2  Prefactor     .10000E-03    24.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.9114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5103        5.3780        .16610E-03   -1.5238    
   5  Prefactor     .10000E-03    23.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .95735        .71139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9637        .14493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .52542        3.3713        .26314E-03   -1.5563    
  11  Prefactor     .10000E-03    3.4023        .13405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8088        2.9641        .71643E-04   -1.5114    
  14  Prefactor     .10000E-03    25.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2742        6.4279        .22359E-03   -1.5346    
  16  norm          .10009E-03    79.340        .52923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7826        4.4813        .10868E-03   -1.5115    
  19  Prefactor     .10000E-03    12.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.815        90.484        .51904E-04   -1.4160    
  21  Prefactor     .10000E-03    47.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3547        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.7302        .30094        .30077E-03   -.71501    
  25  Prefactor     .71430        .13635        .19758E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92779e-09
Minuit parameter uncertainties:
  1  43.9396
  2  0.000417022
  3  1.84134e-05
  4  5.37844
  5  0.000186469
  6  8.25948e-07
  7  3.2697e-06
  8  0.000125709
  9  5.70496e-05
  10  2.66181
  11  1.35583e-05
  12  8.63821e-05
  13  2.96413
  14  0.000171474
  15  6.42929
  16  0.00522946
  17  6.8625e-05
  18  4.48146
  19  2.49377e-05
  20  90.6928
  21  0.000139587
  22  5.81762e-06
  23  1.76641e-06
  24  0.30126
  25  0.136409
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  5.818e-06  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:  7.143e-01  1.364e-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.730e+00  3.013e-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: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/222049/likelihoodResults_414547201_414806401_4FGL_J2358.3+3830_daily_bin676.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) = 5557.35682954
delta logL = -0.000256493432971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5557.35657435
delta logL = -1.30119587993e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4157       1.0000          .0000       10.000    
     3 'Normalizat'    1.7301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71430       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=   5557.357     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      274 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10302E-03    4.3648        .18142E-01** at limit **
   2  Index         2.3356        8.7757        .50000        .25523E-04
   3  Normalizat    1.7302        .38423E-02    .30077E-03   -.10308E-03
   4  Prefactor     .71430        .17238E-02    .19758E-03   -.17210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103022
  Index      = 2.33563
  Normalizat = 1.73015
  Prefactor  = 0.714297
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.357     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10302E-03    50.729        .27547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3356        8.1911        .50000       -.56199    
   3  Normalizat    1.7302        .13143E-01    .60153E-04   -.71501    
   4  Prefactor     .71430        .58966E-02    .79031E-05   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.46046e-09
Minuit parameter uncertainties:
  1  0.0247849
  2  153.579
  3  0.013143
  4  0.00589665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222049': 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) = 5557.35657394
delta logL = -8.93955984793e-07

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.030e-04  2.478e-02  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.336e+00  1.536e+02  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:  7.143e-01  5.897e-03  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.730e+00  1.314e-02  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/222049/cmap_HighResolution_414547201_414806401_4FGL_J2358.3+3830_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-30 11:02:44.263320', job_id='222049', GAL2='0.71', fit_tolerance='1e-08', EG2='1.73', EG='1.73', time_epoch_completed='1633024964.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-8.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='676' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:02:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 222049: <4FGL_J2358.3+3830_daily_bin676> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin676 359.588 38.5097 414547201 414806401 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            694 sec.

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

