/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1358.1+7642_daily_bin17
RA = 209.528, Dec = 76.7064
tmin = 243734401, tmax = 243993601
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='66637', job_status='RUN', time_executed='2021-09-08 18:02:15.062911', time_epoch_executed='1631149335.06' WHERE source_name='4FGL J1358.1+7642' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66637/ft1_4FGL_J1358.1+7642_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66637/ft1_4FGL_J1358.1+7642_daily_bin17.fits outfile=/scratch/kocevski/66637/ft1_filteredMKT_4FGL_J1358.1+7642_daily_bin17.fits ra=209.528 dec=76.7064 rad=12.0 tmin=243734401.0 tmax=243993601.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.44
user 1.20
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.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/66637/ft1_filteredMKT_4FGL_J1358.1+7642_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/66637/ltcube_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.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/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits
.....................!
real 12.56
user 12.19
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/66637/ltcube_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.fits outfile=/scratch/kocevski/66637/expmap_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.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/66637/ltcube_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.fits
.....................!
real 192.69
user 187.58
sys 4.74

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

Setting source of interest to:
4FGL J1358.1+7642 @ 209.528 76.7064

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits scfile=/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits outfile=/scratch/kocevski/66637/cmap_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.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=209.528 yref=76.7064 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits scfile=/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits outfile=/scratch/kocevski/66637/cmap_HighResolution_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.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=209.528 yref=76.7064 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/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66637/Model_4FGL_J1358.1+7642_daily_bin17.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/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits.....................!
real 76.41
user 75.05
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits', '/scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits', expMap='/scratch/kocevski/66637/expmap_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.fits', expCube='/scratch/kocevski/66637/ltcube_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66637/Model_4FGL_J1358.1+7642_daily_bin17.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1358.1+7642'

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  5.684e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/66637/ft1_filtered_4FGL_J1358.1+7642_daily_bin17.fits
Spacecraft file(s): /scratch/kocevski/66637/ft2_4FGL_J1358.1+7642_daily_bin17.fits
Exposure map: /scratch/kocevski/66637/expmap_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.fits
Exposure cube: /scratch/kocevski/66637/ltcube_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66637/Model_4FGL_J1358.1+7642_daily_bin17.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) = 6879.5887464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0070       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.986       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9607       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.079       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38495E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.534       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.339       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.692       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11511E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8695       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .61815E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    69.293       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .61132       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1937       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6879.579     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3891 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7831        .14216E-06** at limit **
   2  norm          3.0074        2.8076        .73649E-07   -.25833E-04
   3  Prefactor     .10000E-03    2.8004       -.29792E-08** at limit **
   4  Prefactor     .10000E-03    1.8008        .62736E-07** at limit **
   5  Prefactor     10.268        10.144       -.24523E-06   -.49861E-04
   6  Prefactor     .10000E-03    21.966        .51829E-06** at limit **
   7  norm          .10000E-03    1.4043       -.67746E-07** at limit **
   8  norm          .10000E-03    1.7622       -.41214E-07** at limit **
   9  Prefactor     66.985        66.053        .11902E-06   -.78462E-05
  10  Prefactor     .10000E-03    17.127        .48572E-07** at limit **
  11  Prefactor     5.0304        15.851        .67702E-05   -.29529E-03
  12  Prefactor     .10000E-03    9.1439        .13401E-06** at limit **
  13  Prefactor     .10000E-03    5.4459        .83645E-07** at limit **
  14  Prefactor     4.9600        12.902        .33405E-06    .50204E-05
  15  Prefactor     .10000E-03    6.8149        .42773E-07** at limit **
  16  Prefactor     .10000E-03    3.0169        .33997E-07** at limit **
  17  Prefactor     48.080        22.581        .92540E-07   -.70704E-05
  18  Prefactor     .10017E-03    343.89       -.21531E-04** at limit **
  19  Prefactor     78.531        63.766       -.28089E-06   -.39413E-04
  20  Prefactor     48.345        37.764        .84848E-06    .70347E-04
  21  Prefactor     .10001E-03    61.625       -.28435E-05** at limit **
  22  Prefactor     37.693        40.588       -.16720E-07    .84532E-05
  23  Prefactor     .10001E-03    71.828        .46061E-05** at limit **
  24  norm          .10000E-03    10.691        .19767E-06** at limit **
  25  Prefactor     .10000E-03    107.54       -.18525E-05** at limit **
  26  Prefactor     1.8687        2.7511        .29606E-06   -.21298E-03
  27  Prefactor     .10004E-03    14.932        .38868E-06** at limit **
  28  Prefactor     69.303        88.504        .14228E-05    .61591E-04
  29  Normalizat    .61133        .16646       -.87689E-06   -.63487E-05
  30  Prefactor     1.1937        .13241       -.50523E-06    .21836E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.00738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2678
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 66.9853
  Prefactor  = 0.0001
  Prefactor  = 5.03042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.08
  Prefactor  = 0.000100171
  Prefactor  = 78.5306
  Prefactor  = 48.3451
  Prefactor  = 0.000100005
  Prefactor  = 37.6933
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.86867
  Prefactor  = 0.00010004
  Prefactor  = 69.3026
  Normalizat = 0.611325
  Prefactor  = 1.19373
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.579     FROM HESSE     STATUS=OK           574 CALLS     4465 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8036        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0074        2.7963        .12896E-03   -1.5361    
   3  Prefactor     .10000E-03    2.8055        .13547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8092        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.268        10.098        .12503E-03   -1.5067    
   6  Prefactor     .10000E-03    22.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4081        .95987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7858        .10720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     66.985        66.084        .49039E-04   -1.4069    
  10  Prefactor     .10000E-03    17.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0304        16.544        .89642E-03   -1.5259    
  12  Prefactor     .10000E-03    9.1471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6596        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9600        12.888        .18057E-03   -1.5263    
  15  Prefactor     .10000E-03    6.8589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0258        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.080        22.588        .57830E-04   -1.4320    
  18  Prefactor     .10017E-03    383.81        .42562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     78.531        63.826        .22658E-03   -1.3933    
  20  Prefactor     48.345        37.901        .57675E-04   -1.4316    
  21  Prefactor     .10001E-03    62.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.693        40.593        .32641E-03   -1.4479    
  23  Prefactor     .10001E-03    76.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    108.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.8687        2.5604        .15030E-03   -1.5435    
  27  Prefactor     .10004E-03    101.23        .57956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     69.303        89.194        .48221E-04   -1.4041    
  29  Normalizat    .61133        .18339        .31303E-03   -1.0751    
  30  Prefactor     1.1937        .14725        .18988E-03   -.86524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60148e-09
Minuit parameter uncertainties:
  1  1.69528e-05
  2  2.79638
  3  2.1693e-07
  4  4.8021e-06
  5  10.0992
  6  0.000130824
  7  3.73046e-06
  8  1.34913e-06
  9  66.1565
  10  1.30626e-05
  11  16.5594
  12  2.29161e-05
  13  3.3466e-05
  14  12.8956
  15  2.58776e-05
  16  3.77426e-06
  17  22.5915
  18  0.0162855
  19  63.882
  20  37.9203
  21  0.00113451
  22  40.6228
  23  0.0015882
  24  3.45175e-05
  25  0.00101213
  26  2.56052
  27  0.00400919
  28  89.3671
  29  0.183568
  30  0.147297
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  4.808e+01  2.259e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.194e+00  1.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  6.113e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.40
Ra Dec: 209.528 76.706
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.85e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.25e-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) = 6879.20441723
delta logL = 0.374951360393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6879.20421728
delta logL = 0.375151314557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.241       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0550       1.0000          .0000       10.000    
     3 'Normalizat'    .62895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6879.204     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      270 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.130        671.95        .12818E-02    .25277E-05
   2  Index         2.0533        6.0201        .15092        .61862E-04
   3  Normalizat    .62913        .13846        .69799E-01    .33338E-04
   4  Prefactor     1.1852        .90032E-01    .34991E-01   -.18646E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.1299
  Index      = 2.05326
  Normalizat = 0.629133
  Prefactor  = 1.18522
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.204     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.130        31.377        .51273E-04   -1.4143    
   2  Index         2.0533        .35703        .58172E-02   -.63025    
   3  Normalizat    .62913        .17358        .30893E-03   -1.0676    
   4  Prefactor     1.1852        .14257        .19048E-03   -.86788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07981e-12
Minuit parameter uncertainties:
  1  31.3852
  2  0.357495
  3  0.173734
  4  0.142611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66637': 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) = 6879.20419216
delta logL = 0.375176436397

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  6.113e+01  3.139e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.053e+00  3.575e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.185e+00  1.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  6.291e-01  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.13
Ra Dec: 209.528 76.706
Photon Index (Free Index): 2.05 +/- 0.36
Photon Flux (Free Index): 6.27e-08 +/- 3.66e-08
Energy Flux (Free Index): 3.82e-05 +/- 2.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/66637/cmap_HighResolution_243734401_243993601_4FGL_J1358.1+7642_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.85e-08', energy_flux2='3.82e-05', photon_flux_error='3.68e-08', dlogl='3.75e-01', energy_flux='2.67e-05', photon_flux2='6.27e-08', job_status='DONE', time_completed='2021-09-08 18:17:48.854178', photon_index_error2='0.36', photon_index2='2.05', ts='11.40', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='0.61', time_epoch_completed='1631150268.85', return_code='0', job_id='66637', GAL2='1.19', EG2='0.63', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.66e-08', ts2='12.13', photon_index='2.37' WHERE bin_id='17' AND source_name='4FGL J1358.1+7642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:17:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 66637: <4FGL_J1358.1+7642_daily_bin17> in cluster <slac> Done

Job <4FGL_J1358.1+7642_daily_bin17> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:01:15 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:01:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 18:01:16 2021
Terminated at Wed Sep  8 18:17:49 2021
Results reported at Wed Sep  8 18:17:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_daily_bin17 209.528 76.7064 243734401 243993601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1358.1+7642 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   910.45 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

