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


Performing analysis on: 4FGL_J1359.8-3746_daily_bin1373
RA = 209.967, Dec = -37.7681
tmin = 595209601, tmax = 595468801
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='111833', job_status='RUN', time_executed='2021-09-08 20:34:26.396537', time_epoch_executed='1631158466.4' WHERE source_name='4FGL J1359.8-3746' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111833

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111833/ft1_4FGL_J1359.8-3746_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111833/ft1_4FGL_J1359.8-3746_daily_bin1373.fits outfile=/scratch/kocevski/111833/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1373.fits ra=209.967 dec=-37.7681 rad=12.0 tmin=595209601.0 tmax=595468801.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.93
user 2.72
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.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/111833/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/111833/ltcube_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.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/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits
.....................!
real 12.47
user 12.14
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/111833/ltcube_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.fits outfile=/scratch/kocevski/111833/expmap_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.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/111833/ltcube_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.fits
.....................!
real 189.60
user 185.12
sys 4.06

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/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits scfile=/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits outfile=/scratch/kocevski/111833/cmap_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits scfile=/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits outfile=/scratch/kocevski/111833/cmap_HighResolution_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111833/Model_4FGL_J1359.8-3746_daily_bin1373.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/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits......................!
real 50.92
user 49.54
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits', '/scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits', expMap='/scratch/kocevski/111833/expmap_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.fits', expCube='/scratch/kocevski/111833/ltcube_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/111833/Model_4FGL_J1359.8-3746_daily_bin1373.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/111833/ft1_filtered_4FGL_J1359.8-3746_daily_bin1373.fits
Spacecraft file(s): /scratch/kocevski/111833/ft2_4FGL_J1359.8-3746_daily_bin1373.fits
Exposure map: /scratch/kocevski/111833/expmap_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.fits
Exposure cube: /scratch/kocevski/111833/ltcube_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/111833/Model_4FGL_J1359.8-3746_daily_bin1373.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) = 2300.60133365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.305       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.067       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    115.37       1.0000         .10000E-03   10000.    
     5 'Prefactor '    128.69       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10922E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .59559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15885E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11790E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .96250E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .55123E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'norm      '    10000.       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93481       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=   2300.335     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     3062 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.300        1.1137        .89831E-06   -.24031E-03
   2  Prefactor     13.068        1.0152       -.35371E-06   -.93309E-04
   3  norm          .10000E-03    11.687        .15509E-05** at limit **
   4  Prefactor     115.37        1.0498        .19642E-06   -.64707E-03
   5  Prefactor     128.71        3.1381        .17184E-05   -.61698E-02
   6  norm          .10670E-03    42.477       -.15821E-04** at limit **
   7  norm          .10756E-03    30.038       -.24697E-06** at limit **
   8  norm          .10100E-03    21.370       -.67236E-04** at limit **
   9  Prefactor     14.544        1.0049       -.10041E-06    .21286E-04
  10  Prefactor     .10010E-03    31.114        .18479E-04** at limit **
  11  Prefactor     .10554E-03    34.193       -.12778E-04** at limit **
  12  Prefactor     .64935E-03    92.438       -.10558E-03** at limit **
  13  Prefactor     .11154E-03    38.195       -.33110E-04** at limit **
  14  Prefactor     .10085E-03    21.259        .51425E-04** at limit **
  15  norm          .10000E-03    16.926       -.29220E-05** at limit **
  16  Prefactor     .10499E-03    67.394        .65927E-04** at limit **
  17  norm          .59557        .56482       -.83935E-06    .12808E-02
  18  Prefactor     .10719E-03    27.984        .22741E-04** at limit **
  19  Prefactor     .10049E-03    46.498       -.36509E-04** at limit **
  20  Prefactor     .10000E-03    4.9400       -.13410E-04** at limit **
  21  norm          .10498E-03    30.487        .34279E-04** at limit **
  22  Prefactor     .52701E-01    1.2028       -.13024E-04    .43335E-03
  23  Prefactor    10000.0        5.5978        .29478E-04** at limit **
  24  norm         10000.0        42.811        .30334E-04** at limit **
  25  Normalizat    .10000E-01    .31620        .91608E-05** at limit **
  26  Prefactor     .93474        .96166E-01    .41123E-07    .10151E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3003
  Prefactor  = 13.068
  norm       = 0.0001
  Prefactor  = 115.371
  Prefactor  = 128.709
  norm       = 0.000106696
  norm       = 0.000107556
  norm       = 0.000101002
  Prefactor  = 14.5443
  Prefactor  = 0.000100101
  Prefactor  = 0.000105541
  Prefactor  = 0.000649353
  Prefactor  = 0.000111541
  Prefactor  = 0.000100846
  norm       = 0.0001
  Prefactor  = 0.000104986
  norm       = 0.59557
  Prefactor  = 0.000107188
  Prefactor  = 0.000100485
  Prefactor  = 0.000100003
  norm       = 0.000104977
  Prefactor  = 0.0527006
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.934739
 **********
 **   18 **HESSE 
 **********

 FCN=   2300.335     FROM HESSE     STATUS=OK           494 CALLS     3556 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.300        13.095        .25595E-02   -1.4925    
   2  Prefactor     13.068        10.973        .27703E-02   -1.4985    
   3  norm          .10000E-03    11.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     115.37        417.57        .93644E-03   -1.3556    
   5  Prefactor     128.71        179.93        .88724E-03   -1.3434    
   6  norm          .10670E-03    55.246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10756E-03    197.17        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10100E-03    22.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.544        12.366        .26254E-02   -1.4945    
  10  Prefactor     .10010E-03    31.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10554E-03    210.69        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .64935E-03    481.20        .90712E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11154E-03    65.895        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10085E-03    22.329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10499E-03    125.51        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .59557        .55634        .77418E-02   -1.5554    
  18  Prefactor     .10719E-03    175.83        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10049E-03    238.99        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    327.69        .10394E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10498E-03    165.06        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .52701E-01    9985.6        .92950E-02   -1.5662    
  23  Prefactor    10000.0        2295.9        .99303E-02    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm         10000.0        231.06        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .24346        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .93474        .11818        .34950E-01   -.94938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37581e-06
Minuit parameter uncertainties:
  1  13.0972
  2  10.9745
  3  4.23691e-05
  4  429.014
  5  180.7
  6  0.0385031
  7  0.0774508
  8  0.00954637
  9  12.368
  10  0.00355775
  11  0.0685793
  12  1.03673
  13  0.0552139
  14  0.00869629
  15  4.2711e-05
  16  0.0501353
  17  0.556342
  18  0.071309
  19  0.0216205
  20  0.00205555
  21  0.0574822
  22  74.6174
  23  3.99526
  24  0.0382658
  25  1.16977e-06
  26  0.11821
Done.

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

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.001e-04  3.558e-03  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:  9.347e-01  1.182e-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  1.170e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/111833/likelihoodResults_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.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) = 2300.33492173
delta logL = -0.000161262666097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2300.33476189
delta logL = -1.43063880387e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2300.335     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      284 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    105.51        .18142E-02** at limit **
   2  Index         2.1184        5.4201        .50000        .14804E-04
   3  Normalizat    .10000E-01    .25276E-02    .12403E-01** at limit **
   4  Prefactor     .93474        .85394E-02    .15445E-03    .22524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101879
  Index      = 2.11841
  Normalizat = 0.01
  Prefactor  = 0.934739
 **********
 **   18 **HESSE 
 **********

 FCN=   2300.335     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10188E-03    455.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1184        7.5117        .50000       -.61422    
   3  Normalizat    .10000E-01    .11348E-01    .24805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .93474        .18086E-01    .61780E-05   -.94938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.88647e-09
Minuit parameter uncertainties:
  1  0.0589509
  2  320.223
  3  8.43853e-08
  4  0.0180859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111833': 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) = 2300.33476076
delta logL = -2.94000074064e-07

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.019e-04  5.895e-02  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  2.118e+00  3.202e+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:  9.347e-01  1.809e-02  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  8.439e-08  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/111833/cmap_HighResolution_595209601_595468801_4FGL_J1359.8-3746_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-08 20:47:13.456155', job_id='111833', GAL2='0.93', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631159233.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1373' AND source_name='4FGL J1359.8-3746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 111833: <4FGL_J1359.8-3746_daily_bin1373> in cluster <slac> Done

Job <4FGL_J1359.8-3746_daily_bin1373> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 20:30:38 2021
Job was executed on host(s) <bullet0282>, 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:47:14 2021
Results reported at Wed Sep  8 20:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.8-3746_daily_bin1373 209.967 -37.7681 595209601 595468801 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 :                                   544.09 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             230.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

