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


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1200
RA = 40.5951, Dec = 11.0477
tmin = 550368001, tmax = 550627201
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='671080', job_status='RUN', time_executed='2021-08-16 13:01:31.044348', time_epoch_executed='1629144091.04' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671080/ft1_4FGL_J0242.3+1102_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671080/ft2_4FGL_J0242.3+1102_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671080/ft1_4FGL_J0242.3+1102_daily_bin1200.fits outfile=/scratch/kocevski/671080/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1200.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=550368001.0 tmax=550627201.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 7.56
user 3.81
sys 3.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671080/ft2_4FGL_J0242.3+1102_daily_bin1200.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/671080/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/671080/ft1_filtered_4FGL_J0242.3+1102_daily_bin1200.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 3.99
user 0.35
sys 3.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671080/ft1_filtered_4FGL_J0242.3+1102_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/671080/ft2_4FGL_J0242.3+1102_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/671080/ltcube_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.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/671080/ft2_4FGL_J0242.3+1102_daily_bin1200.fits
.....................!
real 17.00
user 12.99
sys 3.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671080/ft1_filtered_4FGL_J0242.3+1102_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/671080/ft2_4FGL_J0242.3+1102_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/671080/ltcube_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.fits outfile=/scratch/kocevski/671080/expmap_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.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/671080/ltcube_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.fits
.....................!
real 194.85
user 185.03
sys 8.62

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/671080/ft1_filtered_4FGL_J0242.3+1102_daily_bin1200.fits scfile=/scratch/kocevski/671080/ft2_4FGL_J0242.3+1102_daily_bin1200.fits outfile=/scratch/kocevski/671080/cmap_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.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 4.44
user 0.38
sys 3.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671080/ft1_filtered_4FGL_J0242.3+1102_daily_bin1200.fits scfile=/scratch/kocevski/671080/ft2_4FGL_J0242.3+1102_daily_bin1200.fits outfile=/scratch/kocevski/671080/cmap_HighResolution_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.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 4.18
user 0.38
sys 3.20

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11738E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12018E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    81.728       1.0000         .10000E-03   10000.    
     9 'Prefactor '    346.33       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    165.63       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11763E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    36.097       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6715       1.0000         .10000E-03   10000.    
    26 'norm      '    38.781       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .71283E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    43.384       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .17368E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0269       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.

 FCN=   1016.416     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4319 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.612       -.84664E-07** at limit **
   2  Prefactor     .10000E-03    116.78       -.20636E-06** at limit **
   3  norm          .10007E-03    358.42       -.30651E-04** at limit **
   4  Prefactor     .10000E-03    6.7694       -.11026E-05** at limit **
   5  norm          .10000E-03    1.0676        .78061E-07** at limit **
   6  Prefactor     .10000E-03    40.374       -.49581E-06** at limit **
   7  Prefactor     .10001E-03    6407.8       -.22591E-05** at limit **
   8  Prefactor     81.825        100.33       -.30202E-06    .67921E-04
   9  Prefactor     345.62        459.45       -.38669E-05    .35550E-04
  10  Prefactor     .10000E-03    79.331        .72516E-06** at limit **
  11  Prefactor     .10000E-03    31.665       -.64197E-06** at limit **
  12  Prefactor     .10000E-03    77.151       -.62340E-05** at limit **
  13  Prefactor     .10000E-03    57.601        .28950E-06** at limit **
  14  norm          .10000E-03    4.0434       -.55973E-07** at limit **
  15  Prefactor     165.76        296.14       -.38846E-05    .24227E-04
  16  Prefactor     .10000E-03    18.763       -.52044E-07** at limit **
  17  norm          .10000E-03    42.296       -.18358E-06** at limit **
  18  Prefactor     .10000E-03    203.03        .46190E-06** at limit **
  19  Prefactor     .10000E-03    374.72        .44851E-05** at limit **
  20  Prefactor     .10000E-03    156.41        .42983E-06** at limit **
  21  Prefactor     .10000E-03    8.8737        .17163E-07** at limit **
  22  norm          .10000E-03    278.89        .82206E-07** at limit **
  23  norm          .10000E-03    13.030        .25920E-07** at limit **
  24  norm          36.100        16.587       -.25691E-07    .23723E-03
  25  Prefactor     4.6733        12.482       -.40833E-06    .16177E-03
  26  norm          38.804        42.995       -.34550E-06    .13458E-03
  27  Prefactor     .10001E-03    6256.7       -.14363E-05** at limit **
  28  Prefactor     43.350        63.966        .84063E-06    .17616E-03
  29  Prefactor     .10000E-03    54.675        .19012E-05** at limit **
  30  Prefactor     .10000E-03    110.00       -.75775E-07** at limit **
  31  Normalizat    .10000E-01    .35076       -.23210E-04** at limit **
  32  Prefactor     1.0268        .17626        .36688E-05    .46152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 81.8252
  Prefactor  = 345.62
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 165.761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 36.0998
  Prefactor  = 4.67333
  norm       = 38.8038
  Prefactor  = 0.000100006
  Prefactor  = 43.3501
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.02676
 **********
 **   18 **HESSE 
 **********

 FCN=   1016.416     FROM HESSE     STATUS=OK           631 CALLS     4950 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    116.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10007E-03    339.42        .36327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7422        .80800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0783        .32151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    6408.6        .20637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     81.825        100.44        .22214E-03   -1.3896    
   9  Prefactor     345.62        456.79        .10938E-03   -1.1968    
  10  Prefactor     .10000E-03    79.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.667        .17531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    77.023        .21465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0434        .62624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     165.76        296.00        .15671E-03   -1.3126    
  16  Prefactor     .10000E-03    18.773        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    42.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    203.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    374.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    156.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9104        .92748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    278.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    13.037        .11243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          36.100        16.599        .66704E-04   -1.4506    
  25  Prefactor     4.6733        12.430        .16279E-03   -1.5276    
  26  norm          38.804        43.406        .64362E-04   -1.4461    
  27  Prefactor     .10001E-03    6257.1        .20969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     43.350        63.787        .60865E-04   -1.4390    
  29  Prefactor     .10000E-03    55.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    110.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .48258        .11228E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.0268        .18432        .15656E-03   -.91843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67166e-10
Minuit parameter uncertainties:
  1  4.81273e-05
  2  2.53194e-05
  3  0.0097957
  4  4.88601e-05
  5  4.47234e-07
  6  2.69954e-05
  7  0.0114719
  8  100.652
  9  461.688
  10  0.000357777
  11  6.07898e-05
  12  0.000750558
  13  4.76261e-05
  14  1.37042e-06
  15  298.719
  16  1.99236e-06
  17  1.743e-05
  18  0.000715702
  19  0.00239719
  20  0.00050979
  21  1.92504e-05
  22  9.73268e-05
  23  1.05969e-05
  24  16.6011
  25  12.437
  26  43.4418
  27  0.00786709
  28  63.8875
  29  0.000560446
  30  0.000113695
  31  2.28164e-06
  32  0.184431
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  1.743e-05  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:  1.027e+00  1.844e-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  2.282e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/671080/likelihoodResults_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1016.41594205
delta logL = -0.000119440315302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1016.41583047
delta logL = -7.85978113527e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6693       1.0000          .0000       5.0000    
     3 'Normalizat'    .10005E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0268       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=   1016.416     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      278 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6159.5        .11407E-01** at limit **
   2  alpha         1.6303        3.4606        .19657        .88201E-09
   3  Normalizat    .10000E-01    .41211E-01    .11228E-01** at limit **
   4  Prefactor     1.0268        .44283E-01    .15656E-03    .80970E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.63029
  Normalizat = 0.01
  Prefactor  = 1.02676
 **********
 **   18 **HESSE 
 **********

 FCN=   1016.416     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    65.637        .22815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6303        3.1573        .78626E-02   -.35531    
   3  Normalizat    .10000E-01    .48277        .22457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0268        .15253        .31311E-04   -.91843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37603e-09
Minuit parameter uncertainties:
  1  0.000346087
  2  811.633
  3  2.64261e-05
  4  0.152597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671080': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1016.4158222
delta logL = 4.1011162466e-07

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  3.461e-04  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  1.630e+00  8.116e+02  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:  1.027e+00  1.526e-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  2.643e-05  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/671080/cmap_HighResolution_550368001_550627201_4FGL_J0242.3+1102_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-04', job_status='DONE', photon_flux_upper_limit='6.14e-07', time_completed='2021-08-16 13:09:06.095914', job_id='671080', GAL2='1.03', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629144546.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1200' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 13:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 671080: <4FGL_J0242.3+1102_daily_bin1200> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1200> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 16 12:55:36 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 12:56:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 12:56:28 2021
Terminated at Mon Aug 16 13:09:08 2021
Results reported at Mon Aug 16 13:09:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1200 40.5951 11.0477 550368001 550627201 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 :                                   497.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             253.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            812 sec.

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

