/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 174 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1158.5+4824_daily_bin62
RA = 179.637, Dec = 48.4161
tmin = 255398401, tmax = 255657601
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='194979', job_status='RUN', time_executed='2021-09-04 17:29:25.846601', time_epoch_executed='1630801765.85' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194979

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194979/ft1_4FGL_J1158.5+4824_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194979/ft1_4FGL_J1158.5+4824_daily_bin62.fits outfile=/scratch/kocevski/194979/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin62.fits ra=179.637 dec=48.4161 rad=12.0 tmin=255398401.0 tmax=255657601.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 1.82
user 1.66
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.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/194979/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin62.fits evtable="EVENTS" outfile="/scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits" evtable="EVENTS" scfile=/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits sctable="SC_DATA" outfile=/scratch/kocevski/194979/ltcube_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.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/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits
.....................!
real 12.57
user 12.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/194979/ltcube_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.fits outfile=/scratch/kocevski/194979/expmap_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.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/194979/ltcube_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.fits
.....................!
real 190.65
user 185.88
sys 4.39

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits scfile=/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits outfile=/scratch/kocevski/194979/cmap_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.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=179.637 yref=48.4161 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.60
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits scfile=/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits outfile=/scratch/kocevski/194979/cmap_HighResolution_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.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=179.637 yref=48.4161 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194979/Model_4FGL_J1158.5+4824_daily_bin62.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/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits.....................!
real 54.16
user 52.37
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits', '/scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits', expMap='/scratch/kocevski/194979/expmap_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.fits', expCube='/scratch/kocevski/194979/ltcube_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/194979/Model_4FGL_J1158.5+4824_daily_bin62.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/194979/ft1_filtered_4FGL_J1158.5+4824_daily_bin62.fits
Spacecraft file(s): /scratch/kocevski/194979/ft2_4FGL_J1158.5+4824_daily_bin62.fits
Exposure map: /scratch/kocevski/194979/expmap_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.fits
Exposure cube: /scratch/kocevski/194979/ltcube_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/194979/Model_4FGL_J1158.5+4824_daily_bin62.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) = 6289.09092251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    112.85       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.2933       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.455       1.0000         .10000E-03   10000.    
    11 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.4279       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63424       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1991       1.0000         .10000E-03   10000.    
    18 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.409       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3015       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21192E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .36424       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77080       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2071       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6289.088     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2911 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.574        .21253E-06** at limit **
   2  Prefactor     .10000E-03    52.218        .18369E-05** at limit **
   3  Prefactor     .10000E-03    69.231        .15275E-05** at limit **
   4  Prefactor     112.85        58.002        .25170E-06    .35988E-04
   5  Prefactor     .10000E-03    52.413        .19315E-05** at limit **
   6  norm          .10000E-03    15.712        .90061E-07** at limit **
   7  Prefactor     .10022E-03    7.4410       -.25769E-05** at limit **
   8  Prefactor     9.2913        29.597        .33509E-06    .75854E-04
   9  norm          .10000E-03    .82307        .35534E-06** at limit **
  10  Prefactor     30.493        33.794       -.26862E-06   -.23134E-03
  11  norm          .10000E-03    .41647        .13186E-05** at limit **
  12  norm          .10000E-03    7.7025        .25126E-06** at limit **
  13  Prefactor     .10000E-03    .82697       -.16284E-07** at limit **
  14  Prefactor     .10000E-03    19.404        .19971E-05** at limit **
  15  norm          9.4272        6.6048        .21964E-06    .29396E-03
  16  Prefactor     .55151        12.202        .59546E-06   -.32911E-04
  17  norm          2.1987        2.1390        .23969E-06    .34466E-03
  18  norm          .10000E-03    8.6321        .30434E-06** at limit **
  19  Prefactor     17.400        20.676        .59586E-06    .97227E-04
  20  Prefactor     8.3003        6.0040       -.85598E-06   -.11186E-02
  21  Prefactor     .10041E-03    11.013       -.23913E-05** at limit **
  22  norm          .36407        1.0947        .58432E-06    .61660E-03
  23  Prefactor     .10000E-03    17.622       -.13735E-05** at limit **
  24  Normalizat    .77088        .15500       -.10096E-05   -.31289E-03
  25  Prefactor     1.2072        .18399       -.34034E-06   -.38173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 112.854
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100221
  Prefactor  = 9.29128
  norm       = 0.0001
  Prefactor  = 30.493
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.42724
  Prefactor  = 0.551512
  norm       = 2.19867
  norm       = 0.0001
  Prefactor  = 17.4003
  Prefactor  = 8.30027
  Prefactor  = 0.000100408
  norm       = 0.364068
  Prefactor  = 0.000100001
  Normalizat = 0.770884
  Prefactor  = 1.20723
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.088     FROM HESSE     STATUS=OK           425 CALLS     3336 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    69.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     112.85        58.063        .37868E-04   -1.3579    
   5  Prefactor     .10000E-03    52.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10022E-03    31.989        .34946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.2913        29.120        .13146E-03   -1.5098    
   9  norm          .10000E-03    .83893        .70356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.493        34.134        .72603E-04   -1.4603    
  11  norm          .10000E-03    .45698        .85702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.7877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .83055        .70357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.4272        6.6063        .13052E-03   -1.5094    
  16  Prefactor     .55151        132.91        .51764E-02   -1.5559    
  17  norm          2.1987        2.1334        .10818E-03   -1.5411    
  18  norm          .10000E-03    8.8382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.400        20.453        .95991E-04   -1.4873    
  20  Prefactor     8.3003        6.1162        .13914E-03   -1.5132    
  21  Prefactor     .10041E-03    77.681        .46353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .36407        1.0866        .14073E-03   -1.5587    
  23  Prefactor     .10000E-03    17.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77088        .17991        .24003E-03   -1.0116    
  25  Prefactor     1.2072        .21659        .24842E-03   -.86109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90151e-08
Minuit parameter uncertainties:
  1  6.55712e-05
  2  0.000709655
  3  0.000681038
  4  58.0921
  5  0.000752068
  6  2.03322e-05
  7  0.00531851
  8  29.1645
  9  8.80435e-06
  10  34.1561
  11  4.77966e-07
  12  1.02288e-05
  13  1.52196e-07
  14  0.000426692
  15  6.60679
  16  17.1605
  17  2.13344
  18  2.95908e-05
  19  20.4616
  20  6.11666
  21  0.0112774
  22  1.0867
  23  0.000297468
  24  0.180047
  25  0.216751
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.515e-01  1.716e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.207e+00  2.168e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.709e-01  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194979/likelihoodResults_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.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) = 6289.08361729
delta logL = 0.00455051732115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6289.07171595
delta logL = 0.0164518568854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4701       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0415       1.0000          .0000       10.000    
     3 'Normalizat'    .76566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   6289.072     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4686        20.723        .35445E-03   -.16881E-03
   2  Index         3.0406        2.7938        .56659E-02   -.17246E-03
   3  Normalizat    .76552        .17227        .24083E-03   -.12802E-02
   4  Prefactor     1.2093        .21557        .24824E-03   -.97493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.46856
  Index      = 3.04056
  Normalizat = 0.765521
  Prefactor  = 1.20929
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.072     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4686        17.387        .14178E-04   -1.5466    
   2  Index         3.0406        2.5891        .22664E-03   -.40268    
   3  Normalizat    .76552        .17247        .48165E-04   -1.0136    
   4  Prefactor     1.2093        .21573        .49648E-04   -.86046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04105e-08
Minuit parameter uncertainties:
  1  10.1094
  2  2.74994
  3  0.172594
  4  0.215889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194979': 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) = 6289.07171541
delta logL = 0.0164523982721

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.469e+00  1.011e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.041e+00  2.750e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.209e+00  2.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.655e-01  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 179.637 48.416

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/194979/cmap_HighResolution_255398401_255657601_4FGL_J1158.5+4824_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-04 17:42:18.508443', job_id='194979', GAL2='1.21', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630802538.51', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.65e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='62' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:42:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 194979: <4FGL_J1158.5+4824_daily_bin62> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin62> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:26:21 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:26:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:26:22 2021
Terminated at Sat Sep  4 17:42:19 2021
Results reported at Sat Sep  4 17:42:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin62 179.637 48.4161 255398401 255657601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1158.5+4824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             261.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

