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


Performing analysis on: 4FGL_J1358.1+7642_daily_bin73
RA = 209.528, Dec = 76.7064
tmin = 258249601, tmax = 258508801
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='66718', job_status='RUN', time_executed='2021-09-08 18:01:42.462789', time_epoch_executed='1631149302.46' WHERE source_name='4FGL J1358.1+7642' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66718

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66718/ft1_4FGL_J1358.1+7642_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66718/ft1_4FGL_J1358.1+7642_daily_bin73.fits outfile=/scratch/kocevski/66718/ft1_filteredMKT_4FGL_J1358.1+7642_daily_bin73.fits ra=209.528 dec=76.7064 rad=12.0 tmin=258249601.0 tmax=258508801.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.17
user 0.99
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.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/66718/ft1_filteredMKT_4FGL_J1358.1+7642_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/66718/ltcube_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.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/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits
.....................!
real 9.71
user 9.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/66718/ltcube_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.fits outfile=/scratch/kocevski/66718/expmap_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.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/66718/ltcube_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.fits
.....................!
real 191.14
user 185.56
sys 5.04

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/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits scfile=/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits outfile=/scratch/kocevski/66718/cmap_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits scfile=/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits outfile=/scratch/kocevski/66718/cmap_HighResolution_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66718/Model_4FGL_J1358.1+7642_daily_bin73.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/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits....................!
real 59.35
user 57.94
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits', '/scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits', expMap='/scratch/kocevski/66718/expmap_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.fits', expCube='/scratch/kocevski/66718/ltcube_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66718/Model_4FGL_J1358.1+7642_daily_bin73.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/66718/ft1_filtered_4FGL_J1358.1+7642_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/66718/ft2_4FGL_J1358.1+7642_daily_bin73.fits
Exposure map: /scratch/kocevski/66718/expmap_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.fits
Exposure cube: /scratch/kocevski/66718/ltcube_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66718/Model_4FGL_J1358.1+7642_daily_bin73.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) = 4885.48810664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.926       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9003       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6729       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16094E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.149       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.238       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.862       1.0000         .10000E-03   10000.    
    18 'Prefactor '    99.988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.354       1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.971       1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    153.23       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.969       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.480       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .58292       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2801       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=   4885.288     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     4035 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.925        15.476       -.10851E-06   -.91664E-05
   2  norm          4.9002        13.489        .10658E-05   -.66490E-04
   3  Prefactor     4.8701        44.898       -.22098E-05   -.74491E-05
   4  Prefactor     4.6730        4.4444       -.11370E-05    .52745E-03
   5  Prefactor     7.6947        14.435        .15772E-07   -.84800E-05
   6  Prefactor     .10000E-03    21.226        .13684E-05** at limit **
   7  norm          .10000E-03    5.4579        .21121E-06** at limit **
   8  norm          .10000E-03    2.6136       -.79644E-07** at limit **
   9  Prefactor     .10000E-03    45.907        .29671E-05** at limit **
  10  Prefactor     .10000E-03    34.879       -.23024E-05** at limit **
  11  Prefactor     14.150        17.577       -.95051E-07    .30919E-05
  12  Prefactor     .10000E-03    24.725       -.70174E-06** at limit **
  13  Prefactor     12.216        11.159       -.70044E-07   -.23474E-04
  14  Prefactor     11.239        22.529       -.93637E-07   -.33303E-05
  15  Prefactor     .10000E-03    9.1490       -.34928E-07** at limit **
  16  Prefactor     .10000E-03    16.457       -.30882E-08** at limit **
  17  Prefactor     39.855        34.499       -.97156E-06   -.67583E-04
  18  Prefactor     99.987        79.300       -.20419E-06   -.25165E-05
  19  Prefactor     20.349        88.807       -.19244E-05   -.13466E-04
  20  Prefactor     25.965        35.991       -.11147E-05   -.45250E-04
  21  Prefactor     61.673        73.554       -.14307E-05   -.40841E-04
  22  Prefactor     153.23        99.612       -.62204E-06   -.25954E-04
  23  Prefactor     .10000E-03    16.136       -.50723E-06** at limit **
  24  norm          .10000E-03    13.075        .24385E-06** at limit **
  25  Prefactor     .10000E-03    71.134       -.15380E-05** at limit **
  26  Prefactor     .10000E-03    1.7267       -.98899E-08** at limit **
  27  Prefactor     16.958        27.776       -.12844E-05   -.61016E-04
  28  Prefactor     23.470        73.994       -.33013E-05   -.26139E-04
  29  Normalizat    .58297        .22808        .27568E-06   -.22546E-06
  30  Prefactor     1.2800        .17043        .56040E-06   -.40353E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9252
  norm       = 4.90023
  Prefactor  = 4.87007
  Prefactor  = 4.67303
  Prefactor  = 7.69475
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 14.15
  Prefactor  = 0.0001
  Prefactor  = 12.2165
  Prefactor  = 11.2388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.855
  Prefactor  = 99.9869
  Prefactor  = 20.3489
  Prefactor  = 25.9654
  Prefactor  = 61.6733
  Prefactor  = 153.229
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9582
  Prefactor  = 23.47
  Normalizat = 0.582973
  Prefactor  = 1.28002
 **********
 **   18 **HESSE 
 **********

 FCN=   4885.288     FROM HESSE     STATUS=OK           584 CALLS     4619 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.925        15.424        .12121E-03   -1.5047    
   2  norm          4.9002        12.317        .18170E-03   -1.5265    
   3  Prefactor     4.8701        36.696        .18242E-03   -1.5267    
   4  Prefactor     4.6730        4.5991        .72443E-03   -1.5276    
   5  Prefactor     7.6947        13.975        .14437E-03   -1.5153    
   6  Prefactor     .10000E-03    21.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.5064        .15937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.8189        .21408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.150        17.598        .10648E-03   -1.4955    
  12  Prefactor     .10000E-03    24.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.216        11.201        .11460E-03   -1.5009    
  14  Prefactor     11.239        22.518        .11951E-03   -1.5037    
  15  Prefactor     .10000E-03    9.1520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.855        34.700        .63486E-04   -1.4445    
  18  Prefactor     99.987        79.292        .40204E-04   -1.3705    
  19  Prefactor     20.349        89.107        .88779E-04   -1.4805    
  20  Prefactor     25.965        36.183        .78607E-04   -1.4688    
  21  Prefactor     61.673        73.868        .51091E-04   -1.4136    
  22  Prefactor     153.23        99.678        .32564E-04   -1.3226    
  23  Prefactor     .10000E-03    16.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    71.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.7479        .89542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.958        27.957        .97228E-04   -1.4884    
  28  Prefactor     23.470        74.769        .82666E-04   -1.4739    
  29  Normalizat    .58297        .24515        .35493E-03   -1.0871    
  30  Prefactor     1.2800        .18472        .19844E-03   -.83903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78554e-10
Minuit parameter uncertainties:
  1  15.43
  2  12.3234
  3  26.7594
  4  4.59943
  5  13.9814
  6  0.000139371
  7  2.40464e-06
  8  1.75608e-05
  9  0.000448722
  10  0.000279149
  11  17.6047
  12  8.08627e-05
  13  11.2033
  14  22.535
  15  9.45944e-08
  16  3.04229e-05
  17  34.7178
  18  79.3764
  19  85.3784
  20  36.2133
  21  73.9785
  22  99.788
  23  5.09219e-05
  24  1.97422e-05
  25  0.000295122
  26  6.60863e-06
  27  27.979
  28  75.0693
  29  0.245608
  30  0.184816
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  3.985e+01  3.472e+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.280e+00  1.848e-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:  5.830e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 209.528 76.706
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.93e-05

TS (Fixed Index): 1.77
Ra Dec: 209.528 76.706
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66718/likelihoodResults_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.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) = 4884.15736659
delta logL = 1.13086666147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4884.13913033
delta logL = 1.1491029197

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4884.139     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      289 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4574        88.425        .89996E-04    .28360E-02
   2  Index         3.8787        3.6782        .36834E-02    .66233E-03
   3  Normalizat    .49809        .21838        .38195E-03    .44999E-03
   4  Prefactor     1.3252        .17562        .19546E-03    .77190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.45742
  Index      = 3.87874
  Normalizat = 0.498086
  Prefactor  = 1.32523
 **********
 **   18 **HESSE 
 **********

 FCN=   4884.139     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4574        16.650        .35999E-05   -1.5241    
   2  Index         3.8787        1.5500        .14734E-03   -.22618    
   3  Normalizat    .49809        .23143        .15278E-04   -1.1250    
   4  Prefactor     1.3252        .18154        .39092E-04   -.82560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73734e-09
Minuit parameter uncertainties:
  1  16.6643
  2  1.57737
  3  0.23188
  4  0.181632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66718': 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) = 4884.13912985
delta logL = 1.14910340107

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  5.457e+00  1.666e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  3.879e+00  1.577e+00  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.325e+00  1.816e-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:  4.981e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 209.528 76.706
Photon Index (Free Index): 3.88 +/- 1.58
Photon Flux (Free Index): 1.32e-07 +/- 7.95e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.30e-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/66718/cmap_HighResolution_258249601_258508801_4FGL_J1358.1+7642_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='2.02e-05', photon_flux_error='5.66e-08', dlogl='1.15e+00', energy_flux='2.21e-05', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-09-08 18:15:40.808168', photon_index_error2='1.58', photon_index2='3.88', ts='1.77', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.30e-05', EG='0.58', time_epoch_completed='1631150140.81', return_code='0', job_id='66718', GAL2='1.33', EG2='0.50', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='7.95e-08', ts2='4.39', photon_index='2.37' WHERE bin_id='73' AND source_name='4FGL J1358.1+7642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:15:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 66718: <4FGL_J1358.1+7642_daily_bin73> in cluster <slac> Done

Job <4FGL_J1358.1+7642_daily_bin73> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:01:21 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:01:22 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:22 2021
Terminated at Wed Sep  8 18:15:41 2021
Results reported at Wed Sep  8 18:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_daily_bin73 209.528 76.7064 258249601 258508801 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

