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


Performing analysis on: 4FGL_J0358.6+0634_daily_bin965
RA = 59.6656, Dec = 6.5759
tmin = 489456001, tmax = 489715201
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='109913', job_status='RUN', time_executed='2021-08-19 20:23:27.979420', time_epoch_executed='1629429807.98' WHERE source_name='4FGL J0358.6+0634' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/109913

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/109913/ft1_4FGL_J0358.6+0634_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/109913/ft1_4FGL_J0358.6+0634_daily_bin965.fits outfile=/scratch/kocevski/109913/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin965.fits ra=59.6656 dec=6.5759 rad=12.0 tmin=489456001.0 tmax=489715201.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.65
user 4.90
sys 0.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.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/109913/ft1_filteredMKT_4FGL_J0358.6+0634_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.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.98
user 0.32
sys 0.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/109913/ltcube_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.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/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits
.....................!
real 12.21
user 11.29
sys 0.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/109913/ltcube_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.fits outfile=/scratch/kocevski/109913/expmap_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.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/109913/ltcube_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.fits
.....................!
real 192.05
user 186.55
sys 5.00

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/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits scfile=/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits outfile=/scratch/kocevski/109913/cmap_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.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.00
user 0.36
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits scfile=/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits outfile=/scratch/kocevski/109913/cmap_HighResolution_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.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.00
user 0.37
sys 0.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/109913/Model_4FGL_J0358.6+0634_daily_bin965.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/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits.....................!
real 132.26
user 129.93
sys 1.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits', '/scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits', expMap='/scratch/kocevski/109913/expmap_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.fits', expCube='/scratch/kocevski/109913/ltcube_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/109913/Model_4FGL_J0358.6+0634_daily_bin965.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/109913/ft1_filtered_4FGL_J0358.6+0634_daily_bin965.fits
Spacecraft file(s): /scratch/kocevski/109913/ft2_4FGL_J0358.6+0634_daily_bin965.fits
Exposure map: /scratch/kocevski/109913/expmap_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.fits
Exposure cube: /scratch/kocevski/109913/ltcube_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/109913/Model_4FGL_J0358.6+0634_daily_bin965.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) = 9912.68225381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83507       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1451       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .81234E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4953       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.054       1.0000         .10000E-03   10000.    
    11 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7771       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.227       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2300       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4186       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1123       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98237       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.

 FCN=   9912.678     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2039 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83574        4.3767        .29552E-05   -.29965E-03
   2  Prefactor     .10000E-03    8.4250       -.15596E-06** at limit **
   3  norm          7.1478        5.6451       -.61111E-06   -.62145E-03
   4  norm          2.0635        1.5794        .93846E-07   -.11051E-03
   5  Prefactor     .10000E-03    10.999        .44196E-07** at limit **
   6  Prefactor     .10000E-03    14.771       -.16984E-05** at limit **
   7  norm          .10000E-03    15.766        .13142E-06** at limit **
   8  Prefactor     2.5015        92.352        .29500E-05    .21671E-04
   9  norm          .10000E-03    1.6938        .46281E-07** at limit **
  10  Prefactor     13.025        23.279       -.12046E-05   -.13621E-03
  11  norm          .10000E-03    11.501        .41074E-06** at limit **
  12  norm          .10000E-03    .23446       -.85167E-08** at limit **
  13  Prefactor     3.7764        2.2117        .36781E-07   -.21106E-03
  14  Prefactor     29.223        25.775        .29350E-06    .55006E-04
  15  Prefactor     .10000E-03    16.728        .12480E-05** at limit **
  16  norm          1.2312        1.9796        .20892E-06   -.10783E-03
  17  Prefactor     2.4198        54.003        .12292E-05    .11696E-05
  18  Prefactor     .10000E-03    1.7245        .29656E-07** at limit **
  19  Normalizat    1.1120        .24238       -.86117E-06   -.62001E-04
  20  Prefactor     .98239        .69012E-01    .39272E-08   -.20209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.835741
  Prefactor  = 0.0001
  norm       = 7.14775
  norm       = 2.06354
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.50155
  norm       = 0.0001
  Prefactor  = 13.0248
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.77642
  Prefactor  = 29.2229
  Prefactor  = 0.000100001
  norm       = 1.23117
  Prefactor  = 2.41978
  Prefactor  = 0.0001
  Normalizat = 1.11204
  Prefactor  = 0.982395
 **********
 **   18 **HESSE 
 **********

 FCN=   9912.678     FROM HESSE     STATUS=OK           293 CALLS     2332 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83574        4.6857        .41967E-03   -1.5525    
   2  Prefactor     .10000E-03    8.4836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1478        5.8272        .15007E-03   -1.5173    
   4  norm          2.0635        1.5738        .10460E-03   -1.5421    
   5  Prefactor     .10000E-03    11.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    117.17        .76976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5015        92.493        .25873E-03   -1.5392    
   9  norm          .10000E-03    1.7074        .12654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.025        23.577        .11086E-03   -1.4986    
  11  norm          .10000E-03    11.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .23496        .47036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7764        2.2008        .10516E-03   -1.5319    
  14  Prefactor     29.223        25.432        .74109E-04   -1.4626    
  15  Prefactor     .10000E-03    17.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2312        1.9092        .16148E-03   -1.5486    
  17  Prefactor     2.4198        54.175        .26320E-03   -1.5397    
  18  Prefactor     .10000E-03    1.7260        .12769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1120        .26494        .45594E-03   -.89366    
  20  Prefactor     .98239        .75936E-01    .14225E-03   -.93319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03758e-10
Minuit parameter uncertainties:
  1  3.95802
  2  1.78128e-05
  3  5.82765
  4  1.57384
  5  1.1113e-05
  6  0.000253992
  7  0.000187223
  8  30.4725
  9  2.5731e-06
  10  23.5942
  11  5.64211e-05
  12  2.4724e-07
  13  2.20089
  14  25.4414
  15  0.000246173
  16  1.90933
  17  22.9221
  18  1.91e-06
  19  0.265256
  20  0.0759439
Done.

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

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  1.111e-05  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:  9.824e-01  7.594e-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:  1.112e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 59.666 6.576
Photon Flux Upper Limit: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/109913/likelihoodResults_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.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) = 9912.67854672
delta logL = -0.00043306135376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9912.67811453
delta logL = -8.70664734975e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11314E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5539       1.0000          .0000       10.000    
     3 'Normalizat'    1.1118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98244       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=   9912.678     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      245 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    477.49        .18142E-01** at limit **
   2  Index         1.9777        5.8142        .93400E-01    .15093E-07
   3  Normalizat    1.1120        .41442E-01    .45594E-03    .11919E-04
   4  Prefactor     .98239        .12335E-01    .14224E-03    .41720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97772
  Normalizat = 1.11204
  Prefactor  = 0.982395
 **********
 **   18 **HESSE 
 **********

 FCN=   9912.678     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.282        .35185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9777        9.0040        .37360E-02   -.64908    
   3  Normalizat    1.1120        .25152        .18238E-04   -.89366    
   4  Prefactor     .98239        .74934E-01    .56898E-05   -.93319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1343e-11
Minuit parameter uncertainties:
  1  7.92144e-05
  2  441.346
  3  0.251789
  4  0.0749417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/109913': 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) = 9912.67811294
delta logL = 7.25720383343e-07

Extracting fit parameters...

4FGL J0358.6+0634
   Spectrum: PowerLaw
232    Prefactor:  1.000e-04  7.921e-05  1.000e-04  1.000e+04 ( 1.000e-13)
233        Index:  1.978e+00  4.413e+02  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:  9.824e-01  7.494e-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:  1.112e+00  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 59.666 6.576

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/109913/cmap_HighResolution_489456001_489715201_4FGL_J0358.6+0634_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-08-19 20:36:03.664439', job_id='109913', GAL2='0.98', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1629430563.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='965' AND source_name='4FGL J0358.6+0634' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 20:36:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 109913: <4FGL_J0358.6+0634_daily_bin965> in cluster <slac> Done

Job <4FGL_J0358.6+0634_daily_bin965> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 19 20:20:35 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 20:20:37 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:20:37 2021
Terminated at Thu Aug 19 20:36:04 2021
Results reported at Thu Aug 19 20:36:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0358.6+0634_daily_bin965 59.6656 6.5759 489456001 489715201 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 :                                   756.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

