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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin770
RA = 294.309, Dec = -39.9825
tmin = 438912001, tmax = 439171201
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='57107', job_status='RUN', time_executed='2021-09-23 06:36:38.469399', time_epoch_executed='1632404198.47' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57107

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57107/ft1_4FGL_J1937.2-3958_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57107/ft2_4FGL_J1937.2-3958_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57107/ft1_4FGL_J1937.2-3958_daily_bin770.fits outfile=/scratch/kocevski/57107/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin770.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=438912001.0 tmax=439171201.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 5.07
user 4.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57107/ft1_filtered_4FGL_J1937.2-3958_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/57107/ft2_4FGL_J1937.2-3958_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/57107/ltcube_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.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/57107/ft2_4FGL_J1937.2-3958_daily_bin770.fits
.....................!
real 14.03
user 13.68
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57107/ft1_filtered_4FGL_J1937.2-3958_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/57107/ft2_4FGL_J1937.2-3958_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/57107/ltcube_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.fits outfile=/scratch/kocevski/57107/expmap_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.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/57107/ltcube_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.fits
.....................!
real 156.10
user 152.58
sys 3.16

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/57107/ft1_filtered_4FGL_J1937.2-3958_daily_bin770.fits scfile=/scratch/kocevski/57107/ft2_4FGL_J1937.2-3958_daily_bin770.fits outfile=/scratch/kocevski/57107/cmap_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=294.309 yref=-39.9825 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.48
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57107/ft1_filtered_4FGL_J1937.2-3958_daily_bin770.fits scfile=/scratch/kocevski/57107/ft2_4FGL_J1937.2-3958_daily_bin770.fits outfile=/scratch/kocevski/57107/cmap_HighResolution_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.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.48
user 0.34
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/57107/ft1_filtered_4FGL_J1937.2-3958_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/57107/ft2_4FGL_J1937.2-3958_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/57107/Model_4FGL_J1937.2-3958_daily_bin770.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/57107/ft1_filtered_4FGL_J1937.2-3958_daily_bin770.fits.....................!
real 62.37
user 61.22
sys 0.95

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30522E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3580       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.454       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3206       1.0000         .10000E-03   10000.    
     9 'norm      '    30.385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9722       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7099       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.909       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    35.644       1.0000         .10000E-03   10000.    
    15 'norm      '    6.2663       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9392       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2636       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73877       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=   7338.489     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2066 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12287E-03    36.928        .64492E-05** at limit **
   2  norm          .10000E-03    6.7675       -.97460E-07** at limit **
   3  norm          .10000E-03    .73747        .25943E-07** at limit **
   4  Prefactor     3.3585        3.1839        .97368E-07    .28135E-05
   5  Prefactor     19.230        54.551       -.20177E-05   -.14010E-03
   6  Prefactor     .10000E-03    9.1313       -.40814E-07** at limit **
   7  Prefactor     50.558        42.240       -.21572E-06   -.67317E-04
   8  Prefactor     9.3231        14.462       -.94782E-07   -.12122E-03
   9  norm          30.384        28.716        .43592E-07   -.21901E-04
  10  Prefactor     6.9722        6.2434        .28494E-05    .71235E-03
  11  norm          1.7099        1.3877       -.27795E-08   -.55450E-04
  12  Prefactor     19.911        20.755       -.72273E-06   -.11924E-03
  13  norm          .10000E-03    4.4111       -.13839E-06** at limit **
  14  norm          35.645        25.226       -.44387E-06   -.22019E-03
  15  norm          6.2664        3.4222        .25654E-08   -.17345E-04
  16  Prefactor     .10000E-03    29.614        .10533E-06** at limit **
  17  norm          .10000E-03    3.0523       -.17003E-06** at limit **
  18  norm          5.9390        11.029        .27435E-07    .47478E-05
  19  norm          .10000E-03    8.2431        .23006E-07** at limit **
  20  Prefactor     .10000E-03    13.547        .43835E-07** at limit **
  21  Normalizat    1.2636        .30167        .93790E-06   -.22771E-03
  22  Prefactor     .73877        .76381E-01   -.83883E-06   -.70428E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000122866
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.35851
  Prefactor  = 19.2299
  Prefactor  = 0.0001
  Prefactor  = 50.5578
  Prefactor  = 9.3231
  norm       = 30.384
  Prefactor  = 6.9722
  norm       = 1.7099
  Prefactor  = 19.9106
  norm       = 0.0001
  norm       = 35.6455
  norm       = 6.26641
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.93902
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26364
  Prefactor  = 0.738769
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.489     FROM HESSE     STATUS=OK           344 CALLS     2410 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12287E-03    27.357        .12126       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.8609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .73945        .71839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3585        3.1812        .14402E-03   -1.5341    
   5  Prefactor     19.230        54.808        .90808E-04   -1.4831    
   6  Prefactor     .10000E-03    9.1738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.558        42.275        .56405E-04   -1.4285    
   8  Prefactor     9.3231        14.471        .13127E-03   -1.5097    
   9  norm          30.384        28.715        .72686E-04   -1.4605    
  10  Prefactor     6.9722        6.3205        .75967E-03   -1.5180    
  11  norm          1.7099        1.3781        .87140E-04   -1.5446    
  12  Prefactor     19.911        20.765        .89764E-04   -1.4815    
  13  norm          .10000E-03    4.4168        .17569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          35.645        25.382        .67125E-04   -1.4513    
  15  norm          6.2664        3.4259        .11366E-03   -1.5207    
  16  Prefactor     .10000E-03    29.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0827        .14607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9390        11.022        .16477E-03   -1.5221    
  19  norm          .10000E-03    8.2435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2636        .34614        .42976E-03   -.84658    
  22  Prefactor     .73877        .87693E-01    .14216E-03   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89266e-09
Minuit parameter uncertainties:
  1  0.0500444
  2  1.05108e-05
  3  7.09114e-07
  4  3.18132
  5  54.9519
  6  1.14678e-07
  7  42.3005
  8  14.4764
  9  28.7278
  10  6.32109
  11  1.3781
  12  20.7723
  13  3.5721e-06
  14  25.3893
  15  3.426
  16  1.46433e-06
  17  2.60293e-06
  18  11.0255
  19  3.05882e-06
  20  4.74976e-06
  21  0.346773
  22  0.0877093
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  9.323e+00  1.448e+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:  7.388e-01  8.771e-02  0.000e+00  1.000e+01 ( 1.000e+00)
871        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
872        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
869   Normalization:  1.264e+00  3.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/57107/likelihoodResults_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.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) = 7338.48878733
delta logL = 0.000149407628669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7338.48873818
delta logL = 0.000198553140763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3225       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6821       1.0000          .0000       10.000    
     3 'Normalizat'    1.2626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73894       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=   7338.489     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      251 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1575        17.168        .65629E-03   -.58949E-04
   2  Index         2.6883        1.2958        .14165E-01    .43769E-04
   3  Normalizat    1.2628        .33191        .42987E-03    .23403E-03
   4  Prefactor     .73895        .86126E-01    .14215E-03    .68835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.15746
  Index      = 2.68828
  Normalizat = 1.26281
  Prefactor  = 0.738945
 **********
 **   18 **HESSE 
 **********

 FCN=   7338.489     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1575        16.003        .26252E-04   -1.5103    
   2  Index         2.6883        1.2100        .56662E-03   -.48064    
   3  Normalizat    1.2628        .33218        .17195E-04   -.84683    
   4  Prefactor     .73895        .86124E-01    .28429E-04   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11352e-10
Minuit parameter uncertainties:
  1  16.0105
  2  1.22556
  3  0.332742
  4  0.0861391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57107': 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) = 7338.488685
delta logL = 0.000251736998507

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  9.157e+00  1.601e+01  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  2.688e+00  1.226e+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:  7.389e-01  8.614e-02  0.000e+00  1.000e+01 ( 1.000e+00)
871        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
872        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
869   Normalization:  1.263e+00  3.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
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/57107/cmap_HighResolution_438912001_439171201_4FGL_J1937.2-3958_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', job_status='DONE', photon_flux_upper_limit='2.27e-07', time_completed='2021-09-23 06:48:09.375598', job_id='57107', GAL2='0.74', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632404889.38', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.52e-04', ts2='0.52', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='770' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:48:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 57107: <4FGL_J1937.2-3958_daily_bin770> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin770 294.309 -39.9825 438912001 439171201 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 :                                   688.27 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             330.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            954 sec.

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

