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


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1427
RA = 40.5951, Dec = 11.0477
tmin = 609206401, tmax = 609465601
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='671448', job_status='RUN', time_executed='2021-08-16 13:03:14.054728', time_epoch_executed='1629144194.05' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671448/ft1_4FGL_J0242.3+1102_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671448/ft2_4FGL_J0242.3+1102_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671448/ft1_4FGL_J0242.3+1102_daily_bin1427.fits outfile=/scratch/kocevski/671448/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1427.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=609206401.0 tmax=609465601.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 6.93
user 2.81
sys 3.51

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671448/ft1_filtered_4FGL_J0242.3+1102_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/671448/ft2_4FGL_J0242.3+1102_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/671448/ltcube_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.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/671448/ft2_4FGL_J0242.3+1102_daily_bin1427.fits
.....................!
real 16.81
user 12.31
sys 4.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671448/ft1_filtered_4FGL_J0242.3+1102_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/671448/ft2_4FGL_J0242.3+1102_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/671448/ltcube_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.fits outfile=/scratch/kocevski/671448/expmap_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.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/671448/ltcube_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.fits
.....................!
real 200.42
user 188.02
sys 8.78

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/671448/ft1_filtered_4FGL_J0242.3+1102_daily_bin1427.fits scfile=/scratch/kocevski/671448/ft2_4FGL_J0242.3+1102_daily_bin1427.fits outfile=/scratch/kocevski/671448/cmap_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.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.00
user 0.38
sys 3.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671448/ft1_filtered_4FGL_J0242.3+1102_daily_bin1427.fits scfile=/scratch/kocevski/671448/ft2_4FGL_J0242.3+1102_daily_bin1427.fits outfile=/scratch/kocevski/671448/cmap_HighResolution_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.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 3.75
user 0.39
sys 3.31

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'norm      '    .10528E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10884E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    484.61       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    393.66       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1935       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.757       1.0000         .10000E-03   10000.    
    18 'Prefactor '    59.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27492E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.291       1.0000         .10000E-03   10000.    
    22 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .13853E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    3.4040       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8939       1.0000         .10000E-03   10000.    
    26 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    33.611       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2216       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=   1758.151     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     5115 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7507.7        .21086E-04** at limit **
   2  Prefactor    10000.0        738.62        .22290E-05** at limit **
   3  norm          .10000E-03    271.37        .18717E-05** at limit **
   4  Prefactor     .10000E-03    68.014        .17232E-05** at limit **
   5  norm          1.4138        3.0436        .19249E-06    .15953E-03
   6  Prefactor     484.24        388.37        .53785E-05    .22419E-04
   7  Prefactor     .10000E-03    340.96        .22411E-05** at limit **
   8  Prefactor     .10000E-03    100.26        .39617E-06** at limit **
   9  Prefactor     393.96        525.54        .22310E-05    .83197E-05
  10  Prefactor     .10000E-03    47.588        .33278E-06** at limit **
  11  Prefactor     .10000E-03    190.04        .17222E-05** at limit **
  12  Prefactor     .10000E-03    115.64       -.25338E-06** at limit **
  13  Prefactor     .10000E-03    98.555       -.33827E-06** at limit **
  14  norm          1.1937        3.5572        .10599E-06   -.74853E-04
  15  Prefactor     .10000E-03    138.94       -.94232E-06** at limit **
  16  Prefactor     .10001E-03    178.28        .23238E-05** at limit **
  17  norm          11.772        133.94        .52105E-05    .13328E-04
  18  Prefactor     59.861        92.457       -.12369E-06   -.30236E-04
  19  Prefactor     .10000E-03    288.66       -.67027E-06** at limit **
  20  Prefactor     .10000E-03    42.281       -.24509E-06** at limit **
  21  Prefactor     13.268        19.787       -.14845E-05   -.24490E-03
  22  norm          .10000E-03    12.844       -.10351E-06** at limit **
  23  norm          .10002E-03    920.11       -.14836E-04** at limit **
  24  norm          3.4100        13.323       -.35906E-05   -.23468E-03
  25  Prefactor     2.8942        7.2190        .97532E-07   -.68901E-04
  26  norm          .10000E-03    55.483        .26952E-08** at limit **
  27  Prefactor     .10000E-03    123.27       -.52173E-06** at limit **
  28  Prefactor     .10000E-03    29.232       -.89943E-09** at limit **
  29  Prefactor     33.616        21.843        .91747E-06    .17322E-03
  30  Prefactor     .10000E-03    13.363       -.43483E-07** at limit **
  31  Normalizat    .10000E-01    .45186        .20519E-04** at limit **
  32  Prefactor     1.2215        .15996        .13263E-05   -.28524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100001
  Prefactor  = 0.000100004
  norm       = 1.41385
  Prefactor  = 484.239
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 393.956
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19365
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 11.7716
  Prefactor  = 59.8613
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.268
  norm       = 0.0001
  norm       = 0.000100015
  norm       = 3.41001
  Prefactor  = 2.89419
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6159
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.22146
 **********
 **   18 **HESSE 
 **********

 FCN=   1758.151     FROM HESSE     STATUS=OK           649 CALLS     5764 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7515.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        739.02        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    271.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    68.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4138        2.9899        .10384E-03   -1.5470    
   6  Prefactor     484.24        388.42        .93136E-04   -1.1271    
   7  Prefactor     .10000E-03    341.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    100.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     393.96        525.58        .10285E-03   -1.1712    
  10  Prefactor     .10000E-03    47.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    190.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    115.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    98.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1937        3.4495        .12050E-03   -1.5489    
  15  Prefactor     .10000E-03    138.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    178.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.772        135.51        .11683E-03   -1.5022    
  18  Prefactor     59.861        91.514        .51835E-04   -1.4159    
  19  Prefactor     .10000E-03    288.96        .21426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.268        20.672        .10987E-03   -1.4979    
  22  norm          .10000E-03    12.851        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    75.084        .84836E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.4100        14.403        .21927E-03   -1.5339    
  25  Prefactor     2.8942        7.1965        .17199E-03   -1.5368    
  26  norm          .10000E-03    56.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    123.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    29.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     33.616        22.367        .69119E-04   -1.4548    
  30  Prefactor     .10000E-03    13.364        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .55778        .13546E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.2215        .16345        .15838E-03   -.85673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26079e-09
Minuit parameter uncertainties:
  1  0.0495511
  2  0.00145776
  3  0.00089615
  4  0.00106128
  5  2.99026
  6  390.575
  7  0.000960629
  8  7.22445e-05
  9  532.193
  10  4.02023e-05
  11  0.0017
  12  0.000390277
  13  0.000274709
  14  3.45003
  15  0.000341195
  16  0.00192055
  17  80.1071
  18  91.7297
  19  0.000997992
  20  4.80559e-05
  21  20.6827
  22  1.92346e-05
  23  0.00213921
  24  14.0221
  25  7.19869
  26  0.000403269
  27  0.000150763
  28  4.92291e-05
  29  22.3723
  30  1.05794e-05
  31  4.23207e-05
  32  0.163517
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.177e+01  8.011e+01  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.221e+00  1.635e-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  4.232e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/671448/likelihoodResults_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.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) = 1758.09932353
delta logL = 0.0518949063837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1758.09456756
delta logL = 0.0566508687871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.855       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3501       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2142       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=   1758.095     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      292 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.868        65.479        .97555E-04   -.20394E-06
   2  alpha         3.3504        3.8731        .32768E-01    .37667E-04
   3  Normalizat    .10000E-01    .51290        .13302E-01** at limit **
   4  Prefactor     1.2141        .13070        .15865E-03   -.12361E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.8684
  alpha      = 3.35044
  Normalizat = 0.01
  Prefactor  = 1.21406
 **********
 **   18 **HESSE 
 **********

 FCN=   1758.095     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.868        60.098        .39022E-05   -1.4886    
   2  alpha         3.3504        3.7873        .65536E-02    .34710    
   3  Normalizat    .10000E-01    .51320        .26604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2141        .13054        .63460E-05   -.85900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82777e-12
Minuit parameter uncertainties:
  1  60.3146
  2  2.60518
  3  2.62873e-07
  4  0.130579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671448': 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) = 1758.0945667
delta logL = 0.0566517382313

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.687e+01  6.031e+01  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  3.350e+00  2.605e+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:  1.214e+00  1.306e-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.629e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/671448/cmap_HighResolution_609206401_609465601_4FGL_J0242.3+1102_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-04', job_status='DONE', photon_flux_upper_limit='7.30e-07', time_completed='2021-08-16 13:12:29.773160', job_id='671448', GAL2='1.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629144749.77', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.67e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1427' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 13:12:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 671448: <4FGL_J0242.3+1102_daily_bin1427> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1427> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 16 12:56:00 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 12:59:42 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:59:42 2021
Terminated at Mon Aug 16 13:12:31 2021
Results reported at Mon Aug 16 13:12:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1427 40.5951 11.0477 609206401 609465601 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 :                                   582.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             251.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            991 sec.

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

