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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin421
RA = 179.637, Dec = 48.4161
tmin = 348451201, tmax = 348710401
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='196180', job_status='RUN', time_executed='2021-09-04 17:31:38.240094', time_epoch_executed='1630801898.24' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196180

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196180/ft1_4FGL_J1158.5+4824_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196180/ft2_4FGL_J1158.5+4824_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196180/ft1_4FGL_J1158.5+4824_daily_bin421.fits outfile=/scratch/kocevski/196180/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin421.fits ra=179.637 dec=48.4161 rad=12.0 tmin=348451201.0 tmax=348710401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.43
user 3.19
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196180/ft1_filtered_4FGL_J1158.5+4824_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/196180/ft2_4FGL_J1158.5+4824_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/196180/ltcube_348451201_348710401_4FGL_J1158.5+4824_daily_bin421.fits outfile=/scratch/kocevski/196180/expmap_348451201_348710401_4FGL_J1158.5+4824_daily_bin421.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/196180/ltcube_348451201_348710401_4FGL_J1158.5+4824_daily_bin421.fits
.....................!
real 191.79
user 185.76
sys 5.54

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/196180/ft1_filtered_4FGL_J1158.5+4824_daily_bin421.fits scfile=/scratch/kocevski/196180/ft2_4FGL_J1158.5+4824_daily_bin421.fits outfile=/scratch/kocevski/196180/cmap_348451201_348710401_4FGL_J1158.5+4824_daily_bin421.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    167.68       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.660       1.0000         .10000E-03   10000.    
     6 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.149       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5965       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0784       1.0000         .10000E-03   10000.    
    12 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2954       1.0000         .10000E-03   10000.    
    14 'Prefactor '    71.083       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.683       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2315       1.0000         .10000E-03   10000.    
    18 'norm      '    .38171E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.316       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60873       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.745       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3331       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.435       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76079       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2404       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=   6679.016     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2971 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     167.73        113.81        .33428E-04   -.15902E-05
   2  Prefactor     .10000E-03    118.15        .11455E-04** at limit **
   3  Prefactor     .10000E-03    45.307       -.35045E-05** at limit **
   4  Prefactor     .10000E-03    31.388        .83002E-06** at limit **
   5  Prefactor     52.666        67.273        .65555E-05   -.38605E-05
   6  norm          .10000E-03    14.539       -.30551E-07** at limit **
   7  Prefactor     .10000E-03    1.2513        .56706E-08** at limit **
   8  Prefactor     29.151        23.984        .12015E-05   -.91970E-05
   9  norm          .10000E-03    1.7646       -.10134E-06** at limit **
  10  Prefactor     8.6074        81.434        .26147E-04    .60017E-05
  11  norm          2.0789        1.9279       -.61053E-06   -.25601E-03
  12  norm          .10000E-03    8.7614        .12507E-06** at limit **
  13  Prefactor     5.2953        4.3856        .98949E-06   -.22003E-03
  14  Prefactor     71.078        76.243       -.26017E-05   -.32138E-04
  15  norm          .10000E-03    2.5250        .27922E-07** at limit **
  16  Prefactor     49.677        29.089       -.32290E-05   -.18741E-03
  17  norm          1.2315        2.2728        .50866E-06   -.86653E-04
  18  norm          .76610E-01    5.0953        .25279E-05   -.17618E-03
  19  Prefactor     18.279        17.651       -.67277E-05   -.35963E-03
  20  Prefactor     .60890        .75231        .98795E-07   -.14074E-02
  21  Prefactor     24.743        24.066        .27051E-05   -.10904E-03
  22  norm          1.3331        1.5013        .89294E-07   -.61092E-04
  23  Prefactor     19.437        42.120        .55151E-05   -.59142E-05
  24  Normalizat    .76067        .16770       -.24107E-05   -.32581E-03
  25  Prefactor     1.2404        .19552       -.75861E-06   -.32738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 167.73
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.6656
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.151
  norm       = 0.0001
  Prefactor  = 8.60742
  norm       = 2.07887
  norm       = 0.0001
  Prefactor  = 5.29534
  Prefactor  = 71.0785
  norm       = 0.0001
  Prefactor  = 49.677
  norm       = 1.23151
  norm       = 0.0766103
  Prefactor  = 18.279
  Prefactor  = 0.608898
  Prefactor  = 24.7433
  norm       = 1.33313
  Prefactor  = 19.4374
  Normalizat = 0.760674
  Prefactor  = 1.24038
 **********
 **   18 **HESSE 
 **********

 FCN=   6679.016     FROM HESSE     STATUS=OK           439 CALLS     3410 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     167.73        113.50        .15576E-03   -1.3110    
   2  Prefactor     .10000E-03    118.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.666        67.288        .55270E-04   -1.4255    
   6  norm          .10000E-03    14.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2537        .89272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.151        23.986        .74207E-04   -1.4628    
   9  norm          .10000E-03    1.8218        .21165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6074        80.422        .13672E-03   -1.5121    
  11  norm          2.0789        1.9094        .71329E-04   -1.5420    
  12  norm          .10000E-03    8.9144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2953        4.3642        .13332E-03   -1.5248    
  14  Prefactor     71.078        76.479        .47614E-04   -1.4020    
  15  norm          .10000E-03    2.5590        .12681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.677        29.073        .56893E-04   -1.4297    
  17  norm          1.2315        2.2470        .15377E-03   -1.5486    
  18  norm          .76610E-01    5.8835        .54012E-01   -1.5653    
  19  Prefactor     18.279        17.815        .93585E-04   -1.4853    
  20  Prefactor     .60890        4.2516        .55346E-01   -1.5552    
  21  Prefactor     24.743        24.109        .80528E-04   -1.4713    
  22  norm          1.3331        1.4750        .10305E-03   -1.5477    
  23  Prefactor     19.437        42.128        .90853E-04   -1.4826    
  24  Normalizat    .76067        .19656        .26208E-03   -1.0154    
  25  Prefactor     1.2404        .22953        .26301E-03   -.85097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05899e-09
Minuit parameter uncertainties:
  1  113.651
  2  2.86542e-05
  3  9.78274e-06
  4  0.000142639
  5  67.3853
  6  9.80212e-07
  7  3.73675e-07
  8  23.9936
  9  1.49918e-05
  10  52.7136
  11  1.90949
  12  3.66922e-05
  13  4.36449
  14  76.5851
  15  4.36635e-06
  16  29.0813
  17  2.24718
  18  1.342
  19  17.8202
  20  3.21802
  21  24.1185
  22  1.47499
  23  42.1926
  24  0.196744
  25  0.229717
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  4.968e+01  2.908e+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.240e+00  2.297e-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.607e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 179.637 48.416
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 8.35e-08 +/- 4.88e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.52e-05

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) = 6677.58113697
delta logL = 1.43520826167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6677.5621868
delta logL = 1.45415843839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.145       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4146       1.0000          .0000       10.000    
     3 'Normalizat'    .67027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3157       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.

 FCN=   6677.562     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      276 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.130        95.647        .24182E-02   -.49703E-03
   2  Index         3.4158        2.3854        .82788E-01   -.36367E-04
   3  Normalizat    .66989        .74204E-01    .62719E-01   -.64008E-04
   4  Prefactor     1.3168        .84625E-01    .57946E-01   -.21180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1305
  Index      = 3.41584
  Normalizat = 0.669891
  Prefactor  = 1.31677
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.562     FROM HESSE     STATUS=OK            31 CALLS      307 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.130        27.012        .96727E-04   -1.4880    
   2  Index         3.4158        .91002        .33756E-02   -.32239    
   3  Normalizat    .66989        .19390        .27747E-03   -1.0509    
   4  Prefactor     1.3168        .23633        .25623E-03   -.82810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88455e-10
Minuit parameter uncertainties:
  1  27.0314
  2  0.9157
  3  0.194101
  4  0.236518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196180': 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) = 6677.56215866
delta logL = 1.4541865801

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  1.713e+01  2.703e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  3.416e+00  9.157e-01  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.317e+00  2.365e-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:  6.699e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.16
Ra Dec: 179.637 48.416
Photon Index (Free Index): 3.42 +/- 0.92
Photon Flux (Free Index): 1.54e-07 +/- 6.67e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.10e-05

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/196180/cmap_HighResolution_348451201_348710401_4FGL_J1158.5+4824_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.35e-08', energy_flux2='2.62e-05', photon_flux_error='4.88e-08', dlogl='1.45e+00', energy_flux='2.59e-05', photon_flux2='1.54e-07', job_status='DONE', time_completed='2021-09-04 17:43:44.263301', photon_index_error2='0.92', photon_index2='3.42', ts='5.81', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.76', time_epoch_completed='1630802624.26', return_code='0', job_id='196180', GAL2='1.32', EG2='0.67', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.67e-08', ts2='9.16', photon_index='2.44' WHERE bin_id='421' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:43:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 196180: <4FGL_J1158.5+4824_daily_bin421> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin421> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:31:22 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:31:24 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:31:24 2021
Terminated at Sat Sep  4 17:43:45 2021
Results reported at Sat Sep  4 17:43:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin421 179.637 48.4161 348451201 348710401 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 :                                   723.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            743 sec.

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

