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


Performing analysis on: 4FGL_J1359.8-3746_daily_bin1445
RA = 209.967, Dec = -37.7681
tmin = 613872001, tmax = 614131201
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='111947', job_status='RUN', time_executed='2021-09-08 20:31:53.976258', time_epoch_executed='1631158313.98' WHERE source_name='4FGL J1359.8-3746' and cadence='daily' and bin_id='1445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111947

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111947/ft1_4FGL_J1359.8-3746_daily_bin1445.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111947/ft1_4FGL_J1359.8-3746_daily_bin1445.fits outfile=/scratch/kocevski/111947/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1445.fits ra=209.967 dec=-37.7681 rad=12.0 tmin=613872001.0 tmax=614131201.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.25
user 2.05
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.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/111947/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1445.fits evtable="EVENTS" outfile="/scratch/kocevski/111947/ft1_filtered_4FGL_J1359.8-3746_daily_bin1445.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111947/ft1_filtered_4FGL_J1359.8-3746_daily_bin1445.fits" evtable="EVENTS" scfile=/scratch/kocevski/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.fits sctable="SC_DATA" outfile=/scratch/kocevski/111947/ltcube_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.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/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.fits
.....................!
real 12.13
user 11.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111947/ft1_filtered_4FGL_J1359.8-3746_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.fits sctable="SC_DATA" expcube=/scratch/kocevski/111947/ltcube_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.fits outfile=/scratch/kocevski/111947/expmap_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.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/111947/ltcube_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.fits
.....................!
real 191.84
user 186.94
sys 4.55

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/111947/ft1_filtered_4FGL_J1359.8-3746_daily_bin1445.fits scfile=/scratch/kocevski/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.fits outfile=/scratch/kocevski/111947/cmap_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111947/ft1_filtered_4FGL_J1359.8-3746_daily_bin1445.fits scfile=/scratch/kocevski/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.fits outfile=/scratch/kocevski/111947/cmap_HighResolution_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.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/111947/ft1_filtered_4FGL_J1359.8-3746_daily_bin1445.fits evtable="EVENTS" scfile=/scratch/kocevski/111947/ft2_4FGL_J1359.8-3746_daily_bin1445.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111947/Model_4FGL_J1359.8-3746_daily_bin1445.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/111947/ft1_filtered_4FGL_J1359.8-3746_daily_bin1445.fits.....................!
real 99.85
user 98.45
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0128       1.0000         .10000E-03   10000.    
     3 'norm      '    15.542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    270.75       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    60.314       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.321       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2474       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9869       1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    351.87       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5947       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5747       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5118       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85768       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.

 FCN=   5365.159     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3084 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5808       -.93043E-07** at limit **
   2  Prefactor     6.0126        6.0936       -.95842E-06   -.34105E-05
   3  norm          15.543        7.8553       -.15526E-05    .37212E-04
   4  Prefactor     270.51        279.45       -.13970E-03    .11651E-04
   5  Prefactor     .10000E-03    145.00        .41816E-04** at limit **
   6  norm          .10000E-03    34.611       -.67194E-05** at limit **
   7  norm          60.312        49.566       -.14412E-05    .32764E-04
   8  norm          .10000E-03    3.2888        .54991E-07** at limit **
   9  Prefactor     .10000E-03    3.0214       -.99829E-07** at limit **
  10  Prefactor     .10000E-03    30.145        .34489E-05** at limit **
  11  Prefactor     16.126        94.036       -.28210E-03    .38557E-04
  12  Prefactor     .10000E-03    309.16       -.22825E-04** at limit **
  13  Prefactor     .10000E-03    84.592       -.45648E-04** at limit **
  14  Prefactor     9.2505        33.107        .35576E-05    .63389E-04
  15  norm          .10000E-03    6.4636        .16920E-06** at limit **
  16  Prefactor     3.9796        153.64       -.55626E-05    .83417E-04
  17  norm          .10000E-03    .92319E-01   -.31848E-07** at limit **
  18  Prefactor     351.88        277.31        .60202E-05    .12393E-04
  19  Prefactor     .10000E-03    96.670       -.65299E-04** at limit **
  20  Prefactor     .10000E-03    21.041       -.31996E-06** at limit **
  21  norm          7.5848        126.71       -.23190E-04   -.11016E-05
  22  Prefactor     .10000E-03    176.16        .93975E-04** at limit **
  23  Prefactor     .10000E-03    69.683        .53083E-04** at limit **
  24  norm          1.5748        4.0334       -.13859E-05   -.64931E-03
  25  Normalizat    1.5116        .36646        .10202E-04    .11744E-03
  26  Prefactor     .85772        .12478        .60942E-05   -.48027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.01264
  norm       = 15.5427
  Prefactor  = 270.51
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 60.3121
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.2505
  norm       = 0.0001
  Prefactor  = 3.97958
  norm       = 0.0001
  Prefactor  = 351.883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.58482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57476
  Normalizat = 1.51161
  Prefactor  = 0.857724
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.159     FROM HESSE     STATUS=OK           446 CALLS     3530 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5860        .13537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0126        6.0946        .16375E-03   -1.5218    
   3  norm          15.543        7.8747        .10159E-03   -1.4919    
   4  Prefactor     270.51        279.77        .12323E-03   -1.2404    
   5  Prefactor     .10000E-03    145.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    34.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          60.312        49.589        .51663E-04   -1.4153    
   8  norm          .10000E-03    3.2900        .12973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1162        .24852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.126        94.526        .99141E-04   -1.4905    
  12  Prefactor     .10000E-03    309.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    84.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2505        33.111        .13179E-03   -1.5100    
  15  norm          .10000E-03    6.4962        .18138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9796        152.55        .20199E-03   -1.5309    
  17  norm          .10000E-03    .93804E-01    .21687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     351.88        277.34        .10855E-03   -1.1934    
  19  Prefactor     .10000E-03    96.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5848        127.64        .14552E-03   -1.5157    
  22  Prefactor     .10000E-03    176.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    69.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5748        3.9967        .22775E-03   -1.5457    
  25  Normalizat    1.5116        .43543        .41884E-03   -.77453    
  26  Prefactor     .85772        .14902        .18192E-03   -.97634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25662e-09
Minuit parameter uncertainties:
  1  1.93943e-05
  2  6.09522
  3  7.87524
  4  281.181
  5  0.000288121
  6  9.07941e-05
  7  49.6226
  8  8.81851e-06
  9  1.35901e-05
  10  4.08894e-06
  11  78.2719
  12  6.34006e-05
  13  0.000169557
  14  33.1766
  15  8.2587e-06
  16  49.4142
  17  1.34031e-06
  18  278.394
  19  0.000186748
  20  9.16387e-06
  21  62.3873
  22  2.45327e-05
  23  4.00248e-06
  24  3.99739
  25  0.436514
  26  0.149086
Done.

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

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  4.089e-06  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:  8.577e-01  1.491e-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.512e+00  4.365e-01  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.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/111947/likelihoodResults_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.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) = 5365.15906135
delta logL = -0.000157915106684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5365.15890343
delta logL = 1.66619429365e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9647       1.0000          .0000       10.000    
     3 'Normalizat'    1.5116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85773       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=   5365.159     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    984.17        .90712E-02** at limit **
   2  Index         1.9612        6.0574        .50000        .87955E-06
   3  Normalizat    1.5116        .56260E-01    .94565E-01    .38544E-05
   4  Prefactor     .85773        .19193E-01    .44464E-01    .50345E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96117
  Normalizat = 1.5116
  Prefactor  = 0.857726
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.159     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6251.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9612        8.2712        .50000       -.65324    
   3  Normalizat    1.5116        .10008        .41883E-03   -.77453    
   4  Prefactor     .85773        .34205E-01    .18192E-03   -.97634    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.23247e-13
Minuit parameter uncertainties:
  1  0.000532859
  2  37.9109
  3  0.100092
  4  0.0342062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111947': 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) = 5365.15890342
delta logL = 1.61744537763e-08

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  5.329e-04  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  1.961e+00  3.791e+01  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:  8.577e-01  3.421e-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.512e+00  1.001e-01  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/111947/cmap_HighResolution_613872001_614131201_4FGL_J1359.8-3746_daily_bin1445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-08 20:46:37.879066', job_id='111947', GAL2='0.86', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1631159197.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1445' AND source_name='4FGL J1359.8-3746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 111947: <4FGL_J1359.8-3746_daily_bin1445> in cluster <slac> Done

Job <4FGL_J1359.8-3746_daily_bin1445> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 20:30:48 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 20:30:50 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:50 2021
Terminated at Wed Sep  8 20:46:38 2021
Results reported at Wed Sep  8 20:46:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.8-3746_daily_bin1445 209.967 -37.7681 613872001 614131201 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 :                                   815.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

