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


Performing analysis on: 4FGL_J0242.3+1102_daily_bin1499
RA = 40.5951, Dec = 11.0477
tmin = 627868801, tmax = 628128001
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='672696', job_status='RUN', time_executed='2021-08-16 13:04:30.371706', time_epoch_executed='1629144270.37' WHERE source_name='4FGL J0242.3+1102' and cadence='daily' and bin_id='1499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672696/ft1_4FGL_J0242.3+1102_daily_bin1499.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672696/ft2_4FGL_J0242.3+1102_daily_bin1499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672696/ft1_4FGL_J0242.3+1102_daily_bin1499.fits outfile=/scratch/kocevski/672696/ft1_filteredMKT_4FGL_J0242.3+1102_daily_bin1499.fits ra=40.5951 dec=11.0477 rad=12.0 tmin=627868801.0 tmax=628128001.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 11.53
user 2.29
sys 7.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672696/ft1_filtered_4FGL_J0242.3+1102_daily_bin1499.fits" evtable="EVENTS" scfile=/scratch/kocevski/672696/ft2_4FGL_J0242.3+1102_daily_bin1499.fits sctable="SC_DATA" outfile=/scratch/kocevski/672696/ltcube_627868801_628128001_4FGL_J0242.3+1102_daily_bin1499.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/672696/ft2_4FGL_J0242.3+1102_daily_bin1499.fits
.....................!
real 23.69
user 14.92
sys 7.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672696/ft1_filtered_4FGL_J0242.3+1102_daily_bin1499.fits evtable="EVENTS" scfile=/scratch/kocevski/672696/ft2_4FGL_J0242.3+1102_daily_bin1499.fits sctable="SC_DATA" expcube=/scratch/kocevski/672696/ltcube_627868801_628128001_4FGL_J0242.3+1102_daily_bin1499.fits outfile=/scratch/kocevski/672696/expmap_627868801_628128001_4FGL_J0242.3+1102_daily_bin1499.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/672696/ltcube_627868801_628128001_4FGL_J0242.3+1102_daily_bin1499.fits
.....................!
real 206.69
user 186.16
sys 15.84

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/672696/ft1_filtered_4FGL_J0242.3+1102_daily_bin1499.fits scfile=/scratch/kocevski/672696/ft2_4FGL_J0242.3+1102_daily_bin1499.fits outfile=/scratch/kocevski/672696/cmap_627868801_628128001_4FGL_J0242.3+1102_daily_bin1499.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=40.5951 yref=11.0477 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 7.92
user 0.37
sys 6.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672696/ft1_filtered_4FGL_J0242.3+1102_daily_bin1499.fits scfile=/scratch/kocevski/672696/ft2_4FGL_J0242.3+1102_daily_bin1499.fits outfile=/scratch/kocevski/672696/cmap_HighResolution_627868801_628128001_4FGL_J0242.3+1102_daily_bin1499.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 7.75
user 0.39
sys 6.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    391.37       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33608E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    73.655       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10764E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.617       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.742       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .39696       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .68684       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=   636.2289     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4996 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.354        35.307       -.15804E-06   -.17120E-04
   2  Prefactor     .10000E-03    15.701       -.18399E-05** at limit **
   3  norm          .10000E-03    13.588        .15247E-06** at limit **
   4  Prefactor     .10000E-03    26.667        .21993E-04** at limit **
   5  norm          .10000E-03    .79453        .25721E-07** at limit **
   6  Prefactor     .10000E-03    93.046       -.70280E-04** at limit **
   7  Prefactor     .10000E-03    164.22        .20770E-04** at limit **
   8  Prefactor     .10000E-03    23.900       -.11685E-04** at limit **
   9  Prefactor     391.36        440.59       -.61622E-05    .51309E-04
  10  Prefactor     .10000E-03    39.376       -.18024E-05** at limit **
  11  Prefactor     .10012E-03    784.61       -.34838E-03** at limit **
  12  Prefactor     66.065        73.053        .23196E-04    .53609E-03
  13  Prefactor     73.683        94.033        .24383E-04    .15217E-04
  14  norm          .10000E-03    2.8983        .52207E-07** at limit **
  15  Prefactor     .10000E-03    186.85        .52658E-04** at limit **
  16  Prefactor     .10000E-03    31.647       -.10884E-04** at limit **
  17  norm          .10000E-03    38.608       -.78908E-05** at limit **
  18  Prefactor     71.515        208.23       -.59983E-04    .12114E-04
  19  Prefactor     .10000E-03    180.76        .45774E-04** at limit **
  20  Prefactor     .10000E-03    326.75       -.28243E-04** at limit **
  21  Prefactor     .10000E-03    11.123        .64351E-07** at limit **
  22  norm          .10000E-03    90.795       -.64699E-04** at limit **
  23  norm          .10000E-03    17.086        .29097E-05** at limit **
  24  norm          13.616        18.959       -.12698E-05    .60306E-05
  25  Prefactor     .10000E-03    8.1409        .48485E-07** at limit **
  26  norm          .10000E-03    68.022        .42617E-04** at limit **
  27  Prefactor     .10000E-03    1845.8       -.13377E-02** at limit **
  28  Prefactor     .10000E-03    69.572        .33441E-04** at limit **
  29  Prefactor     17.746        28.240        .11585E-06   -.14073E-03
  30  Prefactor     .10000E-03    186.67        .52620E-04** at limit **
  31  Normalizat    .39699        .47338        .13394E-05    .73057E-04
  32  Prefactor     .68687        .24494       -.24844E-05    .12894E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.354
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 391.36
  Prefactor  = 0.0001
  Prefactor  = 0.000100119
  Prefactor  = 66.0653
  Prefactor  = 73.6829
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 71.5147
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.6162
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7459
  Prefactor  = 0.0001
  Normalizat = 0.396992
  Prefactor  = 0.686874
 **********
 **   18 **HESSE 
 **********

 FCN=   636.2289     FROM HESSE     STATUS=OK           629 CALLS     5625 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.354        35.275        .59536E-04   -1.4360    
   2  Prefactor     .10000E-03    16.050        .97607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.602        .90838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.204        .25386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .79624        .21951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    93.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    164.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.909        .12051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     391.36        440.22        .10313E-03   -1.1725    
  10  Prefactor     .10000E-03    39.382        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10012E-03    791.74        .19702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     66.065        73.143        .49390E-04   -1.4081    
  13  Prefactor     73.683        94.025        .23391E-03   -1.3989    
  14  norm          .10000E-03    2.8989        .41843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    186.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.654        .13869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    38.610        .15321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     71.515        208.08        .47454E-04   -1.4015    
  19  Prefactor     .10000E-03    180.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    326.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.150        .82166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    90.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    17.086        .10188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.616        18.949        .10854E-03   -1.4970    
  25  Prefactor     .10000E-03    8.1556        .70303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    68.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1838.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    69.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     17.746        28.751        .95086E-04   -1.4865    
  30  Prefactor     .10000E-03    186.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .39699        .49585        .40467E-03   -1.1746    
  32  Prefactor     .68687        .26283        .15443E-03   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42676e-09
Minuit parameter uncertainties:
  1  35.2913
  2  2.1342e-05
  3  2.172e-05
  4  0.000278115
  5  1.38317e-08
  6  0.000170052
  7  0.000146825
  8  3.41979e-05
  9  444.089
  10  7.99656e-05
  11  0.0196425
  12  73.2429
  13  94.2157
  14  1.42141e-05
  15  0.000119946
  16  3.5333e-05
  17  7.55837e-05
  18  210.253
  19  5.58294e-05
  20  0.0015307
  21  2.81076e-06
  22  4.65772e-05
  23  2.79605e-06
  24  18.9569
  25  1.24273e-06
  26  2.20597e-05
  27  0.000725259
  28  8.95775e-06
  29  28.7731
  30  7.76794e-05
  31  0.501482
  32  0.263301
Done.

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

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  7.558e-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:  6.869e-01  2.633e-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:  3.970e-01  5.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/672696/likelihoodResults_627868801_628128001_4FGL_J0242.3+1102_daily_bin1499.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) = 636.229032451
delta logL = -0.000122002865282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 636.228911428
delta logL = -9.80022150543e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3514       1.0000          .0000       5.0000    
     3 'Normalizat'    .39696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68689       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=   636.2289     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.973        .90712E-02** at limit **
   2  alpha         4.3443        3.6341        .50000        .10963E-05
   3  Normalizat    .39699        .44207        .91242E-01    .46016E-05
   4  Prefactor     .68687        .22550        .42226E-01    .40268E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 4.34429
  Normalizat = 0.396987
  Prefactor  = 0.686874
 **********
 **   18 **HESSE 
 **********

 FCN=   636.2289     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.076        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.3443        3.6340        .20000        .82968    
   3  Normalizat    .39699        .46050        .40467E-03   -1.1746    
   4  Prefactor     .68687        .23603        .15443E-03   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21017e-12
Minuit parameter uncertainties:
  1  4.02534e-06
  2  1.68778
  3  0.464997
  4  0.236376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672696': 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) = 636.228911398
delta logL = -9.49610466705e-07

Extracting fit parameters...

4FGL J0242.3+1102
   Spectrum: LogParabola
254         norm:  1.000e-04  4.025e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        alpha:  4.344e+00  1.688e+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:  6.869e-01  2.364e-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:  3.970e-01  4.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-04', job_status='DONE', photon_flux_upper_limit='6.97e-07', time_completed='2021-08-16 13:13:15.549186', job_id='672696', GAL2='0.69', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1629144795.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-9.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1499' AND source_name='4FGL J0242.3+1102' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 13:13:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 672696: <4FGL_J0242.3+1102_daily_bin1499> in cluster <slac> Done

Job <4FGL_J0242.3+1102_daily_bin1499> 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) <bullet0224>, 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:13:17 2021
Results reported at Mon Aug 16 13:13:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0242.3+1102_daily_bin1499 40.5951 11.0477 627868801 628128001 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.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             218.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            760 sec.

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

