aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 24 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 = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0242.3+1102_weekly_bin717
RA = 40.5951, Dec = 11.0477
tmin = 672624001, tmax = 673228801
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='367635', job_status='RUN', time_executed='2022-05-03 01:05:33.840763', time_epoch_executed='1651565133.84' WHERE source_name='4FGL J0242.3+1102' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367635

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367635/ft1_4FGL_J0242.3+1102_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367635/ft1_4FGL_J0242.3+1102_weekly_bin717.fits outfile=/scratch/kocevski/367635/ft1_filteredMKT_4FGL_J0242.3+1102_weekly_bin717.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=672624001.0 tmax=673228801.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.34
user 6.04
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.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/367635/ft1_filteredMKT_4FGL_J0242.3+1102_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.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.56
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367635/ltcube_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.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/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits
.....................!
real 32.65
user 32.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367635/ltcube_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.fits outfile=/scratch/kocevski/367635/expmap_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.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/367635/ltcube_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.fits
.....................!
real 191.89
user 186.39
sys 5.04

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits scfile=/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits outfile=/scratch/kocevski/367635/cmap_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits scfile=/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits outfile=/scratch/kocevski/367635/cmap_HighResolution_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367635/Model_4FGL_J0242.3+1102_weekly_bin717.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/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits.......................!
real 26.82
user 25.49
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits', '/scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits', expMap='/scratch/kocevski/367635/expmap_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.fits', expCube='/scratch/kocevski/367635/ltcube_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367635/Model_4FGL_J0242.3+1102_weekly_bin717.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/367635/ft1_filtered_4FGL_J0242.3+1102_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367635/ft2_4FGL_J0242.3+1102_weekly_bin717.fits
Exposure map: /scratch/kocevski/367635/expmap_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367635/ltcube_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367635/Model_4FGL_J0242.3+1102_weekly_bin717.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) = 1178.05586603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.306       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.530       1.0000         .10000E-03   10000.    
     3 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.827       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    261.87       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .79962E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21427E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30420E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14211E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20673E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.060       1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5936.1       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .92811E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53100E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    860.08       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    22.462       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .52863E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    173.67       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .79579       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=   1177.029     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     5764 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.305        21.959        .16677E-05    .18654E-03
   2  Prefactor     28.535        15.536        .92152E-06    .29712E-03
   3  norm          .10000E-03    12.789       -.39187E-07** at limit **
   4  Prefactor     17.831        16.211        .65087E-06    .23828E-03
   5  norm          4.0231        2.2411        .56536E-06    .13879E-02
   6  Prefactor     261.69        216.16        .26126E-05    .41687E-04
   7  Prefactor     .10000E-03    484.78       -.72285E-06** at limit **
   8  Prefactor     .10000E-03    37.809       -.44297E-06** at limit **
   9  Prefactor     .10000E-03    450.57       -.97767E-06** at limit **
  10  Prefactor     .10002E-03    223.83        .44615E-06** at limit **
  11  Prefactor     .10020E-03    469.71       -.94096E-05** at limit **
  12  Prefactor     .10000E-03    37.512       -.35906E-06** at limit **
  13  Prefactor     .10002E-03    258.60        .83865E-06** at limit **
  14  norm          .10000E-03    19.909       -.12154E-05** at limit **
  15  Prefactor     .10008E-03    815.72       -.63061E-05** at limit **
  16  Prefactor     18.959        79.036        .19513E-04    .62798E-04
  17  norm          .10000E-03    122.17       -.13468E-05** at limit **
  18  Prefactor     5932.3        7347.3        .36208E-04    .13731E-05
  19  Prefactor     .10600E-03    7825.8       -.55612E-04** at limit **
  20  Prefactor     .10022E-03    7113.7       -.13811E-04** at limit **
  21  Prefactor     .10000E-03    10.103       -.17646E-06** at limit **
  22  norm          859.40        737.08       -.27949E-05   -.25204E-04
  23  norm          .10000E-03    34.978        .18535E-06** at limit **
  24  norm          22.457        25.570       -.34982E-07    .41752E-04
  25  Prefactor     .10000E-03    7.9100        .13043E-06** at limit **
  26  norm          .10000E-03    15.865       -.95144E-08** at limit **
  27  Prefactor     .10000E-03    1137.8       -.17934E-05** at limit **
  28  Prefactor     173.72        89.928        .30722E-05    .21635E-03
  29  Prefactor     .10000E-03    7.3835        .62431E-08** at limit **
  30  Prefactor     .10000E-03    55.691        .15030E-06** at limit **
  31  Normalizat    .10000E-01    .42969       -.10592E-03** at limit **
  32  Prefactor     .79595        .17277        .14171E-04    .29024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3051
  Prefactor  = 28.5346
  norm       = 0.0001
  Prefactor  = 17.8309
  norm       = 4.02305
  Prefactor  = 261.689
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100201
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 0.000100004
  Prefactor  = 0.000100078
  Prefactor  = 18.959
  norm       = 0.000100003
  Prefactor  = 5932.34
  Prefactor  = 0.000106004
  Prefactor  = 0.000100221
  Prefactor  = 0.0001
  norm       = 859.403
  norm       = 0.0001
  norm       = 22.4572
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 173.723
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.795948
 **********
 **   18 **HESSE 
 **********

 FCN=   1177.029     FROM HESSE     STATUS=OK           631 CALLS     6395 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.305        21.984        .84809E-04   -1.4763    
   2  Prefactor     28.535        15.572        .75006E-04   -1.4639    
   3  norm          .10000E-03    12.797        .11982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.831        16.224        .94860E-04   -1.4863    
   5  norm          4.0231        2.2513        .36243E-04   -1.5307    
   6  Prefactor     261.69        216.30        .12524E-03   -1.2458    
   7  Prefactor     .10000E-03    485.01        .20902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    450.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    224.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10020E-03    472.43        .19813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    258.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    19.928        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    815.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.959        80.232        .91741E-04   -1.4837    
  17  norm          .10000E-03    122.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5932.3        7346.5        .40720E-04    .18757    
  19  Prefactor     .10600E-03    7821.6        .18954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10022E-03    7114.3        .19118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.111        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          859.40        736.99        .71333E-04   -.97574    
  23  norm          .10000E-03    34.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          22.457        25.591        .84516E-04   -1.4760    
  25  Prefactor     .10000E-03    7.9132        .94215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    15.865        .13351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1137.9        .21130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     173.72        90.359        .15310E-03   -1.3064    
  29  Prefactor     .10000E-03    7.3860        .91065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    55.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    1.8333        .11734E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .79595        .17781        .18199E-03   -.99878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23965e-09
Minuit parameter uncertainties:
  1  21.9924
  2  15.5747
  3  5.41123e-05
  4  16.2282
  5  2.25138
  6  216.963
  7  0.00194431
  8  9.44517e-05
  9  0.00114878
  10  0.00442181
  11  0.0196408
  12  4.26507e-05
  13  0.00476555
  14  0.000543308
  15  0.0161504
  16  78.1822
  17  0.00118721
  18  5103.21
  19  0.41648
  20  0.0666316
  21  8.46594e-06
  22  745.754
  23  0.000135417
  24  25.6032
  25  0.000121508
  26  7.22802e-06
  27  0.00276549
  28  90.4312
  29  4.19661e-05
  30  0.00037226
  31  0.000273995
  32  0.177943
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  1.187e-03  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:  7.959e-01  1.779e-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:  1.000e-02  2.740e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 40.595 11.048
Photon Flux Upper Limit: 2.40e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367635/likelihoodResults_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.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) = 1177.02887022
delta logL = -4.1249647893e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1177.02883173
delta logL = -2.76558262158e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0247       1.0000          .0000       5.0000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79595       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1177.029     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      276 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1784.7        .18142E-01** at limit **
   2  alpha         2.0220        2.8283        .50000       -.75602E-09
   3  Normalizat    .10000E-01    .58635E-01    .11755E-01** at limit **
   4  Prefactor     .79594        .25532E-01    .18199E-03   -.99453E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.02203
  Normalizat = 0.01
  Prefactor  = 0.795944
 **********
 **   18 **HESSE 
 **********

 FCN=   1177.029     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      303 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9753.4        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0220        3.5010        .20000       -.19237    
   3  Normalizat    .10000E-01    .74126        .23510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .79594        .91485E-01    .36398E-04   -.99878    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1084e-10
Minuit parameter uncertainties:
  1  0.000813592
  2  22714.7
  3  2.25428e-07
  4  0.0915023
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367635': 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) = 1177.02882894
delta logL = 2.45622686634e-08

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  8.136e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  2.022e+00  2.271e+04  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:  7.959e-01  9.150e-02  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:  1.000e-02  2.254e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 40.595 11.048

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/367635/cmap_HighResolution_672624001_673228801_4FGL_J0242.3+1102_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-04', job_status='DONE', photon_flux_upper_limit='2.40e-06', time_completed='2022-05-03 01:13:25.329151', job_id='367635', GAL2='0.80', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651565605.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='717' AND source_name='4FGL J0242.3+1102' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:13:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 367635: <4FGL_J0242.3+1102_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0242.3+1102_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:31 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:05:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:05:00 2022
Terminated at Tue May  3 01:13:26 2022
Results reported at Tue May  3 01:13:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_weekly_bin717 40.5951 11.0477 672624001 673228801 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 :                                   471.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   505 sec.
    Turnaround time :                            775 sec.

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

