aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 29 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 = 17115
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1942.7+1033_weekly_bin9
RA = 295.696, Dec = 10.5584
tmin = 244425601, tmax = 245030401
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='73762', job_status='RUN', time_executed='2021-07-31 04:38:36.028187', time_epoch_executed='1627731516.03' WHERE source_name='4FGL J1942.7+1033' and cadence='weekly' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73762

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73762/ft1_4FGL_J1942.7+1033_weekly_bin9.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73762/ft1_4FGL_J1942.7+1033_weekly_bin9.fits outfile=/scratch/kocevski/73762/ft1_filteredMKT_4FGL_J1942.7+1033_weekly_bin9.fits ra=295.696 dec=10.5584 rad=12.0 tmin=244425601.0 tmax=245030401.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 2.77
user 2.51
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.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/73762/ft1_filteredMKT_4FGL_J1942.7+1033_weekly_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.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 2.02
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/73762/ltcube_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.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/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits
.....................!
real 28.80
user 27.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/73762/ltcube_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.fits outfile=/scratch/kocevski/73762/expmap_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.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/73762/ltcube_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.fits
.....................!
real 200.06
user 185.72
sys 5.99

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 G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source Kes 79 in ROI with RadialDisk spatial model.
Extended source W 44 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W44.fits is the correct path to the extended template.
Extended source HESS J1857+026 in ROI with RadialDisk spatial model.
Extended source Kes 73 in ROI with RadialDisk spatial model.
Added 276 point sources and 6 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 J1942.7+1033 @ 295.696 10.5584

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits scfile=/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits outfile=/scratch/kocevski/73762/cmap_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.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=295.696 yref=10.5584 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.60
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits scfile=/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits outfile=/scratch/kocevski/73762/cmap_HighResolution_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.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=295.696 yref=10.5584 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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73762/Model_4FGL_J1942.7+1033_weekly_bin9.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 G42.8+0.6
adding source GAL_V02
adding source HESS J1857+026
adding source Kes 73
adding source Kes 79
adding source W 44
adding source W 51C
Working on...
/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits.....................!
real 4017.79
user 4000.41
sys 2.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits', '/scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits', expMap='/scratch/kocevski/73762/expmap_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.fits', expCube='/scratch/kocevski/73762/ltcube_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73762/Model_4FGL_J1942.7+1033_weekly_bin9.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1942.7+1033'

4FGL J1942.7+1033
   Spectrum: PowerLaw
613    Prefactor:  2.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
614        Index:  1.868e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
615        Scale:  3.457e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73762/ft1_filtered_4FGL_J1942.7+1033_weekly_bin9.fits
Spacecraft file(s): /scratch/kocevski/73762/ft2_4FGL_J1942.7+1033_weekly_bin9.fits
Exposure map: /scratch/kocevski/73762/expmap_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.fits
Exposure cube: /scratch/kocevski/73762/ltcube_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73762/Model_4FGL_J1942.7+1033_weekly_bin9.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) = 133067.867846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92062       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0861       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6732       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13663E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1596       1.0000         .10000E-03   10000.    
     9 'Normalizat'    1.4366       1.0000         .10000E-01   10.000    
    10 'Prefactor '    1.0067       1.0000          .0000       10.000    
    11 'norm      '    6.8761       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1018E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   133067.6     FROM MIGRAD    STATUS=CONVERGED    229 CALLS      808 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91760        3.6082        .23643E-05   -.19155E-02
   2  norm          5.0480        14.703        .79104E-05    .39894E-03
   3  norm          .10000E-03    .81572       -.64866E-07** at limit **
   4  Prefactor     .10000E-03    .41072       -.14084E-07** at limit **
   5  Prefactor     1.6730        .38238       -.13191E-06   -.22128E-02
   6  Prefactor     .10000E-03    18.171        .51905E-06** at limit **
   7  Prefactor     .10001E-03    3.9799       -.54752E-07** at limit **
   8  norm          2.1597        2.0207       -.11442E-07   -.26951E-03
   9  Normalizat    1.4366        .15748        .25418E-07   -.40264E-03
  10  Prefactor     1.0067        .13608E-01   -.13416E-06   -.47859E-02
  11  norm          6.8769        1.2566       -.14386E-06   -.27135E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.917604
  norm       = 5.04802
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67299
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 2.15973
  Normalizat = 1.4366
  Prefactor  = 1.00672
  norm       = 6.87693
 **********
 **   18 **HESSE 
 **********

 FCN=   133067.6     FROM HESSE     STATUS=OK           130 CALLS      938 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91760        2.9841        .15520       -1.5516    
   2  norm          5.0480        14.905        .17828E-03   -1.5259    
   3  norm          .10000E-03    .82056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .42305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6730        1.4346        .16292E-02   -1.5449    
   6  Prefactor     .10000E-03    18.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    3.7039        .23671       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1597        2.0228        .28031E-03   -1.5414    
   9  Normalizat    1.4366        .15497        .12021E-02   -.79576    
  10  Prefactor     1.0067        .13720E-01    .11819E-03   -.92506    
  11  norm          6.8769        1.2613        .15300E-03   -1.5183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45796e-09
Minuit parameter uncertainties:
  1  2.98459
  2  14.9157
  3  1.47707e-06
  4  4.75741e-07
  5  1.43459
  6  6.17427e-05
  7  0.000421588
  8  2.02287
  9  0.155018
  10  0.0137198
  11  1.26133
Done.

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

Extracting fit parameters...

4FGL J1942.7+1033
   Spectrum: PowerLaw
613    Prefactor:  1.673e+00  1.435e+00  1.000e-04  1.000e+04 ( 1.000e-13)
614        Index:  1.868e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
615        Scale:  3.457e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
996    Prefactor:  1.007e+00  1.372e-02  0.000e+00  1.000e+01 ( 1.000e+00)
997        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
998        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
992   Normalization:  1.437e+00  1.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 295.696 10.558
Photon Index (Fixed Index): 1.87 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.21e-05

TS (Fixed Index): 3.85
Ra Dec: 295.696 10.558
Photon Flux Upper Limit: 4.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73762/likelihoodResults_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.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): 102
logL (Free Index) = 133066.200543
delta logL = 1.42457562254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 133066.177373
delta logL = 1.44774570281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42723       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0984       1.0000          .0000       10.000    
     3 'Normalizat'    1.3605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0076       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1018E+06   .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=   133066.2     FROM MIGRAD    STATUS=FAILED       103 CALLS      292 TOTAL
                     EDM=   .83E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42698        3.9101        .10096E-03   -.17982E-02
   2  Index         3.0986        2.2366        .92354E-02    .17881E-01
   3  Normalizat    1.3604        .17073        .12283E-02    .31986E-04
   4  Prefactor     1.0076        .11331E-01    .11812E-03   -.92395E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   133066.2     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      376 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42698        3.9101        .24380E-04   -.17982E-02
   2  Index         3.0986        2.2366        .36502E-03    .17881E-01
   3  Normalizat    1.3604        .17073        .21867E-03    .31986E-04
   4  Prefactor     1.0076        .11331E-01    .17148E-04   -.92395E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   133066.2     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      407 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42698        3.3813        .40383E-05   -.18558E-02
   2  Index         3.0986        2.1018        .18471E-02   -.12389E-03
   3  Normalizat    1.3604        .18793        .49134E-04    .31098E-04
   4  Prefactor     1.0076        .13358E-01    .47249E-05   -.15399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.426979
  Index      = 3.09865
  Normalizat = 1.36044
  Prefactor  = 1.00759
 **********
 **   18 **HESSE 
 **********

 FCN=   133066.2     FROM HESSE     STATUS=OK            25 CALLS      432 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42698        .70163        .80765E-06   -1.5577    
   2  Index         3.0986        .63434        .73884E-04   -.39009    
   3  Normalizat    1.3604        .15858        .98267E-05   -.81780    
   4  Prefactor     1.0076        .13063E-01    .94498E-06   -.92477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84005e-11
Minuit parameter uncertainties:
  1  0.701647
  2  0.636343
  3  0.15864
  4  0.013063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73762': 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) = 133066.177372
delta logL = 1.44774580543

Extracting fit parameters...

4FGL J1942.7+1033
   Spectrum: PowerLaw
613    Prefactor:  4.270e-01  7.016e-01  1.000e-04  1.000e+04 ( 1.000e-13)
614        Index:  3.099e+00  6.363e-01  0.000e+00  1.000e+01 (-1.000e+00)
615        Scale:  3.457e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
996    Prefactor:  1.008e+00  1.306e-02  0.000e+00  1.000e+01 ( 1.000e+00)
997        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
998        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
992   Normalization:  1.360e+00  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.04
Ra Dec: 295.696 10.558
Photon Index (Free Index): 3.10 +/- 0.64
Photon Flux (Free Index): 1.19e-07 +/- 6.86e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/73762/cmap_HighResolution_244425601_245030401_4FGL_J1942.7+1033_weekly_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-03', comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='2.28e-05', photon_flux_error='1.23e-08', dlogl='1.45e+00', energy_flux='1.41e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-07-31 07:26:58.600239', photon_index_error2='0.64', photon_index2='3.10', ts='3.85', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='4.57e-08', energy_flux_error2='1.03e-05', EG='1.44', time_epoch_completed='1627741618.6', return_code='0', job_id='73762', GAL2='1.01', EG2='1.36', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='6.86e-08', ts2='7.04', photon_index='1.87' WHERE bin_id='9' AND source_name='4FGL J1942.7+1033' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 31 07:26:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 73762: <4FGL_J1942.7+1033_weekly_bin9> in cluster <slac> Done

Job <4FGL_J1942.7+1033_weekly_bin9> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul 31 04:36:17 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 31 04:36:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 31 04:36:18 2021
Terminated at Sat Jul 31 07:27:01 2021
Results reported at Sat Jul 31 07:27:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1942.7+1033_weekly_bin9 295.696 10.5584 244425601 245030401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1942.7+1033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9962.00 sec.
    Max Memory :                                 672 MB
    Average Memory :                             626.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10243 sec.
    Turnaround time :                            10244 sec.

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

