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


Performing analysis on: 4FGL_J0202.7+4204_weekly_bin262
RA = 30.6862, Dec = 42.0714
tmin = 397440001, tmax = 398044801
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='326534', job_status='RUN', time_executed='2021-07-04 12:56:35.846428', time_epoch_executed='1625428595.85' WHERE source_name='4FGL J0202.7+4204' and cadence='weekly' and bin_id='262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326534

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

Retrieving the FT1 file...

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

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

Retrieving 111 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326534/ft1_4FGL_J0202.7+4204_weekly_bin262.fits


Retrieving the FT1 file...

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

Retrieving 111 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326534/ft1_4FGL_J0202.7+4204_weekly_bin262.fits outfile=/scratch/kocevski/326534/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin262.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=397440001.0 tmax=398044801.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.11
user 8.28
sys 0.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.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/326534/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin262.fits evtable="EVENTS" outfile="/scratch/kocevski/326534/ft1_filtered_4FGL_J0202.7+4204_weekly_bin262.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.20
user 0.38
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326534/ft1_filtered_4FGL_J0202.7+4204_weekly_bin262.fits" evtable="EVENTS" scfile=/scratch/kocevski/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.fits sctable="SC_DATA" outfile=/scratch/kocevski/326534/ltcube_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.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/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.fits
.....................!
real 27.19
user 26.35
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326534/ft1_filtered_4FGL_J0202.7+4204_weekly_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.fits sctable="SC_DATA" expcube=/scratch/kocevski/326534/ltcube_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.fits outfile=/scratch/kocevski/326534/expmap_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.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/326534/ltcube_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.fits
.....................!
real 194.10
user 185.61
sys 4.56

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/326534/ft1_filtered_4FGL_J0202.7+4204_weekly_bin262.fits scfile=/scratch/kocevski/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.fits outfile=/scratch/kocevski/326534/cmap_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.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.91
user 0.41
sys 0.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326534/ft1_filtered_4FGL_J0202.7+4204_weekly_bin262.fits scfile=/scratch/kocevski/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.fits outfile=/scratch/kocevski/326534/cmap_HighResolution_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.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.82
user 0.40
sys 0.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/326534/ft1_filtered_4FGL_J0202.7+4204_weekly_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/326534/ft2_4FGL_J0202.7+4204_weekly_bin262.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/326534/Model_4FGL_J0202.7+4204_weekly_bin262.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/326534/ft1_filtered_4FGL_J0202.7+4204_weekly_bin262.fits.....................!
real 270.74
user 267.21
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.5942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6166       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2479       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4178       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12037E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6387       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7974       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3838       1.0000         .10000E-03   10000.    
    13 'norm      '    .70879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2544       1.0000         .10000E-03   10000.    
    15 'norm      '    .47691       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0906       1.0000         .10000E-03   10000.    
    17 'norm      '    .45994       1.0000         .10000E-03   10000.    
    18 'norm      '    .79994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.5335       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.9904       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1701       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99309       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26039.97     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2406 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6124         .0000    ** at limit **
   2  Prefactor     .10000E-03    4.2504         .0000    ** at limit **
   3  Prefactor     .10000E-03    15.544         .0000    ** at limit **
   4  norm          5.5943        1.9995         .0000        .67746E-04
   5  Prefactor     5.6162        16.135         .0000        .17707E-03
   6  Prefactor     .10000E-03    27.762         .0000    ** at limit **
   7  norm          1.2478        .59090         .0000       -.84784E-03
   8  norm          1.4179        .50767         .0000        .14065E-02
   9  Prefactor     .10001E-03    3.8497         .0000    ** at limit **
  10  Prefactor     3.6371        2.2945         .0000        .16741E-02
  11  Prefactor     7.7947        9.6639         .0000        .47110E-03
  12  Prefactor     7.3592        20.447         .0000        .16084E-02
  13  norm          .70648        2.0943         .0000        .55444E-02
  14  Prefactor     2.2573        5.7167         .0000        .24753E-01
  15  norm          .47662        .95881         .0000        .38113E-02
  16  Prefactor     9.0878        5.9417         .0000       -.60091E-02
  17  norm          .45990        .26247         .0000        .10172E-02
  18  norm          .79991        .19327         .0000        .50130E-03
  19  Prefactor     .10000E-03    2.2624         .0000    ** at limit **
  20  norm          8.5328        3.4914         .0000        .42581E-02
  21  Prefactor     .10000E-03    6.9531         .0000    ** at limit **
  22  norm          3.9905        2.4179         .0000        .82605E-05
  23  Normalizat    1.1701        .12824         .0000        .26265E-04
  24  Prefactor     .99305        .51578E-01     .0000       -.36554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.59429
  Prefactor  = 5.61616
  Prefactor  = 0.000100001
  norm       = 1.24784
  norm       = 1.41791
  Prefactor  = 0.000100009
  Prefactor  = 3.63712
  Prefactor  = 7.79469
  Prefactor  = 7.35915
  norm       = 0.706477
  Prefactor  = 2.25732
  norm       = 0.476625
  Prefactor  = 9.08776
  norm       = 0.459902
  norm       = 0.799912
  Prefactor  = 0.0001
  norm       = 8.53279
  Prefactor  = 0.0001
  norm       = 3.99047
  Normalizat = 1.17014
  Prefactor  = 0.993054
 **********
 **   18 **HESSE 
 **********

 FCN=   26039.97     FROM HESSE     STATUS=OK           417 CALLS     2823 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.2699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5943        1.9982        .13208E-03   -1.5235    
   5  Prefactor     5.6162        16.041        .16951E-03   -1.5234    
   6  Prefactor     .10000E-03    28.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2478        .59923        .83158E-04   -1.5485    
   8  norm          1.4179        .50143        .64061E-04   -1.5470    
   9  Prefactor     .10001E-03    4.9550        .89552E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6371        2.2914        .17501E-03   -1.5327    
  11  Prefactor     7.7947        9.6259        .14360E-03   -1.5150    
  12  Prefactor     7.3592        20.435        .14760E-03   -1.5165    
  13  norm          .70648        1.9744        .35752E-03   -1.5540    
  14  Prefactor     2.2573        5.4626        .13682E-02   -1.5407    
  15  norm          .47662        1.0515        .20041E-02   -1.5570    
  16  Prefactor     9.0878        5.9082        .13293E-03   -1.5105    
  17  norm          .45990        .26014        .56227E-04   -1.5572    
  18  norm          .79991        .19263        .33618E-04   -1.5529    
  19  Prefactor     .10000E-03    2.3413        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.5328        3.4828        .68613E-03   -1.5124    
  21  Prefactor     .10000E-03    6.9665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9905        2.4203        .19004E-03   -1.5308    
  23  Normalizat    1.1701        .14512        .36927E-03   -.87531    
  24  Prefactor     .99305        .58771E-01    .17217E-03   -.92961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97888e-08
Minuit parameter uncertainties:
  1  2.59916e-06
  2  4.74779e-06
  3  0.000106783
  4  1.99822
  5  16.0528
  6  0.000241875
  7  0.59923
  8  0.501435
  9  0.000422848
  10  2.29147
  11  9.62783
  12  20.454
  13  1.97459
  14  5.46375
  15  1.05151
  16  5.90854
  17  0.260144
  18  0.192635
  19  4.82285e-07
  20  3.48287
  21  1.52435e-06
  22  2.42039
  23  0.145174
  24  0.0587743
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  7.359e+00  2.045e+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:  9.931e-01  5.877e-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.170e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 30.686 42.071
Photon Flux Upper Limit: 3.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/326534/likelihoodResults_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.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) = 26039.9374601
delta logL = 0.0340702139001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26039.9276997
delta logL = 0.043830564282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8509       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6168       1.0000          .0000       10.000    
     3 'Normalizat'    1.1652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99414       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=   26039.93     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      220 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8401        237.16        .45661E-02    .31163E-03
   2  Index         2.6177        2.3860        .23145        .20967E-03
   3  Normalizat    1.1652        .23842E-01    .83556E-01    .40678E-04
   4  Prefactor     .99413        .99682E-02    .46194E-01   -.34395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.84005
  Index      = 2.6177
  Normalizat = 1.16522
  Prefactor  = 0.994131
 **********
 **   18 **HESSE 
 **********

 FCN=   26039.93     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8401        68.320        .18264E-03   -1.5268    
   2  Index         2.6177        3.0999        .13948E-01   -.49662    
   3  Normalizat    1.1652        .13549        .36994E-03   -.87684    
   4  Prefactor     .99413        .58074E-01    .17209E-03   -.92925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21946e-09
Minuit parameter uncertainties:
  1  36.4187
  2  3.4406
  3  0.135532
  4  0.0580773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326534': 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) = 26039.9276993
delta logL = 0.0438309487618

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  4.840e+00  3.642e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.618e+00  3.441e+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:  9.941e-01  5.808e-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.165e+00  1.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 30.686 42.071

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/326534/cmap_HighResolution_397440001_398044801_4FGL_J0202.7+4204_weekly_bin262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-03', job_status='DONE', photon_flux_upper_limit='3.89e-08', time_completed='2021-07-04 13:29:26.764846', job_id='326534', GAL2='0.99', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1625430566.76', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.38e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='262' AND source_name='4FGL J0202.7+4204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 13:29:26 PDT 2021




------------------------------------------------------------
Sender: LSF System <lsf@bullet0178>
Subject: Job 326716: <4FGL_J0202.7+4204_weekly_bin262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_weekly_bin262 30.6862 42.0714 397440001 398044801 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 :                                   1570.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             265.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2293 sec.
    Turnaround time :                            2299 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 326534: <4FGL_J0202.7+4204_weekly_bin262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_weekly_bin262 30.6862 42.0714 397440001 398044801 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 :                                   1971.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             71.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   26000 sec.
    Turnaround time :                            26001 sec.

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

