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


Performing analysis on: 4FGL_J1933.2-4539_daily_bin1310
RA = 293.314, Dec = -45.6508
tmin = 578880001, tmax = 579139201
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='6567', job_status='RUN', time_executed='2021-09-23 03:32:14.078805', time_epoch_executed='1632393134.08' WHERE source_name='4FGL J1933.2-4539' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6567

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6567/ft1_4FGL_J1933.2-4539_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6567/ft1_4FGL_J1933.2-4539_daily_bin1310.fits outfile=/scratch/kocevski/6567/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1310.fits ra=293.314 dec=-45.6508 rad=12.0 tmin=578880001.0 tmax=579139201.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.53
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.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/6567/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1310.fits evtable="EVENTS" outfile="/scratch/kocevski/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/6567/ltcube_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.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/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits
.....................!
real 11.68
user 11.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/6567/ltcube_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.fits outfile=/scratch/kocevski/6567/expmap_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.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/6567/ltcube_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.fits
.....................!
real 190.44
user 184.99
sys 5.11

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/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits scfile=/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits outfile=/scratch/kocevski/6567/cmap_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits scfile=/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits outfile=/scratch/kocevski/6567/cmap_HighResolution_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6567/Model_4FGL_J1933.2-4539_daily_bin1310.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/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits.....................!
real 76.79
user 75.42
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits', '/scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits', expMap='/scratch/kocevski/6567/expmap_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.fits', expCube='/scratch/kocevski/6567/ltcube_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/6567/Model_4FGL_J1933.2-4539_daily_bin1310.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/6567/ft1_filtered_4FGL_J1933.2-4539_daily_bin1310.fits
Spacecraft file(s): /scratch/kocevski/6567/ft2_4FGL_J1933.2-4539_daily_bin1310.fits
Exposure map: /scratch/kocevski/6567/expmap_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.fits
Exposure cube: /scratch/kocevski/6567/ltcube_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/6567/Model_4FGL_J1933.2-4539_daily_bin1310.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) = 8924.20074113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    22.147       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .24888       1.0000         .10000E-03   10000.    
     5 'Prefactor '    76.663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7537       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3432       1.0000         .10000E-03   10000.    
    11 'norm      '    .13389E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.819       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4144       1.0000         .10000E-03   10000.    
    16 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4157       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86293       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.

 FCN=   8924.198     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1896 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.020        .90712E-02** at limit **
   2  norm          22.145        19.817        .21278E-02   -.25257E-03
   3  norm          .10000E-03    5.0247        .90712E-02** at limit **
   4  norm          .24543        1.6362        .38086E-01    .12388E-02
   5  Prefactor     76.663        104.55        .11465E-02    .35764E-03
   6  Prefactor     10.272        8.4184        .31257E-02   -.22341E-03
   7  Prefactor     .10000E-03    11.413        .90712E-02** at limit **
   8  Prefactor     9.7544        12.200        .32078E-02    .33892E-03
   9  norm          .10000E-03    6.1908        .90712E-02** at limit **
  10  norm          1.3429        1.2190        .94504E-02    .18653E-02
  11  norm          .10002E-03    9.8671        .90712E-02** at limit **
  12  norm          12.823        14.533        .27969E-02    .19513E-02
  13  norm          1.3083        1.1563        .96418E-02   -.32079E-03
  14  Prefactor     .10017E-03    105.01        .90712E-02** at limit **
  15  norm          4.4141        3.2531        .47919E-02   -.21001E-03
  16  norm          .10001E-03    9.8016        .90712E-02** at limit **
  17  Prefactor     .10007E-03    102.94        .90712E-02** at limit **
  18  Normalizat    1.4155        .25377        .87686E-01   -.41324E-03
  19  Prefactor     .86300        .82650E-01    .44531E-01   -.73644E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 22.1453
  norm       = 0.0001
  norm       = 0.245434
  Prefactor  = 76.6626
  Prefactor  = 10.2716
  Prefactor  = 0.000100004
  Prefactor  = 9.75438
  norm       = 0.0001
  norm       = 1.34288
  norm       = 0.000100024
  norm       = 12.8231
  norm       = 1.30835
  Prefactor  = 0.000100166
  norm       = 4.41409
  norm       = 0.00010001
  Prefactor  = 0.000100074
  Normalizat = 1.41547
  Prefactor  = 0.862996
 **********
 **   18 **HESSE 
 **********

 FCN=   8924.198     FROM HESSE     STATUS=OK           262 CALLS     2158 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.145        19.842        .85113E-04   -1.4766    
   3  norm          .10000E-03    5.0660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .24543        4.0067        .23188E-02   -1.5609    
   5  Prefactor     76.663        104.59        .45861E-04   -1.3955    
   6  Prefactor     10.272        8.4439        .12503E-03   -1.5067    
   7  Prefactor     .10000E-03    11.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7544        12.170        .12831E-03   -1.5083    
   9  norm          .10000E-03    6.1916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3429        1.2045        .94279E-04   -1.5476    
  11  norm          .10002E-03    10.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.823        14.544        .11188E-03   -1.4992    
  13  norm          1.3083        1.1573        .92918E-04   -1.5479    
  14  Prefactor     .10017E-03    106.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4141        3.2512        .14134E-03   -1.5288    
  16  norm          .10001E-03    9.8260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10007E-03    105.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4155        .30306        .38826E-03   -.80182    
  19  Prefactor     .86300        .99353E-01    .15935E-03   -.97446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24189e-08
Minuit parameter uncertainties:
  1  7.31356e-05
  2  19.8474
  3  6.59416e-05
  4  1.98308
  5  104.844
  6  8.44488
  7  0.000420054
  8  12.173
  9  1.07422e-05
  10  1.20454
  11  0.000995402
  12  14.5485
  13  1.15728
  14  0.00841776
  15  3.25137
  16  0.000628942
  17  0.00558405
  18  0.30345
  19  0.0993733
Done.

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

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  1.027e+01  8.445e+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

GAL_V02
   Spectrum: PowerLaw
770    Prefactor:  8.630e-01  9.937e-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:  1.415e+00  3.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 293.314 -45.651
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 5.77e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.46e-05

TS (Fixed Index): 1.99
Ra Dec: 293.314 -45.651
Photon Flux Upper Limit: 1.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6567/likelihoodResults_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.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): 0
logL (Free Index) = 8923.29761011
delta logL = 0.900006128388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8923.28892952
delta logL = 0.908686717023

Fit tolerance = 1e-08

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

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

 FCN=   8923.289     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3096        40.613        .48485E-02    .55790E-03
   2  Index         3.7627        3.1828        .17671        .15234E-03
   3  Normalizat    1.3437        .85085E-01    .89552E-01    .29587E-04
   4  Prefactor     .87745        .27251E-01    .44717E-01    .35644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30956
  Index      = 3.76267
  Normalizat = 1.34371
  Prefactor  = 0.877453
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.289     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3096        8.5355        .11115E-03   -1.5293    
   2  Index         3.7627        1.3893        .62359E-02   -.25006    
   3  Normalizat    1.3437        .30252        .39658E-03   -.82271    
   4  Prefactor     .87745        .98358E-01    .15810E-03   -.96933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1508e-11
Minuit parameter uncertainties:
  1  8.53786
  2  1.40912
  3  0.302917
  4  0.098378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6567': 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): 0
logL (Free Index) = 8923.2889289
delta logL = 0.908687338037

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  4.310e+00  8.538e+00  1.000e-04  1.000e+04 ( 1.000e-12)
498        Index:  3.763e+00  1.409e+00  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:  8.775e-01  9.838e-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:  1.344e+00  3.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 293.314 -45.651
Photon Index (Free Index): 3.76 +/- 1.41
Photon Flux (Free Index): 1.30e-07 +/- 8.07e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.29e-05

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/6567/cmap_HighResolution_578880001_579139201_4FGL_J1933.2-4539_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='2.04e-05', photon_flux_error='5.77e-08', dlogl='9.09e-01', energy_flux='1.78e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-23 03:45:47.251479', photon_index_error2='1.41', photon_index2='3.76', ts='1.99', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.29e-05', EG='1.42', time_epoch_completed='1632393947.25', return_code='0', job_id='6567', GAL2='0.88', EG2='1.34', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='8.07e-08', ts2='3.95', photon_index='2.64' WHERE bin_id='1310' AND source_name='4FGL J1933.2-4539' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 03:45:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 6567: <4FGL_J1933.2-4539_daily_bin1310> in cluster <slac> Done

Job <4FGL_J1933.2-4539_daily_bin1310> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 03:31:49 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 03:31:53 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:31:53 2021
Terminated at Thu Sep 23 03:45:48 2021
Results reported at Thu Sep 23 03:45:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1933.2-4539_daily_bin1310 293.314 -45.6508 578880001 579139201 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 :                                   808.24 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             353.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            839 sec.

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

