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


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1673
RA = 40.5951, Dec = 11.0477
tmin = 672969601, 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='351268', job_status='RUN', time_executed='2022-05-03 00:10:32.052307', time_epoch_executed='1651561832.05' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351268

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=672969601.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>=672969601.0 && nMetStart<673228801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351268/ft1_4FGL_J0242.3+1102_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351268/ft2_4FGL_J0242.3+1102_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351268/ft1_4FGL_J0242.3+1102_daily_bin1673.fits outfile=/scratch/kocevski/351268/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1673.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=672969601.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 2.99
user 2.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351268/ft2_4FGL_J0242.3+1102_daily_bin1673.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/351268/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351268/ft1_filtered_4FGL_J0242.3+1102_daily_bin1673.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351268/ft1_filtered_4FGL_J0242.3+1102_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351268/ft2_4FGL_J0242.3+1102_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351268/ltcube_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.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/351268/ft2_4FGL_J0242.3+1102_daily_bin1673.fits
.....................!
real 15.71
user 15.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351268/ft1_filtered_4FGL_J0242.3+1102_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351268/ft2_4FGL_J0242.3+1102_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351268/ltcube_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.fits outfile=/scratch/kocevski/351268/expmap_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.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/351268/ltcube_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.fits
.....................!
real 193.66
user 187.89
sys 5.32

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/351268/ft1_filtered_4FGL_J0242.3+1102_daily_bin1673.fits scfile=/scratch/kocevski/351268/ft2_4FGL_J0242.3+1102_daily_bin1673.fits outfile=/scratch/kocevski/351268/cmap_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351268/ft1_filtered_4FGL_J0242.3+1102_daily_bin1673.fits scfile=/scratch/kocevski/351268/ft2_4FGL_J0242.3+1102_daily_bin1673.fits outfile=/scratch/kocevski/351268/cmap_HighResolution_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.154       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.636       1.0000         .10000E-03   10000.    
     3 'norm      '    .12746E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.993       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.094       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9986.7       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .67051       1.0000         .10000E-03   10000.    
     9 'Prefactor '    129.56       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.695       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3894       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40830       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.548       1.0000         .10000E-03   10000.    
    14 'norm      '    9997.6       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.679       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7596       1.0000         .10000E-03   10000.    
    18 'Prefactor '    155.29       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1269       1.0000         .10000E-03   10000.    
    20 'Prefactor '    618.50       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3575.2       1.0000         .10000E-03   10000.    
    23 'norm      '    .13024E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10589E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    39.519       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .67599E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .34590E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .15106E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69798       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   344.7577     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3921 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.554        39.440       -.15669E-05    .22829E-01
   2  Prefactor     23.954        29.570       -.17711E-05   -.27686E-01
   3  norm          .24515E-03    70.669       -.61590E-05** at limit **
   4  Prefactor     57.881        58.023       -.28276E-06    .14833    
   5  norm          2.9604        3.5075       -.23845E-06   -.91204E-01
   6  Prefactor     .50312E-01    687.77        .26809E-04   -.13951E-01
   7  Prefactor    10000.0        7589.5        .70013E-05** at limit **
   8  Prefactor     .12378E-03    715.21       -.71062E-07** at limit **
   9  Prefactor     4431.3        7186.4        .41695E-04    .41042E-02
  10  Prefactor     .70007        5623.6       -.28468E-04   -.54583E-03
  11  Prefactor     .55626E-03    409.32       -.10482E-05** at limit **
  12  Prefactor     .12052E-02    638.53       -.96521E-06** at limit **
  13  Prefactor     9979.4        8615.2       -.14353E-03    .31514E-02
  14  norm         10000.0        1693.0        .42758E-04** at limit **
  15  Prefactor     9958.9        8479.2       -.44805E-03   -.55153E-03
  16  Prefactor     74.590        132.53       -.42204E-05    .21668E-02
  17  norm          9999.5        9607.2        .50281E-03    .13862E-03
  18  Prefactor     9989.1        9994.3        .55313E-04    .50341E-02
  19  Prefactor     9964.8        6267.5       -.45001E-03    .76443E-03
  20  Prefactor     9981.6        8602.5       -.10492E-03   -.96011E-02
  21  Prefactor     .10007E-03    29.928       -.11597E-06** at limit **
  22  norm          3154.4        1291.5        .21890E-04   -.29999E-02
  23  norm          .10012E-03    68.934       -.10611E-06** at limit **
  24  norm          .10029E-03    38.549        .21715E-06** at limit **
  25  Prefactor     .10015E-03    17.241        .16151E-06** at limit **
  26  norm          .10343E-03    61.458       -.15942E-06** at limit **
  27  Prefactor     .31378E-01    6211.2        .10216E-04    .32926E-02
  28  Prefactor     .21178E-02    370.60        .93113E-05** at limit **
  29  Prefactor     .21915E-03    89.376       -.12925E-04** at limit **
  30  Prefactor     .10001E-03    123.51        .49547E-06** at limit **
  31  Normalizat    .10013E-01    2.1564       -.71040E-04    .23569E-02
  32  Prefactor     .69267        .23362        .43469E-05   -.56877E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5536
  Prefactor  = 23.9539
  norm       = 0.000245151
  Prefactor  = 57.8809
  norm       = 2.96041
  Prefactor  = 0.0503121
  Prefactor  = 10000
  Prefactor  = 0.00012378
  Prefactor  = 4431.28
  Prefactor  = 0.700071
  Prefactor  = 0.000556256
  Prefactor  = 0.00120521
  Prefactor  = 9979.41
  norm       = 10000
  Prefactor  = 9958.92
  Prefactor  = 74.5896
  norm       = 9999.51
  Prefactor  = 9989.14
  Prefactor  = 9964.79
  Prefactor  = 9981.59
  Prefactor  = 0.000100072
  norm       = 3154.4
  norm       = 0.000100125
  norm       = 0.00010029
  Prefactor  = 0.000100153
  norm       = 0.000103433
  Prefactor  = 0.0313778
  Prefactor  = 0.00211784
  Prefactor  = 0.000219148
  Prefactor  = 0.00010001
  Normalizat = 0.0100127
  Prefactor  = 0.692668
 **********
 **   18 **HESSE 
 **********

 FCN=   344.7577     FROM HESSE     STATUS=OK           695 CALLS     4616 TOTAL
                     EDM=   .19E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.554        39.576        .17666E-02   -1.4566    
   2  Prefactor     23.954        29.608        .20176E-02   -1.4729    
   3  norm          .24515E-03    67.753        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.881        62.760        .11226E-02   -1.4185    
   5  norm          2.9604        3.5073        .59253E-02   -1.5364    
   6  Prefactor     .50312E-01    781.61        .16677E-02   -1.5753    
   7  Prefactor    10000.0        7584.4        .27470E-02    1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12378E-03    714.78        .11948E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4431.3        7162.5        .88429E-03   -.11399    
  10  Prefactor     .70007        5635.9        .30628E-02   -1.5875    
  11  Prefactor     .55626E-03    408.28        .54942E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .12052E-02    640.28        .10890E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9979.4        6138.7        .22647E-02    1.6616    
  14  norm         10000.0        1774.9        .65436E-02    1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9958.9        9876.9        .50735E-02    1.4425    
  16  Prefactor     74.590        133.01        .11773E-02   -1.3979    
  17  norm          9999.5        9534.9        .41840E-02   -4.6984    
  18  Prefactor     9989.1        9783.6        .80878E-03    1.6367    
  19  Prefactor     9964.8        5028.5        .37565E-02    1.6895    
  20  Prefactor     9981.6        9985.9        .41514E-03    1.4850    
  21  Prefactor     .10007E-03    30.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3154.4        3512.7        .20865E-03   -.37806    
  23  norm          .10012E-03    69.097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10029E-03    38.579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10015E-03    17.354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10343E-03    61.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .31378E-01    6219.2        .15940E-02   -1.5673    
  28  Prefactor     .21178E-02    365.21        .10500E-01   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .21915E-03    89.705        .10664E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    122.16        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10013E-01    1.5361        .21361       -1.5685    
  32  Prefactor     .69267        .28172        .42374E-01   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00186547
Minuit parameter uncertainties:
  1  39.6075
  2  29.6261
  3  0.198562
  4  62.8319
  5  3.50755
  6  12.6987
  7  6.56072
  8  0.263962
  9  8263.06
  10  463.23
  11  0.869184
  12  1.70092
  13  2436
  14  2.73322
  15  9781.15
  16  133.541
  17  705.266
  18  1192.84
  19  7400.02
  20  1283.02
  21  0.00294356
  22  3982.7
  23  0.00588143
  24  0.00669192
  25  0.00325503
  26  0.0290426
  27  18.3304
  28  1.72752
  29  0.207077
  30  0.00224887
  31  0.00907394
  32  0.282303
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e+04  7.053e+02  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:  6.927e-01  2.823e-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.001e-02  9.074e-03  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.04
Ra Dec: 40.595 11.048
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -3.01e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351268/likelihoodResults_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.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) = 344.366531595
delta logL = 0.391159242002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 344.36344676
delta logL = 0.394244077162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   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.

 FCN=   344.3634     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       63 TOTAL
                     EDM=   .25E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        1.0335        .36971    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   344.3634     FROM HESSE     STATUS=OK             7 CALLS       70 TOTAL
                     EDM=   .23E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        .94669        .17119E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27947e-18
Minuit parameter uncertainties:
  1  3.07228e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351268': 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) = 344.363446411
delta logL = 0.394244425805

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
255        alpha:  5.000e+00  3.072e-09  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:  6.945e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.04
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/351268/cmap_HighResolution_672969601_673228801_4FGL_J0242.3+1102_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-3.01e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2022-05-03 00:16:20.942391', job_id='351268', GAL2='0.69', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651562180.94', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.94e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1673' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:16:20 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 351170: <4FGL_J0242.3+1102_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:38 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:08:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:08:04 2022
Terminated at Tue May  3 00:15:57 2022
Results reported at Tue May  3 00:15:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1673 40.5951 11.0477 672969601 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 :                                   352.46 sec.
    Max Memory :                                 319 MB
    Average Memory :                             220.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   473 sec.
    Turnaround time :                            619 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 351268: <4FGL_J0242.3+1102_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:43 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:09:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:09:58 2022
Terminated at Tue May  3 00:16:21 2022
Results reported at Tue May  3 00:16:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1673 40.5951 11.0477 672969601 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 :                                   351.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   383 sec.
    Turnaround time :                            638 sec.

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

