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


Performing analysis on: 4FGL_J0242.3+1102_weekly_bin507
RA = 40.5951, Dec = 11.0477
tmin = 545616001, tmax = 546220801
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='638061', job_status='RUN', time_executed='2021-07-04 23:38:54.993260', time_epoch_executed='1625467134.99' WHERE source_name='4FGL J0242.3+1102' and cadence='weekly' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638061

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638061/ft1_4FGL_J0242.3+1102_weekly_bin507.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638061/ft1_4FGL_J0242.3+1102_weekly_bin507.fits outfile=/scratch/kocevski/638061/ft1_filteredMKT_4FGL_J0242.3+1102_weekly_bin507.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=545616001.0 tmax=546220801.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.68
user 8.31
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.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/638061/ft1_filteredMKT_4FGL_J0242.3+1102_weekly_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.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.85
user 0.37
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/638061/ltcube_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.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/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits
.....................!
real 26.51
user 25.78
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/638061/ltcube_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.fits outfile=/scratch/kocevski/638061/expmap_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.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/638061/ltcube_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.fits
.....................!
real 196.58
user 188.25
sys 5.09

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
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J0242.3+1102 @ 40.5951 11.0477

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits scfile=/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits outfile=/scratch/kocevski/638061/cmap_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.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=40.5951 yref=11.0477 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.69
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits scfile=/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits outfile=/scratch/kocevski/638061/cmap_HighResolution_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.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=40.5951 yref=11.0477 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.74
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638061/Model_4FGL_J0242.3+1102_weekly_bin507.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
Working on...
/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits.....................!
real 48.43
user 45.92
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits', '/scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits', expMap='/scratch/kocevski/638061/expmap_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.fits', expCube='/scratch/kocevski/638061/ltcube_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638061/Model_4FGL_J0242.3+1102_weekly_bin507.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0242.3+1102'

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  4.106e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.435e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  2.435e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638061/ft1_filtered_4FGL_J0242.3+1102_weekly_bin507.fits
Spacecraft file(s): /scratch/kocevski/638061/ft2_4FGL_J0242.3+1102_weekly_bin507.fits
Exposure map: /scratch/kocevski/638061/expmap_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.fits
Exposure cube: /scratch/kocevski/638061/ltcube_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638061/Model_4FGL_J0242.3+1102_weekly_bin507.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) = 3045.01741124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.116       1.0000         .10000E-03   10000.    
     3 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28273E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .22451       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    511.53       1.0000         .10000E-03   10000.    
     8 'Prefactor '    79.617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.963       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6824       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.119       1.0000         .10000E-03   10000.    
    17 'norm      '    29.103       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    31.915       1.0000         .10000E-03   10000.    
    23 'norm      '    18.551       1.0000         .10000E-03   10000.    
    24 'norm      '    21.325       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12018       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11287E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.8240       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .35565       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1424       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3044.948     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4442 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.682        .17341E-06** at limit **
   2  Prefactor     25.113        30.396        .28242E-06    .19184E-05
   3  norm          .10000E-03    7.1989       -.44955E-08** at limit **
   4  Prefactor     .10013E-03    4.4997       -.30456E-06** at limit **
   5  norm          .22590        .97562        .99369E-06   -.55458E-04
   6  Prefactor     .10000E-03    29.316       -.16328E-06** at limit **
   7  Prefactor     513.37        645.12        .66350E-06    .13330E-04
   8  Prefactor     79.655        57.108        .67019E-06    .26576E-04
   9  Prefactor     .10000E-03    70.325       -.18583E-06** at limit **
  10  Prefactor     .10000E-03    25.115       -.15347E-06** at limit **
  11  Prefactor     41.978        42.188        .56052E-06    .10048E-05
  12  Prefactor     .10000E-03    6.6787       -.19989E-06** at limit **
  13  Prefactor     .10000E-03    94.756       -.60536E-06** at limit **
  14  norm          3.6858        3.2675        .50370E-08    .12058E-03
  15  Prefactor     .10000E-03    57.676       -.12489E-06** at limit **
  16  Prefactor     22.151        36.261        .28896E-05   -.41728E-05
  17  norm          29.135        36.036        .49427E-06    .23101E-05
  18  Prefactor     .10000E-03    71.002        .39398E-06** at limit **
  19  Prefactor     .10000E-03    55.320       -.19626E-06** at limit **
  20  Prefactor     .10000E-03    47.813        .61211E-07** at limit **
  21  Prefactor     .10000E-03    3.5092        .32250E-07** at limit **
  22  norm          32.085        77.197        .74680E-07    .56025E-05
  23  norm          18.559        19.312        .12820E-06    .21791E-04
  24  norm          21.332        9.7820        .24259E-06    .51200E-04
  25  Prefactor     .13097        5.1587        .17028E-06    .19209E-03
  26  norm          .10000E-03    4.3488        .80504E-08** at limit **
  27  Prefactor     .10000E-03    1174.3        .46172E-06** at limit **
  28  Prefactor     .10000E-03    18.988        .42951E-06** at limit **
  29  Prefactor     8.8341        8.6811        .25323E-06    .45427E-05
  30  Prefactor     .10000E-03    109.85        .33846E-06** at limit **
  31  Normalizat    .35555        .40970       -.18169E-04    .29319E-05
  32  Prefactor     1.1420        .17773        .30152E-05    .55230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.1131
  norm       = 0.0001
  Prefactor  = 0.000100129
  norm       = 0.225901
  Prefactor  = 0.0001
  Prefactor  = 513.37
  Prefactor  = 79.6546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.9785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.68582
  Prefactor  = 0.0001
  Prefactor  = 22.1508
  norm       = 29.1352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.0849
  norm       = 18.5585
  norm       = 21.3325
  Prefactor  = 0.130975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.83413
  Prefactor  = 0.0001
  Normalizat = 0.355546
  Prefactor  = 1.14203
 **********
 **   18 **HESSE 
 **********

 FCN=   3044.948     FROM HESSE     STATUS=OK           655 CALLS     5097 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.113        30.391        .79931E-04   -1.4705    
   3  norm          .10000E-03    7.2001        .14461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    46.741        .22497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22590        .95720        .10442E-03   -1.5613    
   6  Prefactor     .10000E-03    29.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     513.37        644.07        .90782E-04   -1.1137    
   8  Prefactor     79.655        56.941        .45009E-04   -1.3921    
   9  Prefactor     .10000E-03    70.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.978        42.165        .61883E-04   -1.4411    
  12  Prefactor     .10000E-03    6.6761        .13925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    94.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6858        3.2571        .89988E-04   -1.5324    
  15  Prefactor     .10000E-03    57.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.151        36.194        .85167E-04   -1.4766    
  17  norm          29.135        36.143        .74266E-04   -1.4628    
  18  Prefactor     .10000E-03    70.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    55.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5201        .10093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          32.085        77.255        .70926E-04   -1.4574    
  23  norm          18.559        19.309        .92991E-04   -1.4846    
  24  norm          21.332        9.8104        .86736E-04   -1.4784    
  25  Prefactor     .13097        72.046        .23336E-02   -1.5636    
  26  norm          .10000E-03    4.3502        .11239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1174.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.8341        8.7424        .13493E-03   -1.5113    
  30  Prefactor     .10000E-03    110.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .35555        .41123        .65949E-03   -1.1967    
  32  Prefactor     1.1420        .17988        .16763E-03   -.88134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98107e-09
Minuit parameter uncertainties:
  1  1.24429e-06
  2  30.41
  3  4.74053e-06
  4  0.00491202
  5  0.929836
  6  5.68721e-05
  7  653.585
  8  56.9797
  9  5.75174e-05
  10  2.8442e-05
  11  42.1954
  12  1.69258e-05
  13  0.000167558
  14  3.25727
  15  5.7767e-05
  16  36.2294
  17  36.1701
  18  9.12323e-05
  19  7.37963e-05
  20  3.50708e-05
  21  1.02328e-05
  22  77.4978
  23  19.3154
  24  9.8111
  25  6.14879
  26  6.56657e-08
  27  0.00152286
  28  1.87476e-05
  29  8.74366
  30  5.61175e-05
  31  0.414787
  32  0.179979
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  2.914e+01  3.617e+01  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.435e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
256         beta:  2.435e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.142e+00  1.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  3.555e-01  4.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 40.595 11.048
Photon Flux Upper Limit: 3.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638061/likelihoodResults_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.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) = 3043.63691814
delta logL = 1.31148312363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3043.62892872
delta logL = 1.31947254987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.135       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0400       1.0000          .0000       5.0000    
     3 'Normalizat'    .39412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3043.629     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      207 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.968        33.100       -.59170E-05   -.35904E-04
   2  alpha         1.0376        .71528       -.61421E-04    .47426E-05
   3  Normalizat    .39402        .38243        .12727E-05    .62137E-04
   4  Prefactor     1.1250        .17044        .23930E-07    .85175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.9685
  alpha      = 1.03758
  Normalizat = 0.394022
  Prefactor  = 1.12496
 **********
 **   18 **HESSE 
 **********

 FCN=   3043.629     FROM HESSE     STATUS=OK            27 CALLS      234 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.968        33.023        .74225E-04   -1.4631    
   2  alpha         1.0376        .71368        .14289E-02   -.62484    
   3  Normalizat    .39402        .37135        .62847E-03   -1.1761    
   4  Prefactor     1.1250        .16619        .16844E-03   -.88673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16779e-11
Minuit parameter uncertainties:
  1  33.0437
  2  0.729301
  3  0.373698
  4  0.166269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638061': 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) = 3043.62891604
delta logL = 1.31948523038

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  2.897e+01  3.304e+01  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  1.038e+00  7.293e-01  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  2.435e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
257           Eb:  5.646e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.125e+00  1.663e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  3.940e-01  3.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 40.595 11.048
Photon Index (Free Index): 1.04 +/- 0.73
Photon Flux (Free Index): 5.15e-08 +/- 5.28e-08
Energy Flux (Free Index): 8.43e-05 +/- 9.07e-05

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/638061/cmap_HighResolution_545616001_546220801_4FGL_J0242.3+1102_weekly_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-04', comment='SUCCESS', energy_flux2='8.43e-05', dlogl='1.32e+00', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-07-04 23:49:32.573535', photon_index_error2='0.73', photon_index2='1.04', ts='0.94', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='3.98e-07', energy_flux_error2='9.07e-05', EG='0.36', time_epoch_completed='1625467772.57', return_code='0', job_id='638061', GAL2='1.12', EG2='0.39', return_code2='0', photon_flux_error2='5.28e-08', ts2='3.60', photon_index='2.44' WHERE bin_id='507' AND source_name='4FGL J0242.3+1102' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 23:49:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 638061: <4FGL_J0242.3+1102_weekly_bin507> in cluster <slac> Done

Job <4FGL_J0242.3+1102_weekly_bin507> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul  4 23:35:28 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 23:35:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 23:35:30 2021
Terminated at Sun Jul  4 23:49:34 2021
Results reported at Sun Jul  4 23:49:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_weekly_bin507 40.5951 11.0477 545616001 546220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0242.3+1102 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   610.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

