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


Performing analysis on: 4FGL_J2358.3+3830_daily_bin1545
RA = 359.588, Dec = 38.5097
tmin = 639792001, tmax = 640051201
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='226198', job_status='RUN', time_executed='2021-09-30 11:06:14.524897', time_epoch_executed='1633025174.52' WHERE source_name='4FGL J2358.3+3830' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226198/ft1_4FGL_J2358.3+3830_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226198/ft2_4FGL_J2358.3+3830_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226198/ft1_4FGL_J2358.3+3830_daily_bin1545.fits outfile=/scratch/kocevski/226198/ft1_filteredMKT_4FGL_J2358.3+3830_daily_bin1545.fits ra=359.588 dec=38.5097 rad=12.0 tmin=639792001.0 tmax=640051201.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.52
user 3.29
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226198/ft1_filtered_4FGL_J2358.3+3830_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/226198/ft2_4FGL_J2358.3+3830_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/226198/ltcube_639792001_640051201_4FGL_J2358.3+3830_daily_bin1545.fits outfile=/scratch/kocevski/226198/expmap_639792001_640051201_4FGL_J2358.3+3830_daily_bin1545.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/226198/ltcube_639792001_640051201_4FGL_J2358.3+3830_daily_bin1545.fits
.....................!
real 193.52
user 187.53
sys 5.64

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/226198/ft1_filtered_4FGL_J2358.3+3830_daily_bin1545.fits scfile=/scratch/kocevski/226198/ft2_4FGL_J2358.3+3830_daily_bin1545.fits outfile=/scratch/kocevski/226198/cmap_639792001_640051201_4FGL_J2358.3+3830_daily_bin1545.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.609       1.0000         .10000E-03   10000.    
     3 'norm      '    9.6863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3249       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.625       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1756       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1820       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8896       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.203       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.026       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3026       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75060       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0890       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=   9474.394     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2848 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.922       -.62337E-05** at limit **
   2  Prefactor     24.611        18.755        .18464E-05    .27180E-04
   3  norm          9.6874        14.432       -.11504E-05   -.83471E-03
   4  Prefactor     .10000E-03    1.6040        .18196E-07** at limit **
   5  Prefactor     6.3269        8.1440       -.29682E-06   -.16152E-03
   6  Prefactor     4.9568        3.5971        .12884E-05   -.31516E-03
   7  Prefactor     10.613        19.780       -.13823E-04   -.44937E-04
   8  Prefactor     12.611        22.010        .80738E-07   -.92958E-05
   9  Prefactor     .10000E-03    11.134        .62479E-05** at limit **
  10  norm          .10000E-03    .99927        .58201E-07** at limit **
  11  Prefactor     2.1753        3.4283       -.61265E-06   -.36055E-03
  12  Prefactor     .10000E-03    16.240        .39920E-05** at limit **
  13  norm          2.1820        1.4626       -.26831E-06   -.90132E-03
  14  Prefactor     .10000E-03    12.257       -.46404E-05** at limit **
  15  norm          5.8939        5.2326        .25621E-05   -.59486E-03
  16  norm          .10000E-03    3.6124        .66818E-07** at limit **
  17  Prefactor     .10000E-03    25.236        .11042E-04** at limit **
  18  norm          .10000E-03    .78552        .10728E-07** at limit **
  19  Prefactor     10.203        11.871       -.13575E-07   -.30473E-05
  20  Prefactor     .10000E-03    25.996        .68660E-05** at limit **
  21  Prefactor     44.021        33.798       -.56502E-05   -.97293E-05
  22  Prefactor     .10000E-03    29.148       -.18301E-04** at limit **
  23  Prefactor     2.3024        5.5995       -.13621E-05   -.56200E-03
  24  Normalizat    .75046        .20832        .19424E-05   -.44849E-04
  25  Prefactor     1.0890        .92652E-01   -.64559E-07    .71241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.6112
  norm       = 9.68744
  Prefactor  = 0.0001
  Prefactor  = 6.32694
  Prefactor  = 4.9568
  Prefactor  = 10.6134
  Prefactor  = 12.6112
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.17531
  Prefactor  = 0.0001
  norm       = 2.182
  Prefactor  = 0.0001
  norm       = 5.89394
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 10.203
  Prefactor  = 0.0001
  Prefactor  = 44.0207
  Prefactor  = 0.0001
  Prefactor  = 2.30239
  Normalizat = 0.750458
  Prefactor  = 1.08904
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.394     FROM HESSE     STATUS=OK           429 CALLS     3277 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.611        18.747        .80749E-04   -1.4715    
   3  norm          9.6874        14.428        .64379E-03   -1.5085    
   4  Prefactor     .10000E-03    1.6054        .12036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.3269        8.1751        .15960E-03   -1.5205    
   6  Prefactor     4.9568        3.5703        .14003E-03   -1.5263    
   7  Prefactor     10.613        19.747        .12291E-03   -1.5056    
   8  Prefactor     12.611        22.011        .11280E-03   -1.4998    
   9  Prefactor     .10000E-03    11.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0173        .94996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1753        3.4133        .22038E-03   -1.5413    
  12  Prefactor     .10000E-03    16.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1820        1.4561        .92353E-04   -1.5413    
  14  Prefactor     .10000E-03    12.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8939        5.1681        .16547E-03   -1.5222    
  16  norm          .10000E-03    3.6251        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .79056        .84227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.203        11.870        .12544E-03   -1.5069    
  20  Prefactor     .10000E-03    26.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.021        33.849        .60422E-04   -1.4380    
  22  Prefactor     .10000E-03    28.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.3024        5.5413        .27043E-03   -1.5404    
  24  Normalizat    .75046        .23198        .40914E-03   -1.0193    
  25  Prefactor     1.0890        .10427        .16324E-03   -.89818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93846e-09
Minuit parameter uncertainties:
  1  3.29173e-06
  2  18.751
  3  14.4334
  4  2.79134e-06
  5  8.17653
  6  3.5705
  7  19.759
  8  22.025
  9  3.03415e-06
  10  1.46022e-06
  11  3.41358
  12  7.64352e-06
  13  1.45616
  14  2.83421e-06
  15  5.16853
  16  1.45882e-06
  17  0.000468933
  18  6.0025e-07
  19  11.873
  20  1.99183e-05
  21  33.8642
  22  9.74167e-05
  23  5.54257
  24  0.232288
  25  0.104291
Done.

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

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  9.742e-05  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.089e+00  1.043e-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:  7.505e-01  2.323e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/226198/likelihoodResults_639792001_640051201_4FGL_J2358.3+3830_daily_bin1545.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) = 9474.39368238
delta logL = -0.000164504146596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9474.39351801
delta logL = -1.37088136398e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2536       1.0000          .0000       10.000    
     3 'Normalizat'    .75046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0890       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=   9474.394     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    653.30        .90712E-02** at limit **
   2  Index         2.2714        8.4926        .50000       -.53319E-05
   3  Normalizat    .75045        .24126E-01    .92351E-01   -.23145E-03
   4  Prefactor     1.0890        .11467E-01    .38018E-01    .61747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 2.27139
  Normalizat = 0.750454
  Prefactor  = 1.08904
 **********
 **   18 **HESSE 
 **********

 FCN=   9474.394     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    35.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2714        6.1250        .50000       -.57725    
   3  Normalizat    .75045        .21434        .40914E-03   -1.0193    
   4  Prefactor     1.0890        .10227        .16324E-03   -.89818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3675e-09
Minuit parameter uncertainties:
  1  0.00153886
  2  4.54978
  3  0.21458
  4  0.10229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226198': 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) = 9474.39351777
delta logL = 1.04906575871e-07

Extracting fit parameters...

4FGL J2358.3+3830
   Spectrum: PowerLaw
488    Prefactor:  1.000e-04  1.539e-03  1.000e-04  1.000e+04 ( 1.000e-14)
489        Index:  2.271e+00  4.550e+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:  1.089e+00  1.023e-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:  7.505e-01  2.146e-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/226198/cmap_HighResolution_639792001_640051201_4FGL_J2358.3+3830_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-30 11:21:17.450529', job_id='226198', GAL2='1.09', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1633026077.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1545' AND source_name='4FGL J2358.3+3830' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 11:21:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 226198: <4FGL_J2358.3+3830_daily_bin1545> in cluster <slac> Done

Job <4FGL_J2358.3+3830_daily_bin1545> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 11:05:55 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 11:05:57 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:05:57 2021
Terminated at Thu Sep 30 11:21:18 2021
Results reported at Thu Sep 30 11:21:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2358.3+3830_daily_bin1545 359.588 38.5097 639792001 640051201 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 :                                   838.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

