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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin1235
RA = 294.309, Dec = -39.9825
tmin = 559440001, tmax = 559699201
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='60957', job_status='RUN', time_executed='2021-09-23 06:48:54.431036', time_epoch_executed='1632404934.43' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='1235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60957/ft1_4FGL_J1937.2-3958_daily_bin1235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60957/ft1_4FGL_J1937.2-3958_daily_bin1235.fits outfile=/scratch/kocevski/60957/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1235.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=559440001.0 tmax=559699201.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.65
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.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/60957/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1235.fits evtable="EVENTS" outfile="/scratch/kocevski/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits" evtable="EVENTS" scfile=/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits sctable="SC_DATA" outfile=/scratch/kocevski/60957/ltcube_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.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/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits
.....................!
real 14.75
user 14.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits sctable="SC_DATA" expcube=/scratch/kocevski/60957/ltcube_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.fits outfile=/scratch/kocevski/60957/expmap_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.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/60957/ltcube_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.fits
.....................!
real 192.70
user 186.99
sys 5.33

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/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits scfile=/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits outfile=/scratch/kocevski/60957/cmap_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits scfile=/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits outfile=/scratch/kocevski/60957/cmap_HighResolution_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60957/Model_4FGL_J1937.2-3958_daily_bin1235.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/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits......................!
real 26.33
user 24.99
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits', '/scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits', expMap='/scratch/kocevski/60957/expmap_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.fits', expCube='/scratch/kocevski/60957/ltcube_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/60957/Model_4FGL_J1937.2-3958_daily_bin1235.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/60957/ft1_filtered_4FGL_J1937.2-3958_daily_bin1235.fits
Spacecraft file(s): /scratch/kocevski/60957/ft2_4FGL_J1937.2-3958_daily_bin1235.fits
Exposure map: /scratch/kocevski/60957/expmap_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.fits
Exposure cube: /scratch/kocevski/60957/ltcube_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/60957/Model_4FGL_J1937.2-3958_daily_bin1235.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) = 1317.13094674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    697.69       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11788E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .76680E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12530E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.534       1.0000         .10000E-03   10000.    
    11 'norm      '    8.0321       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21829E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    79.144       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.7236       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13284E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0182       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=   1316.362     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2368 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          697.82        1322.8        .85315E-05    .34934E-04
   2  norm          .10000E-03    13.530        .16303E-07** at limit **
   3  norm          .10000E-03    31.321        .20512E-06** at limit **
   4  Prefactor     .10003E-03    90.082       -.31718E-04** at limit **
   5  Prefactor     .10000E-03    281.93        .17633E-07** at limit **
   6  Prefactor     .10000E-03    117.73        .13701E-07** at limit **
   7  Prefactor     .10006E-03    699.10        .14074E-05** at limit **
   8  Prefactor     .10002E-03    221.40       -.25011E-05** at limit **
   9  norm          15.957        328.09        .20122E-05    .48430E-04
  10  Prefactor     34.543        18.401        .63963E-06    .28822E-03
  11  norm          8.0319        5.9978        .43672E-06    .15588E-02
  12  Prefactor     .10000E-03    91.029       -.19026E-06** at limit **
  13  norm          .10001E-03    50.478       -.11291E-05** at limit **
  14  norm          .10000E-03    109.46       -.26080E-07** at limit **
  15  norm          .10000E-03    41.895        .38697E-07** at limit **
  16  Prefactor     .10000E-03    56.208        .50750E-07** at limit **
  17  norm          79.146        50.803        .29771E-06    .19898E-03
  18  norm          .10000E-03    14.906        .45309E-07** at limit **
  19  norm          9.7122        229.18        .48144E-05    .77850E-04
  20  Prefactor     .10000E-03    126.53       -.54654E-06** at limit **
  21  Normalizat    .10000E-01    .44695       -.14484E-04** at limit **
  22  Prefactor     1.0181        .13466        .28026E-05    .89781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 697.815
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100029
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100062
  Prefactor  = 0.000100021
  norm       = 15.9567
  Prefactor  = 34.5432
  norm       = 8.03191
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 79.1462
  norm       = 0.0001
  norm       = 9.71217
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.01807
 **********
 **   18 **HESSE 
 **********

 FCN=   1316.362     FROM HESSE     STATUS=OK           324 CALLS     2692 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          697.82        1323.5        .78506E-04   -1.0361    
   2  norm          .10000E-03    13.533        .13038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    31.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    90.930        .26103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    282.04        .20927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    117.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10006E-03    698.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    222.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.957        331.28        .99888E-04   -1.4909    
  10  Prefactor     34.543        18.541        .68192E-04   -1.4532    
  11  norm          8.0319        6.0045        .69851E-04   -1.5141    
  12  Prefactor     .10000E-03    91.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    50.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    109.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    41.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          79.146        50.754        .45142E-04   -1.3926    
  18  norm          .10000E-03    14.927        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.7122        229.26        .12851E-03   -1.5085    
  20  Prefactor     .10000E-03    126.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .68359        .14317E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0181        .13986        .14369E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74131e-09
Minuit parameter uncertainties:
  1  1391.68
  2  4.29925e-05
  3  0.000369081
  4  0.00325414
  5  0.00182233
  6  0.000447835
  7  0.013329
  8  0.0043675
  9  146.346
  10  18.544
  11  6.00494
  12  0.000254846
  13  0.00126249
  14  1.91814e-06
  15  9.28438e-05
  16  0.000152498
  17  50.7817
  18  6.72389e-05
  19  94.7839
  20  0.000393073
  21  7.30677e-05
  22  0.139907
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  4.367e-03  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:  1.018e+00  1.399e-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  7.307e-05  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.39e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60957/likelihoodResults_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.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) = 1316.36173431
delta logL = -2.78421464373e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1316.36173412
delta logL = -2.76507819308e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6611       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0181       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=   1316.011     FROM MIGRAD    STATUS=CONVERGED    170 CALLS      322 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29739E-02    .44067E-02    .71632E-03   -.14991E-02
   2  Index        10.0000        2.0993        .50000    ** at limit **
   3  Normalizat    .10000E-01    .48753        .14318E-01** at limit **
   4  Prefactor     1.0020        .12444        .14369E-03    .43180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00297386
  Index      = 10
  Normalizat = 0.01
  Prefactor  = 1.00197
 **********
 **   18 **HESSE 
 **********

 FCN=   1316.011     FROM HESSE     STATUS=OK            29 CALLS      351 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29739E-02    .41993E-02    .28457E-04   -1.5719    
   2  Index        10.0000        7.6315        .32908E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .48761        .28636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0020        .12309        .57476E-05   -.92664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5631e-11
Minuit parameter uncertainties:
  1  0.00419932
  2  2.5472e-05
  3  4.19522e-06
  4  0.123126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60957': 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) = 1316.01057208
delta logL = 0.351134395588

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  2.974e-03  4.199e-03  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  1.000e+01  2.547e-05  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:  1.002e+00  1.231e-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  4.195e-06  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/60957/cmap_HighResolution_559440001_559699201_4FGL_J1937.2-3958_daily_bin1235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-01', job_status='DONE', photon_flux_upper_limit='1.39e-06', time_completed='2021-09-23 06:56:10.830976', job_id='60957', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632405370.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.51e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1235' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 60957: <4FGL_J1937.2-3958_daily_bin1235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin1235 294.309 -39.9825 559440001 559699201 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 :                                   434.10 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             254.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            574 sec.

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

