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


Performing analysis on: 4FGL_J1158.5+4824_monthly_bin118
RA = 179.637, Dec = 48.4161
tmin = 542851201, tmax = 545443201
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='675986', job_status='RUN', time_executed='2021-10-23 05:40:39.944234', time_epoch_executed='1634992839.94' WHERE source_name='4FGL J1158.5+4824' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675986

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675986/ft1_4FGL_J1158.5+4824_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675986/ft2_4FGL_J1158.5+4824_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675986/ft1_4FGL_J1158.5+4824_monthly_bin118.fits outfile=/scratch/kocevski/675986/ft1_filteredMKT_4FGL_J1158.5+4824_monthly_bin118.fits ra=179.637 dec=48.4161 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.71
user 17.83
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675986/ft2_4FGL_J1158.5+4824_monthly_bin118.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/675986/ft1_filteredMKT_4FGL_J1158.5+4824_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/675986/ft1_filtered_4FGL_J1158.5+4824_monthly_bin118.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.59
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675986/ft1_filtered_4FGL_J1158.5+4824_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/675986/ft2_4FGL_J1158.5+4824_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/675986/ltcube_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.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/675986/ft2_4FGL_J1158.5+4824_monthly_bin118.fits
.....................!
real 41.01
user 40.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675986/ft1_filtered_4FGL_J1158.5+4824_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/675986/ft2_4FGL_J1158.5+4824_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/675986/ltcube_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.fits outfile=/scratch/kocevski/675986/expmap_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.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/675986/ltcube_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.fits
.....................!
real 192.25
user 186.54
sys 4.99

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/675986/ft1_filtered_4FGL_J1158.5+4824_monthly_bin118.fits scfile=/scratch/kocevski/675986/ft2_4FGL_J1158.5+4824_monthly_bin118.fits outfile=/scratch/kocevski/675986/cmap_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.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.61
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675986/ft1_filtered_4FGL_J1158.5+4824_monthly_bin118.fits scfile=/scratch/kocevski/675986/ft2_4FGL_J1158.5+4824_monthly_bin118.fits outfile=/scratch/kocevski/675986/cmap_HighResolution_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.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.61
user 0.46
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1195.1       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4361       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .74410E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4855       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=   730.4650     FROM MIGRAD    STATUS=CONVERGED    992 CALLS     3635 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1195.1        1452.9        .12331E-04    .11064E-05
   2  Prefactor     .10000E-03    1296.7        .18142E-02** at limit **
   3  Prefactor     .10000E-03    379.76        .18142E-02** at limit **
   4  Prefactor     .10000E-03    420.49        .18142E-02** at limit **
   5  Prefactor     .10000E-03    504.11        .18142E-02** at limit **
   6  norm          .10000E-03    463.10        .18142E-02** at limit **
   7  Prefactor     .10000E-03    71.496        .18142E-02** at limit **
   8  Prefactor     .10000E-03    466.28        .18142E-02** at limit **
   9  norm          3.7478        5.4919        .72672E-04    .82677E-04
  10  Prefactor     .10000E-03    39.179        .16536E-02** at limit **
  11  norm          1.4361        1.8502        .39915E-04    .15865E-03
  12  norm          .10000E-03    15.954        .10537E-02** at limit **
  13  Prefactor     15.847        29.639        .10061E-03    .23446E-05
  14  Prefactor     .10000E-03    55.989        .18142E-02** at limit **
  15  norm          .10000E-03    139.18        .18142E-02** at limit **
  16  Prefactor     .10000E-03    96.341        .18142E-02** at limit **
  17  norm          .10000E-03    34.079        .15422E-02** at limit **
  18  norm          .10000E-03    23.752        .12873E-02** at limit **
  19  Prefactor     .10000E-03    65.995        .18142E-02** at limit **
  20  Prefactor     .10000E-03    126.92        .18142E-02** at limit **
  21  Prefactor     .10000E-03    1898.2        .36285E-03** at limit **
  22  norm          .10000E-03    13.212        .95990E-03** at limit **
  23  Prefactor     .10000E-03    83.845        .18142E-02** at limit **
  24  Normalizat    .74361E-01    1.0405        .67860E-02    .78103E-05
  25  Prefactor     1.4856        .64412        .19815E-03    .13024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1195.13
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.74782
  Prefactor  = 0.0001
  norm       = 1.43607
  norm       = 0.0001
  Prefactor  = 15.8469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.0743609
  Prefactor  = 1.48556
 **********
 **   18 **HESSE 
 **********

 FCN=   730.4650     FROM HESSE     STATUS=OK           403 CALLS     4038 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1195.1        1448.6        .24662E-05   -.86481    
   2  Prefactor     .10000E-03    1296.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    379.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    420.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    504.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    463.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    71.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    466.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7478        5.4918        .29069E-05   -1.5321    
  10  Prefactor     .10000E-03    39.180        .33071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4361        1.8501        .15966E-05   -1.5468    
  12  norm          .10000E-03    15.955        .21074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.847        29.634        .40245E-05   -1.4912    
  14  Prefactor     .10000E-03    55.989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    139.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    96.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    34.079        .30844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    23.752        .25745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    65.996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    126.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1898.2        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.212        .19198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    83.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .74361E-01    .90962        .27144E-03   -1.4101    
  25  Prefactor     1.4856        .60208        .79258E-05   -.77945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26324e-11
Minuit parameter uncertainties:
  1  1501.62
  2  0.00101226
  3  4.65598e-05
  4  6.08153e-05
  5  2.36357e-05
  6  1.84851e-05
  7  7.47367e-06
  8  1.74769e-05
  9  5.49256
  10  2.14209e-05
  11  1.85017
  12  1.95044e-05
  13  29.6617
  14  5.56272e-05
  15  6.87966e-07
  16  4.63943e-05
  17  4.30347e-07
  18  3.75489e-06
  19  7.90831e-06
  20  9.80644e-06
  21  0.00298136
  22  2.36735e-07
  23  3.00498e-05
  24  0.493285
  25  0.604993
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  4.639e-05  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.486e+00  6.050e-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.436e-02  4.933e-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: 6.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675986/likelihoodResults_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.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) = 730.465064361
delta logL = -4.76198309798e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 730.465017005
delta logL = -2.63982656179e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9217       1.0000          .0000       10.000    
     3 'Normalizat'    .74352E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4856       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=   730.4650     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      291 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10371E-03    64.630        .18142E-01** at limit **
   2  Index         2.8237        8.2276        .50000        .32769E-05
   3  Normalizat    .74361E-01    .93583E-02    .67861E-02    .23227E-04
   4  Prefactor     1.4856        .11350E-01    .19815E-03    .81575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103711
  Index      = 2.82369
  Normalizat = 0.0743605
  Prefactor  = 1.48556
 **********
 **   18 **HESSE 
 **********

 FCN=   730.4650     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      322 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10371E-03    519.52        .22348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8237        6.3042        .50000       -.45033    
   3  Normalizat    .74361E-01    .26881E-01    .27144E-03   -1.4101    
   4  Prefactor     1.4856        .32602E-01    .39629E-04   -.77945    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.10148e-10
Minuit parameter uncertainties:
  1  0.088601
  2  854.886
  3  0.0268858
  4  0.0326027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675986': 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): 102
logL (Free Index) = 730.465016946
delta logL = -2.04645516533e-07

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.037e-04  8.860e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.824e+00  8.549e+02  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.486e+00  3.260e-02  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.436e-02  2.689e-02  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/675986/cmap_HighResolution_542851201_545443201_4FGL_J1158.5+4824_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-02', job_status='DONE', photon_flux_upper_limit='6.59e-07', time_completed='2021-10-23 05:49:49.591033', job_id='675986', GAL2='1.49', fit_tolerance='1e-08', EG2='0.07', EG='0.07', time_epoch_completed='1634993389.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='-2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='118' AND source_name='4FGL J1158.5+4824' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 05:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 675986: <4FGL_J1158.5+4824_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1158.5+4824_monthly_bin118> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Oct 23 05:40:19 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 23 05:40:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 23 05:40:21 2021
Terminated at Sat Oct 23 05:49:51 2021
Results reported at Sat Oct 23 05:49:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_monthly_bin118 179.637 48.4161 542851201 545443201 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 :                                   514.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            572 sec.

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

