/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packa/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 229 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 oDone.


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1740
RA = 40.5951, Dec = 11.0477
tmiDone.


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1740
RA = 40.5951, Dec = 11.0477
tmin = 690336001, tmax = 690595201
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='822970', job_status='RUN', time_executed='2022-11-20 00:14:55.764278', time_epoch_executed='1668932095.76' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822970

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822970/ft1_4FGL_J0242.3+1102_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822970/ft2_4FGL_J0242.3+1102_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822970/ft1_4FGL_J0242.3+1102_daily_bin1740.fits outfile=/scratch/kocevski/822970/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1740.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=690336001.0 tmax=690595201.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.72
sys 0.21

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

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

Number of photons that the gtmktime cut: 120

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822970/ft1_filtered_4FGL_J0242.3+1102_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822970/ft2_4FGL_J0242.3+1102_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822970/ltcube_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.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/822970/ft2_4FGL_J0242.3+1102_daily_bin1740.fits
.....................!
real 13.51
user 13.08
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822970/ft1_filtered_4FGL_J0242.3+1102_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822970/ft2_4FGL_J0242.3+1102_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822970/ltcube_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.fits outfile=/scratch/kocevski/822970/expmap_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.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/822970/ltcube_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.fits
.....................!
real 191.14
user 185.37
sys 5.38

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/822970/ft1_filtered_4FGL_J0242.3+1102_daily_bin1740.fits scfile=/scratch/kocevski/822970/ft2_4FGL_J0242.3+1102_daily_bin1740.fits outfile=/scratch/kocevski/822970/cmap_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.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.36
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822970/ft1_filtered_4FGL_J0242.3+1102_daily_bin1740.fits', '/scratch/kocevski/822970/ft2_4FGL_J0242.3+1102_daily_bin1740.fits', expMap='/scratch/kocevski/822970/expmap_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.fits', expCube='/scratch/kocevski/822970/ltcube_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822970/Model_4FGL_J0242.3+1102_daily_bin1740.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/822970/ft1_filtered_4FGL_J0242.3+1102_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822970/ft2_4FGL_J0242.3+1102_daily_bin1740.fits
Exposure map: /scratch/kocevski/822970/expmap_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822970/ltcube_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822970/Model_4FGL_J0242.3+1102_daily_bin1740.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1547.58136405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.590       1.0000          .0000       .10000E+07
     2 'Prefactor '    .70678E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .12159E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.5046       1.0000          .0000       .10000E+07
     5 'norm      '    .58614       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.114       1.0000          .0000       .10000E+07
     7 'Prefactor '    121.54       1.0000          .0000       .10000E+07
     8 'Prefactor '    209.74       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10832E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .29840E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.2310       1.0000          .0000       .10000E+07
    12 'norm      '    .39937       1.0000          .0000       .10000E+07
    13 'Prefactor '    .59383       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22768E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .34747E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .64278E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    10.272       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21674       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.7842       1.0000          .0000       .10000E+07
    20 'norm      '    .64344E-01   1.0000          .0000       .10000E+07
    21 'norm      '    37.948       1.0000          .0000       .10000E+07
    22 'norm      '    4.6366       1.0000          .0000       .10000E+07
    23 'Prefactor '    .33378E-02   1.0000          .0000       .10000E+07
    24 'norm      '    41.975       1.0000          .0000       .10000E+07
    25 'Prefactor '    .39822       1.0000          .0000       .10000E+07
    26 'Prefactor '    .46910E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    .47642       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88782       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=   1547.542     FROM MIGRAD    STATUS=CONVERGED    278 CALLS     3351 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.446        13.804        .35136E-08    .79735E-03
   2  Prefactor      .0000        4.9953        .12270E-07** at limit **
   3  norm           .0000        3.7380        .12136E-07** at limit **
   4  Prefactor     9.5595        6.2206       -.54150E-08    .62584E-03
   5  norm          .58569        1.6697       -.37265E-08    .52520E-03
   6  Prefactor     11.141        79.181        .22939E-06   -.64076E-03
   7  Prefactor     125.71        106.61       -.38297E-07    .14094    
   8  Prefactor     205.54        128.06        .14594E-08    .10615    
   9  Prefactor     .17208E-08    25.333       -.69727E-07** at limit **
  10  Prefactor     .44964E-08    28.970       -.21813E-07** at limit **
  11  Prefactor     .75272        725.72        .13639E-05    .52127E-02
  12  norm          .57949        4.4419        .15512E-06    .37636E-02
  13  Prefactor     .82735E-04    227.05        .49524E-07** at limit **
  14  Prefactor     .55511E-10    15.614       -.34379E-07** at limit **
  15  norm          .30531E-08    28.876       -.15770E-07** at limit **
  16  Prefactor      .0000        54.820       -.78063E-08** at limit **
  17  Prefactor     10.234        206.21        .39449E-06   -.17957E-01
  18  Prefactor      .0000        87.034       -.39393E-07** at limit **
  19  Prefactor     6.1039        16.946        .11059E-07    .66879E-03
  20  norm           .0000        54.527       -.54548E-08** at limit **
  21  norm          36.891        38.325       -.94771E-08    .66839E-02
  22  norm          4.8561        18.074        .89838E-08   -.36977E-02
  23  Prefactor      .0000        8.6942        .14323E-07** at limit **
  24  norm          41.152        19.091        .11672E-10    .17259    
  25  Prefactor     .23315E-08    185.76       -.47727E-07** at limit **
  26  Prefactor     .80532E-04    372.05        .88637E-06** at limit **
  27  Normalizat    .47450        .46649        .11976E-05    .44869E-04
  28  Prefactor     .89066        .25592       -.48578E-06    .10677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4457
  Prefactor  = 0
  norm       = 0
  Prefactor  = 9.55955
  norm       = 0.585693
  Prefactor  = 11.1412
  Prefactor  = 125.707
  Prefactor  = 205.54
  Prefactor  = 1.72085e-09
  Prefactor  = 4.4964e-09
  Prefactor  = 0.75272
  norm       = 0.579494
  Prefactor  = 8.27349e-05
  Prefactor  = 5.55112e-11
  norm       = 3.05311e-09
  Prefactor  = 0
  Prefactor  = 10.2341
  Prefactor  = 0
  Prefactor  = 6.10395
  norm       = 0
  norm       = 36.8914
  norm       = 4.85605
  Prefactor  = 0
  norm       = 41.1525
  Prefactor  = 2.33147e-09
  Prefactor  = 8.05322e-05
  Normalizat = 0.474496
  Prefactor  = 0.890661
 **********
 **   18 **HESSE 
 **********

 FCN=   1547.542     FROM HESSE     STATUS=NOT POSDEF   571 CALLS     3922 TOTAL
                     EDM=   .58E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.446        13.858        .30763E-03   -1.5643    
   2  Prefactor      .0000        4.8747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        3.6691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5595        6.1942        .32482E-03   -1.5646    
   5  norm          .58569        1.7955        .70479E-03   -1.5693    
   6  Prefactor     11.141        83.162        .28756E-03   -1.5641    
   7  Prefactor     125.71        159.11        .90712E-04   -1.5484    
   8  Prefactor     205.54        193.42        .69057E-04   -1.5421    
   9  Prefactor     .17208E-08    25.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44964E-08    28.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .75272        .10960E+06    .43926E-03   -1.5691    
  12  norm          .57949        325.36        .89560E-03   -1.5693    
  13  Prefactor     .82735E-04    264.84        .69783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    15.341        .16861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .30531E-08    28.257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        53.790        .15011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.234        10947.        .31239E-03   -1.5644    
  18  Prefactor      .0000        85.561        .11485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1039        16.972        .41737E-03   -1.5659    
  20  norm           .0000        53.558        .15009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          36.891        37.986        .16235E-03   -1.5586    
  22  norm          4.8561        18.013        .46717E-03   -1.5664    
  23  Prefactor      .0000        8.5233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          41.152        44.816        .15436E-03   -1.5580    
  25  Prefactor     .23315E-08    176.37        .89693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .80532E-04    692.73        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .47450        .50246        .99388E-01   -1.1361    
  28  Prefactor     .89066        .22520        .44850E-01   -.96468    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.82395e-05
Minuit parameter uncertainties:
  1  13.858
  2  1.06805e-05
  3  8.9583e-06
  4  6.19421
  5  1.79549
  6  60.8788
  7  159.114
  8  193.427
  9  0.000415939
  10  0.00071467
  11  585.493
  12  27.4639
  13  0.296065
  14  4.37326e-05
  15  0.000589747
  16  9.60083e-07
  17  670.667
  18  7.06523e-05
  19  16.9717
  20  2.3523e-05
  21  37.9864
  22  18.0134
  23  4.78958e-06
  24  44.8168
  25  0.00128114
  26  0.472442
  27  0.507367
  28  0.225435
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1547.54159849

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  3.053e-09  5.897e-04  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.907e-01  2.254e-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:  4.745e-01  5.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/822970/likelihoodResults_690336001_690595201_4FGL_J0242.3+1102_daily_bin1740.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) = 1547.55820043
delta logL = -0.0166019316364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1547.54159885
delta logL = -3.57305680154e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10392E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    3.8287       1.0000          .0000       5.0000    
     3 'Normalizat'    .47453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89064       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=   1547.542     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      187 TOTAL
                     EDM=   .98E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        23.784        .52538E-07** at limit **
   2  alpha         3.2148        2.5751       -.12712E-04     .0000    
   3  Normalizat    .47450        .41366        .12052E-04    .10433E-04
   4  Prefactor     .89066        .22920       -.29018E-05    .14184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.21483
  Normalizat = 0.474496
  Prefactor  = 0.890661
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1547.542     FROM HESSE     STATUS=FAILED         9 CALLS      196 TOTAL
                     EDM=   .98E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        23.925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9544        1.2179       -.12712E-04    .28998    
   3  Normalizat    .47450        .80348        .12052E-04   -1.1361    
   4  Prefactor     .89066        1.2360       -.29018E-05   -.96468    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.81936e-13
Minuit parameter uncertainties:
  1  2.25063e-06
  2  1.2776
  3  0.824429
  4  1.27852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822970': 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): 101
logL (Free Index) = 1547.54159849
delta logL = 6.59383658785e-11

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  0.000e+00  2.251e-06  0.000e+00  1.000e+06 ( 1.000e-12)
255        alpha:  3.215e+00  1.278e+00  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:  8.907e-01  1.279e+00  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:  4.745e-01  8.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-04', job_status='DONE', photon_flux_upper_limit='3.67e-07', time_completed='2022-11-20 00:21:34.917245', job_id='822970', GAL2='0.89', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1668932494.92', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.89', dlogl='6.59e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1740' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:21:34 PST 2022

>
Subject: Job 822964: <4FGL_J0242.3+1102_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:22 2022
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:10:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:10:53 2022
Terminated at Sun Nov 20 00:20:45 2022
Results reported at Sun Nov 20 00:20:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1740 40.5951 11.0477 690336001 690595201 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 :                                   406.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            923 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 822970: <4FGL_J0242.3+1102_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:22 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:10:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:10:53 2022
Terminated at Sun Nov 20 00:21:35 2022
Results reported at Sun Nov 20 00:21:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1740 40.5951 11.0477 690336001 690595201 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 :                                   399.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             262.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            973 sec.

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

