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 3 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0242.6+1735_daily_bin1742
RA = 40.6588, Dec = 17.5984
tmin = 690854401, tmax = 691113601
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='217470', job_status='RUN', time_executed='2022-11-26 00:13:30.701070', time_epoch_executed='1669450410.7' WHERE source_name='4FGL J0242.6+1735' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217470/ft1_4FGL_J0242.6+1735_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217470/ft1_4FGL_J0242.6+1735_daily_bin1742.fits outfile=/scratch/kocevski/217470/ft1_filteredMKT_4FGL_J0242.6+1735_daily_bin1742.fits ra=40.6588 dec=17.5984 rad=12.0 tmin=690854401.0 tmax=691113601.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 2.92
user 2.69
sys 0.22

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

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

Number of photons that the gtmktime cut: 86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217470/ltcube_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.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/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits
.....................!
real 17.94
user 17.54
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217470/ltcube_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.fits outfile=/scratch/kocevski/217470/expmap_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.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/217470/ltcube_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.fits
.....................!
real 193.02
user 187.34
sys 5.25

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/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits scfile=/scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits outfile=/scratch/kocevski/217470/cmap_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits scfile=/scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits outfile=/scratch/kocevski/217470/cmap_HighResolution_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.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.62
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217470/Model_4FGL_J0242.6+1735_daily_bin1742.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/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits......................!
real 25.18
user 23.82
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits', '/scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits', expMap='/scratch/kocevski/217470/expmap_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.fits', expCube='/scratch/kocevski/217470/ltcube_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217470/Model_4FGL_J0242.6+1735_daily_bin1742.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  0.000e+00  1.000e+06 ( 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/217470/ft1_filtered_4FGL_J0242.6+1735_daily_bin1742.fits
Spacecraft file(s): /scratch/kocevski/217470/ft2_4FGL_J0242.6+1735_daily_bin1742.fits
Exposure map: /scratch/kocevski/217470/expmap_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.fits
Exposure cube: /scratch/kocevski/217470/ltcube_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217470/Model_4FGL_J0242.6+1735_daily_bin1742.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) = 1016.94315269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.360       1.0000          .0000       .10000E+07
     2 'norm      '    2.9447       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.594       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.4332       1.0000          .0000       .10000E+07
     5 'norm      '    .21997E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    148.71       1.0000          .0000       .10000E+07
     7 'Prefactor '    21.375       1.0000          .0000       .10000E+07
     8 'Prefactor '    21.445       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24259E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    79.688       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16223E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .20048E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .20379E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .72331E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    .64141E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .12615E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .43213       1.0000          .0000       .10000E+07
    18 'Prefactor '    .28795E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .78525E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16267       1.0000          .0000       .10000E+07
    21 'norm      '    .43823       1.0000          .0000       .10000E+07
    22 'norm      '    9.0307       1.0000          .0000       .10000E+07
    23 'norm      '    .39179E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .68586E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .48676E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    165.67       1.0000          .0000       .10000E+07
    27 'norm      '    .18261E-01   1.0000          .0000       .10000E+07
    28 'Normalizat'    .82027       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1016.817     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     2841 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.501        9.6538       -.18137E-06    .70912E-03
   2  norm          2.4518        25.572       -.33106E-06    .49037E-03
   3  Prefactor     13.629        20.391       -.22032E-06    .28603E-02
   4  Prefactor     8.2317        8.4989        .15427E-06   -.13777E-02
   5  norm           .0000        79.117        .73840E-07** at limit **
   6  Prefactor     127.85        78.200       -.23953E-06    .28732    
   7  Prefactor     43.843        143.84       -.20750E-05    .44529E-01
   8  Prefactor     86.751        412.87       -.16008E-04   -.64946E-02
   9  Prefactor      .0000        53.447        .16220E-06** at limit **
  10  Prefactor     79.407        51.304        .21286E-05    .16491E-01
  11  Prefactor     .54728E-06    66.894        .90377E-06** at limit **
  12  norm           .0000        2.3221        .10051E-06** at limit **
  13  Prefactor     .30369E-04    276.00        .10075E-04** at limit **
  14  norm           .0000        1.2768       -.15990E-07** at limit **
  15  Prefactor     .11073E-04    132.45       -.37099E-06** at limit **
  16  norm          .11102E-09    20.942        .30089E-07** at limit **
  17  Prefactor     .57679E-02    223.99       -.68695E-05** at limit **
  18  Prefactor     .46320E-04    145.06       -.30988E-06** at limit **
  19  Prefactor      .0000        14.313        .19257E-08** at limit **
  20  Prefactor     .96217E-06    561.90       -.15094E-05** at limit **
  21  norm          2.2263        711.07        .14164E-04    .30348E-01
  22  norm          9.0521        29.458       -.62393E-08    .49934E-03
  23  norm          .81046E-08    40.830       -.26628E-06** at limit **
  24  Prefactor     .87386E-06    71.199       -.18772E-05** at limit **
  25  Prefactor     .12115E-05    82.651        .19780E-05** at limit **
  26  Prefactor     203.20        242.70       -.14385E-05    .12499    
  27  norm           .0000        47.944       -.11528E-06** at limit **
  28  Normalizat    .76751        .77681        .42347E-04   -.33298E-04
  29  Prefactor     .65007        .28954       -.11422E-04   -.21795E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5012
  norm       = 2.45177
  Prefactor  = 13.629
  Prefactor  = 8.23167
  norm       = 0
  Prefactor  = 127.848
  Prefactor  = 43.8425
  Prefactor  = 86.7514
  Prefactor  = 0
  Prefactor  = 79.4073
  Prefactor  = 5.47284e-07
  norm       = 0
  Prefactor  = 3.03694e-05
  norm       = 0
  Prefactor  = 1.10732e-05
  norm       = 1.11022e-10
  Prefactor  = 0.00576786
  Prefactor  = 4.63203e-05
  Prefactor  = 0
  Prefactor  = 9.62175e-07
  norm       = 2.22627
  norm       = 9.05214
  norm       = 8.10463e-09
  Prefactor  = 8.73857e-07
  Prefactor  = 1.21148e-06
  Prefactor  = 203.197
  norm       = 0
  Normalizat = 0.767514
  Prefactor  = 0.650068
 **********
 **   18 **HESSE 
 **********

 FCN=   1016.817     FROM HESSE     STATUS=OK           603 CALLS     3444 TOTAL
                     EDM=   .23E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.501        9.5949        .28467E-03   -1.5637    
   2  norm          2.4518        25.840        .59160E-03   -1.5677    
   3  Prefactor     13.629        20.218        .27141E-03   -1.5634    
   4  Prefactor     8.2317        8.5050        .34496E-03   -1.5651    
   5  norm           .0000        79.181        .16909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     127.85        122.94        .82010E-04   -1.5482    
   7  Prefactor     43.843        147.18        .21636E-03   -1.5576    
   8  Prefactor     86.751        443.45        .21601E-03   -1.5522    
   9  Prefactor      .0000        53.050        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     79.407        51.298        .11203E-03   -1.5530    
  11  Prefactor     .54728E-06    65.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.3195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .30369E-04    275.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.2759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11073E-04    132.09        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11102E-09    20.848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .57679E-02    2160.2        .85855E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .46320E-04    146.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        14.322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .96217E-06    555.13        .12482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2263        719.47        .85184E-03   -1.5678    
  22  norm          9.0521        29.644        .33328E-03   -1.5648    
  23  norm          .81046E-08    40.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .87386E-06    70.584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .12115E-05    82.093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     203.20        279.56        .77699E-04   -1.5423    
  27  norm           .0000        46.642        .17154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .76751        .69021        .89987E-01   -1.0129    
  29  Prefactor     .65007        .25457        .41633E-01   -1.0552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29513e-05
Minuit parameter uncertainties:
  1  9.5949
  2  15.919
  3  20.2178
  4  8.505
  5  4.47279e-06
  6  122.941
  7  147.194
  8  392.319
  9  1.3723e-05
  10  51.2978
  11  0.0119652
  12  6.98102e-07
  13  0.183039
  14  5.15102e-07
  15  0.0764904
  16  8.44186e-05
  17  7.06219
  18  0.164746
  19  4.31792e-06
  20  0.0462274
  21  80.0528
  22  29.6448
  23  0.00114579
  24  0.0157077
  25  0.0199454
  26  279.573
  27  1.31142e-06
  28  0.698292
  29  0.255021
Done.

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

Extracting fit parameters...

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  5.768e-03  7.062e+00  0.000e+00  1.000e+06 ( 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:  6.501e-01  2.550e-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:  7.675e-01  6.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 40.659 17.598
Photon Flux Upper Limit: 6.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217470/likelihoodResults_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.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) = 1016.81767202
delta logL = -0.000256424663462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1016.74290292
delta logL = 0.0745126746083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4421       1.0000          .0000       .10000E+07
     2 'Index     '    3.4433       1.0000          .0000       10.000    
     3 'Normalizat'    .70844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65365       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=   1016.743     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      272 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4436        76.512        .13791E-04   -.12040E-02
   2  Index         3.4432        2.6203        .64575E-02   -.40874E-04
   3  Normalizat    .70830        .63092        .41315E-03    .58333E-04
   4  Prefactor     .65372        .26327        .17979E-03    .11641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.44357
  Index      = 3.44322
  Normalizat = 0.7083
  Prefactor  = 0.653716
 **********
 **   18 **HESSE 
 **********

 FCN=   1016.743     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4436        45.956        .55165E-06   -1.5650    
   2  Index         3.4432        2.0756        .25830E-03   -.31662    
   3  Normalizat    .70830        .63150        .16526E-04   -1.0357    
   4  Prefactor     .65372        .26306        .35959E-04   -1.0537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66002e-10
Minuit parameter uncertainties:
  1  39.3977
  2  2.14801
  3  0.638152
  4  0.26356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217470': 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) = 1016.74290289
delta logL = 0.0745127079882

Extracting fit parameters...

4FGL J0242.6+1735
   Spectrum: PowerLaw
255    Prefactor:  8.444e+00  3.940e+01  0.000e+00  1.000e+06 ( 1.000e-13)
256        Index:  3.443e+00  2.148e+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:  6.537e-01  2.636e-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:  7.083e-01  6.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 40.659 17.598

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/217470/cmap_HighResolution_690854401_691113601_4FGL_J0242.6+1735_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-02', job_status='DONE', photon_flux_upper_limit='6.89e-07', time_completed='2022-11-26 00:20:00.664167', job_id='217470', GAL2='0.65', fit_tolerance='1e-08', EG2='0.71', EG='0.77', time_epoch_completed='1669450800.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='7.45e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1742' AND source_name='4FGL J0242.6+1735' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:20:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 217470: <4FGL_J0242.6+1735_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0242.6+1735_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:05:04 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:13:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:13:19 2022
Terminated at Sat Nov 26 00:20:01 2022
Results reported at Sat Nov 26 00:20:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.6+1735_daily_bin1742 40.6588 17.5984 690854401 691113601 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 :                                   392.08 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   402 sec.
    Turnaround time :                            897 sec.

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

