/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 149 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1937.2-3958_daily_bin404
RA = 294.309, Dec = -39.9825
tmin = 344044801, tmax = 344304001
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='55785', job_status='RUN', time_executed='2021-09-23 06:30:27.232983', time_epoch_executed='1632403827.23' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55785

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55785/ft1_4FGL_J1937.2-3958_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55785/ft2_4FGL_J1937.2-3958_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55785/ft1_4FGL_J1937.2-3958_daily_bin404.fits outfile=/scratch/kocevski/55785/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin404.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=344044801.0 tmax=344304001.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.40
user 3.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55785/ft1_filtered_4FGL_J1937.2-3958_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/55785/ft2_4FGL_J1937.2-3958_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/55785/ltcube_344044801_344304001_4FGL_J1937.2-3958_daily_bin404.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/55785/ft2_4FGL_J1937.2-3958_daily_bin404.fits
.....................!
real 13.73
user 13.21
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55785/ft1_filtered_4FGL_J1937.2-3958_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/55785/ft2_4FGL_J1937.2-3958_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/55785/ltcube_344044801_344304001_4FGL_J1937.2-3958_daily_bin404.fits outfile=/scratch/kocevski/55785/expmap_344044801_344304001_4FGL_J1937.2-3958_daily_bin404.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/55785/ltcube_344044801_344304001_4FGL_J1937.2-3958_daily_bin404.fits
.....................!
real 194.66
user 189.02
sys 5.26

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/55785/ft1_filtered_4FGL_J1937.2-3958_daily_bin404.fits scfile=/scratch/kocevski/55785/ft2_4FGL_J1937.2-3958_daily_bin404.fits outfile=/scratch/kocevski/55785/cmap_344044801_344304001_4FGL_J1937.2-3958_daily_bin404.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55785/ft1_filtered_4FGL_J1937.2-3958_daily_bin404.fits scfile=/scratch/kocevski/55785/ft2_4FGL_J1937.2-3958_daily_bin404.fits outfile=/scratch/kocevski/55785/cmap_HighResolution_344044801_344304001_4FGL_J1937.2-3958_daily_bin404.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55785/ft1_filtered_4FGL_J1937.2-3958_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/55785/ft2_4FGL_J1937.2-3958_daily_bin404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55785/Model_4FGL_J1937.2-3958_daily_bin404.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/55785/ft1_filtered_4FGL_J1937.2-3958_daily_bin404.fits.....................!
real 78.97
user 77.54
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.903       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8735       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9969       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.177       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3612       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1169       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.362       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.584       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0192       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98151       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=   8368.095     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2025 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.904        21.416        .22233E-06    .61773E-06
   2  norm          6.8740        6.8192        .52997E-08   -.97202E-04
   3  norm          .10000E-03    .84799       -.54798E-08** at limit **
   4  Prefactor     2.9974        4.2287        .42198E-08   -.22914E-04
   5  Prefactor     .10000E-03    47.666       -.61175E-05** at limit **
   6  Prefactor     4.3428        2.3621        .47067E-07   -.45903E-03
   7  Prefactor     .10000E-03    21.687       -.43271E-06** at limit **
   8  Prefactor     23.176        13.742        .31536E-07    .19676E-05
   9  norm          .10000E-03    9.6349        .11564E-08** at limit **
  10  Prefactor     3.3598        6.7784       -.48779E-07   -.29513E-04
  11  norm          3.1169        1.4715       -.29342E-08   -.45105E-04
  12  Prefactor     14.361        21.328       -.10340E-06   -.39365E-06
  13  norm          .10000E-03    5.0126        .13620E-07** at limit **
  14  norm          .10000E-03    17.655       -.66938E-06** at limit **
  15  norm          .10000E-03    .66235       -.69340E-08** at limit **
  16  Prefactor     .10000E-03    45.552        .60230E-05** at limit **
  17  norm          .10000E-03    1.6858        .27612E-07** at limit **
  18  norm          15.584        16.252        .16793E-08   -.19013E-04
  19  norm          .10000E-03    11.029       -.63279E-07** at limit **
  20  Prefactor     .10000E-03    17.263        .85641E-06** at limit **
  21  Normalizat    1.0194        .29783        .20848E-07   -.17122E-05
  22  Prefactor     .98145        .87960E-01   -.21025E-07    .10650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 27.9039
  norm       = 6.87403
  norm       = 0.0001
  Prefactor  = 2.99737
  Prefactor  = 0.0001
  Prefactor  = 4.34281
  Prefactor  = 0.0001
  Prefactor  = 23.1763
  norm       = 0.0001
  Prefactor  = 3.35983
  norm       = 3.11688
  Prefactor  = 14.3613
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.5839
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01939
  Prefactor  = 0.981453
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.095     FROM HESSE     STATUS=OK           340 CALLS     2365 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.904        21.429        .75842E-04   -1.4651    
   2  norm          6.8740        6.9259        .76516E-03   -1.5184    
   3  norm          .10000E-03    .85297        .82254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9974        4.2271        .21698E-03   -1.5362    
   5  Prefactor     .10000E-03    47.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3428        7.6923        .96620E-03   -1.5291    
   7  Prefactor     .10000E-03    21.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.176        13.750        .83203E-04   -1.4745    
   9  norm          .10000E-03    9.6399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3598        6.7989        .22073E-03   -1.5341    
  11  norm          3.1169        1.4689        .72694E-04   -1.5355    
  12  Prefactor     14.361        21.319        .10569E-03   -1.4950    
  13  norm          .10000E-03    5.0330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .66909        .72689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.6988        .11596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.584        16.278        .50729E-03   -1.4918    
  19  norm          .10000E-03    11.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0194        .33844        .48393E-03   -.92384    
  22  Prefactor     .98145        .99872E-01    .14833E-03   -.93350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86921e-10
Minuit parameter uncertainties:
  1  21.4347
  2  6.9267
  3  7.22041e-09
  4  4.22747
  5  1.80464e-05
  6  7.69405
  7  9.31259e-07
  8  13.7517
  9  2.8952e-08
  10  6.80048
  11  1.46893
  12  21.3303
  13  1.48468e-07
  14  2.83891e-07
  15  1.27825e-08
  16  1.54749e-05
  17  2.43539e-08
  18  16.2823
  19  3.11545e-07
  20  1.31079e-06
  21  0.339153
  22  0.0998904
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  2.318e+01  1.375e+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.815e-01  9.989e-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.019e+00  3.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.55
Ra Dec: 294.309 -39.983
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 7.63e-08
Energy Flux (Fixed Index): 3.20e-05 +/- 1.90e-05

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) = 8367.20788217
delta logL = 0.886846655396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8367.20282257
delta logL = 0.891906258646

Fit tolerance = 1e-08

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

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

 FCN=   8367.203     FROM MIGRAD    STATUS=FAILED       103 CALLS      295 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.669        18.349        .58612E-03   -.15672E-04
   2  Index         3.5951        1.1958        .57105E-02    .60505E-03
   3  Normalizat    .93062        .33552        .50328E-03   -.12876E-04
   4  Prefactor     .99851        .10024        .14713E-03   -.46207E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8367.203     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      367 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.669        18.349        .17363E-03   -1.5025    
   2  Index         3.5951        1.1958        .79017E-03   -.28482    
   3  Normalizat    .93062        .33552        .48712E-03   -.95392    
   4  Prefactor     .99851        .10024        .10899E-03   -.92779    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8367.203     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      396 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.669        13.169        .23445E-04   -.22306E-04
   2  Index         3.5951        .86189        .11421E-02   -.39418E-05
   3  Normalizat    .93062        .33481        .20131E-04   -.12876E-04
   4  Prefactor     .99851        .99868E-01    .58852E-05   -.46362E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6686
  Index      = 3.59508
  Normalizat = 0.930625
  Prefactor  = 0.998514
 **********
 **   18 **HESSE 
 **********

 FCN=   8367.203     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.669        12.676        .93780E-06   -1.5025    
   2  Index         3.5951        .82952        .45684E-04   -.28482    
   3  Normalizat    .93062        .33468        .40262E-05   -.95392    
   4  Prefactor     .99851        .99852E-01    .11770E-05   -.92779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35471e-13
Minuit parameter uncertainties:
  1  12.6793
  2  0.833709
  3  0.335433
  4  0.0998701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55785': 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) = 8367.20282219
delta logL = 0.891906635592

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.167e+01  1.268e+01  1.000e-04  1.000e+04 ( 1.000e-12)
578        Index:  3.595e+00  8.337e-01  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.985e-01  9.987e-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:  9.306e-01  3.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.55
Ra Dec: 294.309 -39.983
Photon Index (Free Index): 3.60 +/- 0.83
Photon Flux (Free Index): 2.03e-07 +/- 1.02e-07
Energy Flux (Free Index): 3.30e-05 +/- 1.62e-05

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/55785/cmap_HighResolution_344044801_344304001_4FGL_J1937.2-3958_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='3.30e-05', photon_flux_error='7.63e-08', dlogl='8.92e-01', energy_flux='3.20e-05', photon_flux2='2.03e-07', job_status='DONE', time_completed='2021-09-23 06:43:59.753744', photon_index_error2='0.83', photon_index2='3.60', ts='4.55', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.02', time_epoch_completed='1632404639.75', return_code='0', job_id='55785', GAL2='1.00', EG2='0.93', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='1.02e-07', ts2='6.55', photon_index='2.66' WHERE bin_id='404' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:43:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 55785: <4FGL_J1937.2-3958_daily_bin404> in cluster <slac> Done

Job <4FGL_J1937.2-3958_daily_bin404> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 23 06:27:26 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 06:27:45 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:27:45 2021
Terminated at Thu Sep 23 06:44:00 2021
Results reported at Thu Sep 23 06:44:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin404 294.309 -39.9825 344044801 344304001 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 :                                   811.40 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             319.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            994 sec.

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

