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 85 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0242.6+1735_weekly_bin717
RA = 40.6588, Dec = 17.5984
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='367638', job_status='RUN', time_executed='2022-05-03 01:06:37.636662', time_epoch_executed='1651565197.64' WHERE source_name='4FGL J0242.6+1735' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367638

Creating custom pfile directory:
/scratch/kocevski/367638/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/367638/ft1_4FGL_J0242.6+1735_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/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367638/ft1_4FGL_J0242.6+1735_weekly_bin717.fits outfile=/scratch/kocevski/367638/ft1_filteredMKT_4FGL_J0242.6+1735_weekly_bin717.fits ra=40.6588 dec=17.5984 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.07
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits

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

Number of photons that the gtmktime cut: 58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367638/ltcube_672624001_673228801_4FGL_J0242.6+1735_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/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits
.....................!
real 33.20
user 32.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367638/ltcube_672624001_673228801_4FGL_J0242.6+1735_weekly_bin717.fits outfile=/scratch/kocevski/367638/expmap_672624001_673228801_4FGL_J0242.6+1735_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/367638/ltcube_672624001_673228801_4FGL_J0242.6+1735_weekly_bin717.fits
.....................!
real 191.93
user 186.23
sys 5.17

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

Setting source of interest to:
4FGL J0242.6+1735 @ 40.6588 17.5984

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits scfile=/scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits outfile=/scratch/kocevski/367638/cmap_672624001_673228801_4FGL_J0242.6+1735_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.6588 yref=17.5984 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits scfile=/scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits outfile=/scratch/kocevski/367638/cmap_HighResolution_672624001_673228801_4FGL_J0242.6+1735_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.6588 yref=17.5984 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367638/Model_4FGL_J0242.6+1735_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/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits.............................!
real 22.42
user 21.17
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits', '/scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits', expMap='/scratch/kocevski/367638/expmap_672624001_673228801_4FGL_J0242.6+1735_weekly_bin717.fits', expCube='/scratch/kocevski/367638/ltcube_672624001_673228801_4FGL_J0242.6+1735_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367638/Model_4FGL_J0242.6+1735_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0242.6+1735'

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  3.197e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
256        Index:  2.475e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
257        Scale:  1.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/367638/ft1_filtered_4FGL_J0242.6+1735_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367638/ft2_4FGL_J0242.6+1735_weekly_bin717.fits
Exposure map: /scratch/kocevski/367638/expmap_672624001_673228801_4FGL_J0242.6+1735_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367638/ltcube_672624001_673228801_4FGL_J0242.6+1735_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367638/Model_4FGL_J0242.6+1735_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) = 719.395228885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    492.99       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.429       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7614       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.036       1.0000         .10000E-03   10000.    
     6 'norm      '    .10784E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    264.16       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12405E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14277E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9218.1       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1192.8       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18855E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    826.48       1.0000         .10000E-03   10000.    
    25 'norm      '    35.912       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.903       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .12882E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .48483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   719.3668     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4534 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     493.09        561.94        .53463E-06    .78755E-05
   2  Prefactor     44.433        16.920        .27595E-06    .15932E-03
   3  norm          .10000E-03    13.294        .12022E-07** at limit **
   4  Prefactor     9.7531        33.453        .69262E-06    .44820E-04
   5  Prefactor     18.037        14.843        .30533E-07    .53359E-04
   6  norm          .10000E-03    244.92       -.43766E-06** at limit **
   7  Prefactor     264.15        204.97        .91943E-06    .22889E-04
   8  Prefactor     .10000E-03    452.00        .35228E-06** at limit **
   9  Prefactor     .10000E-03    36.247        .67534E-07** at limit **
  10  Prefactor     .10000E-03    382.46       -.76467E-06** at limit **
  11  Prefactor     .10000E-03    156.01        .48399E-06** at limit **
  12  Prefactor     .10000E-03    139.92        .11178E-05** at limit **
  13  Prefactor     .10000E-03    243.80       -.83491E-06** at limit **
  14  Prefactor     .10000E-03    36.779        .54659E-07** at limit **
  15  norm          .10000E-03    7.2126       -.20687E-09** at limit **
  16  Prefactor     .10000E-03    188.21        .12061E-05** at limit **
  17  norm          .10000E-03    14.821        .11712E-05** at limit **
  18  Prefactor     .10000E-03    716.95        .15961E-05** at limit **
  19  norm          .10000E-03    121.51       -.28287E-06** at limit **
  20  Prefactor     9240.9        9612.9        .34029E-04    .17029E-05
  21  Prefactor     .10001E-03    6565.2        .78956E-05** at limit **
  22  Prefactor     1192.1        835.17        .13074E-05   -.34436E-05
  23  Prefactor     .10001E-03    7972.4        .63929E-05** at limit **
  24  norm          826.59        747.97       -.21003E-06   -.21621E-05
  25  norm          35.915        28.892        .98945E-07    .29158E-04
  26  norm          .10000E-03    16.065        .88466E-08** at limit **
  27  Prefactor     .10000E-03    885.83        .23712E-05** at limit **
  28  Prefactor     .10000E-03    11.037       -.90732E-07** at limit **
  29  Prefactor     10.958        24.967        .21537E-05   -.84333E-04
  30  Prefactor     .10000E-03    36.125        .81632E-07** at limit **
  31  norm          .10000E-03    12.576        .31630E-05** at limit **
  32  Normalizat    .10000E-01    .22235        .20859E-05** at limit **
  33  Prefactor     .48504        .16373        .21220E-05    .46622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 493.095
  Prefactor  = 44.4333
  norm       = 0.0001
  Prefactor  = 9.75315
  Prefactor  = 18.0372
  norm       = 0.0001
  Prefactor  = 264.145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9240.92
  Prefactor  = 0.000100008
  Prefactor  = 1192.06
  Prefactor  = 0.000100013
  norm       = 826.588
  norm       = 35.9154
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.9582
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.485043
 **********
 **   18 **HESSE 
 **********

 FCN=   719.3668     FROM HESSE     STATUS=OK           673 CALLS     5207 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     493.09        561.41        .92382E-04   -1.1229    
   2  Prefactor     44.433        16.990        .30074E-03   -1.4374    
   3  norm          .10000E-03    13.304        .95510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7531        33.557        .12826E-03   -1.5083    
   5  Prefactor     18.037        14.860        .85410E-04   -1.4858    
   6  norm          .10000E-03    244.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     264.15        205.33        .12471E-03   -1.2443    
   8  Prefactor     .10000E-03    451.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.260        .15784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    382.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    156.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    140.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    244.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.780        .15900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.2127        .70375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    188.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.111        .10190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    717.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    121.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9240.9        9617.9        .74498E-04    1.0125    
  21  Prefactor     .10001E-03    6567.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1192.1        835.37        .61706E-04   -.86576    
  23  Prefactor     .10001E-03    7968.7        .20281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          826.59        748.15        .72635E-04   -.98756    
  25  norm          35.915        28.926        .66875E-04   -1.4509    
  26  norm          .10000E-03    16.065        .10505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    886.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.050        .87066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.958        24.139        .12133E-03   -1.5046    
  30  Prefactor     .10000E-03    36.121        .15758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    13.491        .15390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .23565        .76913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .48504        .16690        .17473E-03   -1.1267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55122e-10
Minuit parameter uncertainties:
  1  567.901
  2  16.992
  3  5.92993e-07
  4  33.622
  5  14.8627
  6  0.000126547
  7  205.894
  8  0.000769963
  9  2.56086e-05
  10  0.000317966
  11  0.000130796
  12  0.000615493
  13  0.000573949
  14  4.04593e-06
  15  2.42574e-07
  16  0.000842025
  17  0.000262262
  18  0.00115284
  19  4.78715e-05
  20  6723.11
  21  0.0106793
  22  844.908
  23  0.0202027
  24  757.671
  25  28.9372
  26  1.81164e-06
  27  0.00142857
  28  1.52994e-05
  29  24.1609
  30  3.3524e-05
  31  0.000219376
  32  4.03594e-07
  33  0.167068
Done.

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

Extracting fit parameters...

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  9.241e+03  6.723e+03  1.000e-04  1.000e+04 ( 1.000e-13)
256        Index:  2.475e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
257        Scale:  1.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  4.850e-01  1.671e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.000e-02  4.036e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 40.659 17.598
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 2.48e-05 +/- 1.80e-05
Energy Flux (Fixed Index): 7.40e-03 +/- 5.39e-03

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) = 715.720637156
delta logL = 3.64614742437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 715.531098618
delta logL = 3.83568596221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.066       1.0000         .10000E-03   10000.    
     2 'Index     '    6.1892       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49011       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+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=   715.5311     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      375 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.931        203.55        .47736E-04   -.29425E-03
   2  Index         6.1935        3.0121        .11086E-03   -.13031E-03
   3  Normalizat    .10000E-01    .16317        .65578E-03** at limit **
   4  Prefactor     .49017        .14873        .17040E-03    .15095E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9312
  Index      = 6.19353
  Normalizat = 0.01
  Prefactor  = 0.49017
 **********
 **   18 **HESSE 
 **********

 FCN=   715.5311     FROM HESSE     STATUS=OK            23 CALLS      398 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.931        498.13        .95472E-05   -1.4909    
   2  Index         6.1935        7.4094        .44342E-05    .24103    
   3  Normalizat    .10000E-01    .16352        .13116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49017        .15955        .68159E-05   -1.1243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52505e-10
Minuit parameter uncertainties:
  1  179.827
  2  5.10863
  3  3.33308e-06
  4  0.159699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367638': 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) = 715.531094169
delta logL = 3.83569041128

Extracting fit parameters...

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  1.593e+01  1.798e+02  1.000e-04  1.000e+04 ( 1.000e-13)
256        Index:  6.194e+00  5.109e+00  0.000e+00  1.000e+01 (-1.000e+00)
257        Scale:  1.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
509    Prefactor:  4.902e-01  1.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
510        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
511        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
508   Normalization:  1.000e-02  3.333e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.28
Ra Dec: 40.659 17.598
Photon Index (Free Index): 6.19 +/- 5.11
Photon Flux (Free Index): 9.78e-05 +/- 4.50e-05
Energy Flux (Free Index): 1.21e-02 +/- 5.79e-03

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/367638/cmap_HighResolution_672624001_673228801_4FGL_J0242.6+1735_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.48e-05', energy_flux2='1.21e-02', photon_flux_error='1.80e-05', dlogl='3.84e+00', energy_flux='7.40e-03', photon_flux2='9.78e-05', job_status='DONE', time_completed='2022-05-03 01:13:34.510262', photon_index_error2='5.11', photon_index2='6.19', ts='4.42', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='5.79e-03', EG='0.01', time_epoch_completed='1651565614.51', return_code='0', job_id='367638', GAL2='0.49', EG2='0.01', return_code2='0', energy_flux_error='5.39e-03', photon_flux_error2='4.50e-05', ts2='12.28', photon_index='2.48' WHERE bin_id='717' AND source_name='4FGL J0242.6+1735' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:13:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 367638: <4FGL_J0242.6+1735_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0242.6+1735_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) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:05:03 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:03 2022
Terminated at Tue May  3 01:13:34 2022
Results reported at Tue May  3 01:13:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.6+1735_weekly_bin717 40.6588 17.5984 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0242.6+1735 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   417.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            783 sec.

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

