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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin837
RA = 294.309, Dec = -39.9825
tmin = 456278401, tmax = 456537601
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='57215', job_status='RUN', time_executed='2021-09-23 06:35:07.967737', time_epoch_executed='1632404107.97' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57215/ft1_4FGL_J1937.2-3958_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57215/ft1_4FGL_J1937.2-3958_daily_bin837.fits outfile=/scratch/kocevski/57215/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin837.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=456278401.0 tmax=456537601.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.30
user 4.08
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.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/57215/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin837.fits evtable="EVENTS" outfile="/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.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.47
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits" evtable="EVENTS" scfile=/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits sctable="SC_DATA" outfile=/scratch/kocevski/57215/ltcube_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.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/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits
.....................!
real 17.48
user 17.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/57215/ltcube_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.fits outfile=/scratch/kocevski/57215/expmap_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.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/57215/ltcube_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.fits
.....................!
real 158.18
user 153.63
sys 4.20

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
Added 249 point sources and 0 extended sources

Setting source of interest to:
4FGL J1937.2-3958 @ 294.309 -39.9825

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits scfile=/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits outfile=/scratch/kocevski/57215/cmap_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.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=294.309 yref=-39.9825 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.48
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits scfile=/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits outfile=/scratch/kocevski/57215/cmap_HighResolution_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.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=294.309 yref=-39.9825 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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57215/Model_4FGL_J1937.2-3958_daily_bin837.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits.....................!
real 44.02
user 42.80
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits', '/scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits', expMap='/scratch/kocevski/57215/expmap_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.fits', expCube='/scratch/kocevski/57215/ltcube_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/57215/Model_4FGL_J1937.2-3958_daily_bin837.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1937.2-3958'

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  5.014e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  5.474e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/57215/ft1_filtered_4FGL_J1937.2-3958_daily_bin837.fits
Spacecraft file(s): /scratch/kocevski/57215/ft2_4FGL_J1937.2-3958_daily_bin837.fits
Exposure map: /scratch/kocevski/57215/expmap_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.fits
Exposure cube: /scratch/kocevski/57215/ltcube_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/57215/Model_4FGL_J1937.2-3958_daily_bin837.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) = 5470.91252927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1453       1.0000         .10000E-03   10000.    
     5 'Prefactor '    132.77       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6615       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.600       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0486       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12527E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9353       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.223       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.509       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1500       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5470.911     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2333 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.4148        .13811E-05** at limit **
   2  norm          .10000E-03    2.8469       -.13579E-07** at limit **
   3  norm          6.5335        3.8100        .11855E-06   -.34373E-05
   4  Prefactor     4.1455        5.2885       -.55262E-07   -.36290E-03
   5  Prefactor     132.77        102.43        .74872E-05    .80659E-06
   6  Prefactor     5.6623        9.1515        .11375E-05    .62738E-07
   7  Prefactor     23.600        26.192        .92232E-07   -.20224E-05
   8  Prefactor     .10000E-03    9.1287       -.65144E-06** at limit **
   9  norm          .10000E-03    8.9108       -.13497E-05** at limit **
  10  Prefactor     3.0379        3.6593        .85316E-07   -.46332E-03
  11  norm          .10000E-03    .57811        .23961E-07** at limit **
  12  Prefactor     .10000E-03    94.117        .59993E-09** at limit **
  13  norm          .10000E-03    7.5142       -.51086E-06** at limit **
  14  norm          2.9358        15.182       -.13414E-05   -.40549E-05
  15  norm          2.5911        2.0310        .27395E-07    .77625E-06
  16  Prefactor     56.224        43.614        .10335E-05   -.11767E-05
  17  norm          .10000E-03    1.7292        .21890E-07** at limit **
  18  norm          16.509        17.611        .20782E-06   -.28203E-05
  19  norm          .10000E-03    8.1167        .17595E-05** at limit **
  20  Prefactor     .10000E-03    8.5992       -.57667E-06** at limit **
  21  Normalizat    1.1501        .32193       -.87129E-06   -.28898E-05
  22  Prefactor     .85768        .98527E-01   -.23092E-06    .65468E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.53346
  Prefactor  = 4.14546
  Prefactor  = 132.775
  Prefactor  = 5.66226
  Prefactor  = 23.6
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.03794
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.93583
  norm       = 2.59115
  Prefactor  = 56.2243
  norm       = 0.0001
  norm       = 16.5092
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15008
  Prefactor  = 0.857676
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.911     FROM HESSE     STATUS=OK           342 CALLS     2675 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.8490        .12188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5335        3.8133        .10691E-03   -1.5197    
   4  Prefactor     4.1455        6.0931        .98987E-03   -1.5301    
   5  Prefactor     132.77        102.47        .34948E-04   -1.3398    
   6  Prefactor     5.6623        9.1713        .16882E-03   -1.5232    
   7  Prefactor     23.600        26.188        .82455E-04   -1.4736    
   8  Prefactor     .10000E-03    9.1790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.9106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0379        6.9033        .11618E-02   -1.5359    
  11  norm          .10000E-03    .99470        .10903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    94.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.5546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9358        15.208        .23708E-03   -1.5365    
  15  norm          2.5911        2.0348        .90697E-04   -1.5386    
  16  Prefactor     56.224        43.647        .53499E-04   -1.4207    
  17  norm          .10000E-03    1.7386        .94959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.509        17.620        .98573E-04   -1.4895    
  19  norm          .10000E-03    8.1243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1501        .37145        .41303E-03   -.88160    
  22  Prefactor     .85768        .11369        .14693E-03   -.97636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26815e-10
Minuit parameter uncertainties:
  1  1.79227e-06
  2  2.0067e-06
  3  3.81342
  4  6.09397
  5  102.603
  6  9.17354
  7  26.2009
  8  1.91227e-06
  9  3.47279e-09
  10  6.90514
  11  2.21155e-06
  12  4.31832e-05
  13  8.32349e-06
  14  13.3691
  15  2.03486
  16  43.6714
  17  2.47042e-06
  18  17.6253
  19  1.65315e-06
  20  6.99721e-07
  21  0.372298
  22  0.113718
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  1.912e-06  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  5.474e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
870    Prefactor:  8.577e-01  1.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
871        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
872        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
869   Normalization:  1.150e+00  3.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 294.309 -39.983
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57215/likelihoodResults_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.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) = 5470.91149061
delta logL = -0.000519264908689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5470.91097158
delta logL = -2.35349034483e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6542       1.0000          .0000       10.000    
     3 'Normalizat'    1.1499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85773       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8730E+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=   5470.911     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    224.85        .18142E-02** at limit **
   2  Index         2.6119        5.7814        .50000        .50976E-05
   3  Normalizat    1.1501        .41011E-01    .41303E-03    .93861E-05
   4  Prefactor     .85768        .12893E-01    .14693E-03    .22856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100391
  Index      = 2.61189
  Normalizat = 1.15008
  Prefactor  = 0.857676
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.911     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10039E-03    885.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6119        6.1272        .50000       -.49795    
   3  Normalizat    1.1501        .91481E-01    .16521E-04   -.88160    
   4  Prefactor     .85768        .28762E-01    .29386E-04   -.97636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18087e-08
Minuit parameter uncertainties:
  1  0.0377696
  2  1714.3
  3  0.0914941
  4  0.0287622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57215': 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) = 5470.9109713
delta logL = 4.50472725788e-08

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.004e-04  3.777e-02  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  2.612e+00  1.714e+03  0.000e+00  1.000e+01 (-1.000e+00)
579        Scale:  5.474e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
870    Prefactor:  8.577e-01  2.876e-02  0.000e+00  1.000e+01 ( 1.000e+00)
871        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
872        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
869   Normalization:  1.150e+00  9.149e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 294.309 -39.983

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/57215/cmap_HighResolution_456278401_456537601_4FGL_J1937.2-3958_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-23 06:45:39.131721', job_id='57215', GAL2='0.86', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632404739.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='837' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 57215: <4FGL_J1937.2-3958_daily_bin837> in cluster <slac> Done

Job <4FGL_J1937.2-3958_daily_bin837> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 06:32:26 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 06:34:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 06:34:56 2021
Terminated at Thu Sep 23 06:45:39 2021
Results reported at Thu Sep 23 06:45:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin837 294.309 -39.9825 456278401 456537601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1937.2-3958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.13 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             346.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            793 sec.

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

