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

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


Waiting 64 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is 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 = 7354
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1498
RA = 40.5951, Dec = 11.0477
tmin = 627609601, tmax = 627868801
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='672694', job_status='RUN', time_executed='2021-08-16 13:03:04.337276', time_epoch_executed='1629144184.34' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672694

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672694/ft1_4FGL_J0242.3+1102_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672694/ft2_4FGL_J0242.3+1102_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672694/ft1_4FGL_J0242.3+1102_daily_bin1498.fits outfile=/scratch/kocevski/672694/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1498.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=627609601.0 tmax=627868801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.75
user 2.31
sys 1.02

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/672694/ft2_4FGL_J0242.3+1102_daily_bin1498.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/672694/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1498.fits evtable="EVENTS" outfile="/scratch/kocevski/672694/ft1_filtered_4FGL_J0242.3+1102_daily_bin1498.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 1.70
user 0.34
sys 0.97

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672694/ft1_filtered_4FGL_J0242.3+1102_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/672694/ft2_4FGL_J0242.3+1102_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/672694/ltcube_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.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/672694/ft2_4FGL_J0242.3+1102_daily_bin1498.fits
.....................!
real 14.38
user 12.71
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672694/ft1_filtered_4FGL_J0242.3+1102_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/672694/ft2_4FGL_J0242.3+1102_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/672694/ltcube_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.fits outfile=/scratch/kocevski/672694/expmap_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.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/672694/ltcube_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.fits
.....................!
real 195.53
user 185.75
sys 6.38

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J0242.3+1102 @ 40.5951 11.0477

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/672694/ft1_filtered_4FGL_J0242.3+1102_daily_bin1498.fits scfile=/scratch/kocevski/672694/ft2_4FGL_J0242.3+1102_daily_bin1498.fits outfile=/scratch/kocevski/672694/cmap_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.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 1.36
user 0.36
sys 0.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672694/ft1_filtered_4FGL_J0242.3+1102_daily_bin1498.fits scfile=/scratch/kocevski/672694/ft2_4FGL_J0242.3+1102_daily_bin1498.fits outfile=/scratch/kocevski/672694/cmap_HighResolution_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=40.5951 yref=11.0477 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.59
user 0.39
sys 0.95

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.085       1.0000         .10000E-03   10000.    
     3 'norm      '    44.112       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25418E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8665       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    903.99       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16910E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    90.724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47917E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21308       1.0000         .10000E-03   10000.    
    16 'Prefactor '    97.530       1.0000         .10000E-03   10000.    
    17 'norm      '    .37503       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34196       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1504       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71112       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.0397       1.0000         .10000E-03   10000.    
    23 'norm      '    .52089E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .23375E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    44.850       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3509       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.6702       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .67171E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .40010E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.3563       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2513       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .30270E-01   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   249.9941     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1024 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.028        .90712E-02** at limit **
   2  Prefactor     16.090        18.767        .24966E-02    .87119E-02
   3  norm          44.153        34.148        .15091E-02    .16858E-01
   4  Prefactor     .10000E-03    32.039        .90712E-02** at limit **
   5  norm          .10000E-03    1.7371        .90712E-02** at limit **
   6  Prefactor     .10006E-03    97.715        .10001E-01** at limit **
   7  Prefactor     .10088E-03    1120.5        .51305E-02** at limit **
   8  Prefactor     .10000E-03    37.257        .90712E-02** at limit **
   9  Prefactor     904.32        890.49        .34873E-03   -.11654E-02
  10  Prefactor     .10000E-03    88.218        .90712E-02** at limit **
  11  Prefactor     .10647E-03    1020.5        .37812E-02** at limit **
  12  Prefactor     95.768        158.98        .10547E-02   -.10794E-02
  13  Prefactor     .10002E-03    125.71        .92599E-02** at limit **
  14  norm          .10000E-03    5.9371        .90712E-02** at limit **
  15  Prefactor     .10004E-03    634.13        .10037E-01** at limit **
  16  Prefactor     98.499        123.10        .10176E-02    .67187E-03
  17  norm          .10001E-03    181.47        .10749E-01** at limit **
  18  Prefactor     .10003E-03    561.42        .10608E-01** at limit **
  19  Prefactor     .10395E-03    1029.5        .10788E-01** at limit **
  20  Prefactor     .92237E-03    6578.0        .12104E-01** at limit **
  21  Prefactor     .10000E-03    35.324        .90712E-02** at limit **
  22  norm          1.0397        1.2531         .0000         .0000    
  23  norm          .10022E-03    .22909       -.23779E-04** at limit **
  24  norm          .10000E-03    .20882        .16297E-04** at limit **
  25  Prefactor     45.018        1.0019       -.14535E-05   -.80095E-02
  26  norm          .10594E-03    .22137       -.34928E-03** at limit **
  27  Prefactor     6.6702        1.0028         .0000         .0000    
  28  Prefactor     .10025E-03    .27569        .83577E-05** at limit **
  29  Prefactor     .10000E-03    .21258        .25059E-04** at limit **
  30  Prefactor     1.3563        1.0925         .0000         .0000    
  31  Normalizat    1.2584        1.0935        .21381E-03   -.87826E-04
  32  Prefactor     .26150E-01    .26163       -.89633E-03   -.30423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 16.0902
  norm       = 44.1529
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100064
  Prefactor  = 0.000100878
  Prefactor  = 0.0001
  Prefactor  = 904.319
  Prefactor  = 0.0001
  Prefactor  = 0.000106471
  Prefactor  = 95.7679
  Prefactor  = 0.000100022
  norm       = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 98.4991
  norm       = 0.000100009
  Prefactor  = 0.000100031
  Prefactor  = 0.000103945
  Prefactor  = 0.000922374
  Prefactor  = 0.0001
  norm       = 1.03974
  norm       = 0.000100223
  norm       = 0.000100001
  Prefactor  = 45.0181
  norm       = 0.000105937
  Prefactor  = 6.67016
  Prefactor  = 0.00010025
  Prefactor  = 0.0001
  Prefactor  = 1.35625
  Normalizat = 1.25842
  Prefactor  = 0.0261503
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   249.9941     FROM HESSE     STATUS=FAILED        51 CALLS     1075 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.090        18.767        .24966E-02   -1.4905    
   3  norm          44.153        34.148        .15091E-02   -1.4378    
   4  Prefactor     .10000E-03    32.039        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    97.715        .10001E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10088E-03    1120.5        .51305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.257        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     904.32        890.49        .34873E-03   -.95990    
  10  Prefactor     .10000E-03    88.218        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10647E-03    1020.5        .37812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     95.768        158.98        .10547E-02   -1.3748    
  13  Prefactor     .10002E-03    125.71        .92599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    634.13        .10037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     98.499        123.10        .10176E-02   -1.3720    
  17  norm          .10001E-03    181.47        .10749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10003E-03    561.42        .10608E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10395E-03    1029.5        .10788E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .92237E-03    6578.0        .12104E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          587.41        585.99         .0000       -1.5504    
  23  norm          .10022E-03    .22909       -.23779E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .20882        .16297E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.018        1.0019       -.14535E-05   -1.4365    
  26  norm          .10594E-03    .22137       -.34928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.6702        1.0028         .0000       -1.5191    
  28  Prefactor     .10025E-03    .27569        .83577E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .21258        .25059E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3563        1.0925         .0000       -1.5475    
  31  Normalizat    1.2584        1.0935        .21381E-03   -.84816    
  32  Prefactor     .26150E-01    .26163       -.89633E-03   -1.4685    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.02494e-09
Minuit parameter uncertainties:
  1  0.000227013
  2  18.7734
  3  34.1627
  4  5.62023e-05
  5  2.05599e-05
  6  0.00501452
  7  0.0639816
  8  6.50024e-05
  9  905.455
  10  0.000391566
  11  0.165423
  12  159.693
  13  0.0033061
  14  5.8641e-05
  15  0.0102492
  16  123.417
  17  0.00249837
  18  0.00839919
  19  0.129756
  20  3.42307
  21  1.26715e-05
  22  1.25317
  23  0.000451603
  24  3.41807e-05
  25  1.00192
  26  0.00229296
  27  1.00284
  28  0.000524644
  29  1.35933e-05
  30  1.09255
  31  1.11457
  32  0.16638
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  2.498e-03  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:  2.615e-02  1.664e-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.258e+00  1.115e+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: 3.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672694/likelihoodResults_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.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) = 249.994081014
delta logL = -2.56298906436e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 249.994055063
delta logL = 3.21988665064e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13486E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26284E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   249.9451     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      282 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2838        33.171        .90712E-02    .29175E-03
   2  alpha         5.0000        4.1263        .50000    ** at limit **
   3  Normalizat    1.1930        1.7901        .57401E-01    .16055E-04
   4  Prefactor     .49252E-01    6.5304        .13642        .45497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.28381
  alpha      = 5
  Normalizat = 1.19305
  Prefactor  = 0.0492524
 **********
 **   18 **HESSE 
 **********

 FCN=   249.9451     FROM HESSE     STATUS=OK            31 CALLS      313 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2838        32.784        .82057E-03   -1.5098    
   2  alpha         5.0000        3.9193        .28822E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1930        1.0457        .25375E-03   -.86818    
   4  Prefactor     .49252E-01    1.4316        .57584E-02   -1.4303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99309e-10
Minuit parameter uncertainties:
  1  32.8472
  2  1.44741e-05
  3  1.0649
  4  0.546139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672694': 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) = 249.945080999
delta logL = 0.0489743856449

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  9.284e+00  3.285e+01  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  5.000e+00  1.447e-05  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:  4.925e-02  5.461e-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.193e+00  1.065e+00  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/672694/cmap_HighResolution_627609601_627868801_4FGL_J0242.3+1102_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-03', job_status='DONE', photon_flux_upper_limit='3.34e-06', time_completed='2021-08-16 13:09:08.655073', job_id='672694', GAL2='0.05', fit_tolerance='1e-08', EG2='1.19', EG='1.26', time_epoch_completed='1629144548.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.03', dlogl='4.90e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1498' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 13:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 672694: <4FGL_J0242.3+1102_daily_bin1498> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1498> 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) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 13:00:45 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:45 2021
Terminated at Mon Aug 16 13:09:09 2021
Results reported at Mon Aug 16 13:09:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1498 40.5951 11.0477 627609601 627868801 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 :                                   344.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   504 sec.
    Turnaround time :                            512 sec.

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

