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


Performing analysis on: 4FGL_J1359.8-3746_daily_bin1357
RA = 209.967, Dec = -37.7681
tmin = 591062401, tmax = 591321601
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='111810', job_status='RUN', time_executed='2021-09-08 20:31:01.820024', time_epoch_executed='1631158261.82' WHERE source_name='4FGL J1359.8-3746' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111810/ft1_4FGL_J1359.8-3746_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111810/ft2_4FGL_J1359.8-3746_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111810/ft1_4FGL_J1359.8-3746_daily_bin1357.fits outfile=/scratch/kocevski/111810/ft1_filteredMKT_4FGL_J1359.8-3746_daily_bin1357.fits ra=209.967 dec=-37.7681 rad=12.0 tmin=591062401.0 tmax=591321601.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 3.08
user 2.85
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111810/ft1_filtered_4FGL_J1359.8-3746_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/111810/ft2_4FGL_J1359.8-3746_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/111810/ltcube_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.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/111810/ft2_4FGL_J1359.8-3746_daily_bin1357.fits
.....................!
real 12.43
user 12.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111810/ft1_filtered_4FGL_J1359.8-3746_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/111810/ft2_4FGL_J1359.8-3746_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/111810/ltcube_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.fits outfile=/scratch/kocevski/111810/expmap_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.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/111810/ltcube_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.fits
.....................!
real 190.56
user 185.23
sys 4.97

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/111810/ft1_filtered_4FGL_J1359.8-3746_daily_bin1357.fits scfile=/scratch/kocevski/111810/ft2_4FGL_J1359.8-3746_daily_bin1357.fits outfile=/scratch/kocevski/111810/cmap_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111810/ft1_filtered_4FGL_J1359.8-3746_daily_bin1357.fits scfile=/scratch/kocevski/111810/ft2_4FGL_J1359.8-3746_daily_bin1357.fits outfile=/scratch/kocevski/111810/cmap_HighResolution_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.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/111810/ft1_filtered_4FGL_J1359.8-3746_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/111810/ft2_4FGL_J1359.8-3746_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111810/Model_4FGL_J1359.8-3746_daily_bin1357.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/111810/ft1_filtered_4FGL_J1359.8-3746_daily_bin1357.fits.....................!
real 103.15
user 101.82
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.196       1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.939       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    107.76       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41156E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.439       1.0000         .10000E-03   10000.    
    17 'norm      '    .81188       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17842E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.9295       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .22093E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5601       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85915       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.718     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3073 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.361       -.28371E-04** at limit **
   2  Prefactor     26.195        32.339        .10631E-06    .53318E-05
   3  norm          .10000E-03    18.272       -.30267E-05** at limit **
   4  Prefactor     .10000E-03    170.55        .16755E-04** at limit **
   5  Prefactor     .10000E-03    46.706        .12749E-04** at limit **
   6  norm          .10000E-03    31.898        .21083E-04** at limit **
   7  norm          .10000E-03    22.864        .28618E-05** at limit **
   8  norm          .10000E-03    5.6905       -.12393E-06** at limit **
   9  Prefactor     4.2213        7.9906        .52233E-05   -.24011E-03
  10  Prefactor     .10000E-03    20.918       -.11111E-04** at limit **
  11  Prefactor     59.926        58.726       -.23006E-05   -.10427E-05
  12  Prefactor     .10000E-03    266.82        .18629E-04** at limit **
  13  Prefactor     107.74        89.389       -.12671E-04    .74607E-05
  14  Prefactor     .10003E-03    13.364       -.41328E-06** at limit **
  15  norm          .10000E-03    1.6281        .77600E-07** at limit **
  16  Prefactor     23.433        28.828       -.10771E-06    .74245E-05
  17  norm          .81188        .21859        .40112E-07    .11133E-02
  18  Prefactor     .10000E-03    552.94       -.50521E-04** at limit **
  19  Prefactor     .10000E-03    19.577        .10943E-04** at limit **
  20  Prefactor     .10000E-03    75.484       -.85674E-05** at limit **
  21  norm          9.9302        9.9925       -.64026E-07    .27012E-04
  22  Prefactor     .10000E-03    76.027       -.18751E-06** at limit **
  23  Prefactor     .10000E-03    11.876        .27449E-06** at limit **
  24  norm          .10000E-03    .58694       -.64782E-08** at limit **
  25  Normalizat    1.5608        .39797       -.20893E-05    .11715E-03
  26  Prefactor     .85901        .11253        .85135E-06    .96836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.1954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.22127
  Prefactor  = 0.0001
  Prefactor  = 59.9263
  Prefactor  = 0.0001
  Prefactor  = 107.74
  Prefactor  = 0.000100029
  norm       = 0.0001
  Prefactor  = 23.4331
  norm       = 0.811879
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.93022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.56084
  Prefactor  = 0.859006
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.718     FROM HESSE     STATUS=OK           446 CALLS     3519 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.195        32.331        .78269E-04   -1.4684    
   3  norm          .10000E-03    18.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    170.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    31.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    22.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.6912        .17066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2213        7.9733        .19614E-03   -1.5297    
  10  Prefactor     .10000E-03    20.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.926        58.776        .51823E-04   -1.4158    
  12  Prefactor     .10000E-03    266.86        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     107.74        89.438        .19371E-03   -1.3628    
  14  Prefactor     .10003E-03    86.293        .51059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6311        .91255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.433        28.822        .82736E-04   -1.4739    
  17  norm          .81188        .21840        .16777E-04   -1.5528    
  18  Prefactor     .10000E-03    560.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    76.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.9302        9.9963        .12716E-03   -1.5078    
  22  Prefactor     .10000E-03    76.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.8422        .10808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5608        .47047        .44129E-03   -.76083    
  26  Prefactor     .85901        .13519        .16590E-03   -.97589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82753e-10
Minuit parameter uncertainties:
  1  3.25387e-06
  2  32.3523
  3  6.73872e-06
  4  6.84246e-06
  5  5.00156e-06
  6  2.74691e-05
  7  2.92829e-06
  8  1.78408e-05
  9  7.97528
  10  6.21829e-06
  11  58.833
  12  3.42776e-05
  13  89.55
  14  0.00314654
  15  7.0279e-07
  16  28.8387
  17  0.2184
  18  0.00207645
  19  2.20029e-06
  20  0.000141452
  21  9.99798
  22  9.8894e-06
  23  6.2065e-07
  24  1.87435e-05
  25  0.471809
  26  0.135246
Done.

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

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  6.218e-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.590e-01  1.352e-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.561e+00  4.718e-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: 9.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/111810/likelihoodResults_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.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.71817773
delta logL = -0.000227403910685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5365.71817748
delta logL = -0.000227153080232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96160E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0368       1.0000          .0000       10.000    
     3 'Normalizat'    1.5608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85901       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5365.718     FROM MIGRAD    STATUS=FAILED        90 CALLS      234 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10414E-03    47.773        .18146E-01** at limit **
   2  Index         1.4924        5.1081        .50000        .13452E-05
   3  Normalizat    1.5608        .12580E-01    .44129E-03    .24861E-04
   4  Prefactor     .85901        .36706E-02    .16590E-03    .10279E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5365.718     FROM SIMPLEX   STATUS=UNCHANGED    104 CALLS      338 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10414E-03    47.773        .10359E-02** at limit **
   2  Index         1.4924        5.1081        .44566E-03    .13452E-05
   3  Normalizat    1.5608        .12580E-01    .31370E-05    .24861E-04
   4  Prefactor     .85901        .36706E-02    .10257E-05    .10279E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5365.718     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      371 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10127E-03    358.73        .36293E-02** at limit **
   2  Index         1.5521        5.4402        .50000        .20671E-05
   3  Normalizat    1.5608        .35329E-01    .17652E-04    .24861E-04
   4  Prefactor     .85901        .10308E-01    .66358E-05    .10279E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101274
  Index      = 1.5521
  Normalizat = 1.56083
  Prefactor  = 0.859007
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.718     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      400 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10127E-03    1564.7        .72586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5521        7.6598        .50000       -.76091    
   3  Normalizat    1.5608        .79504E-01    .35303E-05   -.76083    
   4  Prefactor     .85901        .23189E-01    .13272E-05   -.97589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.44225e-09
Minuit parameter uncertainties:
  1  0.0918144
  2  2717.46
  3  0.07951
  4  0.0231894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111810': 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.71794966
delta logL = 6.71838279231e-07

Extracting fit parameters...

4FGL J1359.8-3746
   Spectrum: PowerLaw
324    Prefactor:  1.013e-04  9.181e-02  1.000e-04  1.000e+04 ( 1.000e-14)
325        Index:  1.552e+00  2.717e+03  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.590e-01  2.319e-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.561e+00  7.951e-02  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/111810/cmap_HighResolution_591062401_591321601_4FGL_J1359.8-3746_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2021-09-08 20:45:31.039183', job_id='111810', GAL2='0.86', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1631159131.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='6.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1357' AND source_name='4FGL J1359.8-3746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 111810: <4FGL_J1359.8-3746_daily_bin1357> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.8-3746_daily_bin1357 209.967 -37.7681 591062401 591321601 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 :                                   855.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             344.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

