/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1726
RA = 40.5951, Dec = 11.0477
tmin = 686707201, tmax = 686966401
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='77803', job_status='RUN', time_executed='2022-10-09 00:14:03.346636', time_epoch_executed='1665299643.35' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77803/ft1_4FGL_J0242.3+1102_daily_bin1726.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77803/ft1_4FGL_J0242.3+1102_daily_bin1726.fits outfile=/scratch/kocevski/77803/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1726.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=686707201.0 tmax=686966401.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 3.08
user 2.84
sys 0.22

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

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

Number of photons that the gtmktime cut: 97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77803/ft1_filtered_4FGL_J0242.3+1102_daily_bin1726.fits" evtable="EVENTS" scfile=/scratch/kocevski/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits sctable="SC_DATA" outfile=/scratch/kocevski/77803/ltcube_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.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/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits
.....................!
real 22.41
user 21.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77803/ft1_filtered_4FGL_J0242.3+1102_daily_bin1726.fits evtable="EVENTS" scfile=/scratch/kocevski/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits sctable="SC_DATA" expcube=/scratch/kocevski/77803/ltcube_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.fits outfile=/scratch/kocevski/77803/expmap_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.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/77803/ltcube_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.fits
.....................!
real 190.73
user 185.12
sys 5.18

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/77803/ft1_filtered_4FGL_J0242.3+1102_daily_bin1726.fits scfile=/scratch/kocevski/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits outfile=/scratch/kocevski/77803/cmap_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77803/ft1_filtered_4FGL_J0242.3+1102_daily_bin1726.fits scfile=/scratch/kocevski/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits outfile=/scratch/kocevski/77803/cmap_HighResolution_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77803/ft1_filtered_4FGL_J0242.3+1102_daily_bin1726.fits', '/scratch/kocevski/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits', expMap='/scratch/kocevski/77803/expmap_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.fits', expCube='/scratch/kocevski/77803/ltcube_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77803/Model_4FGL_J0242.3+1102_daily_bin1726.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  0.000e+00  1.000e+06 ( 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 -5.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/77803/ft1_filtered_4FGL_J0242.3+1102_daily_bin1726.fits
Spacecraft file(s): /scratch/kocevski/77803/ft2_4FGL_J0242.3+1102_daily_bin1726.fits
Exposure map: /scratch/kocevski/77803/expmap_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.fits
Exposure cube: /scratch/kocevski/77803/ltcube_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77803/Model_4FGL_J0242.3+1102_daily_bin1726.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) = 1156.49048662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27873       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12501E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .63447E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30417E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .28738E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .75642E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    109.84       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20061E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    88.105       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10644       1.0000          .0000       .10000E+07
    11 'Prefactor '    .86493E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.7698       1.0000          .0000       .10000E+07
    13 'Prefactor '    .88791E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    205.55       1.0000          .0000       .10000E+07
    15 'norm      '    17.933       1.0000          .0000       .10000E+07
    16 'Prefactor '    .65912E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.7848       1.0000          .0000       .10000E+07
    18 'Prefactor '    .49002E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .39477       1.0000          .0000       .10000E+07
    20 'norm      '    .13189E-06   1.0000          .0000       .10000E+07
    21 'norm      '    35.575       1.0000          .0000       .10000E+07
    22 'norm      '    42.417       1.0000          .0000       .10000E+07
    23 'Prefactor '    22.765       1.0000          .0000       .10000E+07
    24 'norm      '    .37231E-05   1.0000          .0000       .10000E+07
    25 'Prefactor '    .92014E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    34.779       1.0000          .0000       .10000E+07
    27 'Normalizat'    .10520       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88867       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=   1156.481     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     2719 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        128.88       -.23434E-05** at limit **
   2  Prefactor     .44409E-09    51.245        .59782E-05** at limit **
   3  norm           .0000        30.997       -.15997E-06** at limit **
   4  Prefactor      .0000        14.965       -.10499E-05** at limit **
   5  norm           .0000        2.9702        .20596E-06** at limit **
   6  Prefactor     .22810E-05    518.81        .24006E-04** at limit **
   7  Prefactor     117.91        329.53        .50905E-04   -.10213E-03
   8  Prefactor     .65652E-05    201.67       -.25102E-04** at limit **
   9  Prefactor     87.685        36.139       -.20825E-05    .43176E-01
  10  Prefactor     .55511E-10    78.102       -.19868E-05** at limit **
  11  Prefactor     .16653E-09    29.004       -.46656E-05** at limit **
  12  norm          1.7690        1.9930       -.28017E-06   -.15000E-02
  13  Prefactor     .42744E-08    192.03        .20964E-05** at limit **
  14  Prefactor     217.80        170.82       -.38873E-06    .36132E-02
  15  norm          18.821        53.639       -.15100E-05    .26171E-02
  16  Prefactor      .0000        30.860        .46080E-06** at limit **
  17  Prefactor     .21334E-04    1329.6        .14268E-04** at limit **
  18  Prefactor     .33307E-09    32.333        .55939E-05** at limit **
  19  Prefactor     .15377E-07    172.66       -.34298E-04** at limit **
  20  norm          .55511E-10    41.339       -.34933E-05** at limit **
  21  norm          36.384        33.487        .46337E-05    .41189E-01
  22  norm          42.136        21.178       -.22607E-05   -.88452E-02
  23  Prefactor     22.756        18.050       -.39638E-05   -.28342E-04
  24  norm          .55511E-10    25.702        .14888E-05** at limit **
  25  Prefactor      .0000        7.1445        .28634E-06** at limit **
  26  Prefactor     34.842        46.472        .45563E-05    .10192E-02
  27  Normalizat    .95456E-01    .84657       -.31293E-03   -.38842E-04
  28  Prefactor     .88968        .19336        .36088E-04   -.28063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.28101e-06
  Prefactor  = 117.913
  Prefactor  = 6.56519e-06
  Prefactor  = 87.6846
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  norm       = 1.76901
  Prefactor  = 4.27436e-09
  Prefactor  = 217.805
  norm       = 18.8212
  Prefactor  = 0
  Prefactor  = 2.13338e-05
  Prefactor  = 3.33067e-10
  Prefactor  = 1.53766e-08
  norm       = 5.55112e-11
  norm       = 36.3839
  norm       = 42.1358
  Prefactor  = 22.7564
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 34.8421
  Normalizat = 0.0954559
  Prefactor  = 0.889679
 **********
 **   18 **HESSE 
 **********

 FCN=   1156.481     FROM HESSE     STATUS=OK           569 CALLS     3288 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        128.77        .10515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44409E-09    51.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        30.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        14.957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        2.9648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22810E-05    527.30        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     117.91        338.40        .95420E-04   -1.5491    
   8  Prefactor     .65652E-05    224.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     87.685        90.131        .10654E-03   -1.5521    
  10  Prefactor     .55511E-10    77.790        .13759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    28.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7690        2.0154        .78689E-03   -1.5681    
  13  Prefactor     .42744E-08    191.91        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     217.80        315.90        .69756E-04   -1.5413    
  15  norm          18.821        76.995        .23624E-03   -1.5621    
  16  Prefactor      .0000        30.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21334E-04    1418.0        .78288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .33307E-09    32.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15377E-07    184.88        .90095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    41.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          36.384        65.734        .16768E-03   -1.5587    
  22  norm          42.136        23.741        .15356E-03   -1.5578    
  23  Prefactor     22.756        21.059        .20964E-03   -1.5613    
  24  norm          .55511E-10    25.670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        7.1469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.842        49.634        .16959E-03   -1.5590    
  27  Normalizat    .95456E-01    8.2043        .27638       -1.3856    
  28  Prefactor     .88968        .65718        .32689E-01   -.96503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81114e-07
Minuit parameter uncertainties:
  1  0.000115712
  2  0.000308777
  3  3.70184e-05
  4  2.63629e-05
  5  1.72678e-06
  6  0.0693685
  7  338.459
  8  0.0768123
  9  90.132
  10  0.000115036
  11  0.000144287
  12  2.01545
  13  0.00180863
  14  315.927
  15  76.1369
  16  5.02819e-06
  17  0.347939
  18  0.00020517
  19  0.00337345
  20  0.00010003
  21  65.7356
  22  23.7415
  23  21.0588
  24  5.91133e-05
  25  4.96079e-06
  26  49.6346
  27  1.8979
  28  0.663164
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.882e+01  7.614e+01  0.000e+00  1.000e+06 ( 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 -5.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:  8.897e-01  6.632e-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:  9.546e-02  1.898e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/77803/likelihoodResults_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.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) = 1156.16768869
delta logL = 0.313535296366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1156.03375985
delta logL = 0.447464130298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7576       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10040E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90763       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.

 FCN=   1156.034     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      278 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7587        5.6667        .52059E-03    .22442E-01
   2  alpha         5.0000        3.3716        .46327    ** at limit **
   3  Normalizat    .10000E-01    .81879        .32095    ** at limit **
   4  Prefactor     .90765        .16459        .32289E-01   -.74738E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.75868
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.907647
 **********
 **   18 **HESSE 
 **********

 FCN=   1156.034     FROM HESSE     STATUS=OK            31 CALLS      309 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7587        4.9149        .83582E-05   -1.5669    
   2  alpha         5.0000        3.3491        .36597E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    8.4471        .14256E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90765        .12575        .14271E-03   -.95874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13482e-09
Minuit parameter uncertainties:
  1  4.91494
  2  3.38013e-06
  3  6.16961e-05
  4  0.125791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77803': 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) = 1156.0337572
delta logL = 0.447466781688

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  3.759e+00  4.915e+00  0.000e+00  1.000e+06 ( 1.000e-12)
255        alpha:  5.000e+00  3.380e-06  0.000e+00  5.000e+00 ( 1.000e+00)
256         beta:  2.435e-01  0.000e+00 -5.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:  9.076e-01  1.258e-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  6.170e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 40.595 11.048
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.17e-07 +/- 4.12e-07
Energy Flux (Free Index): 4.43e-05 +/- 5.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/77803/cmap_HighResolution_686707201_686966401_4FGL_J0242.3+1102_daily_bin1726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-04', comment='SUCCESS', energy_flux2='4.43e-05', dlogl='4.47e-01', photon_flux2='3.17e-07', job_status='DONE', time_completed='2022-10-09 00:21:24.721651', photon_index_error2='0.00', photon_index2='5.00', ts='0.08', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='6.73e-07', energy_flux_error2='5.79e-05', EG='0.10', time_epoch_completed='1665300084.72', return_code='0', job_id='77803', GAL2='0.91', EG2='0.01', return_code2='0', photon_flux_error2='4.12e-07', ts2='1.01', photon_index='2.44' WHERE bin_id='1726' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:21:24 PDT 2022

e='daily';

Database successfully updated.


Analysis Complete.


Sun Oct  9 00:19:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 77861: <4FGL_J0242.3+1102_daily_bin1726> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1726> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct  9 00:05:44 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:05:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:05:52 2022
Terminated at Sun Oct  9 00:19:40 2022
Results reported at Sun Oct  9 00:19:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1726 40.5951 11.0477 686707201 686966401 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 :                                   394.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             145.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            836 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 77803: <4FGL_J0242.3+1102_daily_bin1726> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1726> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Oct  9 00:05:41 2022
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct  9 00:05:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct  9 00:05:50 2022
Terminated at Sun Oct  9 00:21:25 2022
Results reported at Sun Oct  9 00:21:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1726 40.5951 11.0477 686707201 686966401 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 :                                   431.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             185.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            944 sec.

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

