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


Performing analysis on: 4FGL_J1359.8-3746_daily_bin1375
RA = 209.967, Dec = -37.7681
tmin = 595728001, tmax = 595987201
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='111837', job_status='RUN', time_executed='2021-09-08 20:33:56.289568', time_epoch_executed='1631158436.29' WHERE source_name='4FGL J1359.8-3746' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111837

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111837/ft1_4FGL_J1359.8-3746_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111837/ft1_4FGL_J1359.8-3746_daily_bin1375.fits outfile=/scratch/kocevski/111837/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1375.fits ra=209.967 dec=-37.7681 rad=12.0 tmin=595728001.0 tmax=595987201.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 2.57
user 2.37
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.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/111837/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1375.fits evtable="EVENTS" outfile="/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/111837/ltcube_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.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/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits
.....................!
real 12.42
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/111837/ltcube_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.fits outfile=/scratch/kocevski/111837/expmap_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.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/111837/ltcube_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.fits
.....................!
real 191.22
user 185.47
sys 5.44

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 223 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1359.8-3746 @ 209.967 -37.7681

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits scfile=/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits outfile=/scratch/kocevski/111837/cmap_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.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.967 yref=-37.7681 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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits scfile=/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits outfile=/scratch/kocevski/111837/cmap_HighResolution_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.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.967 yref=-37.7681 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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111837/Model_4FGL_J1359.8-3746_daily_bin1375.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits......................!
real 32.16
user 30.31
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits', '/scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits', expMap='/scratch/kocevski/111837/expmap_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.fits', expCube='/scratch/kocevski/111837/ltcube_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/111837/Model_4FGL_J1359.8-3746_daily_bin1375.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.8-3746'

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  9.643e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.037e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.785e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/111837/ft1_filtered_4FGL_J1359.8-3746_daily_bin1375.fits
Spacecraft file(s): /scratch/kocevski/111837/ft2_4FGL_J1359.8-3746_daily_bin1375.fits
Exposure map: /scratch/kocevski/111837/expmap_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.fits
Exposure cube: /scratch/kocevski/111837/ltcube_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/111837/Model_4FGL_J1359.8-3746_daily_bin1375.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) = 967.392375801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8403       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10577E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61987E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17642E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16018E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4598.6       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21369E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .98910E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'norm      '    .40536E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.933       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27915E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .38650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   966.3487     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     3140 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.309        .21738E-08** at limit **
   2  Prefactor     .10000E-03    3.1080        .26582E-08** at limit **
   3  norm          2.8342        9.7957       -.48026E-06   -.27502E-04
   4  Prefactor     .10523E-03    182.95        .32948E-05** at limit **
   5  Prefactor     .10010E-03    67.851       -.33599E-05** at limit **
   6  norm          .10000E-03    50.452        .85120E-06** at limit **
   7  norm          .10000E-03    38.085       -.13700E-06** at limit **
   8  norm          .10000E-03    18.163       -.44590E-07** at limit **
   9  Prefactor     .10000E-03    8.2507       -.21042E-07** at limit **
  10  Prefactor     .10220E-03    43.499       -.76107E-06** at limit **
  11  Prefactor     .14937E-03    291.87       -.47845E-05** at limit **
  12  Prefactor     .34567E-02    539.54        .34379E-05    .41461E-03
  13  Prefactor     .11220E-02    75.887        .90271E-06** at limit **
  14  Prefactor     .21364E-02    99.029       -.13282E-05** at limit **
  15  norm          4598.6        1.0446       -.50010E-09   -.43391E-03
  16  Prefactor     .26300E-02    315.63        .21253E-05   -.89565E-03
  17  norm         10000.0        77.272       -.39160E-05** at limit **
  18  Prefactor     .21750E-01    6151.3        .74077E-05    .79722E-03
  19  Prefactor     .74473E-03    1200.5        .50297E-05** at limit **
  20  Prefactor    10000.0        5.0118       -.33143E-06** at limit **
  21  norm          .13091E-02    802.37        .38359E-05** at limit **
  22  Prefactor     59.019        10.757       -.11513E-06   -.23552E-02
  23  Prefactor     .43827E-03    13.797       -.14480E-06** at limit **
  24  norm          .10026E-03    54.280       -.13615E-05** at limit **
  25  Normalizat    .10000E-01    .80726E-01   -.56824E-07** at limit **
  26  Prefactor     .38659        .10682        .33772E-07   -.52608E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83422
  Prefactor  = 0.000105234
  Prefactor  = 0.000100103
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102199
  Prefactor  = 0.000149368
  Prefactor  = 0.00345672
  Prefactor  = 0.001122
  Prefactor  = 0.00213636
  norm       = 4598.64
  Prefactor  = 0.00263001
  norm       = 10000
  Prefactor  = 0.0217502
  Prefactor  = 0.000744735
  Prefactor  = 10000
  norm       = 0.00130906
  Prefactor  = 59.0193
  Prefactor  = 0.000438271
  norm       = 0.000100264
  Normalizat = 0.01
  Prefactor  = 0.386587
 **********
 **   18 **HESSE 
 **********

 FCN=   966.3487     FROM HESSE     STATUS=OK           484 CALLS     3624 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8342        9.7955        .60318E-02   -1.5371    
   4  Prefactor     .10523E-03    171.51        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10010E-03    66.064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    49.455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    37.519        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10220E-03    90.823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14937E-03    269.95        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .34567E-02    1713.0        .93284E-02   -1.5696    
  13  Prefactor     .11220E-02    1242.3        .10169E-01   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .21364E-02    594.30        .10209E-01   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4598.6        3369.2        .20065E-03   -.80358E-01
  16  Prefactor     .26300E-02    1255.6        .90712E-02   -1.5718    
  17  norm         10000.0        75.940        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .21750E-01    1821.1        .10463E-01   -1.5679    
  19  Prefactor     .74473E-03    1637.2        .95060E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        1912.2        .10354E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .13091E-02    1461.4        .92238E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     59.019        2271.4        .13065E-02   -1.4170    
  23  Prefactor     .43827E-03    774.35        .10710E-01   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10026E-03    93.506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .77919E-01    .12363       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .38659        .10780        .38057E-01   -1.1750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32396e-06
Minuit parameter uncertainties:
  1  1.35762e-07
  2  7.4242e-08
  3  9.80102
  4  0.0600969
  5  0.00521598
  6  0.000125949
  7  6.56503e-06
  8  3.13337e-06
  9  9.54745e-07
  10  0.0283089
  11  0.231934
  12  4.9445
  13  2.30308
  14  2.2226
  15  3699.73
  16  3.64381
  17  0.0166447
  18  12.9746
  19  2.11546
  20  1.24152
  21  2.72789
  22  765.969
  23  1.03729
  24  0.00994353
  25  7.96361e-09
  26  0.107852
Done.

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

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.022e-04  2.831e-02  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.037e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  2.785e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  3.866e-01  1.079e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.000e-02  7.964e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.967 -37.768
Photon Flux Upper Limit: 4.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/111837/likelihoodResults_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 966.34871068
delta logL = -5.03711617057e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 966.348660594
delta logL = -2.85569740299e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   966.3487     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.618        .90712E-02** at limit **
   2  Index         2.1316        5.8082        .50000        .51133E-05
   3  Normalizat    .10000E-01    .12054E-03    .12364    ** at limit **
   4  Prefactor     .38659        .40148E-02    .38058E-01   -.12386E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13162
  Normalizat = 0.01
  Prefactor  = 0.386587
 **********
 **   18 **HESSE 
 **********

 FCN=   966.3487     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    293.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1316        6.6928        .50000       -.61099    
   3  Normalizat    .10000E-01    .61176E-03    .27127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38659        .89719E-02    .16264E-03   -1.1750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.87352e-08
Minuit parameter uncertainties:
  1  0.000749349
  2  242.378
  3  2.1426e-07
  4  0.00897192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111837': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 966.348660401
delta logL = -9.25806489249e-08

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  7.493e-04  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.132e+00  2.424e+02  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  2.785e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  3.866e-01  8.972e-03  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  1.000e-02  2.143e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.967 -37.768

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/111837/cmap_HighResolution_595728001_595987201_4FGL_J1359.8-3746_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-02', job_status='DONE', photon_flux_upper_limit='4.74e-07', time_completed='2021-09-08 20:44:28.808734', job_id='111837', GAL2='0.39', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631159068.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='-9.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1375' AND source_name='4FGL J1359.8-3746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:44:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 111837: <4FGL_J1359.8-3746_daily_bin1375> in cluster <slac> Done

Job <4FGL_J1359.8-3746_daily_bin1375> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 20:30:39 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 20:30:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 20:30:40 2021
Terminated at Wed Sep  8 20:44:29 2021
Results reported at Wed Sep  8 20:44:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.8-3746_daily_bin1375 209.967 -37.7681 595728001 595987201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.8-3746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   435.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             214.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            830 sec.

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

