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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin40
RA = 179.637, Dec = 48.4161
tmin = 249696001, tmax = 249955201
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='194957', job_status='RUN', time_executed='2021-09-04 17:29:12.153684', time_epoch_executed='1630801752.15' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194957/ft1_4FGL_J1158.5+4824_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194957/ft1_4FGL_J1158.5+4824_daily_bin40.fits outfile=/scratch/kocevski/194957/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin40.fits ra=179.637 dec=48.4161 rad=12.0 tmin=249696001.0 tmax=249955201.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.46
user 1.29
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.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/194957/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/194957/ft1_filtered_4FGL_J1158.5+4824_daily_bin40.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194957/ft1_filtered_4FGL_J1158.5+4824_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/194957/ltcube_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.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/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits
.....................!
real 13.00
user 12.68
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194957/ft1_filtered_4FGL_J1158.5+4824_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/194957/ltcube_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.fits outfile=/scratch/kocevski/194957/expmap_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.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/194957/ltcube_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.fits
.....................!
real 191.93
user 187.17
sys 4.34

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/194957/ft1_filtered_4FGL_J1158.5+4824_daily_bin40.fits scfile=/scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits outfile=/scratch/kocevski/194957/cmap_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194957/ft1_filtered_4FGL_J1158.5+4824_daily_bin40.fits scfile=/scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits outfile=/scratch/kocevski/194957/cmap_HighResolution_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/194957/ft1_filtered_4FGL_J1158.5+4824_daily_bin40.fits', '/scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits', expMap='/scratch/kocevski/194957/expmap_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.fits', expCube='/scratch/kocevski/194957/ltcube_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/194957/Model_4FGL_J1158.5+4824_daily_bin40.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/194957/ft1_filtered_4FGL_J1158.5+4824_daily_bin40.fits
Spacecraft file(s): /scratch/kocevski/194957/ft2_4FGL_J1158.5+4824_daily_bin40.fits
Exposure map: /scratch/kocevski/194957/expmap_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.fits
Exposure cube: /scratch/kocevski/194957/ltcube_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/194957/Model_4FGL_J1158.5+4824_daily_bin40.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) = 4546.60130504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12630E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    167.27       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38668E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8813       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3612       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1510       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0902       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0235       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1638       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8867       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3214       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96491       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87834       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=   4546.598     FROM MIGRAD    STATUS=CONVERGED   1037 CALLS     3354 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    171.60        .18142E-02** at limit **
   2  Prefactor     .10000E-03    141.31        .18142E-02** at limit **
   3  Prefactor     167.22        125.58        .15595E-03    .10133E-04
   4  Prefactor     .10002E-03    55.219        .15625    ** at limit **
   5  Prefactor     .10000E-03    35.220        .18142E-02** at limit **
   6  norm          .10000E-03    20.734        .18142E-02** at limit **
   7  Prefactor     6.8816        8.6355        .15294E-03    .72326E-04
   8  Prefactor     .10000E-03    32.393        .18142E-02** at limit **
   9  norm          2.8549        2.5074        .96669E-04    .25050E-03
  10  Prefactor     1.3585        84.218        .18714E-02    .87478E-05
  11  norm          .10000E-03    1.0864        .88729E-03** at limit **
  12  norm          7.1488        7.2806        .15000E-03    .90538E-04
  13  Prefactor     .10001E-03    5.7677        .21709E-02** at limit **
  14  Prefactor     .10000E-03    14.642        .18142E-02** at limit **
  15  norm          .10000E-03    13.732        .36285E-03** at limit **
  16  Prefactor     6.1258        23.623        .16269E-03   -.18819E-03
  17  norm          2.0230        2.8398        .12569E-03   -.30220E-03
  18  norm          4.9562        5.8795        .16866E-03   -.33030E-05
  19  Prefactor     7.1634        14.471        .14987E-03    .62203E-05
  20  Prefactor     3.8878        6.6707        .20467E-03    .35328E-04
  21  Prefactor     .10000E-03    31.317        .18142E-02** at limit **
  22  norm          4.3215        2.4287        .76264E-04   -.25640E-04
  23  Prefactor     .10000E-03    17.042        .18142E-02** at limit **
  24  Normalizat    .96484        .20689        .21397E-03    .17693E-03
  25  Prefactor     .87847        .24207        .27352E-03    .29245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 167.22
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.88163
  Prefactor  = 0.0001
  norm       = 2.8549
  Prefactor  = 1.35852
  norm       = 0.000100001
  norm       = 7.14883
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.12583
  norm       = 2.02305
  norm       = 4.95624
  Prefactor  = 7.16337
  Prefactor  = 3.88776
  Prefactor  = 0.000100001
  norm       = 4.32151
  Prefactor  = 0.0001
  Normalizat = 0.964841
  Prefactor  = 0.878471
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.598     FROM HESSE     STATUS=OK           413 CALLS     3767 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    171.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    141.31        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     167.22        125.58        .31190E-04   -1.3114    
   4  Prefactor     .10002E-03    55.165        .15637       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8816        8.6348        .61177E-05   -1.5183    
   8  Prefactor     .10000E-03    32.397        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8549        2.5064        .38668E-05   -1.5370    
  10  Prefactor     1.3585        84.070        .74857E-04   -1.5475    
  11  norm          .10000E-03    1.0922        .17746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1488        7.2805        .30001E-04   -1.5173    
  13  Prefactor     .10001E-03    5.7811        .43417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.733        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1258        23.594        .65076E-05   -1.5213    
  17  norm          2.0230        2.8393        .50275E-05   -1.5423    
  18  norm          4.9562        5.8789        .67462E-05   -1.5263    
  19  Prefactor     7.1634        14.469        .59948E-05   -1.5173    
  20  Prefactor     3.8878        6.6703        .81867E-05   -1.5314    
  21  Prefactor     .10000E-03    31.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3215        2.4286        .30506E-05   -1.5292    
  23  Prefactor     .10000E-03    17.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96484        .20697        .42793E-04   -.94218    
  25  Prefactor     .87847        .24226        .54705E-04   -.96897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01888e-09
Minuit parameter uncertainties:
  1  0.000220304
  2  0.000109138
  3  125.785
  4  0.00191882
  5  1.43105e-05
  6  7.08094e-06
  7  8.63635
  8  8.66673e-05
  9  2.5065
  10  21.4046
  11  6.92489e-05
  12  7.28139
  13  0.000542998
  14  2.82184e-06
  15  0.000240566
  16  23.6304
  17  2.83947
  18  5.87963
  19  14.4763
  20  6.67155
  21  0.00034136
  22  2.42868
  23  2.10921e-05
  24  0.20714
  25  0.242555
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  6.126e+00  2.363e+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:  8.785e-01  2.426e-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:  9.648e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194957/likelihoodResults_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.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) = 4546.50410831
delta logL = 0.0937504279264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4546.49870396
delta logL = 0.0991547798285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7012       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0991       1.0000          .0000       10.000    
     3 'Normalizat'    .95048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88654       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=   4546.499     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      240 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7003        18.870        .18559E-03   -.27786E-03
   2  Index         3.0991        1.9074        .79495E-02   -.10088E-03
   3  Normalizat    .95051        .19996        .21542E-03   -.37246E-03
   4  Prefactor     .88647        .24174        .27239E-03   -.23630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70028
  Index      = 3.09913
  Normalizat = 0.950514
  Prefactor  = 0.886472
 **********
 **   18 **HESSE 
 **********

 FCN=   4546.499     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7003        14.854        .74237E-05   -1.5274    
   2  Index         3.0991        1.5202        .31798E-03   -.38999    
   3  Normalizat    .95051        .20019        .43083E-04   -.94707    
   4  Prefactor     .88647        .24165        .54478E-04   -.96615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74991e-10
Minuit parameter uncertainties:
  1  14.8652
  2  1.54896
  3  0.200343
  4  0.241944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194957': 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) = 4546.4987039
delta logL = 0.0991548312768

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  4.700e+00  1.487e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.099e+00  1.549e+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:  8.865e-01  2.419e-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:  9.505e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/194957/cmap_HighResolution_249696001_249955201_4FGL_J1158.5+4824_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-04 17:40:31.533257', job_id='194957', GAL2='0.89', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1630802431.53', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='9.92e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='40' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 194957: <4FGL_J1158.5+4824_daily_bin40> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin40> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:26:18 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:26:19 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:19 2021
Terminated at Sat Sep  4 17:40:32 2021
Results reported at Sat Sep  4 17:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin40 179.637 48.4161 249696001 249955201 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 :                                   678.33 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             288.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

