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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin1255
RA = 294.309, Dec = -39.9825
tmin = 564624001, tmax = 564883201
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='60988', job_status='RUN', time_executed='2021-09-23 06:47:38.097986', time_epoch_executed='1632404858.1' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60988/ft1_4FGL_J1937.2-3958_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60988/ft1_4FGL_J1937.2-3958_daily_bin1255.fits outfile=/scratch/kocevski/60988/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1255.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=564624001.0 tmax=564883201.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.05
user 2.77
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.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/60988/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.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.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/60988/ltcube_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.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/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits
.....................!
real 14.10
user 13.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/60988/ltcube_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.fits outfile=/scratch/kocevski/60988/expmap_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.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/60988/ltcube_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.fits
.....................!
real 159.51
user 153.80
sys 3.98

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/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits scfile=/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits outfile=/scratch/kocevski/60988/cmap_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits scfile=/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits outfile=/scratch/kocevski/60988/cmap_HighResolution_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.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.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60988/Model_4FGL_J1937.2-3958_daily_bin1255.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/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits.....................!
real 30.24
user 28.84
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits', '/scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits', expMap='/scratch/kocevski/60988/expmap_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.fits', expCube='/scratch/kocevski/60988/ltcube_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/60988/Model_4FGL_J1937.2-3958_daily_bin1255.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/60988/ft1_filtered_4FGL_J1937.2-3958_daily_bin1255.fits
Spacecraft file(s): /scratch/kocevski/60988/ft2_4FGL_J1937.2-3958_daily_bin1255.fits
Exposure map: /scratch/kocevski/60988/expmap_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.fits
Exposure cube: /scratch/kocevski/60988/ltcube_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/60988/Model_4FGL_J1937.2-3958_daily_bin1255.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2887.17332724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2814       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7654       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.932       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0147       1.0000         .10000E-03   10000.    
     9 'norm      '    68.902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2758       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9201       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2466       1.0000         .10000E-03   10000.    
    18 'norm      '    35.358       1.0000         .10000E-03   10000.    
    19 'norm      '    11.202       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .56270E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97337       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=   2887.171     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     3048 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    59.308        .18142E-02** at limit **
   2  norm          1.3095        72.558        .19601E-02   -.80420E-04
   3  norm          6.7661        7.3810        .14564E-03    .19874E-03
   4  Prefactor     17.153        9.3115        .96722E-04    .19506E-03
   5  Prefactor     .10000E-03    68.694        .18142E-02** at limit **
   6  Prefactor     53.967        46.022        .54617E-04    .17608E-03
   7  Prefactor     .10000E-03    165.45        .18142E-02** at limit **
   8  Prefactor     8.0572        58.957        .14163E-03    .53502E-04
   9  norm          68.881        56.987        .24178E-03    .38839E-04
  10  Prefactor     3.2779        9.3177        .22373E-03    .16456E-03
  11  norm          4.9200        3.8277        .80724E-04    .91169E-03
  12  Prefactor     .10000E-03    15.020        .18142E-02** at limit **
  13  norm          .10000E-03    21.841        .18142E-02** at limit **
  14  norm          .10000E-03    24.192        .18142E-02** at limit **
  15  norm          .10000E-03    5.5959        .12414E-02** at limit **
  16  Prefactor     .10000E-03    44.948        .18142E-02** at limit **
  17  norm          4.2460        9.7713        .19553E-03    .45642E-04
  18  norm          35.365        28.963        .67395E-04    .91614E-04
  19  norm          11.205        32.294        .11970E-03    .33241E-05
  20  Prefactor     .10000E-03    29.880        .18142E-02** at limit **
  21  Normalizat    .56095E-01    7.1611        .15278E-01    .90328E-04
  22  Prefactor     .97329        .25140        .13367E-03    .11463E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.30951
  norm       = 6.76612
  Prefactor  = 17.1528
  Prefactor  = 0.000100001
  Prefactor  = 53.9667
  Prefactor  = 0.0001
  Prefactor  = 8.05717
  norm       = 68.881
  Prefactor  = 3.27792
  norm       = 4.92004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.24605
  norm       = 35.3649
  norm       = 11.2052
  Prefactor  = 0.0001
  Normalizat = 0.0560953
  Prefactor  = 0.973289
 **********
 **   18 **HESSE 
 **********

 FCN=   2887.171     FROM HESSE     STATUS=OK           324 CALLS     3372 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    59.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3095        70.912        .78404E-04   -1.5479    
   3  norm          6.7661        7.3652        .58256E-05   -1.5188    
   4  Prefactor     17.153        9.2111        .38689E-05   -1.4879    
   5  Prefactor     .10000E-03    68.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.967        45.767        .10923E-04   -1.4237    
   7  Prefactor     .10000E-03    165.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0572        54.452        .56650E-05   -1.5140    
   9  norm          68.881        56.821        .96713E-05   -1.4046    
  10  Prefactor     3.2779        9.0067        .89491E-05   -1.5346    
  11  norm          4.9200        3.7430        .32290E-05   -1.5264    
  12  Prefactor     .10000E-03    15.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    21.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    24.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.5959        .24829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2460        9.7498        .78212E-05   -1.5296    
  18  norm          35.365        28.191        .13479E-04   -1.4518    
  19  norm          11.205        32.290        .47880E-05   -1.5038    
  20  Prefactor     .10000E-03    29.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .56095E-01    6.0072        .61113E-03   -1.4348    
  22  Prefactor     .97329        .17912        .26735E-04   -.93625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09766e-09
Minuit parameter uncertainties:
  1  8.40002e-05
  2  19.2961
  3  7.36619
  4  9.21185
  5  0.000377776
  6  45.7966
  7  0.000538248
  8  41.9465
  9  56.8655
  10  9.01046
  11  3.74319
  12  3.01959e-05
  13  1.46974e-05
  14  0.000159937
  15  6.38492e-06
  16  0.000101741
  17  9.75347
  18  28.2011
  19  32.34
  20  0.000149233
  21  0.732051
  22  0.179233
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  8.057e+00  4.195e+01  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:  9.733e-01  1.792e-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:  5.610e-02  7.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/60988/likelihoodResults_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.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) = 2887.0635888
delta logL = 0.107351916712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2887.05598365
delta logL = 0.114957065835

Fit tolerance = 1e-08

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

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

 FCN=   2887.056     FROM MIGRAD    STATUS=FAILED        97 CALLS      321 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6895        30.891        .12883E-03   -.38938E-03
   2  Index         3.4753        1.9471        .10211E-01   -.12474E-03
   3  Normalizat    .10000E-01    1.3038        .29526    ** at limit **
   4  Prefactor     .97680        .13769        .13336E-03    .40046E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2887.056     FROM SIMPLEX   STATUS=UNCHANGED    104 CALLS      425 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6895        30.891        .10411E-04   -1.5085    
   2  Index         3.4753        1.9471        .96473E-04   -.30988    
   3  Normalizat    .10000E-01    1.3038        .60981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97680        .13769        .72916E-07   -.93507    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2887.056     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      462 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6895        27.087        .51533E-05   -.75515E-03
   2  Index         3.4753        1.7166        .40843E-03   -.16972E-03
   3  Normalizat    .10000E-01    1.3086        .29527    ** at limit **
   4  Prefactor     .97680        .13781        .26672E-04    .21418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.68951
  Index      = 3.47531
  Normalizat = 0.01
  Prefactor  = 0.976796
 **********
 **   18 **HESSE 
 **********

 FCN=   2887.056     FROM HESSE     STATUS=OK            33 CALLS      495 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6895        26.955        .10307E-05   -1.5085    
   2  Index         3.4753        1.7097        .81685E-04   -.30987    
   3  Normalizat    .10000E-01    1.3089        .29527       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97680        .13782        .53344E-05   -.93507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25032e-09
Minuit parameter uncertainties:
  1  26.9891
  2  1.74875
  3  0.000240188
  4  0.137869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60988': 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) = 2887.0559678
delta logL = 0.114972921118

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  9.690e+00  2.699e+01  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  3.475e+00  1.749e+00  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:  9.768e-01  1.379e-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.000e-02  2.402e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/60988/cmap_HighResolution_564624001_564883201_4FGL_J1937.2-3958_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-02', job_status='DONE', photon_flux_upper_limit='5.42e-07', time_completed='2021-09-23 06:55:41.893410', job_id='60988', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.06', time_epoch_completed='1632405341.89', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.15e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1255' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 60988: <4FGL_J1937.2-3958_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1937.2-3958_daily_bin1255> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 06:46:39 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 06:47:29 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:47:29 2021
Terminated at Thu Sep 23 06:55:42 2021
Results reported at Thu Sep 23 06:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin1255 294.309 -39.9825 564624001 564883201 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 :                                   475.30 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             264.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   493 sec.
    Turnaround time :                            543 sec.

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

