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


Performing analysis on: 4FGL_J0202.7+4204_weekly_bin511
RA = 30.6862, Dec = 42.0714
tmin = 548035201, tmax = 548640001
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='329940', job_status='RUN', time_executed='2021-07-04 06:26:19.741198', time_epoch_executed='1625405179.74' WHERE source_name='4FGL J0202.7+4204' and cadence='weekly' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/329940

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/329940/ft1_4FGL_J0202.7+4204_weekly_bin511.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/329940/ft1_4FGL_J0202.7+4204_weekly_bin511.fits outfile=/scratch/kocevski/329940/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin511.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=548035201.0 tmax=548640001.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 8.76
user 7.85
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.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/329940/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.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 1.36
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/329940/ltcube_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.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/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits
.....................!
real 31.99
user 30.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/329940/ltcube_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.fits outfile=/scratch/kocevski/329940/expmap_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.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/329940/ltcube_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.fits
.....................!
real 197.58
user 186.25
sys 5.89

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 176 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 J0202.7+4204 @ 30.6862 42.0714

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits scfile=/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits outfile=/scratch/kocevski/329940/cmap_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.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=30.6862 yref=42.0714 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits scfile=/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits outfile=/scratch/kocevski/329940/cmap_HighResolution_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.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=30.6862 yref=42.0714 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.59
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/329940/Model_4FGL_J0202.7+4204_weekly_bin511.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits.....................!
real 50.58
user 48.66
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits', '/scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits', expMap='/scratch/kocevski/329940/expmap_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.fits', expCube='/scratch/kocevski/329940/ltcube_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/329940/Model_4FGL_J0202.7+4204_weekly_bin511.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0202.7+4204'

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  4.935e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/329940/ft1_filtered_4FGL_J0202.7+4204_weekly_bin511.fits
Spacecraft file(s): /scratch/kocevski/329940/ft2_4FGL_J0202.7+4204_weekly_bin511.fits
Exposure map: /scratch/kocevski/329940/expmap_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.fits
Exposure cube: /scratch/kocevski/329940/ltcube_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/329940/Model_4FGL_J0202.7+4204_weekly_bin511.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) = 3788.92886984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    78.211       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6719       1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .77270       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.184       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
    15 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.736       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7867       1.0000         .10000E-03   10000.    
    18 'norm      '    .58515       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.797       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .47955       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1607       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3788.793     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2794 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.139        25.418        .19431E-06   -.19437E-04
   2  Prefactor     .10000E-03    22.019       -.13111E-06** at limit **
   3  Prefactor     78.440        128.31        .50236E-06    .18801E-04
   4  norm          1.6715        7.3821        .19664E-05   -.77896E-04
   5  Prefactor     47.729        73.267       -.28850E-05   -.34263E-04
   6  Prefactor     .10000E-03    140.09        .37105E-05** at limit **
   7  norm          .10000E-03    .53493        .50928E-07** at limit **
   8  norm          .77190        1.2896        .11566E-05    .10444E-02
   9  Prefactor     15.188        23.085        .60578E-06    .90659E-05
  10  Prefactor     .10000E-03    12.171        .13783E-06** at limit **
  11  Prefactor     .10000E-03    15.879        .38677E-07** at limit **
  12  Prefactor     .10000E-03    49.091       -.14643E-07** at limit **
  13  norm          .10000E-03    1.4301       -.63555E-08** at limit **
  14  Prefactor     14.514        10.665        .74503E-06   -.50593E-04
  15  norm          .10000E-03    5.7354       -.16827E-05** at limit **
  16  Prefactor     21.740        21.642        .69130E-06    .41410E-04
  17  norm          1.7869        1.2551       -.12637E-06    .79105E-03
  18  norm          .58515        .59902       -.85657E-07    .18217E-03
  19  Prefactor     .10000E-03    10.225       -.49404E-05** at limit **
  20  norm          .10000E-03    8.0726       -.20719E-05** at limit **
  21  Prefactor     23.549        87.982        .23905E-05    .28462E-05
  22  norm          .10000E-03    37.622        .38814E-06** at limit **
  23  Normalizat    .47931        .36789       -.36092E-05    .68656E-07
  24  Prefactor     1.1609        .16432        .64017E-06    .27819E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1387
  Prefactor  = 0.0001
  Prefactor  = 78.4398
  norm       = 1.67153
  Prefactor  = 47.7286
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.771904
  Prefactor  = 15.1882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5144
  norm       = 0.0001
  Prefactor  = 21.7403
  norm       = 1.78688
  norm       = 0.58515
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 23.5489
  norm       = 0.0001
  Normalizat = 0.479308
  Prefactor  = 1.16086
 **********
 **   18 **HESSE 
 **********

 FCN=   3788.793     FROM HESSE     STATUS=OK           401 CALLS     3195 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.139        25.327        .69599E-04   -1.4556    
   2  Prefactor     .10000E-03    22.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     78.440        127.94        .22704E-03   -1.3934    
   4  norm          1.6715        7.2546        .31644E-03   -1.5449    
   5  Prefactor     47.729        72.836        .58049E-04   -1.4325    
   6  Prefactor     .10000E-03    140.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .53631        .43961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .77190        1.2235        .92333E-03   -1.5532    
   9  Prefactor     15.188        22.855        .10279E-03   -1.4928    
  10  Prefactor     .10000E-03    12.481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4315        .71863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.514        10.629        .52570E-03   -1.4946    
  15  norm          .10000E-03    5.7222        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.740        21.446        .85912E-04   -1.4775    
  17  norm          1.7869        1.2378        .51820E-04   -1.5441    
  18  norm          .58515        .56715        .46747E-03   -1.5555    
  19  Prefactor     .10000E-03    9.8571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.0135        .16997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.549        88.194        .41057E-03   -1.4737    
  22  norm          .10000E-03    37.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .47931        .36232        .52645E-03   -1.1338    
  24  Prefactor     1.1609        .16744        .17005E-03   -.87544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76901e-10
Minuit parameter uncertainties:
  1  25.3354
  2  1.15801e-05
  3  128.396
  4  6.96577
  5  72.9719
  6  0.000268712
  7  2.33898e-07
  8  1.22353
  9  22.8677
  10  4.64224e-06
  11  1.19463e-05
  12  4.64719e-05
  13  1.91684e-06
  14  10.6304
  15  6.16106e-05
  16  21.4533
  17  1.23785
  18  0.567153
  19  0.000174172
  20  6.5752e-05
  21  88.6884
  22  2.35392e-05
  23  0.364114
  24  0.167514
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  4.647e-05  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.161e+00  1.675e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  4.793e-01  3.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.686 42.071
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/329940/likelihoodResults_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.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) = 3788.79345266
delta logL = -9.68645772446e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3788.79335584
delta logL = -4.04893398809e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3788.793     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    103.97        .90712E-02** at limit **
   2  Index         2.1985        5.7862        .50000        .25760E-05
   3  Normalizat    .47931        .32515        .11870        .22903E-04
   4  Prefactor     1.1609        .16028        .35629E-01   -.10359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19853
  Normalizat = 0.479307
  Prefactor  = 1.16086
 **********
 **   18 **HESSE 
 **********

 FCN=   3788.793     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    156.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1985        5.2568        .50000       -.59474    
   3  Normalizat    .47931        .32948        .52643E-03   -1.1338    
   4  Prefactor     1.1609        .16305        .17005E-03   -.87544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21831e-11
Minuit parameter uncertainties:
  1  0.000193737
  2  7.54592
  3  0.330829
  4  0.16312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/329940': 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) = 3788.79335581
delta logL = -1.54136614583e-08

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  1.937e-04  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.199e+00  7.546e+00  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.161e+00  1.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  4.793e-01  3.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.686 42.071

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/329940/cmap_HighResolution_548035201_548640001_4FGL_J0202.7+4204_weekly_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-07-04 06:38:47.472688', job_id='329940', GAL2='1.16', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1625405927.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-1.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='511' AND source_name='4FGL J0202.7+4204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 06:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 329940: <4FGL_J0202.7+4204_weekly_bin511> in cluster <slac> Done

Job <4FGL_J0202.7+4204_weekly_bin511> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul  4 06:24:08 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 06:25:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 06:25:23 2021
Terminated at Sun Jul  4 06:38:51 2021
Results reported at Sun Jul  4 06:38:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_weekly_bin511 30.6862 42.0714 548035201 548640001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0202.7+4204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            883 sec.

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

