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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin1077
RA = 294.309, Dec = -39.9825
tmin = 518486401, tmax = 518745601
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='59641', job_status='RUN', time_executed='2021-09-23 06:42:32.892128', time_epoch_executed='1632404552.89' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59641

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59641/ft1_4FGL_J1937.2-3958_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59641/ft2_4FGL_J1937.2-3958_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59641/ft1_4FGL_J1937.2-3958_daily_bin1077.fits outfile=/scratch/kocevski/59641/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1077.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.81
user 6.53
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59641/ft2_4FGL_J1937.2-3958_daily_bin1077.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/59641/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/59641/ft1_filtered_4FGL_J1937.2-3958_daily_bin1077.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59641/ft1_filtered_4FGL_J1937.2-3958_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/59641/ft2_4FGL_J1937.2-3958_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/59641/ltcube_518486401_518745601_4FGL_J1937.2-3958_daily_bin1077.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/59641/ft2_4FGL_J1937.2-3958_daily_bin1077.fits
.....................!
real 14.46
user 14.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59641/ft1_filtered_4FGL_J1937.2-3958_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/59641/ft2_4FGL_J1937.2-3958_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/59641/ltcube_518486401_518745601_4FGL_J1937.2-3958_daily_bin1077.fits outfile=/scratch/kocevski/59641/expmap_518486401_518745601_4FGL_J1937.2-3958_daily_bin1077.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/59641/ltcube_518486401_518745601_4FGL_J1937.2-3958_daily_bin1077.fits
.....................!
real 193.06
user 187.98
sys 4.63

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/59641/ft1_filtered_4FGL_J1937.2-3958_daily_bin1077.fits scfile=/scratch/kocevski/59641/ft2_4FGL_J1937.2-3958_daily_bin1077.fits outfile=/scratch/kocevski/59641/cmap_518486401_518745601_4FGL_J1937.2-3958_daily_bin1077.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.56
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59641/ft1_filtered_4FGL_J1937.2-3958_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/59641/ft2_4FGL_J1937.2-3958_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59641/Model_4FGL_J1937.2-3958_daily_bin1077.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/59641/ft1_filtered_4FGL_J1937.2-3958_daily_bin1077.fits.....................!
real 58.45
user 57.15
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42231       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5769       1.0000         .10000E-03   10000.    
     5 'Prefactor '    128.48       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.205       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4994       1.0000         .10000E-03   10000.    
    14 'norm      '    13.875       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    84.185       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0799       1.0000         .10000E-03   10000.    
    18 'norm      '    16.426       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.695       1.0000         .10000E-03   10000.    
    21 'Normalizat'    2.0318       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81281       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=   6026.631     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2423 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35751E-01    24.988       -.35888E-05    .78822E-04
   2  norm          .10000E-03    3.6972        .33019E-06** at limit **
   3  norm          2.3286        3.2441       -.64760E-06   -.31791E-03
   4  Prefactor     4.5763        6.5871       -.35151E-05   -.17303E-03
   5  Prefactor     128.42        102.38       -.48169E-04    .17207E-04
   6  Prefactor     .10000E-03    10.724       -.35525E-06** at limit **
   7  Prefactor     33.496        35.022       -.28095E-05    .15841E-04
   8  Prefactor     .10000E-03    3.7198       -.25770E-06** at limit **
   9  norm          .10000E-03    7.7174       -.22690E-07** at limit **
  10  Prefactor     .10000E-03    5.6636        .25053E-06** at limit **
  11  norm          .10000E-03    .43331        .18224E-07** at limit **
  12  Prefactor     63.199        48.293       -.15851E-04    .72976E-05
  13  norm          2.4936        14.877       -.61723E-05   -.26816E-03
  14  norm          13.854        30.365        .38426E-04    .96433E-04
  15  norm          1.8983        1.8496       -.24529E-06    .10170E-03
  16  Prefactor     84.115        77.194       -.49756E-04    .85043E-05
  17  norm          3.0768        6.5994       -.11746E-04   -.58075E-03
  18  norm          16.419        20.390        .11736E-04    .15063E-04
  19  norm          .10000E-03    20.699        .32484E-06** at limit **
  20  Prefactor     16.689        37.368       -.66370E-05    .13274E-04
  21  Normalizat    2.0328        .36652        .38822E-05    .20604E-03
  22  Prefactor     .81268        .10307        .30241E-05    .23427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0357509
  norm       = 0.0001
  norm       = 2.32859
  Prefactor  = 4.57631
  Prefactor  = 128.418
  Prefactor  = 0.0001
  Prefactor  = 33.4964
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.1989
  norm       = 2.49364
  norm       = 13.854
  norm       = 1.89825
  Prefactor  = 84.1152
  norm       = 3.07684
  norm       = 16.4194
  norm       = 0.0001
  Prefactor  = 16.6894
  Normalizat = 2.03283
  Prefactor  = 0.812678
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.631     FROM HESSE     STATUS=OK           352 CALLS     2775 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35751E-01    30.334        .11852       -1.5670    
   2  norm          .10000E-03    3.7047        .14578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3286        3.2340        .15951E-03   -1.5403    
   4  Prefactor     4.5763        6.5855        .18816E-03   -1.5280    
   5  Prefactor     128.42        102.29        .17759E-03   -1.3437    
   6  Prefactor     .10000E-03    10.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.496        35.034        .69226E-04   -1.4550    
   8  Prefactor     .10000E-03    3.7241        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.7176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.7120        .18034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .44519        .99761E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     63.199        48.293        .25237E-03   -1.4116    
  13  norm          2.4936        14.816        .25851E-03   -1.5392    
  14  norm          13.854        30.498        .10753E-03   -1.4963    
  15  norm          1.8983        1.8597        .10144E-03   -1.5432    
  16  Prefactor     84.115        77.257        .21891E-03   -1.3871    
  17  norm          3.0768        6.6332        .23111E-03   -1.5357    
  18  norm          16.419        20.382        .98821E-04   -1.4897    
  19  norm          .10000E-03    20.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.689        37.399        .98022E-04   -1.4891    
  21  Normalizat    2.0328        .43699        .40564E-03   -.63730    
  22  Prefactor     .81268        .12276        .17231E-03   -.99263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7356e-09
Minuit parameter uncertainties:
  1  2.08091
  2  3.84288e-06
  3  3.2342
  4  6.58658
  5  102.432
  6  0.00011309
  7  35.055
  8  1.92752e-06
  9  1.0361e-06
  10  5.58363e-05
  11  1.87382e-06
  12  48.3225
  13  12.1607
  14  30.5324
  15  1.85974
  16  77.3497
  17  6.63474
  18  20.3907
  19  4.81148e-05
  20  37.4519
  21  0.437859
  22  0.122801
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  1.928e-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.127e-01  1.228e-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:  2.033e+00  4.379e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59641/likelihoodResults_518486401_518745601_4FGL_J1937.2-3958_daily_bin1077.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) = 6026.63266013
delta logL = -0.00127204947512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6026.63138806
delta logL = 1.43709257827e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6555       1.0000          .0000       10.000    
     3 'Normalizat'    2.0328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81268       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=   6026.631     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      239 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0214        .14641E-02** at limit **
   2  Index         2.2962        8.6434        .20000E-01   -.19043E-06
   3  Normalizat    2.0328        .41225        .40564E-03    .22898E-04
   4  Prefactor     .81268        .11950        .17230E-03    .59052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2962
  Normalizat = 2.03283
  Prefactor  = 0.812679
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.631     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8993        .29283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2962        8.1127        .80000E-03   -.57134    
   3  Normalizat    2.0328        .41260        .16226E-04   -.63730    
   4  Prefactor     .81268        .11960        .68922E-05   -.99263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92547e-10
Minuit parameter uncertainties:
  1  3.95535e-06
  2  304.787
  3  0.413331
  4  0.119641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59641': 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) = 6026.63138748
delta logL = 6.02685759077e-07

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.000e-04  3.955e-06  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  2.296e+00  3.048e+02  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.127e-01  1.196e-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:  2.033e+00  4.133e-01  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/59641/cmap_HighResolution_518486401_518745601_4FGL_J1937.2-3958_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-23 06:55:56.572429', job_id='59641', GAL2='0.81', fit_tolerance='1e-08', EG2='2.03', EG='2.03', time_epoch_completed='1632405356.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1077' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 59641: <4FGL_J1937.2-3958_daily_bin1077> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin1077 294.309 -39.9825 518486401 518745601 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 :                                   801.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            856 sec.

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

