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


Performing analysis on: 4FGL_J1933.2-4539_daily_bin1362
RA = 293.314, Dec = -45.6508
tmin = 592358401, tmax = 592617601
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='6631', job_status='RUN', time_executed='2021-09-23 03:32:28.200671', time_epoch_executed='1632393148.2' WHERE source_name='4FGL J1933.2-4539' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/6631

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/6631/ft1_4FGL_J1933.2-4539_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/6631/ft1_4FGL_J1933.2-4539_daily_bin1362.fits outfile=/scratch/kocevski/6631/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1362.fits ra=293.314 dec=-45.6508 rad=12.0 tmin=592358401.0 tmax=592617601.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 2.68
user 2.48
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.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/6631/ft1_filteredMKT_4FGL_J1933.2-4539_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/6631/ft1_filtered_4FGL_J1933.2-4539_daily_bin1362.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/6631/ft1_filtered_4FGL_J1933.2-4539_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/6631/ltcube_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.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/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.fits
.....................!
real 9.35
user 9.06
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/6631/ft1_filtered_4FGL_J1933.2-4539_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/6631/ltcube_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.fits outfile=/scratch/kocevski/6631/expmap_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.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/6631/ltcube_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.fits
.....................!
real 145.11
user 141.85
sys 3.00

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/6631/ft1_filtered_4FGL_J1933.2-4539_daily_bin1362.fits scfile=/scratch/kocevski/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.fits outfile=/scratch/kocevski/6631/cmap_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/6631/ft1_filtered_4FGL_J1933.2-4539_daily_bin1362.fits scfile=/scratch/kocevski/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.fits outfile=/scratch/kocevski/6631/cmap_HighResolution_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.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.47
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/6631/ft1_filtered_4FGL_J1933.2-4539_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/6631/ft2_4FGL_J1933.2-4539_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/6631/Model_4FGL_J1933.2-4539_daily_bin1362.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/6631/ft1_filtered_4FGL_J1933.2-4539_daily_bin1362.fits.....................!
real 55.41
user 54.31
sys 0.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2468       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0281       1.0000         .10000E-03   10000.    
     4 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    182.50       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.190       1.0000         .10000E-03   10000.    
    10 'norm      '    .68165       1.0000         .10000E-03   10000.    
    11 'norm      '    26.504       1.0000         .10000E-03   10000.    
    12 'norm      '    69.787       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.568       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.754       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .63125       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.7050       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79029       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7939.351     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1675 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.1039       -.80775E-05** at limit **
   2  norm          6.3302        17.331       -.78139E-05    .61194E-02
   3  norm          7.0292        9.0283       -.12335E-04   -.66571E-02
   4  norm          .10000E-03    1.6764        .14255E-05** at limit **
   5  Prefactor     182.48        2.0887       -.39999E-06    .63011E-02
   6  Prefactor     .10000E-03    12.551       -.11965E-04** at limit **
   7  Prefactor     .10000E-03    11.036        .25589E-05** at limit **
   8  Prefactor     .10000E-03    11.272        .63756E-05** at limit **
   9  norm          20.208        3.9968       -.10646E-05    .23588E-02
  10  norm          .68164        .72937        .10315E-05    .26031E-03
  11  norm          26.497        13.249       -.51041E-05   -.96766E-02
  12  norm          69.789        2.0106       -.37898E-06   -.27325E-02
  13  norm          3.5075        2.1067        .45090E-06   -.16800E-04
  14  Prefactor     39.568        1.1775        .15710E-06   -.72907E-03
  15  norm          .10000E-03    1.6055        .77615E-07** at limit **
  16  norm          24.874        22.813       -.92966E-05    .73697E-02
  17  Prefactor     .17361E-03    1503.9       -.54098E-04** at limit **
  18  Normalizat    1.7057        .32524       -.15386E-04   -.95003E-04
  19  Prefactor     .79010        .10656        .70175E-05   -.15989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.33022
  norm       = 7.02923
  norm       = 0.0001
  Prefactor  = 182.478
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 20.2081
  norm       = 0.681644
  norm       = 26.4966
  norm       = 69.7894
  norm       = 3.50752
  Prefactor  = 39.5683
  norm       = 0.0001
  norm       = 24.8741
  Prefactor  = 0.000173606
  Normalizat = 1.70574
  Prefactor  = 0.790098
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.351     FROM HESSE     STATUS=OK           324 CALLS     1999 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.0886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3302        34.654        .40153E-02   -1.5205    
   3  norm          7.0292        9.2336        .37831E-02   -1.5178    
   4  norm          .10000E-03    1.0512        .37745E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     182.48        145.75        .74709E-03   -1.2998    
   6  Prefactor     .10000E-03    3.3082        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.014        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.162        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.208        27.985        .22285E-02   -1.4809    
  10  norm          .68164        .74498        .11991E-01   -1.5543    
  11  norm          26.497        14.409        .19453E-02   -1.4678    
  12  norm          69.789        32.388        .12013E-02   -1.4035    
  13  norm          3.5075        2.1098        .53964E-02   -1.5333    
  14  Prefactor     39.568        73.994        .15930E-02   -1.4449    
  15  norm          .10000E-03    1.5968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.874        26.841        .20128E-02   -1.4710    
  17  Prefactor     .17361E-03    54.086        .17062       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.7057        .28232        .85854E-01   -.72150    
  19  Prefactor     .79010        .90274E-01    .43591E-01   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33148e-06
Minuit parameter uncertainties:
  1  9.35377e-06
  2  29.6483
  3  9.23546
  4  3.14966e-06
  5  146.038
  6  9.93727e-05
  7  0.000131383
  8  0.000259676
  9  28.0031
  10  0.744992
  11  14.4109
  12  32.3959
  13  2.10985
  14  74.1668
  15  2.29414e-06
  16  26.8542
  17  0.126305
  18  0.282591
  19  0.0902909
Done.

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

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  1.000e-04  9.937e-05  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:  7.901e-01  9.029e-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.706e+00  2.826e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/6631/likelihoodResults_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.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) = 7939.35105933
delta logL = -0.000379955716198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7939.35067962
delta logL = -2.49116055784e-07

Fit tolerance = 1e-08

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

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

 FCN=   7939.351     FROM MIGRAD    STATUS=FAILED        99 CALLS      266 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11062E-03    160.82        .32966E-02** at limit **
   2  Index         2.3351        6.4043        .50000        .11385E-04
   3  Normalizat    1.7057        .20006E-01    .38005E-03   -.11307E-03
   4  Prefactor     .79010        .64777E-02    .17088E-03   -.28829E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7939.351     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      388 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11062E-03    160.82        .80631E-03** at limit **
   2  Index         2.3351        6.4043        .44056E-03    .11385E-04
   3  Normalizat    1.7057        .20006E-01    .50043E-05   -.11307E-03
   4  Prefactor     .79010        .64777E-02    .17656E-05   -.28829E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7939.351     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      442 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0497        .94588E-01** at limit **
   2  Index         2.2286        5.6351        .50000        .34620E-06
   3  Normalizat    1.7057        .36508E-02    .15202E-04    .88529E-03
   4  Prefactor     .79010        .11821E-02    .34176E-04    .19587E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22864
  Normalizat = 1.70575
  Prefactor  = 0.790099
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.351     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      473 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    189.77        .35693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2286        7.8923        .50000       -.58749    
   3  Normalizat    1.7057        .21128E-01    .30404E-05   -.72150    
   4  Prefactor     .79010        .68408E-02    .68351E-05   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.59916e-10
Minuit parameter uncertainties:
  1  0.000257364
  2  308.646
  3  0.0211276
  4  0.00684081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/6631': 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) = 7939.35067752
delta logL = 1.85351018445e-06

Extracting fit parameters...

4FGL J1933.2-4539
   Spectrum: PowerLaw
497    Prefactor:  1.000e-04  2.574e-04  1.000e-04  1.000e+04 ( 1.000e-12)
498        Index:  2.229e+00  3.086e+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:  7.901e-01  6.841e-03  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.706e+00  2.113e-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/6631/cmap_HighResolution_592358401_592617601_4FGL_J1933.2-4539_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-23 03:42:39.935651', job_id='6631', GAL2='0.79', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1632393759.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1362' AND source_name='4FGL J1933.2-4539' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 03:42:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 6631: <4FGL_J1933.2-4539_daily_bin1362> in cluster <slac> Done

Job <4FGL_J1933.2-4539_daily_bin1362> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 03:31:57 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 03:32:14 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:32:14 2021
Terminated at Thu Sep 23 03:42:40 2021
Results reported at Thu Sep 23 03:42:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1933.2-4539_daily_bin1362 293.314 -45.6508 592358401 592617601 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 :                                   603.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             360.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            643 sec.

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

