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 127 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 = 17387
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0202.7+4204_weekly_bin242
RA = 30.6862, Dec = 42.0714
tmin = 385344001, tmax = 385948801
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='326650', job_status='RUN', time_executed='2021-07-04 12:56:18.673171', time_epoch_executed='1625428578.67' WHERE source_name='4FGL J0202.7+4204' and cadence='weekly' and bin_id='242'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326650

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326650/ft1_4FGL_J0202.7+4204_weekly_bin242.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326650/ft1_4FGL_J0202.7+4204_weekly_bin242.fits outfile=/scratch/kocevski/326650/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin242.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=385344001.0 tmax=385948801.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 9.14
user 8.58
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.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/326650/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin242.fits evtable="EVENTS" outfile="/scratch/kocevski/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.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.13
user 0.37
sys 0.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits" evtable="EVENTS" scfile=/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits sctable="SC_DATA" outfile=/scratch/kocevski/326650/ltcube_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.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/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits
.....................!
real 27.82
user 25.50
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits sctable="SC_DATA" expcube=/scratch/kocevski/326650/ltcube_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.fits outfile=/scratch/kocevski/326650/expmap_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.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/326650/ltcube_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.fits
.....................!
real 193.59
user 185.93
sys 5.04

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/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits scfile=/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits outfile=/scratch/kocevski/326650/cmap_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.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.76
user 0.39
sys 0.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits scfile=/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits outfile=/scratch/kocevski/326650/cmap_HighResolution_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.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.80
user 0.42
sys 0.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits evtable="EVENTS" scfile=/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/326650/Model_4FGL_J0202.7+4204_weekly_bin242.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/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits.....................!
real 268.39
user 264.79
sys 1.88

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits', '/scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits', expMap='/scratch/kocevski/326650/expmap_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.fits', expCube='/scratch/kocevski/326650/ltcube_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/326650/Model_4FGL_J0202.7+4204_weekly_bin242.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/326650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin242.fits
Spacecraft file(s): /scratch/kocevski/326650/ft2_4FGL_J0202.7+4204_weekly_bin242.fits
Exposure map: /scratch/kocevski/326650/expmap_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.fits
Exposure cube: /scratch/kocevski/326650/ltcube_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/326650/Model_4FGL_J0202.7+4204_weekly_bin242.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) = 25188.1984849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1593       1.0000         .10000E-03   10000.    
     4 'norm      '    .75838       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.990       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15161E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .67494       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.107       1.0000         .10000E-03   10000.    
    13 'norm      '    2.5468       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31772E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0089       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0485       1.0000         .10000E-03   10000.    
    17 'norm      '    .49626       1.0000         .10000E-03   10000.    
    18 'norm      '    .75473       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4971       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4927       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .52275E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.0605       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1464       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88153       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=   25188.20     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2778 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1170        5.1306        .16566E-05   -.30350E-03
   2  Prefactor     7.1130        6.9375        .44569E-07    .41122E-04
   3  Prefactor     7.0965        26.170       -.11958E-05   -.20171E-04
   4  norm          .75630        1.7031        .71639E-06    .11816E-03
   5  Prefactor     31.883        22.349       -.91814E-06   -.16127E-03
   6  Prefactor     .10000E-03    9.8873       -.68523E-07** at limit **
   7  norm          .67457        .57713       -.49747E-07   -.87454E-03
   8  norm          3.2642        .65128       -.21885E-07   -.90970E-03
   9  Prefactor     .10000E-03    2.4308       -.60368E-07** at limit **
  10  Prefactor     .10000E-03    .57603        .10369E-05** at limit **
  11  Prefactor     10.608        7.3435        .18245E-06   -.55466E-05
  12  Prefactor     52.018        27.900       -.19993E-06   -.19051E-03
  13  norm          2.5464        1.9152        .79387E-07   -.90019E-04
  14  Prefactor     .10001E-03    1.7675        .27470E-06** at limit **
  15  norm          2.0101        1.2969        .51757E-07   -.13102E-03
  16  Prefactor     2.0432        4.9028        .10113E-05   -.23277E-03
  17  norm          .49599        .27596       -.28665E-07   -.13521E-02
  18  norm          .75446        .18485        .74984E-09    .33526E-03
  19  Prefactor     1.5000        2.3025        .72786E-08   -.14162E-03
  20  norm          3.4927        3.3957        .27255E-06   -.17537E-03
  21  Prefactor     .10000E-03    11.407       -.94832E-07** at limit **
  22  norm          7.0615        3.2727       -.91805E-07   -.36962E-04
  23  Normalizat    1.1465        .12283       -.17903E-05   -.45203E-03
  24  Prefactor     .88154        .50318E-01    .10230E-05    .18105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11698
  Prefactor  = 7.11298
  Prefactor  = 7.09646
  norm       = 0.756303
  Prefactor  = 31.883
  Prefactor  = 0.0001
  norm       = 0.674574
  norm       = 3.26421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6077
  Prefactor  = 52.0178
  norm       = 2.54637
  Prefactor  = 0.000100008
  norm       = 2.01006
  Prefactor  = 2.04325
  norm       = 0.495985
  norm       = 0.754456
  Prefactor  = 1.50002
  norm       = 3.49268
  Prefactor  = 0.0001
  norm       = 7.0615
  Normalizat = 1.14653
  Prefactor  = 0.881539
 **********
 **   18 **HESSE 
 **********

 FCN=   25188.20     FROM HESSE     STATUS=OK           415 CALLS     3193 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1170        5.3292        .22038E-02   -1.5497    
   2  Prefactor     7.1130        6.9445        .15040E-03   -1.5175    
   3  Prefactor     7.0965        26.170        .14992E-03   -1.5175    
   4  norm          .75630        1.6969        .30273E-03   -1.5534    
   5  Prefactor     31.883        22.511        .70844E-04   -1.4578    
   6  Prefactor     .10000E-03    9.9044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .67457        .49700        .10879E-02   -1.5544    
   8  norm          3.2642        .65052        .52279E-04   -1.5347    
   9  Prefactor     .10000E-03    2.4471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .66684        .19419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.608        7.3185        .12299E-03   -1.5056    
  12  Prefactor     52.018        27.937        .55560E-04   -1.4264    
  13  norm          2.5464        1.8945        .18300E-03   -1.5389    
  14  Prefactor     .10001E-03    5.0527        .35331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0101        1.2898        .13342E-03   -1.5424    
  16  Prefactor     2.0432        4.9000        .14443E-02   -1.5422    
  17  norm          .49599        .26173        .56349E-03   -1.5567    
  18  norm          .75446        .18492        .32493E-04   -1.5534    
  19  Prefactor     1.5000        2.2480        .26719E-03   -1.5463    
  20  norm          3.4927        3.3486        .10817E-02   -1.5334    
  21  Prefactor     .10000E-03    11.554        .21135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.0615        3.2749        .15097E-03   -1.5176    
  23  Normalizat    1.1465        .13367        .34734E-03   -.88272    
  24  Prefactor     .88154        .55579E-01    .17065E-03   -.96789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22465e-09
Minuit parameter uncertainties:
  1  4.88008
  2  6.94524
  3  26.2122
  4  1.69702
  5  22.517
  6  5.02426e-06
  7  0.497002
  8  0.650523
  9  7.68134e-06
  10  7.3792e-06
  11  7.31913
  12  27.9436
  13  1.8945
  14  0.000412125
  15  1.28985
  16  4.901
  17  0.261733
  18  0.184919
  19  2.24809
  20  3.34881
  21  2.55033e-05
  22  3.27502
  23  0.133713
  24  0.0555825
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  5.202e+01  2.794e+01  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:  8.815e-01  5.558e-02  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:  1.147e+00  1.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 30.686 42.071
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 8.53e-06

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) = 25188.1968983
delta logL = 4.01279830839e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25188.196865
delta logL = 7.34141358407e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.311       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1685       1.0000          .0000       10.000    
     3 'Normalizat'    1.1467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88151       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   25188.20     FROM MIGRAD    STATUS=FAILED        98 CALLS      278 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.317        40.450        .55453E-04   -.90863E-04
   2  Index         2.1686        .41278        .79335E-02    .15339E-02
   3  Normalizat    1.1467        .12527        .34732E-03   -.17204E-03
   4  Prefactor     .88150        .54528E-01    .17066E-03   -.35781E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   25188.20     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      347 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.317        40.450        .17496E-03   -1.4260    
   2  Index         2.1686        .41278        .43564E-03   -.60197    
   3  Normalizat    1.1467        .12527        .19553E-03   -.88266    
   4  Prefactor     .88150        .54528E-01    .84070E-04   -.96791    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25188.20     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      384 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.317        37.798        .11091E-04   -.13121E-04
   2  Index         2.1686        .38563        .15867E-02    .47575E-05
   3  Normalizat    1.1467        .12520        .13893E-04   -.19640E-05
   4  Prefactor     .88150        .54529E-01    .34131E-04   -.29312E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.3172
  Index      = 2.16865
  Normalizat = 1.14671
  Prefactor  = 0.881497
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.317        37.256        .22181E-05   -1.4260    
   2  Index         2.1686        .38019        .63468E-04   -.60197    
   3  Normalizat    1.1467        .12513        .27786E-05   -.88266    
   4  Prefactor     .88150        .54513E-01    .68263E-05   -.96791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38249e-13
Minuit parameter uncertainties:
  1  37.2731
  2  0.380736
  3  0.125161
  4  0.0545163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326650': 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) = 25188.1968644
delta logL = 7.40527648304e-05

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  5.232e+01  3.727e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.169e+00  3.807e-01  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:  8.815e-01  5.452e-02  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:  1.147e+00  1.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 30.686 42.071
Photon Index (Free Index): 2.17 +/- 0.38
Photon Flux (Free Index): 3.35e-08 +/- 2.17e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/326650/cmap_HighResolution_385344001_385948801_4FGL_J0202.7+4204_weekly_bin242.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='1.60e-05', photon_flux_error='1.80e-08', dlogl='7.41e-05', energy_flux='1.59e-05', photon_flux2='3.35e-08', job_status='DONE', time_completed='2021-07-04 13:26:37.883763', photon_index_error2='0.38', photon_index2='2.17', ts='6.27', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.15', time_epoch_completed='1625430397.88', return_code='0', job_id='326650', GAL2='0.88', EG2='1.15', return_code2='0', energy_flux_error='8.53e-06', photon_flux_error2='2.17e-08', ts2='6.27', photon_index='2.17' WHERE bin_id='242' AND source_name='4FGL J0202.7+4204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 13:26:37 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 326490: <4FGL_J0202.7+4204_weekly_bin242> in cluster <slac> Done

Job <4FGL_J0202.7+4204_weekly_bin242> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 06:16:06 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 06:16:07 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:16:07 2021
Terminated at Sun Jul  4 06:57:51 2021
Results reported at Sun Jul  4 06:57:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_weekly_bin242 30.6862 42.0714 385344001 385948801 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 :                                   1789.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             298.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2503 sec.
    Turnaround time :                            2505 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 326650: <4FGL_J0202.7+4204_weekly_bin242> in cluster <slac> Done

Job <4FGL_J0202.7+4204_weekly_bin242> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jul  4 06:16:15 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 06:16:21 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:16:21 2021
Terminated at Sun Jul  4 13:26:38 2021
Results reported at Sun Jul  4 13:26:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_weekly_bin242 30.6862 42.0714 385344001 385948801 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 :                                   1803.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             68.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   25817 sec.
    Turnaround time :                            25823 sec.

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

