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


Performing analysis on: 4FGL_J1934.3+6541_daily_bin974
RA = 293.595, Dec = 65.6888
tmin = 491788801, tmax = 492048001
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='14418', job_status='RUN', time_executed='2021-09-23 03:57:03.488676', time_epoch_executed='1632394623.49' WHERE source_name='4FGL J1934.3+6541' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14418/ft1_4FGL_J1934.3+6541_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14418/ft1_4FGL_J1934.3+6541_daily_bin974.fits outfile=/scratch/kocevski/14418/ft1_filteredMKT_4FGL_J1934.3+6541_daily_bin974.fits ra=293.595 dec=65.6888 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.23
user 3.98
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.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/14418/ft1_filteredMKT_4FGL_J1934.3+6541_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/14418/ltcube_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.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/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits
.....................!
real 11.92
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/14418/ltcube_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.fits outfile=/scratch/kocevski/14418/expmap_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.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/14418/ltcube_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.fits
.....................!
real 191.26
user 186.73
sys 4.12

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
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 178 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1934.3+6541 @ 293.595 65.6888

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits scfile=/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits outfile=/scratch/kocevski/14418/cmap_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.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=293.595 yref=65.6888 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits scfile=/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits outfile=/scratch/kocevski/14418/cmap_HighResolution_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.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=293.595 yref=65.6888 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14418/Model_4FGL_J1934.3+6541_daily_bin974.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits.....................!
real 29.42
user 28.04
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits', '/scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits', expMap='/scratch/kocevski/14418/expmap_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.fits', expCube='/scratch/kocevski/14418/ltcube_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14418/Model_4FGL_J1934.3+6541_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1934.3+6541'

4FGL J1934.3+6541
   Spectrum: PowerLaw
303    Prefactor:  6.093e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/14418/ft1_filtered_4FGL_J1934.3+6541_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/14418/ft2_4FGL_J1934.3+6541_daily_bin974.fits
Exposure map: /scratch/kocevski/14418/expmap_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.fits
Exposure cube: /scratch/kocevski/14418/ltcube_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14418/Model_4FGL_J1934.3+6541_daily_bin974.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) = 1400.9486599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.646       1.0000         .10000E-03   10000.    
     3 'norm      '    7.3468       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.446       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    436.25       1.0000         .10000E-03   10000.    
    11 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8551       1.0000         .10000E-03   10000.    
    13 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .45134E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.189       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0344       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5619       1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    114.55       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11874E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.8880       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.819       1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10006E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1400.757     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3174 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8158        .57237E-07** at limit **
   2  Prefactor     59.649        37.065       -.20529E-08    .11315E-04
   3  norm          7.3478        7.6479        .87771E-07    .63538E-04
   4  Prefactor     20.524        60.256        .53553E-06    .33692E-04
   5  Prefactor     .10000E-03    123.42       -.93255E-06** at limit **
   6  Prefactor     .10000E-03    3.4741       -.37264E-07** at limit **
   7  Prefactor     45.789        49.544        .14731E-06    .24317E-04
   8  Prefactor     .10000E-03    11.921       -.19058E-06** at limit **
   9  Prefactor     .10000E-03    150.50        .10127E-05** at limit **
  10  Prefactor     435.88        346.26        .68803E-05    .67180E-04
  11  norm          .10000E-03    19.425       -.12293E-04** at limit **
  12  norm          3.8606        10.209        .39696E-06    .21761E-04
  13  norm          .10000E-03    29.201        .70425E-06** at limit **
  14  norm          .10000E-03    491.92        .75790E-05** at limit **
  15  Prefactor     64.308        74.176        .12528E-05    .11123E-03
  16  Prefactor     5.0367        12.901        .47070E-06    .35823E-04
  17  norm          4.5616        6.3872        .13734E-07    .10241E-04
  18  norm          .10000E-03    79.676        .10918E-06** at limit **
  19  norm          114.57        108.86        .20092E-06    .25045E-04
  20  Prefactor     .10000E-03    509.80        .57609E-05** at limit **
  21  norm          7.8879        8.3462       -.12882E-07    .27012E-04
  22  Prefactor     29.818        38.655        .37302E-07    .14978E-04
  23  norm          .10000E-03    18.218        .74966E-08** at limit **
  24  Prefactor     .10000E-03    28.763       -.27276E-06** at limit **
  25  Normalizat    .10000E-01    .29922       -.40374E-05** at limit **
  26  Prefactor     1.0925        .13994        .17042E-06    .24884E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 59.6489
  norm       = 7.34777
  Prefactor  = 20.5239
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 45.7894
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 435.885
  norm       = 0.000100001
  norm       = 3.86064
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 64.3081
  Prefactor  = 5.03671
  norm       = 4.56161
  norm       = 0.0001
  norm       = 114.571
  Prefactor  = 0.000100001
  norm       = 7.88785
  Prefactor  = 29.8178
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.09246
 **********
 **   18 **HESSE 
 **********

 FCN=   1400.757     FROM HESSE     STATUS=OK           454 CALLS     3628 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.146        .18753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.649        36.913        .25975E-03   -1.4162    
   3  norm          7.3478        7.5227        .10123E-03   -1.5166    
   4  Prefactor     20.524        60.110        .88579E-04   -1.4802    
   5  Prefactor     .10000E-03    123.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4750        .68138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.789        49.447        .59262E-04   -1.4354    
   8  Prefactor     .10000E-03    11.922        .12624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    150.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     435.88        355.34        .97914E-04   -1.1501    
  11  norm          .10000E-03    19.274        .31357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8606        10.188        .18844E-03   -1.5315    
  13  norm          .10000E-03    29.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    498.77        .21207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.308        74.015        .25044E-03   -1.4102    
  16  Prefactor     5.0367        12.848        .17922E-03   -1.5259    
  17  norm          4.5616        6.3945        .10386E-03   -1.5281    
  18  norm          .10000E-03    79.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          114.57        109.08        .18795E-03   -1.3563    
  20  Prefactor     .10000E-03    514.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.8879        8.3459        .10783E-03   -1.5146    
  22  Prefactor     29.818        38.664        .73371E-04   -1.4615    
  23  norm          .10000E-03    18.218        .15608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .42092        .11057E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0925        .13037        .14083E-03   -.89708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75882e-10
Minuit parameter uncertainties:
  1  1.76149e-05
  2  36.9269
  3  7.52371
  4  60.2879
  5  0.000966209
  6  2.70982e-08
  7  49.4914
  8  2.00559e-06
  9  0.00125708
  10  357.163
  11  0.000255701
  12  10.1929
  13  8.31351e-05
  14  0.000108102
  15  74.1214
  16  12.8552
  17  6.39542
  18  8.23971e-05
  19  109.272
  20  0.00125925
  21  8.34715
  22  38.6962
  23  1.14306e-05
  24  0.000104969
  25  3.37178e-06
  26  0.130405
Done.

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

Extracting fit parameters...

4FGL J1934.3+6541
   Spectrum: PowerLaw
303    Prefactor:  6.431e+01  7.412e+01  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
305        Scale:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.092e+00  1.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.000e-02  3.372e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.06
Ra Dec: 293.595 65.689
Photon Index (Fixed Index): 2.86 +/- 0.00
Photon Flux (Fixed Index): 1.91e-07 +/- 2.20e-07
Energy Flux (Fixed Index): 4.13e-05 +/- 4.76e-05

TS (Fixed Index): 1.06
Ra Dec: 293.595 65.689
Photon Flux Upper Limit: 7.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14418/likelihoodResults_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.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) = 1400.45541533
delta logL = 0.301486782543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1400.33945812
delta logL = 0.417443990841

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.95       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1563       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0865       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1400.339     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      215 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.95        111.92        .96333E-03    .21941E-03
   2  Index         2.1562        .66661        .12562       -.76651E-06
   3  Normalizat    .10000E-01    .29105        .32094    ** at limit **
   4  Prefactor     1.0865        .13630        .38122E-01    .29301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.948
  Index      = 2.15625
  Normalizat = 0.01
  Prefactor  = 1.08652
 **********
 **   18 **HESSE 
 **********

 FCN=   1400.339     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.95        99.925        .38533E-04   -1.3617    
   2  Index         2.1562        .62499        .52964E-02   -.60499    
   3  Normalizat    .10000E-01    .42812        .11093E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0865        .12205        .14087E-03   -.89899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97166e-10
Minuit parameter uncertainties:
  1  100.08
  2  0.62742
  3  1.53695e-06
  4  0.122078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14418': 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) = 1400.33945811
delta logL = 0.417444002623

Extracting fit parameters...

4FGL J1934.3+6541
   Spectrum: PowerLaw
303    Prefactor:  1.089e+02  1.001e+02  1.000e-04  1.000e+04 ( 1.000e-12)
304        Index:  2.156e+00  6.274e-01  0.000e+00  1.000e+01 (-1.000e+00)
305        Scale:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.087e+00  1.221e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.000e-02  1.537e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 293.595 65.689
Photon Index (Free Index): 2.16 +/- 0.63
Photon Flux (Free Index): 1.94e-07 +/- 1.87e-07
Energy Flux (Free Index): 9.49e-05 +/- 1.26e-04

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/14418/cmap_HighResolution_491788801_492048001_4FGL_J1934.3+6541_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-02', comment='SUCCESS', photon_flux='1.91e-07', energy_flux2='9.49e-05', photon_flux_error='2.20e-07', dlogl='4.17e-01', energy_flux='4.13e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-23 04:04:18.502331', photon_index_error2='0.63', photon_index2='2.16', ts='1.06', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.19e-07', energy_flux_error2='1.26e-04', EG='0.01', time_epoch_completed='1632395058.5', return_code='0', job_id='14418', GAL2='1.09', EG2='0.01', return_code2='0', energy_flux_error='4.76e-05', photon_flux_error2='1.87e-07', ts2='1.89', photon_index='2.86' WHERE bin_id='974' AND source_name='4FGL J1934.3+6541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 04:04:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 14418: <4FGL_J1934.3+6541_daily_bin974> in cluster <slac> Done

Job <4FGL_J1934.3+6541_daily_bin974> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 23 03:56:52 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 03:56:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 03:56:54 2021
Terminated at Thu Sep 23 04:04:18 2021
Results reported at Thu Sep 23 04:04:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1934.3+6541_daily_bin974 293.595 65.6888 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1934.3+6541 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   433.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   444 sec.
    Turnaround time :                            446 sec.

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

