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


Performing analysis on: 4FGL_J0202.7+4204_weekly_bin589
RA = 30.6862, Dec = 42.0714
tmin = 595209601, tmax = 595814401
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='330925', job_status='RUN', time_executed='2021-07-04 06:28:07.616412', time_epoch_executed='1625405287.62' WHERE source_name='4FGL J0202.7+4204' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330925

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330925/ft1_4FGL_J0202.7+4204_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330925/ft2_4FGL_J0202.7+4204_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330925/ft1_4FGL_J0202.7+4204_weekly_bin589.fits outfile=/scratch/kocevski/330925/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin589.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=595209601.0 tmax=595814401.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 6.78
user 5.54
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330925/ft1_filtered_4FGL_J0202.7+4204_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/330925/ft2_4FGL_J0202.7+4204_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/330925/ltcube_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.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/330925/ft2_4FGL_J0202.7+4204_weekly_bin589.fits
.....................!
real 36.03
user 34.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330925/ft1_filtered_4FGL_J0202.7+4204_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/330925/ft2_4FGL_J0202.7+4204_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/330925/ltcube_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.fits outfile=/scratch/kocevski/330925/expmap_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.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/330925/ltcube_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.fits
.....................!
real 200.43
user 186.29
sys 5.68

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/330925/ft1_filtered_4FGL_J0202.7+4204_weekly_bin589.fits scfile=/scratch/kocevski/330925/ft2_4FGL_J0202.7+4204_weekly_bin589.fits outfile=/scratch/kocevski/330925/cmap_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.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.86
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330925/ft1_filtered_4FGL_J0202.7+4204_weekly_bin589.fits scfile=/scratch/kocevski/330925/ft2_4FGL_J0202.7+4204_weekly_bin589.fits outfile=/scratch/kocevski/330925/cmap_HighResolution_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.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 1.03
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330925/ft1_filtered_4FGL_J0202.7+4204_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/330925/ft2_4FGL_J0202.7+4204_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330925/Model_4FGL_J0202.7+4204_weekly_bin589.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/330925/ft1_filtered_4FGL_J0202.7+4204_weekly_bin589.fits.....................!
real 34.09
user 26.17
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28929E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    215.53       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30654E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.556       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11381E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10694E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2844.8       1.0000         .10000E-03   10000.    
    20 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33840E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10800E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82382       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .35987       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=   1219.114     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2818 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18302        307.98        .34913E-04   -.19333E-04
   2  Prefactor     16.320        29.058        .11211E-04    .17867E-03
   3  Prefactor     214.88        145.41       -.50572E-06    .27115E-04
   4  norm          .10003E-03    6.3647       -.15908E-05** at limit **
   5  Prefactor     .10002E-03    192.47        .70488E-05** at limit **
   6  Prefactor     31.805        93.507        .12187E-04    .40853E-04
   7  norm          .10000E-03    1.0410        .16917E-06** at limit **
   8  norm          4.4406        2.7498       -.86986E-06    .48154E-04
   9  Prefactor     .10000E-03    28.437        .41005E-06** at limit **
  10  Prefactor     .10000E-03    16.087        .62419E-06** at limit **
  11  Prefactor     .10000E-03    148.84       -.24642E-05** at limit **
  12  Prefactor     .10000E-03    169.76        .34816E-05** at limit **
  13  norm          .10000E-03    35.742        .45673E-06** at limit **
  14  Prefactor     .10000E-03    56.194        .34998E-06** at limit **
  15  norm          .10000E-03    165.79        .35259E-05** at limit **
  16  Prefactor     .10000E-03    253.62       -.60257E-05** at limit **
  17  norm          .10000E-03    18.375        .14627E-06** at limit **
  18  norm          .10000E-03    6.7226        .37132E-06** at limit **
  19  Prefactor     2844.3        2864.8        .48369E-04    .64540E-05
  20  norm         10000.0        2237.9        .20783E-05** at limit **
  21  Prefactor     .10001E-03    9795.9       -.15279E-04** at limit **
  22  norm          .10000E-03    186.47        .15528E-05** at limit **
  23  Normalizat    .82391        .61661       -.28073E-04    .82592E-04
  24  Prefactor     .35953        .18751        .39845E-05    .37193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.183018
  Prefactor  = 16.3199
  Prefactor  = 214.879
  norm       = 0.000100032
  Prefactor  = 0.000100017
  Prefactor  = 31.8053
  norm       = 0.0001
  norm       = 4.44062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2844.28
  norm       = 10000
  Prefactor  = 0.000100005
  norm       = 0.0001
  Normalizat = 0.823913
  Prefactor  = 0.359526
 **********
 **   18 **HESSE 
 **********

 FCN=   1219.114     FROM HESSE     STATUS=OK           385 CALLS     3203 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18302        330.39        .25140E-02   -1.5622    
   2  Prefactor     16.320        29.407        .98925E-04   -1.4900    
   3  Prefactor     214.88        148.18        .13772E-03   -1.2766    
   4  norm          .10003E-03    9.3475        .15785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    195.01        .21381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.805        93.538        .71328E-04   -1.4579    
   7  norm          .10000E-03    1.0417        .34796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4406        2.7531        .40933E-04   -1.5286    
   9  Prefactor     .10000E-03    28.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.101        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    148.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    169.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    35.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    165.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    253.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.375        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.7257        .88439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2844.3        2871.7        .44329E-04   -.44576    
  20  norm         10000.0        2237.8        .20888E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    9795.8        .21338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    186.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82391        .63389        .34175E-03   -.99188    
  24  Prefactor     .35953        .19357        .17683E-03   -1.1893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33768e-09
Minuit parameter uncertainties:
  1  15.635
  2  29.4333
  3  148.435
  4  0.00109596
  5  0.00360705
  6  93.974
  7  1.24843e-06
  8  2.7532
  9  1.57786e-05
  10  2.38769e-05
  11  0.000374679
  12  0.000373713
  13  3.82213e-06
  14  7.87815e-06
  15  0.000305812
  16  0.000848521
  17  4.66726e-06
  18  5.76411e-06
  19  3112.96
  20  0.00134131
  21  0.0251272
  22  0.000184153
  23  0.639716
  24  0.19392
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  3.737e-04  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:  3.595e-01  1.939e-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:  8.239e-01  6.397e-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: 6.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330925/likelihoodResults_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.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) = 1219.11443667
delta logL = -2.79241010048e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1219.11440911
delta logL = -3.65226924259e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15583E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4544       1.0000          .0000       10.000    
     3 'Normalizat'    .82392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35953       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=   1219.114     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10295E-03    159.74        .90712E-02** at limit **
   2  Index         2.4203        8.7076        .50000        .25027E-05
   3  Normalizat    .82393        .13928E-01    .77190E-01    .12231E-03
   4  Prefactor     .35952        .49106E-02    .37665E-01    .33907E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102948
  Index      = 2.42027
  Normalizat = 0.823931
  Prefactor  = 0.359519
 **********
 **   18 **HESSE 
 **********

 FCN=   1219.114     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10295E-03    757.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4203        8.3509        .50000       -.54211    
   3  Normalizat    .82393        .30734E-01    .34169E-03   -.99187    
   4  Prefactor     .35952        .10850E-01    .17684E-03   -1.1893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.05684e-10
Minuit parameter uncertainties:
  1  0.0957685
  2  693.228
  3  0.0307348
  4  0.0108504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330925': 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): 102
logL (Free Index) = 1219.11440887
delta logL = -1.21317270896e-07

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.029e-04  9.577e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.420e+00  6.932e+02  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:  3.595e-01  1.085e-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:  8.239e-01  3.073e-02  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/330925/cmap_HighResolution_595209601_595814401_4FGL_J0202.7+4204_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-02', job_status='DONE', photon_flux_upper_limit='6.34e-07', time_completed='2021-07-04 06:36:05.293549', job_id='330925', GAL2='0.36', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1625405765.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='-1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='589' AND source_name='4FGL J0202.7+4204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 06:36:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 330925: <4FGL_J0202.7+4204_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0202.7+4204_weekly_bin589> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 06:26:05 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 06:26:15 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:26:15 2021
Terminated at Sun Jul  4 06:36:08 2021
Results reported at Sun Jul  4 06:36:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_weekly_bin589 30.6862 42.0714 595209601 595814401 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 :                                   439.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            603 sec.

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

