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


Performing analysis on: 4FGL_J1358.1+7642_daily_bin680
RA = 209.528, Dec = 76.7064
tmin = 415584001, tmax = 415843201
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='69830', job_status='RUN', time_executed='2021-09-08 18:11:02.725463', time_epoch_executed='1631149862.73' WHERE source_name='4FGL J1358.1+7642' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/69830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/69830/ft1_4FGL_J1358.1+7642_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/69830/ft2_4FGL_J1358.1+7642_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/69830/ft1_4FGL_J1358.1+7642_daily_bin680.fits outfile=/scratch/kocevski/69830/ft1_filteredMKT_4FGL_J1358.1+7642_daily_bin680.fits ra=209.528 dec=76.7064 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.34
user 6.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/69830/ft1_filtered_4FGL_J1358.1+7642_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/69830/ft2_4FGL_J1358.1+7642_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/69830/ltcube_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.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/69830/ft2_4FGL_J1358.1+7642_daily_bin680.fits
.....................!
real 12.32
user 11.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/69830/ft1_filtered_4FGL_J1358.1+7642_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/69830/ft2_4FGL_J1358.1+7642_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/69830/ltcube_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.fits outfile=/scratch/kocevski/69830/expmap_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.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/69830/ltcube_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.fits
.....................!
real 189.77
user 185.26
sys 4.15

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/69830/ft1_filtered_4FGL_J1358.1+7642_daily_bin680.fits scfile=/scratch/kocevski/69830/ft2_4FGL_J1358.1+7642_daily_bin680.fits outfile=/scratch/kocevski/69830/cmap_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.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/69830/ft1_filtered_4FGL_J1358.1+7642_daily_bin680.fits scfile=/scratch/kocevski/69830/ft2_4FGL_J1358.1+7642_daily_bin680.fits outfile=/scratch/kocevski/69830/cmap_HighResolution_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.668       1.0000         .10000E-03   10000.    
     2 'norm      '    7.2028       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.078       1.0000         .10000E-03   10000.    
     8 'norm      '    9.9083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92472       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.631       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.200       1.0000         .10000E-03   10000.    
    20 'Prefactor '    101.35       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .34348       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.367       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.875       1.0000         .10000E-03   10000.    
    24 'norm      '    26.563       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.302       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82652       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=   4002.969     FROM MIGRAD    STATUS=CONVERGED   1417 CALLS     4596 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.666        14.028        .10834E-03   -.10546E-04
   2  norm          7.2004        5.5497        .12482E-03   -.73729E-04
   3  Prefactor     .10000E-03    21.402        .36285E-03** at limit **
   4  Prefactor     .10000E-03    5.3996        .14354E-02** at limit **
   5  Prefactor     .10000E-03    4.9226        .13699E-02** at limit **
   6  Prefactor     .10000E-03    53.384        .18142E-02** at limit **
   7  norm          18.080        12.613        .94199E-04   -.57327E-05
   8  norm          9.9076        5.6658        .10955E-03   -.14269E-04
   9  Prefactor     13.205        145.52        .11049E-03    .41159E-05
  10  Prefactor     .10000E-03    64.050        .18142E-02** at limit **
  11  Prefactor     .10000E-03    31.424        .18142E-02** at limit **
  12  Prefactor     8.0054        96.820        .14157E-03   -.46576E-05
  13  Prefactor     .92281        13.791        .30624E-02    .78745E-04
  14  Prefactor     .10000E-03    25.409        .18142E-02** at limit **
  15  Prefactor     .10000E-03    22.648        .18142E-02** at limit **
  16  Prefactor     .10000E-03    43.409        .36285E-03** at limit **
  17  Prefactor     54.255        46.579        .54468E-04   -.41744E-06
  18  Prefactor     18.632        54.700        .92792E-04   -.31855E-05
  19  Prefactor     46.212        110.45        .58989E-04   -.33149E-05
  20  Prefactor     101.33        65.329        .19968E-03   -.30147E-04
  21  Prefactor     .10002E-03    117.61        .17579    ** at limit **
  22  Prefactor     21.538        127.99        .86652E-04   -.47232E-05
  23  Prefactor     11.879        30.876        .11625E-03    .47921E-05
  24  norm          26.560        25.858        .77727E-04   -.18429E-04
  25  Prefactor     .10000E-03    49.166        .18142E-02** at limit **
  26  Prefactor     .10000E-03    2.5064        .19257E-03** at limit **
  27  Prefactor     .10000E-03    61.772        .18142E-02** at limit **
  28  Prefactor     22.307        76.860        .84817E-04    .20106E-05
  29  Normalizat    1.0773        .27863        .26553E-03    .31897E-05
  30  Prefactor     .82655        .18736        .22557E-03   -.92762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6664
  norm       = 7.20037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0796
  norm       = 9.90757
  Prefactor  = 13.2051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.00537
  Prefactor  = 0.922812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.2545
  Prefactor  = 18.6324
  Prefactor  = 46.2124
  Prefactor  = 101.333
  Prefactor  = 0.000100016
  Prefactor  = 21.5375
  Prefactor  = 11.8787
  norm       = 26.5604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3069
  Normalizat = 1.07728
  Prefactor  = 0.826555
 **********
 **   18 **HESSE 
 **********

 FCN=   4002.969     FROM HESSE     STATUS=OK           568 CALLS     5164 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.666        14.028        .43337E-05   -1.4968    
   2  norm          7.2004        5.5492        .49929E-05   -1.5171    
   3  Prefactor     .10000E-03    21.403        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3997        .28708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9228        .27397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    53.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.080        12.613        .37679E-05   -1.4857    
   8  norm          9.9076        5.6655        .43822E-05   -1.5078    
   9  Prefactor     13.205        145.10        .44194E-05   -1.4981    
  10  Prefactor     .10000E-03    64.052        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0054        96.771        .56629E-05   -1.5142    
  13  Prefactor     .92281        13.600        .12249E-03   -1.5516    
  14  Prefactor     .10000E-03    25.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.410        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     54.255        46.568        .21787E-05   -1.4233    
  18  Prefactor     18.632        54.550        .37117E-05   -1.4844    
  19  Prefactor     46.212        110.45        .11798E-04   -1.4347    
  20  Prefactor     101.33        65.318        .79873E-05   -1.3691    
  21  Prefactor     .10002E-03    126.39        .16819       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.538        128.02        .34661E-05   -1.4779    
  23  Prefactor     11.879        30.873        .46499E-05   -1.5019    
  24  norm          26.560        25.858        .31091E-05   -1.4677    
  25  Prefactor     .10000E-03    49.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.5065        .38514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    61.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     22.307        76.864        .33927E-05   -1.4763    
  29  Normalizat    1.0773        .27833        .10621E-04   -.90485    
  30  Prefactor     .82655        .18746        .90227E-05   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46318e-11
Minuit parameter uncertainties:
  1  14.031
  2  5.5496
  3  5.79048e-05
  4  1.77899e-06
  5  3.45856e-06
  6  1.18307e-05
  7  12.6144
  8  5.66585
  9  87.8177
  10  5.73879e-05
  11  9.45831e-06
  12  55.7789
  13  7.08671
  14  0.000100161
  15  4.23564e-06
  16  0.000101945
  17  46.5994
  18  54.6961
  19  110.94
  20  65.3641
  21  0.00285072
  22  105.36
  23  30.9141
  24  25.8689
  25  1.36387e-05
  26  4.38556e-06
  27  2.54333e-05
  28  77.2077
  29  0.278708
  30  0.187609
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  5.425e+01  4.660e+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:  8.266e-01  1.876e-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:  1.077e+00  2.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 209.528 76.706
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.85e-08 +/- 7.60e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 2.58e-05

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

Saving results to:
/scratch/kocevski/69830/likelihoodResults_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.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) = 4001.65519447
delta logL = 1.31367046377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4001.64328002
delta logL = 1.32558491335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.092       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6704       1.0000          .0000       10.000    
     3 'Normalizat'    .99182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86780       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=   4001.643     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.032        127.34        .30074E-02   -.47431E-03
   2  Index         3.6732        3.0394        .82459E-01   -.69867E-04
   3  Normalizat    .99190        .10207        .46064E-01   -.16229E-03
   4  Prefactor     .86776        .75951E-01    .44593E-01   -.15278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0322
  Index      = 3.67319
  Normalizat = 0.991899
  Prefactor  = 0.867762
 **********
 **   18 **HESSE 
 **********

 FCN=   4001.643     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.032        58.268        .11261E-03   -1.5044    
   2  Index         3.6732        2.2958        .33881E-02   -.26858    
   3  Normalizat    .99190        .24954        .27457E-03   -.93302    
   4  Prefactor     .86776        .18547        .22072E-03   -.97277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95449e-10
Minuit parameter uncertainties:
  1  50.7854
  2  2.3929
  3  0.249836
  4  0.1856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/69830': 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) = 4001.64327598
delta logL = 1.32558895549

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  1.103e+01  5.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  3.673e+00  2.393e+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:  8.678e-01  1.856e-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:  9.919e-01  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 209.528 76.706
Photon Index (Free Index): 3.67 +/- 2.39
Photon Flux (Free Index): 1.80e-07 +/- 1.04e-07
Energy Flux (Free Index): 2.87e-05 +/- 2.27e-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/69830/cmap_HighResolution_415584001_415843201_4FGL_J1358.1+7642_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-02', comment='SUCCESS', photon_flux='8.85e-08', energy_flux2='2.87e-05', photon_flux_error='7.60e-08', dlogl='1.33e+00', energy_flux='3.01e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-08 18:24:33.324970', photon_index_error2='2.39', photon_index2='3.67', ts='2.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.39e-07', energy_flux_error2='2.27e-05', EG='1.08', time_epoch_completed='1631150673.33', return_code='0', job_id='69830', GAL2='0.87', EG2='0.99', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='1.04e-07', ts2='4.89', photon_index='2.37' WHERE bin_id='680' AND source_name='4FGL J1358.1+7642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:24:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 69830: <4FGL_J1358.1+7642_daily_bin680> in cluster <slac> Done

Job <4FGL_J1358.1+7642_daily_bin680> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 18:10:42 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:10:44 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:10:44 2021
Terminated at Wed Sep  8 18:24:34 2021
Results reported at Wed Sep  8 18:24:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_daily_bin680 209.528 76.7064 415584001 415843201 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 :                                   807.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            832 sec.

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

