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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin326
RA = 59.6656, Dec = 6.5759
tmin = 323827201, tmax = 324086401
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='105718', job_status='RUN', time_executed='2021-08-19 20:06:09.163346', time_epoch_executed='1629428769.16' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105718/ft1_4FGL_J0358.6+0634_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105718/ft1_4FGL_J0358.6+0634_daily_bin326.fits outfile=/scratch/kocevski/105718/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin326.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=323827201.0 tmax=324086401.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.99
user 3.10
sys 0.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.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/105718/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.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 1.20
user 0.33
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/105718/ltcube_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.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/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits
.....................!
real 13.27
user 12.12
sys 1.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/105718/ltcube_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.fits outfile=/scratch/kocevski/105718/expmap_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.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/105718/ltcube_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.fits
.....................!
real 190.45
user 185.03
sys 5.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
Added 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J0358.6+0634 @ 59.6656 6.5759

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits scfile=/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits outfile=/scratch/kocevski/105718/cmap_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.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=59.6656 yref=6.5759 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 1.21
user 0.39
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits scfile=/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits outfile=/scratch/kocevski/105718/cmap_HighResolution_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.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=59.6656 yref=6.5759 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 1.22
user 0.38
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/105718/Model_4FGL_J0358.6+0634_daily_bin326.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 GAL_V02
Working on...
/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits.....................!
real 128.95
user 126.58
sys 2.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits', '/scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits', expMap='/scratch/kocevski/105718/expmap_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.fits', expCube='/scratch/kocevski/105718/ltcube_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/105718/Model_4FGL_J0358.6+0634_daily_bin326.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0358.6+0634'

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  8.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/105718/ft1_filtered_4FGL_J0358.6+0634_daily_bin326.fits
Spacecraft file(s): /scratch/kocevski/105718/ft2_4FGL_J0358.6+0634_daily_bin326.fits
Exposure map: /scratch/kocevski/105718/expmap_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.fits
Exposure cube: /scratch/kocevski/105718/ltcube_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/105718/Model_4FGL_J0358.6+0634_daily_bin326.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) = 9778.84448666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7094       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9994       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5981       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6591       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5391       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6771       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26979E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7108       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88232       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0277       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+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=   9778.789     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     2105 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1344        .18142E-02** at limit **
   2  Prefactor     8.7066        13.288        .13582E-03   -.77005E-05
   3  norm          .10000E-03    1.7864        .12905E-02** at limit **
   4  norm          3.9992        2.0015        .93230E-04   -.80482E-04
   5  Prefactor     20.238        25.881        .89045E-04   -.54236E-04
   6  Prefactor     .10000E-03    5.8215        .18142E-02** at limit **
   7  norm          .10000E-03    11.842        .18142E-02** at limit **
   8  Prefactor     8.5935        45.790        .13671E-03   -.13140E-04
   9  norm          8.6597        5.3650        .13622E-03   -.40394E-04
  10  Prefactor     1.5284        148.46        .34372E-03   -.99887E-05
  11  norm          7.6884        22.756        .14473E-03   -.74781E-04
  12  norm          .10000E-03    .38748        .11850E-03** at limit **
  13  Prefactor     2.9344        1.7619        .96234E-04   -.19752E-03
  14  Prefactor     .10000E-03    32.499        .18142E-02** at limit **
  15  Prefactor     .10000E-03    18.245        .18142E-02** at limit **
  16  norm          .10000E-03    2.5147        .21339E-02** at limit **
  17  Prefactor     .10001E-03    45.517        .18691    ** at limit **
  18  Prefactor     9.7101        8.0744        .12859E-03   -.24400E-03
  19  Normalizat    .88242        .28181        .50971E-03   -.83908E-04
  20  Prefactor     1.0277        .78967E-01    .14074E-03   -.55511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.70659
  norm       = 0.0001
  norm       = 3.99923
  Prefactor  = 20.2381
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.59348
  norm       = 8.65968
  Prefactor  = 1.52839
  norm       = 7.68839
  norm       = 0.0001
  Prefactor  = 2.9344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 9.71015
  Normalizat = 0.882419
  Prefactor  = 1.02771
 **********
 **   18 **HESSE 
 **********

 FCN=   9778.789     FROM HESSE     STATUS=OK           281 CALLS     2386 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7066        13.287        .54330E-05   -1.5118    
   3  norm          .10000E-03    1.7864        .25809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9992        2.0014        .37292E-05   -1.5308    
   5  Prefactor     20.238        25.881        .17809E-04   -1.4808    
   6  Prefactor     .10000E-03    5.8218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.5935        45.867        .54682E-05   -1.5122    
   9  norm          8.6597        5.3649        .54488E-05   -1.5119    
  10  Prefactor     1.5284        148.26        .13749E-04   -1.5461    
  11  norm          7.6884        22.757        .57892E-05   -1.5153    
  12  norm          .10000E-03    .38748        .23699E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9344        1.7619        .38494E-05   -1.5365    
  14  Prefactor     .10000E-03    32.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5250        .42678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    48.524        .17904       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7101        8.0738        .51438E-05   -1.5085    
  19  Normalizat    .88242        .28179        .20389E-04   -.97081    
  20  Prefactor     1.0277        .78996E-01    .28148E-04   -.91812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95279e-10
Minuit parameter uncertainties:
  1  3.62998e-06
  2  13.2918
  3  3.61217e-07
  4  2.00141
  5  25.8956
  6  2.45203e-05
  7  5.58682e-06
  8  39.7542
  9  5.36524
  10  30.1831
  11  22.7825
  12  1.6278e-06
  13  1.76193
  14  0.000127362
  15  6.54527e-05
  16  2.00359e-05
  17  0.00123829
  18  8.07468
  19  0.282259
  20  0.0790048
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  2.024e+01  2.590e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.028e+00  7.900e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  8.824e-01  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 59.666 6.576
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 2.41e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 6.52e-06 +/- 8.34e-06

TS (Fixed Index): 1.31
Ra Dec: 59.666 6.576
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105718/likelihoodResults_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.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) = 9777.32637879
delta logL = 1.46232306234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9777.32347933
delta logL = 1.46522251546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.808       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3238       1.0000          .0000       10.000    
     3 'Normalizat'    .89872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9777.323     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      222 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.870        19.684        .23089E-02   -.42927E-04
   2  Index         1.3233        .37198        .29093       -.70129E-04
   3  Normalizat    .89857        .24247        .11397        .98497E-04
   4  Prefactor     1.0254        .72152E-01    .31868E-01    .21229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8698
  Index      = 1.32332
  Normalizat = 0.898567
  Prefactor  = 1.02541
 **********
 **   18 **HESSE 
 **********

 FCN=   9777.323     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.870        26.019        .92354E-04   -1.4839    
   2  Index         1.3233        .59583        .10605E-01   -.82616    
   3  Normalizat    .89857        .26106        .50539E-03   -.96511    
   4  Prefactor     1.0254        .78017E-01    .14083E-03   -.91887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5976e-09
Minuit parameter uncertainties:
  1  26.0347
  2  0.598945
  3  0.261429
  4  0.0780261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105718': 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) = 9777.3234708
delta logL = 1.46523104488

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.887e+01  2.603e+01  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  1.323e+00  5.989e-01  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  7.663e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.025e+00  7.803e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  8.986e-01  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 59.666 6.576
Photon Index (Free Index): 1.32 +/- 0.60
Photon Flux (Free Index): 7.71e-09 +/- 9.98e-09
Energy Flux (Free Index): 4.38e-05 +/- 6.86e-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/105718/cmap_HighResolution_323827201_324086401_4FGL_J0358.6+0634_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='2.41e-08', energy_flux2='4.38e-05', photon_flux_error='3.08e-08', dlogl='1.47e+00', energy_flux='6.52e-06', photon_flux2='7.71e-09', job_status='DONE', time_completed='2021-08-19 20:18:25.897045', photon_index_error2='0.60', photon_index2='1.32', ts='1.31', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='6.86e-05', EG='0.88', time_epoch_completed='1629429505.9', return_code='0', job_id='105718', GAL2='1.03', EG2='0.90', return_code2='0', energy_flux_error='8.34e-06', photon_flux_error2='9.98e-09', ts2='4.24', photon_index='2.57' WHERE bin_id='326' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:18:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 105718: <4FGL_J0358.6+0634_daily_bin326> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin326> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 20:05:41 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:05:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 20:05:42 2021
Terminated at Thu Aug 19 20:18:29 2021
Results reported at Thu Aug 19 20:18:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin326 59.6656 6.5759 323827201 324086401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0358.6+0634 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            768 sec.

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

