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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin886
RA = 294.309, Dec = -39.9825
tmin = 468979201, tmax = 469238401
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='58259', job_status='RUN', time_executed='2021-09-23 06:37:08.031854', time_epoch_executed='1632404228.03' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58259/ft1_4FGL_J1937.2-3958_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58259/ft2_4FGL_J1937.2-3958_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58259/ft1_4FGL_J1937.2-3958_daily_bin886.fits outfile=/scratch/kocevski/58259/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin886.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=468979201.0 tmax=469238401.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.46
user 3.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58259/ft1_filtered_4FGL_J1937.2-3958_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/58259/ft2_4FGL_J1937.2-3958_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/58259/ltcube_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.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/58259/ft2_4FGL_J1937.2-3958_daily_bin886.fits
.....................!
real 16.94
user 16.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58259/ft1_filtered_4FGL_J1937.2-3958_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/58259/ft2_4FGL_J1937.2-3958_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/58259/ltcube_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.fits outfile=/scratch/kocevski/58259/expmap_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.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/58259/ltcube_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.fits
.....................!
real 193.21
user 187.78
sys 4.74

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/58259/ft1_filtered_4FGL_J1937.2-3958_daily_bin886.fits scfile=/scratch/kocevski/58259/ft2_4FGL_J1937.2-3958_daily_bin886.fits outfile=/scratch/kocevski/58259/cmap_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58259/ft1_filtered_4FGL_J1937.2-3958_daily_bin886.fits scfile=/scratch/kocevski/58259/ft2_4FGL_J1937.2-3958_daily_bin886.fits outfile=/scratch/kocevski/58259/cmap_HighResolution_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.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.57
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58259/ft1_filtered_4FGL_J1937.2-3958_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/58259/ft2_4FGL_J1937.2-3958_daily_bin886.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58259/Model_4FGL_J1937.2-3958_daily_bin886.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/58259/ft1_filtered_4FGL_J1937.2-3958_daily_bin886.fits.....................!
real 67.45
user 65.92
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11041E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6708       1.0000         .10000E-03   10000.    
     3 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1357       1.0000         .10000E-03   10000.    
     5 'Prefactor '    94.415       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8984       1.0000         .10000E-03   10000.    
     9 'norm      '    .33215E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4869       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0542       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1289       1.0000         .10000E-03   10000.    
    18 'norm      '    14.144       1.0000         .10000E-03   10000.    
    19 'norm      '    14.570       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6256       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73899       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93296       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=   7200.288     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2506 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10048E-03    89.796       -.31795E-04** at limit **
   2  norm          4.6684        11.182        .65074E-06    .15415E-03
   3  norm          .10000E-03    1.5994        .34999E-06** at limit **
   4  Prefactor     6.1347        6.1222        .13800E-06    .16406E-03
   5  Prefactor     94.225        109.88        .16311E-06    .23967E-03
   6  Prefactor     .10000E-03    5.9018       -.28614E-06** at limit **
   7  Prefactor     9.0260        22.564       -.23567E-06   -.76751E-05
   8  Prefactor     1.8954        15.971        .79038E-06    .93353E-04
   9  norm          .10009E-03    33.159        .18046E-04** at limit **
  10  Prefactor     2.4837        6.7832       -.33749E-05   -.40506E-03
  11  norm          1.0541        .86797        .33218E-08    .25715E-04
  12  Prefactor     .10000E-03    27.152       -.38961E-07** at limit **
  13  norm          .10000E-03    2.5562       -.58385E-07** at limit **
  14  norm          .10000E-03    17.606       -.43685E-06** at limit **
  15  norm          1.0131        1.2951       -.31545E-07   -.12148E-04
  16  Prefactor     .10000E-03    82.537       -.52841E-06** at limit **
  17  norm          3.1287        3.3111       -.14064E-06   -.90432E-04
  18  norm          14.141        22.030        .13779E-06    .11332E-04
  19  norm          14.568        26.475       -.18584E-05   -.26904E-03
  20  Prefactor     1.6261        231.39        .69764E-05    .39198E-04
  21  Normalizat    .73887        .28924        .37035E-05    .16120E-03
  22  Prefactor     .93308        .87057E-01   -.84401E-06    .12597E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100481
  norm       = 4.66843
  norm       = 0.0001
  Prefactor  = 6.1347
  Prefactor  = 94.2249
  Prefactor  = 0.0001
  Prefactor  = 9.02599
  Prefactor  = 1.89543
  norm       = 0.000100088
  Prefactor  = 2.48366
  norm       = 1.05406
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.01312
  Prefactor  = 0.000100001
  norm       = 3.1287
  norm       = 14.1414
  norm       = 14.5682
  Prefactor  = 1.62611
  Normalizat = 0.738867
  Prefactor  = 0.93308
 **********
 **   18 **HESSE 
 **********

 FCN=   7200.288     FROM HESSE     STATUS=OK           352 CALLS     2858 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10048E-03    141.00        .69058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6684        11.217        .18621E-03   -1.5276    
   3  norm          .10000E-03    4.4678        .20772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1347        6.1207        .16208E-03   -1.5213    
   5  Prefactor     94.225        111.03        .20681E-03   -1.3764    
   6  Prefactor     .10000E-03    5.9776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0260        22.542        .13340E-03   -1.5107    
   8  Prefactor     1.8954        15.605        .30189E-03   -1.5433    
   9  norm          .10009E-03    57.588        .61121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4837        6.8408        .12961E-02   -1.5393    
  11  norm          1.0541        .84474        .69165E-04   -1.5503    
  12  Prefactor     .10000E-03    27.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5611        .13249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0131        1.2945        .52171E-04   -1.5507    
  16  Prefactor     .10000E-03    82.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1287        3.3086        .15280E-03   -1.5354    
  18  norm          14.141        22.004        .10650E-03   -1.4956    
  19  norm          14.568        24.086        .10493E-03   -1.4944    
  20  Prefactor     1.6261        193.55        .33181E-03   -1.5453    
  21  Normalizat    .73887        .30931        .49507E-03   -1.0238    
  22  Prefactor     .93308        .95263E-01    .13721E-03   -.94995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73044e-09
Minuit parameter uncertainties:
  1  0.0165019
  2  11.2223
  3  6.33983e-05
  4  6.12136
  5  111.276
  6  5.45335e-05
  7  22.563
  8  10.8809
  9  0.00451525
  10  6.84299
  11  0.844752
  12  7.33226e-05
  13  7.33526e-06
  14  0.000150962
  15  1.29452
  16  0.000543377
  17  3.30875
  18  22.0165
  19  24.1016
  20  35.5992
  21  0.310045
  22  0.0952798
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.895e+00  1.088e+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.331e-01  9.528e-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:  7.389e-01  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/58259/likelihoodResults_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.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) = 7200.28691833
delta logL = 0.00122331021794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7200.28686311
delta logL = 0.00127852891183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8111       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7788       1.0000          .0000       10.000    
     3 'Normalizat'    .73778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93320       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7200.287     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      305 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8043        19.799        .15522E-02    .31628E-03
   2  Index         2.7748        2.4500        .23870E-01    .13176E-03
   3  Normalizat    .73805        .29678        .49531E-03    .54856E-05
   4  Prefactor     .93321        .92013E-01    .13720E-03    .10938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80431
  Index      = 2.7748
  Normalizat = 0.738052
  Prefactor  = 0.93321
 **********
 **   18 **HESSE 
 **********

 FCN=   7200.287     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8043        15.689        .31044E-03   -1.5439    
   2  Index         2.7748        2.2126        .47740E-02   -.46122    
   3  Normalizat    .73805        .29695        .19813E-04   -1.0241    
   4  Prefactor     .93321        .92018E-01    .54878E-05   -.94990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8662e-13
Minuit parameter uncertainties:
  1  10.6446
  2  2.31422
  3  0.297598
  4  0.0920337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58259': 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) = 7200.28685935
delta logL = 0.00128228355698

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.804e+00  1.064e+01  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  2.775e+00  2.314e+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.332e-01  9.203e-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:  7.381e-01  2.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/58259/cmap_HighResolution_468979201_469238401_4FGL_J1937.2-3958_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-23 06:51:54.413113', job_id='58259', GAL2='0.93', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632405114.41', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.28e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='886' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:51:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 58259: <4FGL_J1937.2-3958_daily_bin886> in cluster <slac> Done

Job <4FGL_J1937.2-3958_daily_bin886> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 06:36:42 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 06:36:53 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:36:53 2021
Terminated at Thu Sep 23 06:51:55 2021
Results reported at Thu Sep 23 06:51:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin886 294.309 -39.9825 468979201 469238401 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 :                                   885.37 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             335.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            913 sec.

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

