aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 28 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1941.7+7218_monthly_bin168
RA = 295.437, Dec = 72.3101
tmin = 672451201, tmax = 675043201
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='646900', job_status='RUN', time_executed='2022-05-24 03:56:35.566804', time_epoch_executed='1653389795.57' WHERE source_name='4FGL J1941.7+7218' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646900

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646900/ft1_4FGL_J1941.7+7218_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646900/ft1_4FGL_J1941.7+7218_monthly_bin168.fits outfile=/scratch/kocevski/646900/ft1_filteredMKT_4FGL_J1941.7+7218_monthly_bin168.fits ra=295.437 dec=72.3101 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.04
user 28.21
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.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/646900/ft1_filteredMKT_4FGL_J1941.7+7218_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.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.88
user 0.66
sys 0.21

Number of photons that the gtmktime cut: 22123

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/646900/ltcube_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.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/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits
.....................!
real 125.40
user 124.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/646900/ltcube_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.fits outfile=/scratch/kocevski/646900/expmap_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.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/646900/ltcube_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.fits
.....................!
real 192.45
user 186.95
sys 5.11

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.
Added 191 point sources and 2 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 J1941.7+7218 @ 295.437 72.3101

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits scfile=/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits outfile=/scratch/kocevski/646900/cmap_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.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.437 yref=72.3101 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.82
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits scfile=/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits outfile=/scratch/kocevski/646900/cmap_HighResolution_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.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.437 yref=72.3101 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.83
user 0.64
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646900/Model_4FGL_J1941.7+7218_monthly_bin168.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
Working on...
/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits.....................!
real 2688.88
user 2682.33
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits', '/scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits', expMap='/scratch/kocevski/646900/expmap_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.fits', expCube='/scratch/kocevski/646900/ltcube_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646900/Model_4FGL_J1941.7+7218_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1941.7+7218'

4FGL J1941.7+7218
   Spectrum: PowerLaw
385    Prefactor:  1.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
386        Index:  2.770e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
387        Scale:  6.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646900/ft1_filtered_4FGL_J1941.7+7218_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/646900/ft2_4FGL_J1941.7+7218_monthly_bin168.fits
Exposure map: /scratch/kocevski/646900/expmap_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.fits
Exposure cube: /scratch/kocevski/646900/ltcube_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646900/Model_4FGL_J1941.7+7218_monthly_bin168.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) = 222515.983103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12467       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19986       1.0000         .10000E-03   10000.    
     3 'norm      '    3.3813       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4570       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4837       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13765E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8014       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8804       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.016       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.407       1.0000         .10000E-03   10000.    
    12 'norm      '    .18679       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1284       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0946       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5799       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5301       1.0000         .10000E-03   10000.    
    18 'norm      '    9.5884       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .67005       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.699       1.0000         .10000E-03   10000.    
    22 'norm      '    .23345E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.787       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1106       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .88813       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1346       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   222515.9     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     3077 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12380        .62278        .17541E-06    .29957E-03
   2  Prefactor     .22563        28.397       -.22073E-05    .12712E-03
   3  norm          3.3815        .57383        .32492E-07    .13889E-02
   4  norm          4.4569        .25053       -.37376E-08    .10777E-02
   5  norm          3.3623        .90500        .12651E-07    .21413E-03
   6  Prefactor     1.4844        2.2755       -.14854E-06    .45078E-04
   7  Prefactor     .10000E-03    56.976       -.45691E-05** at limit **
   8  Prefactor     3.8015        1.4327       -.60807E-06   -.52992E-03
   9  Prefactor     3.8800        2.8949        .45315E-05    .35676E-02
  10  Prefactor     11.019        1.0169       -.51828E-07    .44124E-03
  11  Prefactor     24.428        2.4481       -.49123E-06    .57560E-02
  12  norm          .18696        .32842       -.30475E-06    .35701E-03
  13  norm          1.1285        .74733        .56473E-08    .11891E-03
  14  norm          2.9267        1.8950       -.61367E-07    .39491E-04
  15  Prefactor     4.0964        1.3210        .53928E-06    .47961E-03
  16  Prefactor     1.5859        1.1345       -.90708E-07   -.41636E-03
  17  norm          3.5302        .40766        .54982E-07    .16824E-02
  18  norm          9.5868        3.1958        .27446E-05   -.43932E-02
  19  norm          .10000E-03    2.5300       -.62873E-06** at limit **
  20  norm          .67009        2.0049        .59032E-06   -.14561E-03
  21  Prefactor     38.694        5.6526       -.79318E-06    .55484E-03
  22  norm          .22890E-01    .31377       -.19282E-05   -.84517E-03
  23  Prefactor     14.787        3.0581        .83906E-07    .10099E-02
  24  norm          1.1107        .98569        .40300E-07    .18655E-03
  25  Prefactor     .88823        .61374        .37198E-07    .53046E-03
  26  Prefactor     .10000E-03    1.9203       -.86213E-07** at limit **
  27  Normalizat    1.1345        .50350E-01   -.30030E-06    .11540E-02
  28  Prefactor     .97256        .14168E-01    .17675E-06    .43532E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.123797
  Prefactor  = 0.225626
  norm       = 3.38145
  norm       = 4.45686
  norm       = 3.3623
  Prefactor  = 1.48437
  Prefactor  = 0.0001
  Prefactor  = 3.80154
  Prefactor  = 3.87995
  Prefactor  = 11.0185
  Prefactor  = 24.4278
  norm       = 0.186959
  norm       = 1.12848
  norm       = 2.9267
  Prefactor  = 4.09635
  Prefactor  = 1.58594
  norm       = 3.53019
  norm       = 9.58675
  norm       = 0.0001
  norm       = 0.670086
  Prefactor  = 38.694
  norm       = 0.0228897
  Prefactor  = 14.7866
  norm       = 1.11065
  Prefactor  = 0.888231
  Prefactor  = 0.0001
  Normalizat = 1.13451
  Prefactor  = 0.972559
 **********
 **   18 **HESSE 
 **********

 FCN=   222515.9     FROM HESSE     STATUS=OK           623 CALLS     3700 TOTAL
                     EDM=   .69E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12380        .24177        .45497E-01   -1.5638    
   2  Prefactor     .22563        1.0612        .14086       -1.5613    
   3  norm          3.3815        .57502        .55011E-02   -1.5340    
   4  norm          4.4569        .25189        .47683E-02   -1.5286    
   5  norm          3.3623        .91106        .55175E-02   -1.5341    
   6  Prefactor     1.4844        2.3059        .88059E-02   -1.5464    
   7  Prefactor     .10000E-03    54.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8015        1.4733        .51757E-02   -1.5318    
   9  Prefactor     3.8800        3.8572        .51209E-02   -1.5314    
  10  Prefactor     11.019        13.626        .30177E-02   -1.5044    
  11  Prefactor     24.428        12.811        .20271E-02   -1.4719    
  12  norm          .18696        .26253        .45760E-01   -1.5622    
  13  norm          1.1285        .76980        .11008E-01   -1.5496    
  14  norm          2.9267        1.9177        .59362E-02   -1.5366    
  15  Prefactor     4.0964        3.4672        .49808E-02   -1.5303    
  16  Prefactor     1.5859        1.1648        .84479E-02   -1.5456    
  17  norm          3.5302        .41269        .53788E-02   -1.5332    
  18  norm          9.5868        4.9012        .32354E-02   -1.5089    
  19  norm          .10000E-03    .10581        .50322E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .67009        2.0236        .11946E-01   -1.5544    
  21  Prefactor     38.694        5.7828        .16108E-02   -1.4463    
  22  norm          .22890E-01    .10682        .48803E-01   -1.5678    
  23  Prefactor     14.787        3.1760        .26039E-02   -1.4939    
  24  norm          1.1107        .98931        .11204E-01   -1.5497    
  25  Prefactor     .88823        .62821        .12764E-01   -1.5519    
  26  Prefactor     .10000E-03    1.9142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1345        .49301E-01    .99329E-01   -.88651    
  28  Prefactor     .97256        .13386E-01    .32703E-01   -.93650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9466e-05
Minuit parameter uncertainties:
  1  0.241767
  2  0.978445
  3  0.575023
  4  0.251891
  5  0.911066
  6  2.30599
  7  0.000238184
  8  1.47332
  9  3.85748
  10  13.6299
  11  12.8125
  12  0.262537
  13  0.769804
  14  1.91771
  15  3.46737
  16  1.16485
  17  0.412692
  18  4.90143
  19  2.85333e-06
  20  2.0238
  21  5.7829
  22  0.0986799
  23  3.17599
  24  0.989328
  25  0.628218
  26  1.7192e-05
  27  0.0493027
  28  0.0133861
Done.

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

Extracting fit parameters...

4FGL J1941.7+7218
   Spectrum: PowerLaw
385    Prefactor:  1.586e+00  1.165e+00  1.000e-04  1.000e+04 ( 1.000e-12)
386        Index:  2.770e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
387        Scale:  6.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.726e-01  1.339e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  1.135e+00  4.930e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 295.437 72.310
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.09e-08
Energy Flux (Fixed Index): 3.40e-06 +/- 2.50e-06

TS (Fixed Index): 2.22
Ra Dec: 295.437 72.310
Photon Flux Upper Limit: 3.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646900/likelihoodResults_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.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) = 222515.892285
delta logL = 0.000574098696234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 222515.891996
delta logL = 0.000863168534124

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   222515.9     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      263 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6175        1.5023        .33284E-03   -.18035E-03
   2  Index         2.7445        .67487        .11488E-01   -.40756E-04
   3  Normalizat    1.1347        .45423E-01    .44011E-03   -.36602E-02
   4  Prefactor     .97252        .13773E-01    .14452E-03   -.65537E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61754
  Index      = 2.74452
  Normalizat = 1.13473
  Prefactor  = 0.972523
 **********
 **   18 **HESSE 
 **********

 FCN=   222515.9     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6175        1.3704        .13314E-04   -1.5454    
   2  Index         2.7445        .61574        .45952E-03   -.46799    
   3  Normalizat    1.1347        .45433E-01    .17604E-04   -.88644    
   4  Prefactor     .97252        .13769E-01    .28903E-04   -.93651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33273e-09
Minuit parameter uncertainties:
  1  1.37045
  2  0.61771
  3  0.0454343
  4  0.0137692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646900': 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) = 222515.891996
delta logL = 0.000863172434038

Extracting fit parameters...

4FGL J1941.7+7218
   Spectrum: PowerLaw
385    Prefactor:  1.618e+00  1.370e+00  1.000e-04  1.000e+04 ( 1.000e-12)
386        Index:  2.745e+00  6.177e-01  0.000e+00  1.000e+01 (-1.000e+00)
387        Scale:  6.329e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.725e-01  1.377e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
629   Normalization:  1.135e+00  4.543e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 295.437 72.310
Photon Index (Free Index): 2.74 +/- 0.62
Photon Flux (Free Index): 1.47e-08 +/- 1.15e-08
Energy Flux (Free Index): 3.42e-06 +/- 2.48e-06

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/646900/cmap_HighResolution_672451201_675043201_4FGL_J1941.7+7218_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='3.42e-06', photon_flux_error='1.09e-08', dlogl='8.63e-04', energy_flux='3.40e-06', photon_flux2='1.47e-08', job_status='DONE', time_completed='2022-05-24 09:47:20.696927', photon_index_error2='0.62', photon_index2='2.74', ts='2.22', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='3.36e-08', energy_flux_error2='2.48e-06', EG='1.13', time_epoch_completed='1653410840.7', return_code='0', job_id='646900', GAL2='0.97', EG2='1.13', return_code2='0', energy_flux_error='2.50e-06', photon_flux_error2='1.15e-08', ts2='2.21', photon_index='2.77' WHERE bin_id='168' AND source_name='4FGL J1941.7+7218' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 09:47:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 646900: <4FGL_J1941.7+7218_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1941.7+7218_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:55:26 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:55:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:55:58 2022
Terminated at Tue May 24 09:47:23 2022
Results reported at Tue May 24 09:47:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1941.7+7218_monthly_bin168 295.437 72.3101 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1941.7+7218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   21005.00 sec.
    Max Memory :                                 1276 MB
    Average Memory :                             646.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   21084 sec.
    Turnaround time :                            21117 sec.

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

