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


Performing analysis on: 4FGL_J1933.2-4539_daily_bin1658
RA = 293.314, Dec = -45.6508
tmin = 669081601, tmax = 669340801
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='721399', job_status='RUN', time_executed='2022-03-19 01:36:15.423333', time_epoch_executed='1647678975.42' WHERE source_name='4FGL J1933.2-4539' and cadence='daily' and bin_id='1658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721399/ft1_4FGL_J1933.2-4539_daily_bin1658.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721399/ft1_4FGL_J1933.2-4539_daily_bin1658.fits outfile=/scratch/kocevski/721399/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1658.fits ra=293.314 dec=-45.6508 rad=12.0 tmin=669081601.0 tmax=669340801.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 5.45
user 5.14
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.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/721399/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1658.fits evtable="EVENTS" outfile="/scratch/kocevski/721399/ft1_filtered_4FGL_J1933.2-4539_daily_bin1658.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.52
user 0.34
sys 0.15
Number of photons that survived the gtmktime cut: 1022

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721399/ft1_filtered_4FGL_J1933.2-4539_daily_bin1658.fits" evtable="EVENTS" scfile=/scratch/kocevski/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.fits sctable="SC_DATA" outfile=/scratch/kocevski/721399/ltcube_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.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/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.fits
.....................!
real 14.33
user 13.98
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721399/ft1_filtered_4FGL_J1933.2-4539_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.fits sctable="SC_DATA" expcube=/scratch/kocevski/721399/ltcube_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.fits outfile=/scratch/kocevski/721399/expmap_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.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/721399/ltcube_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.fits
.....................!
real 191.81
user 185.67
sys 5.71

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/721399/ft1_filtered_4FGL_J1933.2-4539_daily_bin1658.fits scfile=/scratch/kocevski/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.fits outfile=/scratch/kocevski/721399/cmap_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/721399/ft1_filtered_4FGL_J1933.2-4539_daily_bin1658.fits scfile=/scratch/kocevski/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.fits outfile=/scratch/kocevski/721399/cmap_HighResolution_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/721399/ft1_filtered_4FGL_J1933.2-4539_daily_bin1658.fits evtable="EVENTS" scfile=/scratch/kocevski/721399/ft2_4FGL_J1933.2-4539_daily_bin1658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721399/Model_4FGL_J1933.2-4539_daily_bin1658.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/721399/ft1_filtered_4FGL_J1933.2-4539_daily_bin1658.fits.....................!
real 92.85
user 91.38
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    38.168       1.0000         .10000E-03   10000.    
     3 'norm      '    11.697       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9195       1.0000         .10000E-03   10000.    
     5 'Prefactor '    156.94       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.069       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.9059       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4888       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.062       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2820       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6958       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80009       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=   10602.81     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1874 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.189        .29047E-05** at limit **
   2  norm          38.167        21.613       -.74897E-06   -.15167E-04
   3  norm          11.697        7.5540        .16268E-06    .80738E-05
   4  norm          1.9194        1.6785       -.14161E-07    .83046E-05
   5  Prefactor     156.92        105.25       -.14737E-04   -.48378E-04
   6  Prefactor     4.7250        5.4567       -.49304E-06    .67946E-05
   7  Prefactor     .10000E-03    11.005       -.92910E-05** at limit **
   8  Prefactor     15.072        11.363        .20835E-06   -.58618E-04
   9  norm          .10000E-03    25.828       -.11460E-04** at limit **
  10  norm          7.9059        1.6423        .77833E-07    .95287E-04
  11  norm          1.4880        1.8697        .10040E-05   -.37985E-02
  12  norm          .10000E-03    9.2081        .74580E-05** at limit **
  13  norm          .10000E-03    .85605       -.99000E-07** at limit **
  14  Prefactor     52.046        52.168       -.16764E-04   -.79572E-04
  15  norm          6.2817        4.4203        .17785E-05    .32509E-04
  16  norm          .10000E-03    7.7603       -.19483E-05** at limit **
  17  Prefactor     .10000E-03    19.193        .10370E-04** at limit **
  18  Normalizat    1.6959        .25290        .35199E-06    .97276E-05
  19  Prefactor     .80007        .80631E-01    .45021E-06   -.15353E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 38.1674
  norm       = 11.6966
  norm       = 1.91944
  Prefactor  = 156.921
  Prefactor  = 4.72496
  Prefactor  = 0.0001
  Prefactor  = 15.0716
  norm       = 0.0001
  norm       = 7.90591
  norm       = 1.48805
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 52.0459
  norm       = 6.28175
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.69585
  Prefactor  = 0.800066
 **********
 **   18 **HESSE 
 **********

 FCN=   10602.81     FROM HESSE     STATUS=OK           272 CALLS     2146 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          38.167        21.634        .64875E-04   -1.4472    
   3  norm          11.697        7.5739        .11713E-03   -1.5024    
   4  norm          1.9194        1.6799        .12128E-03   -1.5431    
   5  Prefactor     156.92        105.35        .16091E-03   -1.3196    
   6  Prefactor     4.7250        5.4579        .18510E-03   -1.5273    
   7  Prefactor     .10000E-03    11.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.072        11.365        .51588E-03   -1.4931    
   9  norm          .10000E-03    26.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9059        1.6435        .57702E-04   -1.5146    
  11  norm          1.4880        5.0482        .17571E-02   -1.5464    
  12  norm          .10000E-03    9.2098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1084        .18516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     52.046        52.249        .55585E-04   -1.4264    
  15  norm          6.2817        4.4286        .16015E-03   -1.5207    
  16  norm          .10000E-03    7.7629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6959        .30538        .38871E-03   -.72414    
  19  Prefactor     .80007        .97569E-01    .17271E-03   -.99726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43669e-08
Minuit parameter uncertainties:
  1  4.44093e-05
  2  21.6389
  3  7.57452
  4  1.67999
  5  105.474
  6  5.45848
  7  7.41939e-05
  8  11.367
  9  0.000102122
  10  1.64353
  11  5.04965
  12  2.62201e-05
  13  1.96948e-05
  14  52.2952
  15  4.42883
  16  1.40205e-05
  17  9.64671e-05
  18  0.30572
  19  0.0975903
Done.

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

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  4.725e+00  5.458e+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.001e-01  9.759e-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.696e+00  3.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 293.314 -45.651
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 3.23e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 8.17e-06 +/- 9.44e-06

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

Saving results to:
/scratch/kocevski/721399/likelihoodResults_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.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) = 10602.3582843
delta logL = 0.45346730844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10602.3542572
delta logL = 0.457494405005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9318       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8324       1.0000          .0000       10.000    
     3 'Normalizat'    1.7200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79516       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=   10602.35     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9318        5.5005        .45277E-02   -.24719E-02
   2  Index         1.8323        .51367        .26853       -.83802E-04
   3  Normalizat    1.7201        .24683        .87297E-01   -.11546E-04
   4  Prefactor     .79516        .79455E-01    .43654E-01   -.48600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.93177
  Index      = 1.83229
  Normalizat = 1.72005
  Prefactor  = 0.795163
 **********
 **   18 **HESSE 
 **********

 FCN=   10602.35     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9318        5.9318        .18111E-03   -1.5264    
   2  Index         1.8323        .71712        .13063E-01   -.68612    
   3  Normalizat    1.7201        .29672        .38646E-03   -.71769    
   4  Prefactor     .79516        .95636E-01    .17316E-03   -.99907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35697e-09
Minuit parameter uncertainties:
  1  5.93254
  2  0.721291
  3  0.297029
  4  0.0956562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721399': 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) = 10602.3542572
delta logL = 0.457494430659

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  4.932e+00  5.933e+00  1.000e-04  1.000e+04 ( 1.000e-12)
498        Index:  1.832e+00  7.213e-01  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:  7.952e-01  9.566e-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.720e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 293.314 -45.651
Photon Index (Free Index): 1.83 +/- 0.72
Photon Flux (Free Index): 1.56e-08 +/- 2.26e-08
Energy Flux (Free Index): 1.70e-05 +/- 2.71e-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/721399/cmap_HighResolution_669081601_669340801_4FGL_J1933.2-4539_daily_bin1658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='3.23e-08', energy_flux2='1.70e-05', photon_flux_error='3.73e-08', dlogl='4.57e-01', energy_flux='8.17e-06', photon_flux2='1.56e-08', job_status='DONE', time_completed='2022-03-19 01:51:41.791725', photon_index_error2='0.72', photon_index2='1.83', ts='1.61', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='2.71e-05', EG='1.70', time_epoch_completed='1647679901.79', return_code='0', job_id='721399', GAL2='0.80', EG2='1.72', return_code2='0', energy_flux_error='9.44e-06', photon_flux_error2='2.26e-08', ts2='2.52', photon_index='2.64' WHERE bin_id='1658' AND source_name='4FGL J1933.2-4539' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 19 01:51:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 721399: <4FGL_J1933.2-4539_daily_bin1658> in cluster <slac> Done

Job <4FGL_J1933.2-4539_daily_bin1658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 19 01:35:13 2022
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 19 01:35:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 19 01:35:15 2022
Terminated at Sat Mar 19 01:51:42 2022
Results reported at Sat Mar 19 01:51:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1933.2-4539_daily_bin1658 293.314 -45.6508 669081601 669340801 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 :                                   928.09 sec.
    Max Memory :                                 1155 MB
    Average Memory :                             351.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

