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


Performing analysis on: 4FGL_J1933.2-4539_daily_bin1553
RA = 293.314, Dec = -45.6508
tmin = 641865601, tmax = 642124801
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='8054', job_status='RUN', time_executed='2021-09-23 03:39:25.696412', time_epoch_executed='1632393565.7' WHERE source_name='4FGL J1933.2-4539' and cadence='daily' and bin_id='1553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8054/ft1_4FGL_J1933.2-4539_daily_bin1553.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8054/ft1_4FGL_J1933.2-4539_daily_bin1553.fits outfile=/scratch/kocevski/8054/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1553.fits ra=293.314 dec=-45.6508 rad=12.0 tmin=641865601.0 tmax=642124801.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.39
user 4.14
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.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/8054/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1553.fits evtable="EVENTS" outfile="/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits" evtable="EVENTS" scfile=/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits sctable="SC_DATA" outfile=/scratch/kocevski/8054/ltcube_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.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/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits
.....................!
real 12.99
user 12.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits sctable="SC_DATA" expcube=/scratch/kocevski/8054/ltcube_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.fits outfile=/scratch/kocevski/8054/expmap_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.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/8054/ltcube_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.fits
.....................!
real 191.47
user 186.54
sys 4.54

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 FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Added 221 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 J1933.2-4539 @ 293.314 -45.6508

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits scfile=/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits outfile=/scratch/kocevski/8054/cmap_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.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=293.314 yref=-45.6508 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits scfile=/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits outfile=/scratch/kocevski/8054/cmap_HighResolution_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.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=293.314 yref=-45.6508 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits evtable="EVENTS" scfile=/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8054/Model_4FGL_J1933.2-4539_daily_bin1553.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 FHES J1741.6-3917
adding source GAL_V02
Working on...
/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits.....................!
real 72.59
user 71.11
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits', '/scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits', expMap='/scratch/kocevski/8054/expmap_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.fits', expCube='/scratch/kocevski/8054/ltcube_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8054/Model_4FGL_J1933.2-4539_daily_bin1553.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1933.2-4539'

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  2.220e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
498        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
499        Scale:  5.975e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8054/ft1_filtered_4FGL_J1933.2-4539_daily_bin1553.fits
Spacecraft file(s): /scratch/kocevski/8054/ft2_4FGL_J1933.2-4539_daily_bin1553.fits
Exposure map: /scratch/kocevski/8054/expmap_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.fits
Exposure cube: /scratch/kocevski/8054/ltcube_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8054/Model_4FGL_J1933.2-4539_daily_bin1553.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) = 8368.74932724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    26.919       1.0000         .10000E-03   10000.    
     3 'norm      '    .21229       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.408       1.0000         .10000E-03   10000.    
     9 'norm      '    23.228       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4939       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    40.723       1.0000         .10000E-03   10000.    
    13 'norm      '    .10346E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9487       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .81354       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0488       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8368.737     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1872 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.408       -.23840E-05** at limit **
   2  norm          26.911        25.574       -.51698E-05   -.13043E-04
   3  norm          .16298        4.9991        .15175E-05   -.11356E-02
   4  norm          .10000E-03    .61319        .92624E-07** at limit **
   5  Prefactor     .10000E-03    35.304       -.17064E-04** at limit **
   6  Prefactor     .10000E-03    3.2619       -.27327E-07** at limit **
   7  Prefactor     .10000E-03    10.322        .22103E-05** at limit **
   8  Prefactor     20.408        12.324       -.41047E-06   -.60508E-04
   9  norm          23.226        19.587       -.29891E-06   -.30132E-05
  10  norm          1.4936        1.0487       -.67067E-07   -.57504E-03
  11  norm          .10000E-03    5.0078        .22129E-08** at limit **
  12  norm          40.724        26.327        .35200E-06    .18057E-04
  13  norm          .10000E-03    .92514       -.13035E-06** at limit **
  14  Prefactor     .10000E-03    22.560        .23411E-05** at limit **
  15  norm          .10000E-03    2.6763        .57613E-07** at limit **
  16  norm          .10003E-03    37.668        .10629E-04** at limit **
  17  Prefactor     5.9019        38.687       -.63478E-04   -.47580E-04
  18  Normalizat    .81306        .27845        .50182E-05   -.67014E-04
  19  Prefactor     1.0490        .93039E-01   -.39794E-06   -.52937E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 26.9106
  norm       = 0.162984
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4077
  norm       = 23.2258
  norm       = 1.49365
  norm       = 0.0001
  norm       = 40.7241
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100027
  Prefactor  = 5.90195
  Normalizat = 0.813061
  Prefactor  = 1.04904
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.737     FROM HESSE     STATUS=OK           276 CALLS     2148 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          26.911        25.646        .77213E-04   -1.4670    
   3  norm          .16298        6.2765        .63346E-01   -1.5627    
   4  norm          .10000E-03    .61702        .69953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2822        .16132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.408        12.311        .88660E-04   -1.4804    
   9  norm          23.226        19.593        .83112E-04   -1.4744    
  10  norm          1.4936        1.0373        .75625E-04   -1.5464    
  11  norm          .10000E-03    5.0507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          40.724        26.395        .62814E-04   -1.4431    
  13  norm          .10000E-03    2.0622        .17071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7068        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    38.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9019        38.890        .16464E-03   -1.5222    
  18  Normalizat    .81306        .31717        .48434E-03   -.99586    
  19  Prefactor     1.0490        .10788        .14714E-03   -.91112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12621e-09
Minuit parameter uncertainties:
  1  6.50579e-07
  2  25.6566
  3  2.02244
  4  7.19977e-07
  5  1.0662e-05
  6  9.04825e-06
  7  7.67753e-06
  8  12.313
  9  19.5983
  10  1.03727
  11  7.27524e-06
  12  26.4022
  13  1.77218e-05
  14  9.92359e-06
  15  1.26467e-05
  16  0.00205664
  17  30.3286
  18  0.317895
  19  0.107903
Done.

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

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  1.000e-04  9.048e-06  1.000e-04  1.000e+04 ( 1.000e-12)
498        Index:  2.639e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
499        Scale:  5.975e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
770    Prefactor:  1.049e+00  1.079e-01  0.000e+00  1.000e+01 ( 1.000e+00)
771        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
772        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
766   Normalization:  8.131e-01  3.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 293.314 -45.651
Photon Flux Upper Limit: 8.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8054/likelihoodResults_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.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) = 8368.73829507
delta logL = -0.00145164287278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8368.73684336
delta logL = 6.58128556097e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6275       1.0000          .0000       10.000    
     3 'Normalizat'    .81305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0490       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7730E+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=   8368.737     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      251 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.860        .16220E-01** at limit **
   2  Index         2.2801        8.7077        .50000       -.19190E-07
   3  Normalizat    .81306        .13021E-01    .48434E-03    .20731E-03
   4  Prefactor     1.0490        .44784E-02    .14714E-03    .72364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28008
  Normalizat = 0.813063
  Prefactor  = 1.04904
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.737     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    184.08        .16817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2801        5.9972        .50000       -.57518    
   3  Normalizat    .81306        .49929E-01    .19374E-04   -.99586    
   4  Prefactor     1.0490        .17173E-01    .29428E-04   -.91112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.47435e-10
Minuit parameter uncertainties:
  1  0.000120373
  2  822.792
  3  0.0499315
  4  0.0171735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8054': 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) = 8368.7368421
delta logL = 1.32351487991e-06

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  1.000e-04  1.204e-04  1.000e-04  1.000e+04 ( 1.000e-12)
498        Index:  2.280e+00  8.228e+02  0.000e+00  1.000e+01 (-1.000e+00)
499        Scale:  5.975e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
770    Prefactor:  1.049e+00  1.717e-02  0.000e+00  1.000e+01 ( 1.000e+00)
771        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
772        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
766   Normalization:  8.131e-01  4.993e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 293.314 -45.651

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/8054/cmap_HighResolution_641865601_642124801_4FGL_J1933.2-4539_daily_bin1553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-23 03:52:26.977439', job_id='8054', GAL2='1.05', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632394346.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1553' AND source_name='4FGL J1933.2-4539' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 03:52:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 8054: <4FGL_J1933.2-4539_daily_bin1553> in cluster <slac> Done

Job <4FGL_J1933.2-4539_daily_bin1553> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep 23 03:36:48 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 03:37:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 03:37:32 2021
Terminated at Thu Sep 23 03:52:27 2021
Results reported at Thu Sep 23 03:52:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1933.2-4539_daily_bin1553 293.314 -45.6508 641865601 642124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1933.2-4539 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   778.42 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             312.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            939 sec.

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

