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


Performing analysis on: 4FGL_J0804.0-3629_daily_bin1189
RA = 121.008, Dec = -36.4854
tmin = 547516801, tmax = 547776001
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='83355', job_status='RUN', time_executed='2021-08-28 23:33:05.200246', time_epoch_executed='1630218785.2' WHERE source_name='4FGL J0804.0-3629' and cadence='daily' and bin_id='1189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83355/ft1_4FGL_J0804.0-3629_daily_bin1189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83355/ft1_4FGL_J0804.0-3629_daily_bin1189.fits outfile=/scratch/kocevski/83355/ft1_filteredMKT_4FGL_J0804.0-3629_daily_bin1189.fits ra=121.008 dec=-36.4854 rad=12.0 tmin=547516801.0 tmax=547776001.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 4.86
user 3.27
sys 1.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.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/83355/ft1_filteredMKT_4FGL_J0804.0-3629_daily_bin1189.fits evtable="EVENTS" outfile="/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.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 1.80
user 0.32
sys 1.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits" evtable="EVENTS" scfile=/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits sctable="SC_DATA" outfile=/scratch/kocevski/83355/ltcube_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.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/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits
.....................!
real 12.90
user 11.10
sys 1.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits sctable="SC_DATA" expcube=/scratch/kocevski/83355/ltcube_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.fits outfile=/scratch/kocevski/83355/expmap_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.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/83355/ltcube_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.fits
.....................!
real 192.59
user 186.34
sys 5.93

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 Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 202 point sources and 3 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 J0804.0-3629 @ 121.008 -36.4854

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits scfile=/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits outfile=/scratch/kocevski/83355/cmap_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.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=121.008 yref=-36.4854 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 1.83
user 0.38
sys 1.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits scfile=/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits outfile=/scratch/kocevski/83355/cmap_HighResolution_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.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=121.008 yref=-36.4854 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 1.80
user 0.38
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83355/Model_4FGL_J0804.0-3629_daily_bin1189.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits.....................!
real 22.33
user 18.87
sys 2.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits', '/scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits', expMap='/scratch/kocevski/83355/expmap_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.fits', expCube='/scratch/kocevski/83355/ltcube_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83355/Model_4FGL_J0804.0-3629_daily_bin1189.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.0-3629'

4FGL J0804.0-3629
   Spectrum: LogParabola
328         norm:  8.916e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
329        alpha:  1.668e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
330         beta:  2.280e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
331           Eb:  4.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/83355/ft1_filtered_4FGL_J0804.0-3629_daily_bin1189.fits
Spacecraft file(s): /scratch/kocevski/83355/ft2_4FGL_J0804.0-3629_daily_bin1189.fits
Exposure map: /scratch/kocevski/83355/expmap_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.fits
Exposure cube: /scratch/kocevski/83355/ltcube_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83355/Model_4FGL_J0804.0-3629_daily_bin1189.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 505.97748717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 505.933518845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8299       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9454       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5255       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1260       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7159       1.0000         .10000E-03   10000.    
     9 'norm      '    8.7398       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5992       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .94884E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2180       1.0000         .10000E-03   10000.    
    14 'norm      '    .13022       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9065       1.0000         .10000E-03   10000.    
    16 'norm      '    9.1065       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .14072       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1886       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   505.5606     FROM MIGRAD    STATUS=CONVERGED    308 CALLS      418 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7409        1.0016         .0000         .0000    
   2  Prefactor     4.0787        1.0077         .0000         .0000    
   3  Prefactor     1.8299        1.0433         .0000         .0000    
   4  norm          3.6847        1.0095         .0000         .0000    
   5  Prefactor     6.9454        1.0026         .0000         .0000    
   6  Prefactor     3.5255        1.0104         .0000         .0000    
   7  Prefactor     2.1260        1.0307         .0000         .0000    
   8  Prefactor     .10000E-03    .44103E-01   -.66531E-05** at limit **
   9  norm          .10000E-03    .28724E-01    .10620E-04** at limit **
  10  Prefactor     8.5992        1.0017         .0000         .0000    
  11  norm          .10000E-03    .49256E-01    .29386E-05** at limit **
  12  Prefactor     .10000E-03    .20637        .35501E-05** at limit **
  13  Prefactor     7.2180        1.0024         .0000         .0000    
  14  norm          .10000E-03    .23301       -.90839E-05** at limit **
  15  Prefactor     400.90        6.2437        .16290E-04    .74101E-05
  16  norm          151.82        4.0600       -.36925E-05   -.13191E-05
  17  Normalizat    .10000E-01    .28953       -.48162E-04** at limit **
  18  Prefactor     1.1213        1.0791       -.11463E-05   -.80052E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.74095
  Prefactor  = 4.07871
  Prefactor  = 1.82986
  norm       = 3.68467
  Prefactor  = 6.94536
  Prefactor  = 3.52546
  Prefactor  = 2.12598
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.59916
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.21801
  norm       = 0.0001
  Prefactor  = 400.9
  norm       = 151.818
  Normalizat = 0.01
  Prefactor  = 1.12129
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   505.5606     FROM HESSE     STATUS=FAILED        11 CALLS      429 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          499.64        490.87         .0000       -1.5117    
   2  Prefactor     4.0787        1.0077         .0000       -1.5304    
   3  Prefactor     1.8299        1.0433         .0000       -1.5437    
   4  norm          3.6847        1.0095         .0000       -1.5324    
   5  Prefactor     6.9454        1.0026         .0000       -1.5181    
   6  Prefactor     3.5255        1.0104         .0000       -1.5332    
   7  Prefactor     2.1260        1.0307         .0000       -1.5416    
   8  Prefactor     .10000E-03    .44103E-01   -.66531E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .28724E-01    .10620E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5992        1.0017         .0000       -1.5121    
  11  norm          .10000E-03    .49256E-01    .29386E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20637        .35501E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2180        1.0024         .0000       -1.5171    
  14  norm          .10000E-03    .23301       -.90839E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     400.90        6.2437        .16290E-04   -1.1676    
  16  norm          151.82        4.0600       -.36925E-05   -1.3237    
  17  Normalizat    .10000E-01    .28953       -.48162E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1213        1.0791       -.11463E-05   -.88789    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.61534e-12
Minuit parameter uncertainties:
  1  1.00164
  2  1.00772
  3  1.04329
  4  1.00952
  5  1.00261
  6  1.01043
  7  1.03074
  8  5.45287e-06
  9  2.42308e-06
  10  1.0017
  11  5.64042e-06
  12  1.08875e-05
  13  1.00242
  14  2.09779e-05
  15  6.24374
  16  4.05996
  17  3.41769e-06
  18  1.10136
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 505.560587244

Extracting fit parameters...

4FGL J0804.0-3629
   Spectrum: LogParabola
328         norm:  1.000e-04  2.423e-06  1.000e-04  1.000e+04 ( 1.000e-14)
329        alpha:  1.668e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
330         beta:  2.280e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
331           Eb:  4.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.121e+00  1.101e+00  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.000e-02  3.418e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.008 -36.485
Photon Flux Upper Limit: 2.02e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83355/likelihoodResults_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.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) = 505.560589745
delta logL = -2.50108757882e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 505.560589738
delta logL = -2.49406838293e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6684       1.0000          .0000       5.0000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+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=   505.5606     FROM MIGRAD    STATUS=FAILED       110 CALLS      257 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10097E-03    9674.3        .18143E-01** at limit **
   2  alpha         1.3689        3.0261        .17792        .18646E-07
   3  Normalizat    .10000E-01    .17447        .17911E-01** at limit **
   4  Prefactor     1.1213        .29166E-01    .13543E-03    .18130E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   505.5606     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      397 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10097E-03    9674.3        .84048E-02** at limit **
   2  alpha         1.3689        3.0261        .24616E-05    .18646E-07
   3  Normalizat    .10000E-01    .17447        .97916E-03** at limit **
   4  Prefactor     1.1213        .29166E-01    .39947E-07    .18130E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   505.5606     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      431 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10098E-03    9005.8        .36285E-01** at limit **
   2  alpha         1.1445        3.3723        .71168E-01    .80012E-08
   3  Normalizat    .10000E-01    .19945        .35822E-02** at limit **
   4  Prefactor     1.1213        .31117E-01    .27087E-04    .17591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010098
  alpha      = 1.14446
  Normalizat = 0.01
  Prefactor  = 1.12129
 **********
 **   18 **HESSE 
 **********

 FCN=   505.5606     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      454 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10098E-03    9865.9        .72570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1445        4.4261        .14234E-01   -.57307    
   3  Normalizat    .10000E-01    1.2591        .71643E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1213        .79640E-01    .54173E-05   -.88789    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.06934e-09
Minuit parameter uncertainties:
  1  0.965711
  2  59071.5
  3  0.000440164
  4  0.0796489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83355': 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) = 505.560587241
delta logL = 2.35377228819e-09

Extracting fit parameters...

4FGL J0804.0-3629
   Spectrum: LogParabola
328         norm:  1.010e-04  9.657e-01  1.000e-04  1.000e+04 ( 1.000e-14)
329        alpha:  1.144e+00  5.907e+04  0.000e+00  5.000e+00 ( 1.000e+00)
330         beta:  2.280e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
331           Eb:  4.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.121e+00  7.965e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.000e-02  4.402e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.008 -36.485

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/83355/cmap_HighResolution_547516801_547776001_4FGL_J0804.0-3629_daily_bin1189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='2.02e-06', time_completed='2021-08-28 23:39:02.714542', job_id='83355', GAL2='1.12', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630219142.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.12', dlogl='2.35e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.67' WHERE bin_id='1189' AND source_name='4FGL J0804.0-3629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 23:39:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 83355: <4FGL_J0804.0-3629_daily_bin1189> in cluster <slac> Done

Job <4FGL_J0804.0-3629_daily_bin1189> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 23:30:50 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 23:30:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 23:30:52 2021
Terminated at Sat Aug 28 23:39:03 2021
Results reported at Sat Aug 28 23:39:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0804.0-3629_daily_bin1189 121.008 -36.4854 547516801 547776001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0804.0-3629 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   378.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   491 sec.
    Turnaround time :                            493 sec.

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

