/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 20 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 = 7468
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1494
RA = 40.5951, Dec = 11.0477
tmin = 626572801, tmax = 626832001
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='672689', job_status='RUN', time_executed='2021-08-16 13:04:13.371494', time_epoch_executed='1629144253.37' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672689

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672689/ft1_4FGL_J0242.3+1102_daily_bin1494.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672689/ft2_4FGL_J0242.3+1102_daily_bin1494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672689/ft1_4FGL_J0242.3+1102_daily_bin1494.fits outfile=/scratch/kocevski/672689/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1494.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=626572801.0 tmax=626832001.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 9.79
user 2.74
sys 6.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672689/ft1_filtered_4FGL_J0242.3+1102_daily_bin1494.fits" evtable="EVENTS" scfile=/scratch/kocevski/672689/ft2_4FGL_J0242.3+1102_daily_bin1494.fits sctable="SC_DATA" outfile=/scratch/kocevski/672689/ltcube_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.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/672689/ft2_4FGL_J0242.3+1102_daily_bin1494.fits
.....................!
real 20.96
user 12.63
sys 7.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672689/ft1_filtered_4FGL_J0242.3+1102_daily_bin1494.fits evtable="EVENTS" scfile=/scratch/kocevski/672689/ft2_4FGL_J0242.3+1102_daily_bin1494.fits sctable="SC_DATA" expcube=/scratch/kocevski/672689/ltcube_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.fits outfile=/scratch/kocevski/672689/expmap_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.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/672689/ltcube_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.fits
.....................!
real 200.44
user 185.29
sys 12.29

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/672689/ft1_filtered_4FGL_J0242.3+1102_daily_bin1494.fits scfile=/scratch/kocevski/672689/ft2_4FGL_J0242.3+1102_daily_bin1494.fits outfile=/scratch/kocevski/672689/cmap_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.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 7.00
user 0.37
sys 6.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672689/ft1_filtered_4FGL_J0242.3+1102_daily_bin1494.fits scfile=/scratch/kocevski/672689/ft2_4FGL_J0242.3+1102_daily_bin1494.fits outfile=/scratch/kocevski/672689/cmap_HighResolution_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.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 6.62
user 0.40
sys 6.06

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 685.534994839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 681.454143201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .26259E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14721E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.6767       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .77977E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.780       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .63061E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18555E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35434E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .12861E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7570       1.0000         .10000E-03   10000.    
    17 'norm      '    32.958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9725       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .90044       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11927E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    23 'norm      '    .16713E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .17006E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .71569       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    28 'Prefactor '    61.881       1.0000         .10000E-03   10000.    
    29 'Prefactor '    157.60       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3563       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3661       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77795       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=   681.4342     FROM MIGRAD    STATUS=CONVERGED    392 CALLS      890 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.417        25.658       -.11241E-05    .14141E-04
   2  Prefactor     .10000E-03    7.9313       -.26985E-07** at limit **
   3  norm          .10000E-03    13.807       -.92617E-07** at limit **
   4  Prefactor     .10000E-03    3.6185        .24975E-07** at limit **
   5  norm          .10000E-03    1.8921       -.38298E-07** at limit **
   6  Prefactor     .10000E-03    40.384       -.47552E-06** at limit **
   7  Prefactor     .10001E-03    2044.3        .75601E-04** at limit **
   8  Prefactor     .10000E-03    95.959       -.57239E-06** at limit **
   9  Prefactor     .10000E-03    131.30        .16039E-05** at limit **
  10  Prefactor     89.322        135.73        .15189E-04   -.41780E-04
  11  Prefactor     .10000E-03    59.609        .66976E-06** at limit **
  12  Prefactor     .10000E-03    20.860        .16110E-06** at limit **
  13  Prefactor     .10000E-03    124.98       -.33747E-05** at limit **
  14  norm          .10000E-03    8.9260       -.17556E-06** at limit **
  15  Prefactor     .10000E-03    554.18        .21396E-05** at limit **
  16  Prefactor     .10001E-03    569.64        .36850E-04** at limit **
  17  norm          .10000E-03    1575.9       -.41010E-04** at limit **
  18  Prefactor     .10000E-03    760.71       -.63863E-05** at limit **
  19  Prefactor     236.06        674.82       -.55681E-05   -.74998E-05
  20  Prefactor     .10000E-03    1237.7        .27632E-05** at limit **
  21  Prefactor     .10000E-03    13.231        .10194E-06** at limit **
  22  norm          1.0397        1.2531         .0000         .0000    
  23  norm          .10000E-03    41.426       -.35523E-06** at limit **
  24  norm          .10000E-03    32.265        .42993E-06** at limit **
  25  Prefactor     .10000E-03    9.3369        .23833E-06** at limit **
  26  norm          .10000E-03    276.08       -.52582E-04** at limit **
  27  Prefactor     6.6702        1.0028         .0000         .0000    
  28  Prefactor     62.323        103.73        .75076E-05   -.80013E-05
  29  Prefactor     159.47        102.12       -.92344E-05    .52495E-04
  30  Prefactor     1.3563        1.0925         .0000         .0000    
  31  Normalizat    1.3731        .79356       -.46572E-06   -.60756E-05
  32  Prefactor     .77919        .46603       -.24502E-06   -.17738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4166
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 236.062
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.03974
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 6.67016
  Prefactor  = 62.3229
  Prefactor  = 159.466
  Prefactor  = 1.35625
  Normalizat = 1.37312
  Prefactor  = 0.779189
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   681.4342     FROM HESSE     STATUS=FAILED        93 CALLS      983 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.417        25.079        .28413E-02   -1.5003    
   2  Prefactor     .10000E-03    7.9303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.801        .91536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    2031.8        .34020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    96.390        .10459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    131.35        .10096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     89.322        131.26        .10375E-02   -1.3815    
  11  Prefactor     .10000E-03    59.811        .94321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.899        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    124.09        .98203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.9191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    538.67        .12687E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    561.04        .79046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1560.1        .17450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    763.04        .12636E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     236.06        643.03        .33452E-02   -1.2623    
  20  Prefactor     .10000E-03    1244.9        .12809E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          587.41        585.99         .0000       -1.5504    
  23  norm          .10000E-03    .20731       -.35523E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .25931        .42993E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .20571        .23833E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .36735       -.52582E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.6702        1.0028         .0000       -1.5191    
  28  Prefactor     62.323        1.0036        .75076E-05   -1.4127    
  29  Prefactor     159.47        1.0058       -.92344E-05   -1.3176    
  30  Prefactor     1.3563        1.0925         .0000       -1.5475    
  31  Normalizat    1.3731        1.0694       -.46572E-06   -.81409    
  32  Prefactor     .77919        1.1279       -.24502E-06   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.15005e-11
Minuit parameter uncertainties:
  1  25.1004
  2  2.56004e-07
  3  3.94534e-07
  4  9.80783e-08
  5  2.63774e-07
  6  6.30337e-06
  7  0.0076404
  8  2.98136e-05
  9  3.82425e-05
  10  131.694
  11  2.64243e-05
  12  7.19648e-07
  13  0.000171056
  14  1.07961e-06
  15  4.79589e-06
  16  0.00385958
  17  0.0008999
  18  0.00105114
  19  663.999
  20  0.00456648
  21  7.76897e-07
  22  1.25317
  23  2.78138e-07
  24  1.20656e-06
  25  3.21244e-07
  26  6.24389e-05
  27  1.00284
  28  1.00358
  29  1.00582
  30  1.09255
  31  1.08758
  32  1.1641
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 681.434237484

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  8.999e-04  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:  7.792e-01  1.164e+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:  1.373e+00  1.088e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/672689/likelihoodResults_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 681.434240376
delta logL = -2.89259025976e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 681.397059945
delta logL = 0.0371775385854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.562       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4359       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74877       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   681.3971     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      288 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.531        92.942        .84328E-04   -.10954E-05
   2  alpha         1.4340        3.2085        .23456E-01    .95506E-06
   3  Normalizat    1.4102        .79625        .31440E-03    .32871E-04
   4  Prefactor     .74871        .45860        .23458E-03    .68459E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.5308
  alpha      = 1.43402
  Normalizat = 1.41017
  Prefactor  = 0.748706
 **********
 **   18 **HESSE 
 **********

 FCN=   681.3971     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.531        95.045        .33731E-05   -1.4758    
   2  alpha         1.4340        3.2101        .93824E-03   -.44050    
   3  Normalizat    1.4102        .79668        .62880E-04   -.80335    
   4  Prefactor     .74871        .45883        .46916E-04   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98175e-11
Minuit parameter uncertainties:
  1  92.8037
  2  2.31743
  3  0.803862
  4  0.46119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672689': 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) = 681.397059272
delta logL = 0.037178211498

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  2.253e+01  9.280e+01  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  1.434e+00  2.317e+00  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:  7.487e-01  4.612e-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.410e+00  8.039e-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/672689/cmap_HighResolution_626572801_626832001_4FGL_J0242.3+1102_daily_bin1494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-04', job_status='DONE', photon_flux_upper_limit='1.24e-06', time_completed='2021-08-16 13:12:04.739433', job_id='672689', GAL2='0.75', fit_tolerance='1e-08', EG2='1.41', EG='1.37', time_epoch_completed='1629144724.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.78', dlogl='3.72e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1494' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 13:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 672689: <4FGL_J0242.3+1102_daily_bin1494> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1494> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 13:00:37 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 13:00:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 13:00:43 2021
Terminated at Mon Aug 16 13:12:06 2021
Results reported at Mon Aug 16 13:12:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1494 40.5951 11.0477 626572801 626832001 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 :                                   525.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            689 sec.

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

