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 61 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 = 17168
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0202.7+4204_weekly_bin4
RA = 30.6862, Dec = 42.0714
tmin = 241401601, tmax = 242006401
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='324650', job_status='RUN', time_executed='2021-07-04 12:55:45.508094', time_epoch_executed='1625428545.51' WHERE source_name='4FGL J0202.7+4204' and cadence='weekly' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324650

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324650/ft1_4FGL_J0202.7+4204_weekly_bin4.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324650/ft1_4FGL_J0202.7+4204_weekly_bin4.fits outfile=/scratch/kocevski/324650/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin4.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=241401601.0 tmax=242006401.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 3.08
user 2.52
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.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/324650/ft1_filteredMKT_4FGL_J0202.7+4204_weekly_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.90
user 0.37
sys 0.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/324650/ltcube_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.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/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits
.....................!
real 28.58
user 27.75
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/324650/ltcube_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.fits outfile=/scratch/kocevski/324650/expmap_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.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/324650/ltcube_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.fits
.....................!
real 194.17
user 186.95
sys 5.10

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/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits scfile=/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits outfile=/scratch/kocevski/324650/cmap_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.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 1.04
user 0.40
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits scfile=/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits outfile=/scratch/kocevski/324650/cmap_HighResolution_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.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.81
user 0.40
sys 0.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324650/Model_4FGL_J0202.7+4204_weekly_bin4.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/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits.....................!
real 222.28
user 216.00
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits', '/scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits', expMap='/scratch/kocevski/324650/expmap_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.fits', expCube='/scratch/kocevski/324650/ltcube_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324650/Model_4FGL_J0202.7+4204_weekly_bin4.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/324650/ft1_filtered_4FGL_J0202.7+4204_weekly_bin4.fits
Spacecraft file(s): /scratch/kocevski/324650/ft2_4FGL_J0202.7+4204_weekly_bin4.fits
Exposure map: /scratch/kocevski/324650/expmap_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.fits
Exposure cube: /scratch/kocevski/324650/ltcube_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324650/Model_4FGL_J0202.7+4204_weekly_bin4.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 21326.8898056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32317E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7436       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7492       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13861E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1711       1.0000         .10000E-03   10000.    
    13 'norm      '    .44931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2049       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4836       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7141       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.0659       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73469       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1182       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=   21326.82     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2465 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9581         .0000    ** at limit **
   2  Prefactor     28.799        12.857         .0000       -.10842E-02
   3  Prefactor     .10000E-03    11.271         .0000    ** at limit **
   4  norm          .10000E-03    .46887         .0000    ** at limit **
   5  Prefactor     10.131        21.669         .0000       -.27349E-03
   6  Prefactor     .10000E-03    9.2625         .0000    ** at limit **
   7  norm          1.7437        .77191         .0000       -.21112E-03
   8  norm          3.7493        .73193         .0000        .28537E-03
   9  Prefactor     .10000E-03    3.9735         .0000    ** at limit **
  10  Prefactor     .10000E-03    .74391         .0000    ** at limit **
  11  Prefactor     .10000E-03    26.361         .0000    ** at limit **
  12  Prefactor     7.1546        30.959         .0000       -.23184E-03
  13  norm          .45033        2.4041         .0000        .59645E-02
  14  Prefactor     3.2032        5.6824         .0000        .19483E-01
  15  norm          2.4418        2.6359         .0000        .20688E-02
  16  Prefactor     .10000E-03    2.5590         .0000    ** at limit **
  17  norm          2.4834        .60175         .0000        .66806E-03
  18  norm          1.0996        .25154         .0000        .41016E-03
  19  Prefactor     5.7142        3.3513         .0000        .17690E-01
  20  norm          .10000E-03    2.2020         .0000    ** at limit **
  21  Prefactor     .10000E-03    89.077         .0000    ** at limit **
  22  norm          6.0658        3.9640         .0000        .43566E-02
  23  Normalizat    .73456        .14735         .0000        .10207E-03
  24  Prefactor     1.1183        .61186E-01     .0000       -.23482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.7993
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.1309
  Prefactor  = 0.0001
  norm       = 1.7437
  norm       = 3.74933
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.15456
  norm       = 0.450333
  Prefactor  = 3.20323
  norm       = 2.44181
  Prefactor  = 0.0001
  norm       = 2.48343
  norm       = 1.09963
  Prefactor  = 5.71418
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.06579
  Normalizat = 0.734557
  Prefactor  = 1.11828
 **********
 **   18 **HESSE 
 **********

 FCN=   21326.82     FROM HESSE     STATUS=OK           421 CALLS     2886 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1898        .67633E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.799        12.867        .74648E-04   -1.4634    
   3  Prefactor     .10000E-03    11.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .47522        .97642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.131        21.649        .12576E-03   -1.5071    
   6  Prefactor     .10000E-03    9.2820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7437        .77398        .82996E-04   -1.5444    
   8  norm          3.7493        .73113        .50495E-04   -1.5321    
   9  Prefactor     .10000E-03    4.3729        .84187E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0402        .23926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1546        30.750        .14979E-03   -1.5173    
  13  norm          .45033        2.2006        .39798E-03   -1.5574    
  14  Prefactor     3.2032        5.4266        .11316E-02   -1.5350    
  15  norm          2.4418        2.6408        .20315E-03   -1.5395    
  16  Prefactor     .10000E-03    2.5768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4834        .60477        .45653E-04   -1.5393    
  18  norm          1.0996        .25078        .33669E-04   -1.5498    
  19  Prefactor     5.7142        3.3379        .84017E-03   -1.5230    
  20  norm          .10000E-03    2.2324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    91.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.0658        3.9675        .81510E-03   -1.5215    
  23  Normalizat    .73456        .15698        .44482E-03   -1.0254    
  24  Prefactor     1.1183        .66267E-01    .16709E-03   -.88884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40048e-09
Minuit parameter uncertainties:
  1  1.02885e-05
  2  12.8682
  3  6.71757e-07
  4  2.7644e-08
  5  21.6657
  6  1.00832e-07
  7  0.773984
  8  0.731135
  9  0.000195959
  10  4.84401e-08
  11  1.41574e-05
  12  29.6908
  13  1.9909
  14  5.42748
  15  2.64095
  16  4.42404e-09
  17  0.604774
  18  0.250776
  19  3.33798
  20  7.40183e-09
  21  0.000326662
  22  3.9677
  23  0.157077
  24  0.0662723
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  7.155e+00  2.969e+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:  1.118e+00  6.627e-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:  7.346e-01  1.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/324650/likelihoodResults_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.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) = 21326.5199184
delta logL = 0.299002771575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21326.4122384
delta logL = 0.406682856516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21138E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1212       1.0000          .0000       10.000    
     3 'Normalizat'    .69710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1288       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=   21326.41     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      372 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20782E-01    .17170        .51244E-02    .25167E-01
   2  Index         5.1270        1.3463        .11441        .56104E-03
   3  Normalizat    .69711        .19743E-01    .10284        .12385E-03
   4  Prefactor     1.1288        .90183E-02    .36582E-01   -.18474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0207819
  Index      = 5.12696
  Normalizat = 0.697111
  Prefactor  = 1.12882
 **********
 **   18 **HESSE 
 **********

 FCN=   21326.41     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      405 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20782E-01    1.2896        .22299E-04   -1.5679    
   2  Index         5.1270        7.2630        .73384E-02    .25394E-01
   3  Normalizat    .69711        .10980        .45587E-03   -1.0401    
   4  Prefactor     1.1288        .49202E-01    .16640E-03   -.88551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.11957e-09
Minuit parameter uncertainties:
  1  0.326638
  2  5.50262
  3  0.109833
  4  0.0492036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324650': 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) = 21326.4122367
delta logL = 0.406684483874

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  2.078e-02  3.266e-01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  5.127e+00  5.503e+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.129e+00  4.920e-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:  6.971e-01  1.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/324650/cmap_HighResolution_241401601_242006401_4FGL_J0202.7+4204_weekly_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2021-07-04 13:24:20.367462', job_id='324650', GAL2='1.13', fit_tolerance='1e-08', EG2='0.70', EG='0.73', time_epoch_completed='1625430260.37', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.07e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='4' AND source_name='4FGL J0202.7+4204' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 13:24:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 324650: <4FGL_J0202.7+4204_weekly_bin4> in cluster <slac> Done

Job <4FGL_J0202.7+4204_weekly_bin4> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 06:10:14 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 06:10: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:10:15 2021
Terminated at Sun Jul  4 13:24:22 2021
Results reported at Sun Jul  4 13:24:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_weekly_bin4 30.6862 42.0714 241401601 242006401 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 :                                   1701.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             67.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   26047 sec.
    Turnaround time :                            26048 sec.

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

